1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CFLAGS_CCACHE 633 CCACHE 634 USE_PRECOMPILED_HEADER 635 BUILD_ICECC 636 ICECC 637 ICECC_WRAPPER 638 ICECC_CREATE_ENV 639 ICECC_CMD 640 ENABLE_JAVAC_SERVER 641 ENABLE_SJAVAC 642 SJAVAC_SERVER_JAVA_FLAGS 643 SJAVAC_SERVER_JAVA 644 JAVA_TOOL_FLAGS_SMALL 645 JAVA_FLAGS_SMALL 646 JAVA_FLAGS_JAVAC 647 BOOTCYCLE_JVM_ARGS_BIG 648 JAVA_FLAGS_BIG 649 JAVA_FLAGS 650 TEST_JOBS 651 JOBS 652 MEMORY_SIZE 653 NUM_CORES 654 ENABLE_GENERATE_CLASSLIST 655 BUILD_FAILURE_HANDLER 656 ENABLE_INTREE_EC 657 VALID_JVM_FEATURES 658 JVM_FEATURES_custom 659 JVM_FEATURES_zero 660 JVM_FEATURES_minimal 661 JVM_FEATURES_core 662 JVM_FEATURES_client 663 JVM_FEATURES_server 664 INCLUDE_GRAAL 665 STLPORT_LIB 666 LIBZIP_CAN_USE_MMAP 667 LIBDL 668 LIBM 669 USE_EXTERNAL_LCMS 670 LCMS_LIBS 671 LCMS_CFLAGS 672 USE_EXTERNAL_LIBZ 673 USE_EXTERNAL_LIBPNG 674 PNG_LIBS 675 PNG_CFLAGS 676 USE_EXTERNAL_LIBGIF 677 USE_EXTERNAL_LIBJPEG 678 LIBFFI_LIB_FILE 679 ENABLE_LIBFFI_BUNDLING 680 LIBFFI_LIBS 681 LIBFFI_CFLAGS 682 ALSA_LIBS 683 ALSA_CFLAGS 684 FREETYPE_LICENSE 685 FREETYPE_BUNDLE_LIB_PATH 686 FREETYPE_LIBS 687 FREETYPE_CFLAGS 688 FONTCONFIG_CFLAGS 689 CUPS_CFLAGS 690 X_EXTRA_LIBS 691 X_LIBS 692 X_PRE_LIBS 693 X_CFLAGS 694 XMKMF 695 MSVCP_DLL 696 MSVCR_DLL 697 LIBCXX 698 FIXPATH_DETACH_FLAG 699 FIXPATH 700 BUILD_GTEST 701 ENABLE_CDS 702 ENABLE_AOT 703 ASAN_ENABLED 704 GCOV_ENABLED 705 ZIP_EXTERNAL_DEBUG_SYMBOLS 706 COPY_DEBUG_SYMBOLS 707 COMPILE_WITH_DEBUG_SYMBOLS 708 CFLAGS_WARNINGS_ARE_ERRORS 709 BUILD_CC_DISABLE_WARNING_PREFIX 710 DISABLE_WARNING_PREFIX 711 WARNINGS_AS_ERRORS 712 COMPILER_SUPPORTS_TARGET_BITS_FLAG 713 LDFLAGS_TESTEXE 714 LDFLAGS_TESTLIB 715 CXXFLAGS_TESTEXE 716 CXXFLAGS_TESTLIB 717 CFLAGS_TESTEXE 718 CFLAGS_TESTLIB 719 OPENJDK_BUILD_JVM_LIBS 720 OPENJDK_BUILD_JVM_ASFLAGS 721 OPENJDK_BUILD_JVM_LDFLAGS 722 OPENJDK_BUILD_JVM_CFLAGS 723 OPENJDK_BUILD_LDFLAGS_NO_EXEC_STACK 724 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 725 OPENJDK_BUILD_LDFLAGS_CXX_JDK 726 OPENJDK_BUILD_JDKEXE_LIBS 727 OPENJDK_BUILD_JDKLIB_LIBS 728 OPENJDK_BUILD_LDFLAGS_JDKEXE 729 OPENJDK_BUILD_LDFLAGS_JDKLIB 730 OPENJDK_BUILD_CXXFLAGS_JDKEXE 731 OPENJDK_BUILD_CXXFLAGS_JDKLIB 732 OPENJDK_BUILD_CFLAGS_JDKEXE 733 OPENJDK_BUILD_CFLAGS_JDKLIB 734 OPENJDK_BUILD_CXXSTD_CXXFLAG 735 JVM_LIBS 736 JVM_ASFLAGS 737 JVM_LDFLAGS 738 JVM_CFLAGS 739 LDFLAGS_NO_EXEC_STACK 740 LDFLAGS_HASH_STYLE 741 LDFLAGS_CXX_JDK 742 JDKEXE_LIBS 743 JDKLIB_LIBS 744 LDFLAGS_JDKEXE 745 LDFLAGS_JDKLIB 746 CXXFLAGS_JDKEXE 747 CXXFLAGS_JDKLIB 748 CFLAGS_JDKEXE 749 CFLAGS_JDKLIB 750 MACOSX_VERSION_MAX 751 MACOSX_VERSION_MIN 752 CXXSTD_CXXFLAG 753 JDK_ARCH_ABI_PROP_NAME 754 CXX_O_FLAG_SIZE 755 CXX_O_FLAG_NONE 756 CXX_O_FLAG_DEBUG 757 CXX_O_FLAG_NORM 758 CXX_O_FLAG_HI 759 CXX_O_FLAG_HIGHEST 760 CXX_O_FLAG_HIGHEST_JVM 761 C_O_FLAG_SIZE 762 C_O_FLAG_NONE 763 C_O_FLAG_DEBUG 764 C_O_FLAG_NORM 765 C_O_FLAG_HI 766 C_O_FLAG_HIGHEST 767 C_O_FLAG_HIGHEST_JVM 768 JVM_CFLAGS_SYMBOLS 769 CXXFLAGS_DEBUG_SYMBOLS 770 CFLAGS_DEBUG_SYMBOLS 771 CXX_FLAG_DEPS 772 C_FLAG_DEPS 773 SHARED_LIBRARY_FLAGS 774 SET_SHARED_LIBRARY_MAPFILE 775 SET_SHARED_LIBRARY_NAME 776 SET_SHARED_LIBRARY_ORIGIN 777 SET_EXECUTABLE_ORIGIN 778 CXX_FLAG_REORDER 779 C_FLAG_REORDER 780 JVM_RCFLAGS 781 RC_FLAGS 782 AR_OUT_OPTION 783 LD_OUT_OPTION 784 EXE_OUT_OPTION 785 CC_OUT_OPTION 786 STRIPFLAGS 787 ARFLAGS 788 COMPILER_BINDCMD_FILE_FLAG 789 COMPILER_COMMAND_FILE_FLAG 790 COMPILER_TARGET_BITS_FLAG 791 JIB_JAR 792 JT_HOME 793 JTREGEXE 794 HOTSPOT_TOOLCHAIN_TYPE 795 USING_BROKEN_SUSE_LD 796 PACKAGE_PATH 797 BUILD_AS 798 BUILD_LDCXX 799 BUILD_LD 800 BUILD_STRIP 801 BUILD_OBJCOPY 802 BUILD_AR 803 BUILD_NM 804 BUILD_CXX 805 BUILD_CC 806 BUILD_SYSROOT_LDFLAGS 807 BUILD_SYSROOT_CFLAGS 808 ac_ct_OBJDUMP 809 OBJDUMP 810 ac_ct_OBJCOPY 811 OBJCOPY 812 ac_ct_NM 813 ac_ct_STRIP 814 GNM 815 NM 816 STRIP 817 MSBUILD 818 DUMPBIN 819 RC 820 MT 821 INSTALL_NAME_TOOL 822 OTOOL 823 LIPO 824 ac_ct_AR 825 AR 826 AS 827 LDCXX 828 LD 829 CXXCPP 830 CPP 831 CXX_VERSION_NUMBER 832 CC_VERSION_NUMBER 833 ac_ct_CXX 834 CXXFLAGS 835 CXX 836 TOOLCHAIN_PATH_CXX 837 POTENTIAL_CXX 838 OBJEXT 839 EXEEXT 840 ac_ct_CC 841 CPPFLAGS 842 LDFLAGS 843 CFLAGS 844 CC 845 TOOLCHAIN_PATH_CC 846 POTENTIAL_CC 847 TOOLCHAIN_VERSION 848 VS_LIB 849 VS_INCLUDE 850 VS_PATH 851 CYGWIN_LINK 852 SYSROOT_LDFLAGS 853 SYSROOT_CFLAGS 854 EXTRA_LDFLAGS 855 EXTRA_CXXFLAGS 856 EXTRA_CFLAGS 857 EXE_SUFFIX 858 OBJ_SUFFIX 859 STATIC_LIBRARY 860 SHARED_LIBRARY 861 STATIC_LIBRARY_SUFFIX 862 SHARED_LIBRARY_SUFFIX 863 LIBRARY_PREFIX 864 TOOLCHAIN_TYPE 865 STATIC_BUILD 866 IMPORT_MODULES_MAKE 867 IMPORT_MODULES_SRC 868 IMPORT_MODULES_MAN 869 IMPORT_MODULES_LEGAL 870 IMPORT_MODULES_CONF 871 IMPORT_MODULES_LIBS 872 IMPORT_MODULES_CMDS 873 IMPORT_MODULES_CLASSES 874 EXTERNAL_BUILDJDK 875 BUILD_JDK 876 CREATE_BUILDJDK 877 JLINK 878 JMOD 879 JAVAC_FLAGS 880 BOOT_JDK_SOURCETARGET 881 JARSIGNER 882 JAR 883 JAVADOC 884 JAVAC 885 JAVA 886 BOOT_JDK 887 JAVA_CHECK 888 JAVAC_CHECK 889 VERSION_CLASSFILE_MINOR 890 VERSION_CLASSFILE_MAJOR 891 VENDOR_VERSION_STRING 892 VERSION_DATE 893 VERSION_IS_GA 894 VERSION_SHORT 895 VERSION_STRING 896 VERSION_NUMBER_FOUR_POSITIONS 897 VERSION_NUMBER 898 VERSION_OPT 899 VERSION_BUILD 900 VERSION_PRE 901 VERSION_PATCH 902 VERSION_UPDATE 903 VERSION_INTERIM 904 VERSION_FEATURE 905 COMPANY_NAME 906 MACOSX_BUNDLE_ID_BASE 907 MACOSX_BUNDLE_NAME_BASE 908 HOTSPOT_VM_DISTRO 909 JDK_RC_PLATFORM_NAME 910 PRODUCT_SUFFIX 911 PRODUCT_NAME 912 LAUNCHER_NAME 913 JLINK_KEEP_PACKAGED_MODULES 914 COPYRIGHT_YEAR 915 COMPRESS_JARS 916 INCLUDE_SA 917 UNLIMITED_CRYPTO 918 CACERTS_FILE 919 ENABLE_FULL_DOCS 920 ENABLE_HEADLESS_ONLY 921 DEFAULT_MAKE_TARGET 922 OS_VERSION_MICRO 923 OS_VERSION_MINOR 924 OS_VERSION_MAJOR 925 PKG_CONFIG 926 BASH_ARGS 927 SETFILE 928 CODESIGN 929 XATTR 930 DSYMUTIL 931 IS_GNU_TIME 932 PATCH 933 DTRACE 934 FLOCK 935 TIME 936 STAT 937 HG 938 DOT 939 READELF 940 LDD 941 ZIPEXE 942 UNZIP 943 TAR_SUPPORTS_TRANSFORM 944 TAR_INCLUDE_PARAM 945 TAR_CREATE_EXTRA_PARAM 946 TAR_TYPE 947 FIND_DELETE 948 OUTPUT_SYNC 949 OUTPUT_SYNC_SUPPORTED 950 CHECK_TOOLSDIR_MAKE 951 CHECK_TOOLSDIR_GMAKE 952 CHECK_MAKE 953 CHECK_GMAKE 954 MAKE 955 PKGHANDLER 956 CONFIGURESUPPORT_OUTPUTDIR 957 OUTPUTDIR 958 CONF_NAME 959 SPEC 960 SDKROOT 961 XCODEBUILD 962 DEVKIT_LIB_DIR 963 JVM_VARIANT_MAIN 964 VALID_JVM_VARIANTS 965 JVM_VARIANTS 966 DEBUG_LEVEL 967 HOTSPOT_DEBUG_LEVEL 968 JDK_VARIANT 969 USERNAME 970 TOPDIR 971 PATH_SEP 972 OPENJDK_BUILD_OS_INCLUDE_SUBDIR 973 HOTSPOT_BUILD_CPU_DEFINE 974 HOTSPOT_BUILD_CPU_ARCH 975 HOTSPOT_BUILD_CPU 976 HOTSPOT_BUILD_OS_TYPE 977 HOTSPOT_BUILD_OS 978 OPENJDK_BUILD_BUNDLE_PLATFORM 979 OPENJDK_BUILD_CPU_OSARCH 980 OPENJDK_BUILD_CPU_ISADIR 981 OPENJDK_BUILD_CPU_LEGACY_LIB 982 OPENJDK_BUILD_CPU_LEGACY 983 OPENJDK_TARGET_OS_INCLUDE_SUBDIR 984 HOTSPOT_TARGET_CPU_DEFINE 985 HOTSPOT_TARGET_CPU_ARCH 986 HOTSPOT_TARGET_CPU 987 HOTSPOT_TARGET_OS_TYPE 988 HOTSPOT_TARGET_OS 989 DEFINE_CROSS_COMPILE_ARCH 990 OPENJDK_TARGET_BUNDLE_PLATFORM 991 OPENJDK_TARGET_CPU_OSARCH 992 OPENJDK_TARGET_CPU_ISADIR 993 OPENJDK_TARGET_CPU_LEGACY_LIB 994 OPENJDK_TARGET_CPU_LEGACY 995 RELEASE_FILE_OS_ARCH 996 RELEASE_FILE_OS_NAME 997 OPENJDK_MODULE_TARGET_PLATFORM 998 COMPILE_TYPE 999 OPENJDK_TARGET_CPU_ENDIAN 1000 OPENJDK_TARGET_CPU_BITS 1001 OPENJDK_TARGET_CPU_ARCH 1002 OPENJDK_TARGET_CPU 1003 OPENJDK_TARGET_OS_ENV 1004 OPENJDK_TARGET_OS_TYPE 1005 OPENJDK_TARGET_OS 1006 OPENJDK_BUILD_CPU_ENDIAN 1007 OPENJDK_BUILD_CPU_BITS 1008 OPENJDK_BUILD_CPU_ARCH 1009 OPENJDK_BUILD_CPU 1010 OPENJDK_BUILD_OS_ENV 1011 OPENJDK_BUILD_OS_TYPE 1012 OPENJDK_BUILD_OS 1013 OPENJDK_BUILD_AUTOCONF_NAME 1014 OPENJDK_TARGET_AUTOCONF_NAME 1015 target_os 1016 target_vendor 1017 target_cpu 1018 target 1019 host_os 1020 host_vendor 1021 host_cpu 1022 host 1023 build_os 1024 build_vendor 1025 build_cpu 1026 build 1027 PANDOC 1028 NICE 1029 CPIO 1030 DF 1031 READLINK 1032 CYGPATH 1033 SED 1034 FGREP 1035 EGREP 1036 GREP 1037 AWK 1038 XARGS 1039 WHICH 1040 WC 1041 UNIQ 1042 UNAME 1043 TR 1044 TOUCH 1045 TEE 1046 TAR 1047 TAIL 1048 SORT 1049 SH 1050 RMDIR 1051 RM 1052 PRINTF 1053 NAWK 1054 MV 1055 MKTEMP 1056 MKDIR 1057 LS 1058 LN 1059 GZIP 1060 GUNZIP 1061 HEAD 1062 FIND 1063 FILE 1064 EXPR 1065 ECHO 1066 DIRNAME 1067 DIFF 1068 DATE 1069 CUT 1070 CP 1071 COMM 1072 CMP 1073 CHMOD 1074 CAT 1075 BASH 1076 BASENAME 1077 DATE_WHEN_CONFIGURED 1078 ORIGINAL_PATH 1079 CONFIGURE_COMMAND_LINE 1080 target_alias 1081 host_alias 1082 build_alias 1083 LIBS 1084 ECHO_T 1085 ECHO_N 1086 ECHO_C 1087 DEFS 1088 mandir 1089 localedir 1090 libdir 1091 psdir 1092 pdfdir 1093 dvidir 1094 htmldir 1095 infodir 1096 docdir 1097 oldincludedir 1098 includedir 1099 runstatedir 1100 localstatedir 1101 sharedstatedir 1102 sysconfdir 1103 datadir 1104 datarootdir 1105 libexecdir 1106 sbindir 1107 bindir 1108 program_transform_name 1109 prefix 1110 exec_prefix 1111 PACKAGE_URL 1112 PACKAGE_BUGREPORT 1113 PACKAGE_STRING 1114 PACKAGE_VERSION 1115 PACKAGE_TARNAME 1116 PACKAGE_NAME 1117 PATH_SEPARATOR 1118 SHELL' 1119 ac_subst_files='' 1120 ac_user_opts=' 1121 enable_option_checking 1122 with_target_bits 1123 enable_openjdk_only 1124 with_custom_make_dir 1125 with_jdk_variant 1126 enable_debug 1127 with_debug_level 1128 with_jvm_variants 1129 with_cpu_port 1130 with_devkit 1131 with_sys_root 1132 with_sysroot 1133 with_tools_dir 1134 with_toolchain_path 1135 with_extra_path 1136 with_sdk_name 1137 with_conf_name 1138 with_output_sync 1139 with_default_make_target 1140 enable_headless_only 1141 enable_full_docs 1142 with_cacerts_file 1143 enable_unlimited_crypto 1144 with_copyright_year 1145 enable_keep_packaged_modules 1146 with_milestone 1147 with_update_version 1148 with_user_release_suffix 1149 with_build_number 1150 with_version_major 1151 with_version_minor 1152 with_version_security 1153 with_vendor_name 1154 with_version_string 1155 with_version_pre 1156 with_version_opt 1157 with_version_build 1158 with_version_feature 1159 with_version_interim 1160 with_version_update 1161 with_version_patch 1162 with_version_date 1163 with_vendor_version_string 1164 with_boot_jdk 1165 with_build_jdk 1166 with_import_modules 1167 enable_static_build 1168 with_toolchain_type 1169 with_extra_cflags 1170 with_extra_cxxflags 1171 with_extra_ldflags 1172 with_toolchain_version 1173 with_build_devkit 1174 with_jtreg 1175 with_jib 1176 with_abi_profile 1177 with_macosx_version_max 1178 enable_warnings_as_errors 1179 with_native_debug_symbols 1180 enable_debug_symbols 1181 enable_zip_debug_info 1182 enable_native_coverage 1183 enable_asan 1184 enable_dtrace 1185 enable_aot 1186 enable_cds 1187 enable_hotspot_gtest 1188 with_stdc__lib 1189 with_msvcr_dll 1190 with_msvcp_dll 1191 with_x 1192 with_cups 1193 with_cups_include 1194 with_fontconfig 1195 with_fontconfig_include 1196 with_freetype 1197 with_freetype_include 1198 with_freetype_lib 1199 with_freetype_src 1200 enable_freetype_bundling 1201 with_freetype_license 1202 with_alsa 1203 with_alsa_include 1204 with_alsa_lib 1205 with_libffi 1206 with_libffi_include 1207 with_libffi_lib 1208 enable_libffi_bundling 1209 with_libjpeg 1210 with_giflib 1211 with_libpng 1212 with_zlib 1213 with_lcms 1214 with_dxsdk 1215 with_dxsdk_lib 1216 with_dxsdk_include 1217 with_jvm_features 1218 with_jvm_interpreter 1219 enable_jtreg_failure_handler 1220 enable_generate_classlist 1221 with_num_cores 1222 with_memory_size 1223 with_jobs 1224 with_test_jobs 1225 with_boot_jdk_jvmargs 1226 with_sjavac_server_java 1227 enable_sjavac 1228 enable_javac_server 1229 enable_icecc 1230 enable_precompiled_headers 1231 enable_ccache 1232 with_ccache_dir 1233 ' 1234 ac_precious_vars='build_alias 1235 host_alias 1236 target_alias 1237 BASENAME 1238 BASH 1239 CAT 1240 CHMOD 1241 CMP 1242 COMM 1243 CP 1244 CUT 1245 DATE 1246 DIFF 1247 DIRNAME 1248 ECHO 1249 EXPR 1250 FILE 1251 FIND 1252 HEAD 1253 GUNZIP 1254 GZIP 1255 LN 1256 LS 1257 MKDIR 1258 MKTEMP 1259 MV 1260 NAWK 1261 PRINTF 1262 RM 1263 RMDIR 1264 SH 1265 SORT 1266 TAIL 1267 TAR 1268 TEE 1269 TOUCH 1270 TR 1271 UNAME 1272 UNIQ 1273 WC 1274 WHICH 1275 XARGS 1276 AWK 1277 GREP 1278 EGREP 1279 FGREP 1280 SED 1281 CYGPATH 1282 READLINK 1283 DF 1284 CPIO 1285 NICE 1286 PANDOC 1287 MAKE 1288 UNZIP 1289 ZIPEXE 1290 LDD 1291 READELF 1292 DOT 1293 HG 1294 STAT 1295 TIME 1296 FLOCK 1297 DTRACE 1298 PATCH 1299 DSYMUTIL 1300 XATTR 1301 CODESIGN 1302 SETFILE 1303 PKG_CONFIG 1304 JAVA 1305 JAVAC 1306 JAVADOC 1307 JAR 1308 JARSIGNER 1309 CC 1310 CFLAGS 1311 LDFLAGS 1312 LIBS 1313 CPPFLAGS 1314 CXX 1315 CXXFLAGS 1316 CCC 1317 CPP 1318 CXXCPP 1319 AS 1320 AR 1321 LIPO 1322 OTOOL 1323 INSTALL_NAME_TOOL 1324 STRIP 1325 NM 1326 GNM 1327 OBJCOPY 1328 OBJDUMP 1329 BUILD_CC 1330 BUILD_CXX 1331 BUILD_NM 1332 BUILD_AR 1333 BUILD_OBJCOPY 1334 BUILD_STRIP 1335 JTREGEXE 1336 XMKMF 1337 FREETYPE_CFLAGS 1338 FREETYPE_LIBS 1339 ALSA_CFLAGS 1340 ALSA_LIBS 1341 LIBFFI_CFLAGS 1342 LIBFFI_LIBS 1343 PNG_CFLAGS 1344 PNG_LIBS 1345 LCMS_CFLAGS 1346 LCMS_LIBS 1347 ICECC_CMD 1348 ICECC_CREATE_ENV 1349 ICECC_WRAPPER 1350 CCACHE' 1351 1352 1353 # Initialize some variables set by options. 1354 ac_init_help= 1355 ac_init_version=false 1356 ac_unrecognized_opts= 1357 ac_unrecognized_sep= 1358 # The variables have the same names as the options, with 1359 # dashes changed to underlines. 1360 cache_file=/dev/null 1361 exec_prefix=NONE 1362 no_create= 1363 no_recursion= 1364 prefix=NONE 1365 program_prefix=NONE 1366 program_suffix=NONE 1367 program_transform_name=s,x,x, 1368 silent= 1369 site= 1370 srcdir= 1371 verbose= 1372 x_includes=NONE 1373 x_libraries=NONE 1374 1375 # Installation directory options. 1376 # These are left unexpanded so users can "make install exec_prefix=/foo" 1377 # and all the variables that are supposed to be based on exec_prefix 1378 # by default will actually change. 1379 # Use braces instead of parens because sh, perl, etc. also accept them. 1380 # (The list follows the same order as the GNU Coding Standards.) 1381 bindir='${exec_prefix}/bin' 1382 sbindir='${exec_prefix}/sbin' 1383 libexecdir='${exec_prefix}/libexec' 1384 datarootdir='${prefix}/share' 1385 datadir='${datarootdir}' 1386 sysconfdir='${prefix}/etc' 1387 sharedstatedir='${prefix}/com' 1388 localstatedir='${prefix}/var' 1389 runstatedir='${localstatedir}/run' 1390 includedir='${prefix}/include' 1391 oldincludedir='/usr/include' 1392 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1393 infodir='${datarootdir}/info' 1394 htmldir='${docdir}' 1395 dvidir='${docdir}' 1396 pdfdir='${docdir}' 1397 psdir='${docdir}' 1398 libdir='${exec_prefix}/lib' 1399 localedir='${datarootdir}/locale' 1400 mandir='${datarootdir}/man' 1401 1402 ac_prev= 1403 ac_dashdash= 1404 for ac_option 1405 do 1406 # If the previous option needs an argument, assign it. 1407 if test -n "$ac_prev"; then 1408 eval $ac_prev=\$ac_option 1409 ac_prev= 1410 continue 1411 fi 1412 1413 case $ac_option in 1414 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1415 *=) ac_optarg= ;; 1416 *) ac_optarg=yes ;; 1417 esac 1418 1419 # Accept the important Cygnus configure options, so we can diagnose typos. 1420 1421 case $ac_dashdash$ac_option in 1422 --) 1423 ac_dashdash=yes ;; 1424 1425 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1426 ac_prev=bindir ;; 1427 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1428 bindir=$ac_optarg ;; 1429 1430 -build | --build | --buil | --bui | --bu) 1431 ac_prev=build_alias ;; 1432 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1433 build_alias=$ac_optarg ;; 1434 1435 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1436 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1437 ac_prev=cache_file ;; 1438 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1439 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1440 cache_file=$ac_optarg ;; 1441 1442 --config-cache | -C) 1443 cache_file=config.cache ;; 1444 1445 -datadir | --datadir | --datadi | --datad) 1446 ac_prev=datadir ;; 1447 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1448 datadir=$ac_optarg ;; 1449 1450 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1451 | --dataroo | --dataro | --datar) 1452 ac_prev=datarootdir ;; 1453 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1454 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1455 datarootdir=$ac_optarg ;; 1456 1457 -disable-* | --disable-*) 1458 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1459 # Reject names that are not valid shell variable names. 1460 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1461 as_fn_error $? "invalid feature name: $ac_useropt" 1462 ac_useropt_orig=$ac_useropt 1463 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1464 case $ac_user_opts in 1465 *" 1466 "enable_$ac_useropt" 1467 "*) ;; 1468 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1469 ac_unrecognized_sep=', ';; 1470 esac 1471 eval enable_$ac_useropt=no ;; 1472 1473 -docdir | --docdir | --docdi | --doc | --do) 1474 ac_prev=docdir ;; 1475 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1476 docdir=$ac_optarg ;; 1477 1478 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1479 ac_prev=dvidir ;; 1480 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1481 dvidir=$ac_optarg ;; 1482 1483 -enable-* | --enable-*) 1484 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1485 # Reject names that are not valid shell variable names. 1486 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1487 as_fn_error $? "invalid feature name: $ac_useropt" 1488 ac_useropt_orig=$ac_useropt 1489 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1490 case $ac_user_opts in 1491 *" 1492 "enable_$ac_useropt" 1493 "*) ;; 1494 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1495 ac_unrecognized_sep=', ';; 1496 esac 1497 eval enable_$ac_useropt=\$ac_optarg ;; 1498 1499 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1500 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1501 | --exec | --exe | --ex) 1502 ac_prev=exec_prefix ;; 1503 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1504 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1505 | --exec=* | --exe=* | --ex=*) 1506 exec_prefix=$ac_optarg ;; 1507 1508 -gas | --gas | --ga | --g) 1509 # Obsolete; use --with-gas. 1510 with_gas=yes ;; 1511 1512 -help | --help | --hel | --he | -h) 1513 ac_init_help=long ;; 1514 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1515 ac_init_help=recursive ;; 1516 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1517 ac_init_help=short ;; 1518 1519 -host | --host | --hos | --ho) 1520 ac_prev=host_alias ;; 1521 -host=* | --host=* | --hos=* | --ho=*) 1522 host_alias=$ac_optarg ;; 1523 1524 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1525 ac_prev=htmldir ;; 1526 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1527 | --ht=*) 1528 htmldir=$ac_optarg ;; 1529 1530 -includedir | --includedir | --includedi | --included | --include \ 1531 | --includ | --inclu | --incl | --inc) 1532 ac_prev=includedir ;; 1533 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1534 | --includ=* | --inclu=* | --incl=* | --inc=*) 1535 includedir=$ac_optarg ;; 1536 1537 -infodir | --infodir | --infodi | --infod | --info | --inf) 1538 ac_prev=infodir ;; 1539 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1540 infodir=$ac_optarg ;; 1541 1542 -libdir | --libdir | --libdi | --libd) 1543 ac_prev=libdir ;; 1544 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1545 libdir=$ac_optarg ;; 1546 1547 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1548 | --libexe | --libex | --libe) 1549 ac_prev=libexecdir ;; 1550 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1551 | --libexe=* | --libex=* | --libe=*) 1552 libexecdir=$ac_optarg ;; 1553 1554 -localedir | --localedir | --localedi | --localed | --locale) 1555 ac_prev=localedir ;; 1556 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1557 localedir=$ac_optarg ;; 1558 1559 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1560 | --localstate | --localstat | --localsta | --localst | --locals) 1561 ac_prev=localstatedir ;; 1562 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1563 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1564 localstatedir=$ac_optarg ;; 1565 1566 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1567 ac_prev=mandir ;; 1568 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1569 mandir=$ac_optarg ;; 1570 1571 -nfp | --nfp | --nf) 1572 # Obsolete; use --without-fp. 1573 with_fp=no ;; 1574 1575 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1576 | --no-cr | --no-c | -n) 1577 no_create=yes ;; 1578 1579 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1580 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1581 no_recursion=yes ;; 1582 1583 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1584 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1585 | --oldin | --oldi | --old | --ol | --o) 1586 ac_prev=oldincludedir ;; 1587 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1588 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1589 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1590 oldincludedir=$ac_optarg ;; 1591 1592 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1593 ac_prev=prefix ;; 1594 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1595 prefix=$ac_optarg ;; 1596 1597 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1598 | --program-pre | --program-pr | --program-p) 1599 ac_prev=program_prefix ;; 1600 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1601 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1602 program_prefix=$ac_optarg ;; 1603 1604 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1605 | --program-suf | --program-su | --program-s) 1606 ac_prev=program_suffix ;; 1607 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1608 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1609 program_suffix=$ac_optarg ;; 1610 1611 -program-transform-name | --program-transform-name \ 1612 | --program-transform-nam | --program-transform-na \ 1613 | --program-transform-n | --program-transform- \ 1614 | --program-transform | --program-transfor \ 1615 | --program-transfo | --program-transf \ 1616 | --program-trans | --program-tran \ 1617 | --progr-tra | --program-tr | --program-t) 1618 ac_prev=program_transform_name ;; 1619 -program-transform-name=* | --program-transform-name=* \ 1620 | --program-transform-nam=* | --program-transform-na=* \ 1621 | --program-transform-n=* | --program-transform-=* \ 1622 | --program-transform=* | --program-transfor=* \ 1623 | --program-transfo=* | --program-transf=* \ 1624 | --program-trans=* | --program-tran=* \ 1625 | --progr-tra=* | --program-tr=* | --program-t=*) 1626 program_transform_name=$ac_optarg ;; 1627 1628 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1629 ac_prev=pdfdir ;; 1630 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1631 pdfdir=$ac_optarg ;; 1632 1633 -psdir | --psdir | --psdi | --psd | --ps) 1634 ac_prev=psdir ;; 1635 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1636 psdir=$ac_optarg ;; 1637 1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1639 | -silent | --silent | --silen | --sile | --sil) 1640 silent=yes ;; 1641 1642 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1643 | --runstate | --runstat | --runsta | --runst | --runs \ 1644 | --run | --ru | --r) 1645 ac_prev=runstatedir ;; 1646 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1647 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1648 | --run=* | --ru=* | --r=*) 1649 runstatedir=$ac_optarg ;; 1650 1651 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1652 ac_prev=sbindir ;; 1653 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1654 | --sbi=* | --sb=*) 1655 sbindir=$ac_optarg ;; 1656 1657 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1658 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1659 | --sharedst | --shareds | --shared | --share | --shar \ 1660 | --sha | --sh) 1661 ac_prev=sharedstatedir ;; 1662 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1663 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1664 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1665 | --sha=* | --sh=*) 1666 sharedstatedir=$ac_optarg ;; 1667 1668 -site | --site | --sit) 1669 ac_prev=site ;; 1670 -site=* | --site=* | --sit=*) 1671 site=$ac_optarg ;; 1672 1673 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1674 ac_prev=srcdir ;; 1675 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1676 srcdir=$ac_optarg ;; 1677 1678 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1679 | --syscon | --sysco | --sysc | --sys | --sy) 1680 ac_prev=sysconfdir ;; 1681 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1682 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1683 sysconfdir=$ac_optarg ;; 1684 1685 -target | --target | --targe | --targ | --tar | --ta | --t) 1686 ac_prev=target_alias ;; 1687 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1688 target_alias=$ac_optarg ;; 1689 1690 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1691 verbose=yes ;; 1692 1693 -version | --version | --versio | --versi | --vers | -V) 1694 ac_init_version=: ;; 1695 1696 -with-* | --with-*) 1697 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1698 # Reject names that are not valid shell variable names. 1699 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1700 as_fn_error $? "invalid package name: $ac_useropt" 1701 ac_useropt_orig=$ac_useropt 1702 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1703 case $ac_user_opts in 1704 *" 1705 "with_$ac_useropt" 1706 "*) ;; 1707 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1708 ac_unrecognized_sep=', ';; 1709 esac 1710 eval with_$ac_useropt=\$ac_optarg ;; 1711 1712 -without-* | --without-*) 1713 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1714 # Reject names that are not valid shell variable names. 1715 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1716 as_fn_error $? "invalid package name: $ac_useropt" 1717 ac_useropt_orig=$ac_useropt 1718 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1719 case $ac_user_opts in 1720 *" 1721 "with_$ac_useropt" 1722 "*) ;; 1723 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1724 ac_unrecognized_sep=', ';; 1725 esac 1726 eval with_$ac_useropt=no ;; 1727 1728 --x) 1729 # Obsolete; use --with-x. 1730 with_x=yes ;; 1731 1732 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1733 | --x-incl | --x-inc | --x-in | --x-i) 1734 ac_prev=x_includes ;; 1735 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1736 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1737 x_includes=$ac_optarg ;; 1738 1739 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1740 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1741 ac_prev=x_libraries ;; 1742 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1743 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1744 x_libraries=$ac_optarg ;; 1745 1746 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1747 Try \`$0 --help' for more information" 1748 ;; 1749 1750 *=*) 1751 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1752 # Reject names that are not valid shell variable names. 1753 case $ac_envvar in #( 1754 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1755 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1756 esac 1757 eval $ac_envvar=\$ac_optarg 1758 export $ac_envvar ;; 1759 1760 *) 1761 # FIXME: should be removed in autoconf 3.0. 1762 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1763 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1764 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1765 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1766 ;; 1767 1768 esac 1769 done 1770 1771 if test -n "$ac_prev"; then 1772 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1773 as_fn_error $? "missing argument to $ac_option" 1774 fi 1775 1776 if test -n "$ac_unrecognized_opts"; then 1777 case $enable_option_checking in 1778 no) ;; 1779 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1780 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1781 esac 1782 fi 1783 1784 # Check all directory arguments for consistency. 1785 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1786 datadir sysconfdir sharedstatedir localstatedir includedir \ 1787 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1788 libdir localedir mandir runstatedir 1789 do 1790 eval ac_val=\$$ac_var 1791 # Remove trailing slashes. 1792 case $ac_val in 1793 */ ) 1794 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1795 eval $ac_var=\$ac_val;; 1796 esac 1797 # Be sure to have absolute directory names. 1798 case $ac_val in 1799 [\\/$]* | ?:[\\/]* ) continue;; 1800 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1801 esac 1802 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1803 done 1804 1805 # There might be people who depend on the old broken behavior: `$host' 1806 # used to hold the argument of --host etc. 1807 # FIXME: To remove some day. 1808 build=$build_alias 1809 host=$host_alias 1810 target=$target_alias 1811 1812 # FIXME: To remove some day. 1813 if test "x$host_alias" != x; then 1814 if test "x$build_alias" = x; then 1815 cross_compiling=maybe 1816 elif test "x$build_alias" != "x$host_alias"; then 1817 cross_compiling=yes 1818 fi 1819 fi 1820 1821 ac_tool_prefix= 1822 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1823 1824 test "$silent" = yes && exec 6>/dev/null 1825 1826 1827 ac_pwd=`pwd` && test -n "$ac_pwd" && 1828 ac_ls_di=`ls -di .` && 1829 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1830 as_fn_error $? "working directory cannot be determined" 1831 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1832 as_fn_error $? "pwd does not report name of working directory" 1833 1834 1835 # Find the source files, if location was not specified. 1836 if test -z "$srcdir"; then 1837 ac_srcdir_defaulted=yes 1838 # Try the directory containing this script, then the parent directory. 1839 ac_confdir=`$as_dirname -- "$as_myself" || 1840 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1841 X"$as_myself" : 'X\(//\)[^/]' \| \ 1842 X"$as_myself" : 'X\(//\)$' \| \ 1843 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1844 $as_echo X"$as_myself" | 1845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1846 s//\1/ 1847 q 1848 } 1849 /^X\(\/\/\)[^/].*/{ 1850 s//\1/ 1851 q 1852 } 1853 /^X\(\/\/\)$/{ 1854 s//\1/ 1855 q 1856 } 1857 /^X\(\/\).*/{ 1858 s//\1/ 1859 q 1860 } 1861 s/.*/./; q'` 1862 srcdir=$ac_confdir 1863 if test ! -r "$srcdir/$ac_unique_file"; then 1864 srcdir=.. 1865 fi 1866 else 1867 ac_srcdir_defaulted=no 1868 fi 1869 if test ! -r "$srcdir/$ac_unique_file"; then 1870 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1871 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1872 fi 1873 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1874 ac_abs_confdir=`( 1875 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1876 pwd)` 1877 # When building in place, set srcdir=. 1878 if test "$ac_abs_confdir" = "$ac_pwd"; then 1879 srcdir=. 1880 fi 1881 # Remove unnecessary trailing slashes from srcdir. 1882 # Double slashes in file names in object file debugging info 1883 # mess up M-x gdb in Emacs. 1884 case $srcdir in 1885 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1886 esac 1887 for ac_var in $ac_precious_vars; do 1888 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1889 eval ac_env_${ac_var}_value=\$${ac_var} 1890 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1891 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1892 done 1893 1894 # 1895 # Report the --help message. 1896 # 1897 if test "$ac_init_help" = "long"; then 1898 # Omit some internal or obsolete options to make the list less imposing. 1899 # This message is too long to be a string in the A/UX 3.1 sh. 1900 cat <<_ACEOF 1901 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1902 1903 Usage: $0 [OPTION]... [VAR=VALUE]... 1904 1905 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1906 VAR=VALUE. See below for descriptions of some of the useful variables. 1907 1908 Defaults for the options are specified in brackets. 1909 1910 Configuration: 1911 -h, --help display this help and exit 1912 --help=short display options specific to this package 1913 --help=recursive display the short help of all the included packages 1914 -V, --version display version information and exit 1915 -q, --quiet, --silent do not print \`checking ...' messages 1916 --cache-file=FILE cache test results in FILE [disabled] 1917 -C, --config-cache alias for \`--cache-file=config.cache' 1918 -n, --no-create do not create output files 1919 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1920 1921 Installation directories: 1922 --prefix=PREFIX install architecture-independent files in PREFIX 1923 [$ac_default_prefix] 1924 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1925 [PREFIX] 1926 1927 By default, \`make install' will install all the files in 1928 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1929 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1930 for instance \`--prefix=\$HOME'. 1931 1932 For better control, use the options below. 1933 1934 Fine tuning of the installation directories: 1935 --bindir=DIR user executables [EPREFIX/bin] 1936 --sbindir=DIR system admin executables [EPREFIX/sbin] 1937 --libexecdir=DIR program executables [EPREFIX/libexec] 1938 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1939 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1940 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1941 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1942 --libdir=DIR object code libraries [EPREFIX/lib] 1943 --includedir=DIR C header files [PREFIX/include] 1944 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1945 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1946 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1947 --infodir=DIR info documentation [DATAROOTDIR/info] 1948 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1949 --mandir=DIR man documentation [DATAROOTDIR/man] 1950 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1951 --htmldir=DIR html documentation [DOCDIR] 1952 --dvidir=DIR dvi documentation [DOCDIR] 1953 --pdfdir=DIR pdf documentation [DOCDIR] 1954 --psdir=DIR ps documentation [DOCDIR] 1955 _ACEOF 1956 1957 cat <<\_ACEOF 1958 1959 X features: 1960 --x-includes=DIR X include files are in DIR 1961 --x-libraries=DIR X library files are in DIR 1962 1963 System types: 1964 --build=BUILD configure for building on BUILD [guessed] 1965 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1966 --target=TARGET configure for building compilers for TARGET [HOST] 1967 _ACEOF 1968 fi 1969 1970 if test -n "$ac_init_help"; then 1971 case $ac_init_help in 1972 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1973 esac 1974 cat <<\_ACEOF 1975 1976 Optional Features: 1977 --disable-option-checking ignore unrecognized --enable/--with options 1978 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1979 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1980 --enable-openjdk-only suppress building custom source even if present 1981 [disabled] 1982 --enable-debug set the debug level to fastdebug (shorthand for 1983 --with-debug-level=fastdebug) [disabled] 1984 --enable-headless-only only build headless (no GUI) support [disabled] 1985 --enable-full-docs build complete documentation [enabled if all tools 1986 found] 1987 --disable-unlimited-crypto 1988 Disable unlimited crypto policy [enabled] 1989 --disable-keep-packaged-modules 1990 Do not keep packaged modules in jdk image [enable] 1991 --enable-static-build enable static library build [disabled] 1992 --disable-warnings-as-errors 1993 do not consider native warnings to be an error 1994 [enabled] 1995 --enable-debug-symbols Deprecated. Option is kept for backwards 1996 compatibility and is ignored 1997 --enable-zip-debug-info Deprecated. Option is kept for backwards 1998 compatibility and is ignored 1999 --enable-native-coverage 2000 enable native compilation with code coverage 2001 data[disabled] 2002 --enable-asan enable AddressSanitizer if possible [disabled] 2003 --enable-dtrace[=yes/no/auto] 2004 enable dtrace. Default is auto, where dtrace is 2005 enabled if all dependencies are present. 2006 --enable-aot[=yes/no/auto] 2007 enable ahead of time compilation feature. Default is 2008 auto, where aot is enabled if all dependencies are 2009 present. 2010 --enable-cds[=yes/no] enable class data sharing feature in non-minimal VM. 2011 Default is yes. 2012 --disable-hotspot-gtest Disables building of the Hotspot unit tests 2013 [enabled] 2014 --disable-freetype-bundling 2015 disable bundling of the freetype library with the 2016 build result [enabled on Windows or when using 2017 --with-freetype, disabled otherwise] 2018 --enable-libffi-bundling 2019 enable bundling of libffi.so to make the built JDK 2020 runnable on more systems 2021 --enable-jtreg-failure-handler 2022 forces build of the jtreg failure handler to be 2023 enabled, missing dependencies become fatal errors. 2024 Default is auto, where the failure handler is built 2025 if all dependencies are present and otherwise just 2026 disabled. 2027 --disable-generate-classlist 2028 forces enabling or disabling of the generation of a 2029 CDS classlist at build time. Default is to generate 2030 it when either the server or client JVMs are built 2031 and enable-cds is true. 2032 --enable-sjavac use sjavac to do fast incremental compiles 2033 [disabled] 2034 --disable-javac-server disable javac server [enabled] 2035 --enable-icecc enable distribted compilation of native code using 2036 icecc/icecream [disabled] 2037 --disable-precompiled-headers 2038 disable using precompiled headers when compiling C++ 2039 [enabled] 2040 --enable-ccache enable using ccache to speed up recompilations 2041 [disabled] 2042 2043 Optional Packages: 2044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2046 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2047 support it), e.g. --with-target-bits=32 [guessed] 2048 --with-custom-make-dir Deprecated. Option is kept for backwards 2049 compatibility and is ignored 2050 --with-jdk-variant JDK variant to build (normal) [normal] 2051 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2052 optimized) [release] 2053 --with-jvm-variants JVM variants (separated by commas) to build 2054 (server,client,minimal,core,zero,custom) [server] 2055 --with-cpu-port specify sources to use for Hotspot 64-bit ARM port 2056 (arm64,aarch64) [aarch64] 2057 --with-devkit use this devkit for compilers, tools and resources 2058 --with-sys-root alias for --with-sysroot for backwards compatability 2059 --with-sysroot use this directory as sysroot 2060 --with-tools-dir alias for --with-toolchain-path for backwards 2061 compatibility 2062 --with-toolchain-path prepend these directories when searching for 2063 toolchain binaries (compilers etc) 2064 --with-extra-path prepend these directories to the default path 2065 --with-sdk-name use the platform SDK of the given name. [macosx] 2066 --with-conf-name use this as the name of the configuration [generated 2067 from important configuration options] 2068 --with-output-sync set make output sync type if supported by make. 2069 [recurse] 2070 --with-default-make-target 2071 set the default make target [exploded-image] 2072 --with-cacerts-file specify alternative cacerts file 2073 --with-copyright-year Set copyright year value for build [current year] 2074 --with-milestone Deprecated. Option is kept for backwards 2075 compatibility and is ignored 2076 --with-update-version Deprecated. Option is kept for backwards 2077 compatibility and is ignored 2078 --with-user-release-suffix 2079 Deprecated. Option is kept for backwards 2080 compatibility and is ignored 2081 --with-build-number Deprecated. Option is kept for backwards 2082 compatibility and is ignored 2083 --with-version-major Deprecated. Option is kept for backwards 2084 compatibility and is ignored 2085 --with-version-minor Deprecated. Option is kept for backwards 2086 compatibility and is ignored 2087 --with-version-security Deprecated. Option is kept for backwards 2088 compatibility and is ignored 2089 --with-vendor-name Set vendor name [not specified] 2090 --with-version-string Set version string [calculated] 2091 --with-version-pre Set the base part of the version 'PRE' field 2092 (pre-release identifier) ['internal'] 2093 --with-version-opt Set version 'OPT' field (build metadata) 2094 [<timestamp>.<user>.<dirname>] 2095 --with-version-build Set version 'BUILD' field (build number) [not 2096 specified] 2097 --with-version-feature Set version 'FEATURE' field (first number) [current 2098 source value] 2099 --with-version-interim Set version 'INTERIM' field (second number) [current 2100 source value] 2101 --with-version-update Set version 'UPDATE' field (third number) [current 2102 source value] 2103 --with-version-patch Set version 'PATCH' field (fourth number) [not 2104 specified] 2105 --with-version-date Set version date [current source value] 2106 --with-vendor-version-string 2107 Set vendor version string [not specified] 2108 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2109 --with-build-jdk path to JDK of same version as is being built[the 2110 newly built JDK] 2111 --with-import-modules import a set of prebuilt modules either as a zip 2112 file or an exploded directory 2113 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2114 to show possible values [platform dependent] 2115 --with-extra-cflags extra flags to be used when compiling jdk c-files 2116 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2117 --with-extra-ldflags extra flags to be used when linking jdk 2118 --with-toolchain-version 2119 the version of the toolchain to look for, use 2120 '--help' to show possible values [platform 2121 dependent] 2122 --with-build-devkit Devkit to use for the build platform toolchain 2123 --with-jtreg Regression Test Harness [probed] 2124 --with-jib Jib dependency management tool [not used] 2125 --with-abi-profile specify ABI profile for ARM builds 2126 (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, 2127 armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64) 2128 [toolchain dependent] 2129 --with-macosx-version-max 2130 error on use of newer functionality. [macosx] 2131 --with-native-debug-symbols 2132 set the native debug symbol configuration (none, 2133 internal, external, zipped) [varying] 2134 --with-stdc++lib=<static>,<dynamic>,<default> 2135 force linking of the C++ runtime on Linux to either 2136 static or dynamic, default is static with dynamic as 2137 fallback 2138 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2139 (Windows only) [probed] 2140 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2141 (Windows only) [probed] 2142 --with-x use the X Window System 2143 --with-cups specify prefix directory for the cups package 2144 (expecting the headers under PATH/include) 2145 --with-cups-include specify directory for the cups include files 2146 --with-fontconfig specify prefix directory for the fontconfig package 2147 (expecting the headers under PATH/include) 2148 --with-fontconfig-include 2149 specify directory for the fontconfig include files 2150 --with-freetype specify prefix directory for the freetype package 2151 (expecting the libraries under PATH/lib and the 2152 headers under PATH/include) 2153 --with-freetype-include specify directory for the freetype include files 2154 --with-freetype-lib specify directory for the freetype library 2155 --with-freetype-src specify directory with freetype sources to 2156 automatically build the library (experimental, 2157 Windows-only) 2158 --with-freetype-license if bundling freetype, also bundle this license file 2159 --with-alsa specify prefix directory for the alsa package 2160 (expecting the libraries under PATH/lib and the 2161 headers under PATH/include) 2162 --with-alsa-include specify directory for the alsa include files 2163 --with-alsa-lib specify directory for the alsa library 2164 --with-libffi specify prefix directory for the libffi package 2165 (expecting the libraries under PATH/lib and the 2166 headers under PATH/include) 2167 --with-libffi-include specify directory for the libffi include files 2168 --with-libffi-lib specify directory for the libffi library 2169 --with-libjpeg use libjpeg from build system or OpenJDK source 2170 (system, bundled) [bundled] 2171 --with-giflib use giflib from build system or OpenJDK source 2172 (system, bundled) [bundled] 2173 --with-libpng use libpng from build system or OpenJDK source 2174 (system, bundled) [bundled] 2175 --with-zlib use zlib from build system or OpenJDK source 2176 (system, bundled) [bundled] 2177 --with-lcms use lcms2 from build system or OpenJDK source 2178 (system, bundled) [bundled] 2179 --with-dxsdk Deprecated. Option is kept for backwards 2180 compatibility and is ignored 2181 --with-dxsdk-lib Deprecated. Option is kept for backwards 2182 compatibility and is ignored 2183 --with-dxsdk-include Deprecated. Option is kept for backwards 2184 compatibility and is ignored 2185 --with-jvm-features additional JVM features to enable (separated by 2186 comma), use '--help' to show possible values [none] 2187 --with-jvm-interpreter Deprecated. Option is kept for backwards 2188 compatibility and is ignored 2189 --with-num-cores number of cores in the build system, e.g. 2190 --with-num-cores=8 [probed] 2191 --with-memory-size memory (in MB) available in the build system, e.g. 2192 --with-memory-size=1024 [probed] 2193 --with-jobs number of parallel jobs to let make run [calculated 2194 based on cores and memory] 2195 --with-test-jobs number of parallel tests jobs to run [based on build 2196 jobs] 2197 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2198 invocations of boot JDK, overriding the default 2199 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2200 -enableassertions" 2201 --with-sjavac-server-java 2202 use this java binary for running the sjavac 2203 background server [Boot JDK java] 2204 --with-ccache-dir where to store ccache files [~/.ccache] 2205 2206 Some influential environment variables: 2207 BASENAME Override default value for BASENAME 2208 BASH Override default value for BASH 2209 CAT Override default value for CAT 2210 CHMOD Override default value for CHMOD 2211 CMP Override default value for CMP 2212 COMM Override default value for COMM 2213 CP Override default value for CP 2214 CUT Override default value for CUT 2215 DATE Override default value for DATE 2216 DIFF Override default value for DIFF 2217 DIRNAME Override default value for DIRNAME 2218 ECHO Override default value for ECHO 2219 EXPR Override default value for EXPR 2220 FILE Override default value for FILE 2221 FIND Override default value for FIND 2222 HEAD Override default value for HEAD 2223 GUNZIP Override default value for GUNZIP 2224 GZIP Override default value for GZIP 2225 LN Override default value for LN 2226 LS Override default value for LS 2227 MKDIR Override default value for MKDIR 2228 MKTEMP Override default value for MKTEMP 2229 MV Override default value for MV 2230 NAWK Override default value for NAWK 2231 PRINTF Override default value for PRINTF 2232 RM Override default value for RM 2233 RMDIR Override default value for RMDIR 2234 SH Override default value for SH 2235 SORT Override default value for SORT 2236 TAIL Override default value for TAIL 2237 TAR Override default value for TAR 2238 TEE Override default value for TEE 2239 TOUCH Override default value for TOUCH 2240 TR Override default value for TR 2241 UNAME Override default value for UNAME 2242 UNIQ Override default value for UNIQ 2243 WC Override default value for WC 2244 WHICH Override default value for WHICH 2245 XARGS Override default value for XARGS 2246 AWK Override default value for AWK 2247 GREP Override default value for GREP 2248 EGREP Override default value for EGREP 2249 FGREP Override default value for FGREP 2250 SED Override default value for SED 2251 CYGPATH Override default value for CYGPATH 2252 READLINK Override default value for READLINK 2253 DF Override default value for DF 2254 CPIO Override default value for CPIO 2255 NICE Override default value for NICE 2256 PANDOC Override default value for PANDOC 2257 MAKE Override default value for MAKE 2258 UNZIP Override default value for UNZIP 2259 ZIPEXE Override default value for ZIPEXE 2260 LDD Override default value for LDD 2261 READELF Override default value for READELF 2262 DOT Override default value for DOT 2263 HG Override default value for HG 2264 STAT Override default value for STAT 2265 TIME Override default value for TIME 2266 FLOCK Override default value for FLOCK 2267 DTRACE Override default value for DTRACE 2268 PATCH Override default value for PATCH 2269 DSYMUTIL Override default value for DSYMUTIL 2270 XATTR Override default value for XATTR 2271 CODESIGN Override default value for CODESIGN 2272 SETFILE Override default value for SETFILE 2273 PKG_CONFIG path to pkg-config utility 2274 JAVA Override default value for JAVA 2275 JAVAC Override default value for JAVAC 2276 JAVADOC Override default value for JAVADOC 2277 JAR Override default value for JAR 2278 JARSIGNER Override default value for JARSIGNER 2279 CC C compiler command 2280 CFLAGS C compiler flags 2281 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2282 nonstandard directory <lib dir> 2283 LIBS libraries to pass to the linker, e.g. -l<library> 2284 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2285 you have headers in a nonstandard directory <include dir> 2286 CXX C++ compiler command 2287 CXXFLAGS C++ compiler flags 2288 CPP C preprocessor 2289 CXXCPP C++ preprocessor 2290 AS Override default value for AS 2291 AR Override default value for AR 2292 LIPO Override default value for LIPO 2293 OTOOL Override default value for OTOOL 2294 INSTALL_NAME_TOOL 2295 Override default value for INSTALL_NAME_TOOL 2296 STRIP Override default value for STRIP 2297 NM Override default value for NM 2298 GNM Override default value for GNM 2299 OBJCOPY Override default value for OBJCOPY 2300 OBJDUMP Override default value for OBJDUMP 2301 BUILD_CC Override default value for BUILD_CC 2302 BUILD_CXX Override default value for BUILD_CXX 2303 BUILD_NM Override default value for BUILD_NM 2304 BUILD_AR Override default value for BUILD_AR 2305 BUILD_OBJCOPY 2306 Override default value for BUILD_OBJCOPY 2307 BUILD_STRIP Override default value for BUILD_STRIP 2308 JTREGEXE Override default value for JTREGEXE 2309 XMKMF Path to xmkmf, Makefile generator for X Window System 2310 FREETYPE_CFLAGS 2311 C compiler flags for FREETYPE, overriding pkg-config 2312 FREETYPE_LIBS 2313 linker flags for FREETYPE, overriding pkg-config 2314 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2315 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2316 LIBFFI_CFLAGS 2317 C compiler flags for LIBFFI, overriding pkg-config 2318 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2319 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2320 PNG_LIBS linker flags for PNG, overriding pkg-config 2321 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2322 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2323 ICECC_CMD Override default value for ICECC_CMD 2324 ICECC_CREATE_ENV 2325 Override default value for ICECC_CREATE_ENV 2326 ICECC_WRAPPER 2327 Override default value for ICECC_WRAPPER 2328 CCACHE Override default value for CCACHE 2329 2330 Use these variables to override the choices made by `configure' or to help 2331 it to find libraries and programs with nonstandard names/locations. 2332 2333 Report bugs to <build-dev@openjdk.java.net>. 2334 OpenJDK home page: <http://openjdk.java.net>. 2335 _ACEOF 2336 ac_status=$? 2337 fi 2338 2339 if test "$ac_init_help" = "recursive"; then 2340 # If there are subdirs, report their specific --help. 2341 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2342 test -d "$ac_dir" || 2343 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2344 continue 2345 ac_builddir=. 2346 2347 case "$ac_dir" in 2348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2349 *) 2350 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2351 # A ".." for each directory in $ac_dir_suffix. 2352 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2353 case $ac_top_builddir_sub in 2354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2356 esac ;; 2357 esac 2358 ac_abs_top_builddir=$ac_pwd 2359 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2360 # for backward compatibility: 2361 ac_top_builddir=$ac_top_build_prefix 2362 2363 case $srcdir in 2364 .) # We are building in place. 2365 ac_srcdir=. 2366 ac_top_srcdir=$ac_top_builddir_sub 2367 ac_abs_top_srcdir=$ac_pwd ;; 2368 [\\/]* | ?:[\\/]* ) # Absolute name. 2369 ac_srcdir=$srcdir$ac_dir_suffix; 2370 ac_top_srcdir=$srcdir 2371 ac_abs_top_srcdir=$srcdir ;; 2372 *) # Relative name. 2373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2374 ac_top_srcdir=$ac_top_build_prefix$srcdir 2375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2376 esac 2377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2378 2379 cd "$ac_dir" || { ac_status=$?; continue; } 2380 # Check for guested configure. 2381 if test -f "$ac_srcdir/configure.gnu"; then 2382 echo && 2383 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2384 elif test -f "$ac_srcdir/configure"; then 2385 echo && 2386 $SHELL "$ac_srcdir/configure" --help=recursive 2387 else 2388 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2389 fi || ac_status=$? 2390 cd "$ac_pwd" || { ac_status=$?; break; } 2391 done 2392 fi 2393 2394 test -n "$ac_init_help" && exit $ac_status 2395 if $ac_init_version; then 2396 cat <<\_ACEOF 2397 OpenJDK configure jdk9 2398 generated by GNU Autoconf 2.69 2399 2400 Copyright (C) 2012 Free Software Foundation, Inc. 2401 This configure script is free software; the Free Software Foundation 2402 gives unlimited permission to copy, distribute and modify it. 2403 _ACEOF 2404 exit 2405 fi 2406 2407 ## ------------------------ ## 2408 ## Autoconf initialization. ## 2409 ## ------------------------ ## 2410 2411 # ac_fn_c_try_compile LINENO 2412 # -------------------------- 2413 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2414 ac_fn_c_try_compile () 2415 { 2416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2417 rm -f conftest.$ac_objext 2418 if { { ac_try="$ac_compile" 2419 case "(($ac_try" in 2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2421 *) ac_try_echo=$ac_try;; 2422 esac 2423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2424 $as_echo "$ac_try_echo"; } >&5 2425 (eval "$ac_compile") 2>conftest.err 2426 ac_status=$? 2427 if test -s conftest.err; then 2428 grep -v '^ *+' conftest.err >conftest.er1 2429 cat conftest.er1 >&5 2430 mv -f conftest.er1 conftest.err 2431 fi 2432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2433 test $ac_status = 0; } && { 2434 test -z "$ac_c_werror_flag" || 2435 test ! -s conftest.err 2436 } && test -s conftest.$ac_objext; then : 2437 ac_retval=0 2438 else 2439 $as_echo "$as_me: failed program was:" >&5 2440 sed 's/^/| /' conftest.$ac_ext >&5 2441 2442 ac_retval=1 2443 fi 2444 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2445 as_fn_set_status $ac_retval 2446 2447 } # ac_fn_c_try_compile 2448 2449 # ac_fn_cxx_try_compile LINENO 2450 # ---------------------------- 2451 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2452 ac_fn_cxx_try_compile () 2453 { 2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2455 rm -f conftest.$ac_objext 2456 if { { ac_try="$ac_compile" 2457 case "(($ac_try" in 2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2459 *) ac_try_echo=$ac_try;; 2460 esac 2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2462 $as_echo "$ac_try_echo"; } >&5 2463 (eval "$ac_compile") 2>conftest.err 2464 ac_status=$? 2465 if test -s conftest.err; then 2466 grep -v '^ *+' conftest.err >conftest.er1 2467 cat conftest.er1 >&5 2468 mv -f conftest.er1 conftest.err 2469 fi 2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2471 test $ac_status = 0; } && { 2472 test -z "$ac_cxx_werror_flag" || 2473 test ! -s conftest.err 2474 } && test -s conftest.$ac_objext; then : 2475 ac_retval=0 2476 else 2477 $as_echo "$as_me: failed program was:" >&5 2478 sed 's/^/| /' conftest.$ac_ext >&5 2479 2480 ac_retval=1 2481 fi 2482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2483 as_fn_set_status $ac_retval 2484 2485 } # ac_fn_cxx_try_compile 2486 2487 # ac_fn_c_try_cpp LINENO 2488 # ---------------------- 2489 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2490 ac_fn_c_try_cpp () 2491 { 2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2493 if { { ac_try="$ac_cpp conftest.$ac_ext" 2494 case "(($ac_try" in 2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2496 *) ac_try_echo=$ac_try;; 2497 esac 2498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2499 $as_echo "$ac_try_echo"; } >&5 2500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2501 ac_status=$? 2502 if test -s conftest.err; then 2503 grep -v '^ *+' conftest.err >conftest.er1 2504 cat conftest.er1 >&5 2505 mv -f conftest.er1 conftest.err 2506 fi 2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2508 test $ac_status = 0; } > conftest.i && { 2509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2510 test ! -s conftest.err 2511 }; then : 2512 ac_retval=0 2513 else 2514 $as_echo "$as_me: failed program was:" >&5 2515 sed 's/^/| /' conftest.$ac_ext >&5 2516 2517 ac_retval=1 2518 fi 2519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2520 as_fn_set_status $ac_retval 2521 2522 } # ac_fn_c_try_cpp 2523 2524 # ac_fn_cxx_try_cpp LINENO 2525 # ------------------------ 2526 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2527 ac_fn_cxx_try_cpp () 2528 { 2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2530 if { { ac_try="$ac_cpp conftest.$ac_ext" 2531 case "(($ac_try" in 2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2533 *) ac_try_echo=$ac_try;; 2534 esac 2535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2536 $as_echo "$ac_try_echo"; } >&5 2537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2538 ac_status=$? 2539 if test -s conftest.err; then 2540 grep -v '^ *+' conftest.err >conftest.er1 2541 cat conftest.er1 >&5 2542 mv -f conftest.er1 conftest.err 2543 fi 2544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2545 test $ac_status = 0; } > conftest.i && { 2546 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2547 test ! -s conftest.err 2548 }; then : 2549 ac_retval=0 2550 else 2551 $as_echo "$as_me: failed program was:" >&5 2552 sed 's/^/| /' conftest.$ac_ext >&5 2553 2554 ac_retval=1 2555 fi 2556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2557 as_fn_set_status $ac_retval 2558 2559 } # ac_fn_cxx_try_cpp 2560 2561 # ac_fn_c_try_link LINENO 2562 # ----------------------- 2563 # Try to link conftest.$ac_ext, and return whether this succeeded. 2564 ac_fn_c_try_link () 2565 { 2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2567 rm -f conftest.$ac_objext conftest$ac_exeext 2568 if { { ac_try="$ac_link" 2569 case "(($ac_try" in 2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2571 *) ac_try_echo=$ac_try;; 2572 esac 2573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2574 $as_echo "$ac_try_echo"; } >&5 2575 (eval "$ac_link") 2>conftest.err 2576 ac_status=$? 2577 if test -s conftest.err; then 2578 grep -v '^ *+' conftest.err >conftest.er1 2579 cat conftest.er1 >&5 2580 mv -f conftest.er1 conftest.err 2581 fi 2582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2583 test $ac_status = 0; } && { 2584 test -z "$ac_c_werror_flag" || 2585 test ! -s conftest.err 2586 } && test -s conftest$ac_exeext && { 2587 test "$cross_compiling" = yes || 2588 test -x conftest$ac_exeext 2589 }; then : 2590 ac_retval=0 2591 else 2592 $as_echo "$as_me: failed program was:" >&5 2593 sed 's/^/| /' conftest.$ac_ext >&5 2594 2595 ac_retval=1 2596 fi 2597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2599 # interfere with the next link command; also delete a directory that is 2600 # left behind by Apple's compiler. We do this before executing the actions. 2601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2603 as_fn_set_status $ac_retval 2604 2605 } # ac_fn_c_try_link 2606 2607 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2608 # --------------------------------------------------------- 2609 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2610 # the include files in INCLUDES and setting the cache variable VAR 2611 # accordingly. 2612 ac_fn_cxx_check_header_mongrel () 2613 { 2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2615 if eval \${$3+:} false; then : 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2617 $as_echo_n "checking for $2... " >&6; } 2618 if eval \${$3+:} false; then : 2619 $as_echo_n "(cached) " >&6 2620 fi 2621 eval ac_res=\$$3 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2623 $as_echo "$ac_res" >&6; } 2624 else 2625 # Is the header compilable? 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2627 $as_echo_n "checking $2 usability... " >&6; } 2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2629 /* end confdefs.h. */ 2630 $4 2631 #include <$2> 2632 _ACEOF 2633 if ac_fn_cxx_try_compile "$LINENO"; then : 2634 ac_header_compiler=yes 2635 else 2636 ac_header_compiler=no 2637 fi 2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2640 $as_echo "$ac_header_compiler" >&6; } 2641 2642 # Is the header present? 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2644 $as_echo_n "checking $2 presence... " >&6; } 2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2646 /* end confdefs.h. */ 2647 #include <$2> 2648 _ACEOF 2649 if ac_fn_cxx_try_cpp "$LINENO"; then : 2650 ac_header_preproc=yes 2651 else 2652 ac_header_preproc=no 2653 fi 2654 rm -f conftest.err conftest.i conftest.$ac_ext 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2656 $as_echo "$ac_header_preproc" >&6; } 2657 2658 # So? What about this header? 2659 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2660 yes:no: ) 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2662 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2665 ;; 2666 no:yes:* ) 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2668 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2670 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2672 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2674 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2677 ( $as_echo "## ----------------------------------------- ## 2678 ## Report this to build-dev@openjdk.java.net ## 2679 ## ----------------------------------------- ##" 2680 ) | sed "s/^/$as_me: WARNING: /" >&2 2681 ;; 2682 esac 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2684 $as_echo_n "checking for $2... " >&6; } 2685 if eval \${$3+:} false; then : 2686 $as_echo_n "(cached) " >&6 2687 else 2688 eval "$3=\$ac_header_compiler" 2689 fi 2690 eval ac_res=\$$3 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2692 $as_echo "$ac_res" >&6; } 2693 fi 2694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2695 2696 } # ac_fn_cxx_check_header_mongrel 2697 2698 # ac_fn_cxx_try_run LINENO 2699 # ------------------------ 2700 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2701 # that executables *can* be run. 2702 ac_fn_cxx_try_run () 2703 { 2704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2705 if { { ac_try="$ac_link" 2706 case "(($ac_try" in 2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2708 *) ac_try_echo=$ac_try;; 2709 esac 2710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2711 $as_echo "$ac_try_echo"; } >&5 2712 (eval "$ac_link") 2>&5 2713 ac_status=$? 2714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2715 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2716 { { case "(($ac_try" in 2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2718 *) ac_try_echo=$ac_try;; 2719 esac 2720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2721 $as_echo "$ac_try_echo"; } >&5 2722 (eval "$ac_try") 2>&5 2723 ac_status=$? 2724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2725 test $ac_status = 0; }; }; then : 2726 ac_retval=0 2727 else 2728 $as_echo "$as_me: program exited with status $ac_status" >&5 2729 $as_echo "$as_me: failed program was:" >&5 2730 sed 's/^/| /' conftest.$ac_ext >&5 2731 2732 ac_retval=$ac_status 2733 fi 2734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2736 as_fn_set_status $ac_retval 2737 2738 } # ac_fn_cxx_try_run 2739 2740 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2741 # --------------------------------------------------------- 2742 # Tests whether HEADER exists and can be compiled using the include files in 2743 # INCLUDES, setting the cache variable VAR accordingly. 2744 ac_fn_cxx_check_header_compile () 2745 { 2746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2748 $as_echo_n "checking for $2... " >&6; } 2749 if eval \${$3+:} false; then : 2750 $as_echo_n "(cached) " >&6 2751 else 2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2753 /* end confdefs.h. */ 2754 $4 2755 #include <$2> 2756 _ACEOF 2757 if ac_fn_cxx_try_compile "$LINENO"; then : 2758 eval "$3=yes" 2759 else 2760 eval "$3=no" 2761 fi 2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2763 fi 2764 eval ac_res=\$$3 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2766 $as_echo "$ac_res" >&6; } 2767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2768 2769 } # ac_fn_cxx_check_header_compile 2770 2771 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2772 # ---------------------------------------------- 2773 # Tries to find the compile-time value of EXPR in a program that includes 2774 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2775 # computed 2776 ac_fn_cxx_compute_int () 2777 { 2778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2779 if test "$cross_compiling" = yes; then 2780 # Depending upon the size, compute the lo and hi bounds. 2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2782 /* end confdefs.h. */ 2783 $4 2784 int 2785 main () 2786 { 2787 static int test_array [1 - 2 * !(($2) >= 0)]; 2788 test_array [0] = 0; 2789 return test_array [0]; 2790 2791 ; 2792 return 0; 2793 } 2794 _ACEOF 2795 if ac_fn_cxx_try_compile "$LINENO"; then : 2796 ac_lo=0 ac_mid=0 2797 while :; do 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) <= $ac_mid)]; 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_hi=$ac_mid; break 2814 else 2815 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2816 if test $ac_lo -le $ac_mid; then 2817 ac_lo= ac_hi= 2818 break 2819 fi 2820 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2821 fi 2822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2823 done 2824 else 2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2826 /* end confdefs.h. */ 2827 $4 2828 int 2829 main () 2830 { 2831 static int test_array [1 - 2 * !(($2) < 0)]; 2832 test_array [0] = 0; 2833 return test_array [0]; 2834 2835 ; 2836 return 0; 2837 } 2838 _ACEOF 2839 if ac_fn_cxx_try_compile "$LINENO"; then : 2840 ac_hi=-1 ac_mid=-1 2841 while :; do 2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2843 /* end confdefs.h. */ 2844 $4 2845 int 2846 main () 2847 { 2848 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2849 test_array [0] = 0; 2850 return test_array [0]; 2851 2852 ; 2853 return 0; 2854 } 2855 _ACEOF 2856 if ac_fn_cxx_try_compile "$LINENO"; then : 2857 ac_lo=$ac_mid; break 2858 else 2859 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2860 if test $ac_mid -le $ac_hi; then 2861 ac_lo= ac_hi= 2862 break 2863 fi 2864 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2865 fi 2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2867 done 2868 else 2869 ac_lo= ac_hi= 2870 fi 2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2872 fi 2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2874 # Binary search between lo and hi bounds. 2875 while test "x$ac_lo" != "x$ac_hi"; do 2876 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2878 /* end confdefs.h. */ 2879 $4 2880 int 2881 main () 2882 { 2883 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2884 test_array [0] = 0; 2885 return test_array [0]; 2886 2887 ; 2888 return 0; 2889 } 2890 _ACEOF 2891 if ac_fn_cxx_try_compile "$LINENO"; then : 2892 ac_hi=$ac_mid 2893 else 2894 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2895 fi 2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2897 done 2898 case $ac_lo in #(( 2899 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2900 '') ac_retval=1 ;; 2901 esac 2902 else 2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2904 /* end confdefs.h. */ 2905 $4 2906 static long int longval () { return $2; } 2907 static unsigned long int ulongval () { return $2; } 2908 #include <stdio.h> 2909 #include <stdlib.h> 2910 int 2911 main () 2912 { 2913 2914 FILE *f = fopen ("conftest.val", "w"); 2915 if (! f) 2916 return 1; 2917 if (($2) < 0) 2918 { 2919 long int i = longval (); 2920 if (i != ($2)) 2921 return 1; 2922 fprintf (f, "%ld", i); 2923 } 2924 else 2925 { 2926 unsigned long int i = ulongval (); 2927 if (i != ($2)) 2928 return 1; 2929 fprintf (f, "%lu", i); 2930 } 2931 /* Do not output a trailing newline, as this causes \r\n confusion 2932 on some platforms. */ 2933 return ferror (f) || fclose (f) != 0; 2934 2935 ; 2936 return 0; 2937 } 2938 _ACEOF 2939 if ac_fn_cxx_try_run "$LINENO"; then : 2940 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2941 else 2942 ac_retval=1 2943 fi 2944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2945 conftest.$ac_objext conftest.beam conftest.$ac_ext 2946 rm -f conftest.val 2947 2948 fi 2949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2950 as_fn_set_status $ac_retval 2951 2952 } # ac_fn_cxx_compute_int 2953 2954 # ac_fn_cxx_try_link LINENO 2955 # ------------------------- 2956 # Try to link conftest.$ac_ext, and return whether this succeeded. 2957 ac_fn_cxx_try_link () 2958 { 2959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2960 rm -f conftest.$ac_objext conftest$ac_exeext 2961 if { { ac_try="$ac_link" 2962 case "(($ac_try" in 2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2964 *) ac_try_echo=$ac_try;; 2965 esac 2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2967 $as_echo "$ac_try_echo"; } >&5 2968 (eval "$ac_link") 2>conftest.err 2969 ac_status=$? 2970 if test -s conftest.err; then 2971 grep -v '^ *+' conftest.err >conftest.er1 2972 cat conftest.er1 >&5 2973 mv -f conftest.er1 conftest.err 2974 fi 2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2976 test $ac_status = 0; } && { 2977 test -z "$ac_cxx_werror_flag" || 2978 test ! -s conftest.err 2979 } && test -s conftest$ac_exeext && { 2980 test "$cross_compiling" = yes || 2981 test -x conftest$ac_exeext 2982 }; then : 2983 ac_retval=0 2984 else 2985 $as_echo "$as_me: failed program was:" >&5 2986 sed 's/^/| /' conftest.$ac_ext >&5 2987 2988 ac_retval=1 2989 fi 2990 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2991 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2992 # interfere with the next link command; also delete a directory that is 2993 # left behind by Apple's compiler. We do this before executing the actions. 2994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2996 as_fn_set_status $ac_retval 2997 2998 } # ac_fn_cxx_try_link 2999 3000 # ac_fn_cxx_check_func LINENO FUNC VAR 3001 # ------------------------------------ 3002 # Tests whether FUNC exists, setting the cache variable VAR accordingly 3003 ac_fn_cxx_check_func () 3004 { 3005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3007 $as_echo_n "checking for $2... " >&6; } 3008 if eval \${$3+:} false; then : 3009 $as_echo_n "(cached) " >&6 3010 else 3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3012 /* end confdefs.h. */ 3013 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3014 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3015 #define $2 innocuous_$2 3016 3017 /* System header to define __stub macros and hopefully few prototypes, 3018 which can conflict with char $2 (); below. 3019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3020 <limits.h> exists even on freestanding compilers. */ 3021 3022 #ifdef __STDC__ 3023 # include <limits.h> 3024 #else 3025 # include <assert.h> 3026 #endif 3027 3028 #undef $2 3029 3030 /* Override any GCC internal prototype to avoid an error. 3031 Use char because int might match the return type of a GCC 3032 builtin and then its argument prototype would still apply. */ 3033 #ifdef __cplusplus 3034 extern "C" 3035 #endif 3036 char $2 (); 3037 /* The GNU C library defines this for functions which it implements 3038 to always fail with ENOSYS. Some functions are actually named 3039 something starting with __ and the normal name is an alias. */ 3040 #if defined __stub_$2 || defined __stub___$2 3041 choke me 3042 #endif 3043 3044 int 3045 main () 3046 { 3047 return $2 (); 3048 ; 3049 return 0; 3050 } 3051 _ACEOF 3052 if ac_fn_cxx_try_link "$LINENO"; then : 3053 eval "$3=yes" 3054 else 3055 eval "$3=no" 3056 fi 3057 rm -f core conftest.err conftest.$ac_objext \ 3058 conftest$ac_exeext conftest.$ac_ext 3059 fi 3060 eval ac_res=\$$3 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3062 $as_echo "$ac_res" >&6; } 3063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3064 3065 } # ac_fn_cxx_check_func 3066 3067 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3068 # ------------------------------------------------------- 3069 # Tests whether HEADER exists and can be compiled using the include files in 3070 # INCLUDES, setting the cache variable VAR accordingly. 3071 ac_fn_c_check_header_compile () 3072 { 3073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3075 $as_echo_n "checking for $2... " >&6; } 3076 if eval \${$3+:} false; then : 3077 $as_echo_n "(cached) " >&6 3078 else 3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3080 /* end confdefs.h. */ 3081 $4 3082 #include <$2> 3083 _ACEOF 3084 if ac_fn_c_try_compile "$LINENO"; then : 3085 eval "$3=yes" 3086 else 3087 eval "$3=no" 3088 fi 3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3090 fi 3091 eval ac_res=\$$3 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3093 $as_echo "$ac_res" >&6; } 3094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3095 3096 } # ac_fn_c_check_header_compile 3097 cat >config.log <<_ACEOF 3098 This file contains any messages produced by compilers while 3099 running configure, to aid debugging if configure makes a mistake. 3100 3101 It was created by OpenJDK $as_me jdk9, which was 3102 generated by GNU Autoconf 2.69. Invocation command line was 3103 3104 $ $0 $@ 3105 3106 _ACEOF 3107 exec 5>>config.log 3108 { 3109 cat <<_ASUNAME 3110 ## --------- ## 3111 ## Platform. ## 3112 ## --------- ## 3113 3114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3115 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3116 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3117 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3118 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3119 3120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3121 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3122 3123 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3124 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3126 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3127 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3128 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3129 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3130 3131 _ASUNAME 3132 3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134 for as_dir in $PATH 3135 do 3136 IFS=$as_save_IFS 3137 test -z "$as_dir" && as_dir=. 3138 $as_echo "PATH: $as_dir" 3139 done 3140 IFS=$as_save_IFS 3141 3142 } >&5 3143 3144 cat >&5 <<_ACEOF 3145 3146 3147 ## ----------- ## 3148 ## Core tests. ## 3149 ## ----------- ## 3150 3151 _ACEOF 3152 3153 3154 # Keep a trace of the command line. 3155 # Strip out --no-create and --no-recursion so they do not pile up. 3156 # Strip out --silent because we don't want to record it for future runs. 3157 # Also quote any args containing shell meta-characters. 3158 # Make two passes to allow for proper duplicate-argument suppression. 3159 ac_configure_args= 3160 ac_configure_args0= 3161 ac_configure_args1= 3162 ac_must_keep_next=false 3163 for ac_pass in 1 2 3164 do 3165 for ac_arg 3166 do 3167 case $ac_arg in 3168 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3170 | -silent | --silent | --silen | --sile | --sil) 3171 continue ;; 3172 *\'*) 3173 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3174 esac 3175 case $ac_pass in 3176 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3177 2) 3178 as_fn_append ac_configure_args1 " '$ac_arg'" 3179 if test $ac_must_keep_next = true; then 3180 ac_must_keep_next=false # Got value, back to normal. 3181 else 3182 case $ac_arg in 3183 *=* | --config-cache | -C | -disable-* | --disable-* \ 3184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3186 | -with-* | --with-* | -without-* | --without-* | --x) 3187 case "$ac_configure_args0 " in 3188 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3189 esac 3190 ;; 3191 -* ) ac_must_keep_next=true ;; 3192 esac 3193 fi 3194 as_fn_append ac_configure_args " '$ac_arg'" 3195 ;; 3196 esac 3197 done 3198 done 3199 { ac_configure_args0=; unset ac_configure_args0;} 3200 { ac_configure_args1=; unset ac_configure_args1;} 3201 3202 # When interrupted or exit'd, cleanup temporary files, and complete 3203 # config.log. We remove comments because anyway the quotes in there 3204 # would cause problems or look ugly. 3205 # WARNING: Use '\'' to represent an apostrophe within the trap. 3206 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3207 trap 'exit_status=$? 3208 # Save into config.log some information that might help in debugging. 3209 { 3210 echo 3211 3212 $as_echo "## ---------------- ## 3213 ## Cache variables. ## 3214 ## ---------------- ##" 3215 echo 3216 # The following way of writing the cache mishandles newlines in values, 3217 ( 3218 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3219 eval ac_val=\$$ac_var 3220 case $ac_val in #( 3221 *${as_nl}*) 3222 case $ac_var in #( 3223 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3224 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3225 esac 3226 case $ac_var in #( 3227 _ | IFS | as_nl) ;; #( 3228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3229 *) { eval $ac_var=; unset $ac_var;} ;; 3230 esac ;; 3231 esac 3232 done 3233 (set) 2>&1 | 3234 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3235 *${as_nl}ac_space=\ *) 3236 sed -n \ 3237 "s/'\''/'\''\\\\'\'''\''/g; 3238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3239 ;; #( 3240 *) 3241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3242 ;; 3243 esac | 3244 sort 3245 ) 3246 echo 3247 3248 $as_echo "## ----------------- ## 3249 ## Output variables. ## 3250 ## ----------------- ##" 3251 echo 3252 for ac_var in $ac_subst_vars 3253 do 3254 eval ac_val=\$$ac_var 3255 case $ac_val in 3256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3257 esac 3258 $as_echo "$ac_var='\''$ac_val'\''" 3259 done | sort 3260 echo 3261 3262 if test -n "$ac_subst_files"; then 3263 $as_echo "## ------------------- ## 3264 ## File substitutions. ## 3265 ## ------------------- ##" 3266 echo 3267 for ac_var in $ac_subst_files 3268 do 3269 eval ac_val=\$$ac_var 3270 case $ac_val in 3271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3272 esac 3273 $as_echo "$ac_var='\''$ac_val'\''" 3274 done | sort 3275 echo 3276 fi 3277 3278 if test -s confdefs.h; then 3279 $as_echo "## ----------- ## 3280 ## confdefs.h. ## 3281 ## ----------- ##" 3282 echo 3283 cat confdefs.h 3284 echo 3285 fi 3286 test "$ac_signal" != 0 && 3287 $as_echo "$as_me: caught signal $ac_signal" 3288 $as_echo "$as_me: exit $exit_status" 3289 } >&5 3290 rm -f core *.core core.conftest.* && 3291 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3292 exit $exit_status 3293 ' 0 3294 for ac_signal in 1 2 13 15; do 3295 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3296 done 3297 ac_signal=0 3298 3299 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3300 rm -f -r conftest* confdefs.h 3301 3302 $as_echo "/* confdefs.h */" > confdefs.h 3303 3304 # Predefined preprocessor variables. 3305 3306 cat >>confdefs.h <<_ACEOF 3307 #define PACKAGE_NAME "$PACKAGE_NAME" 3308 _ACEOF 3309 3310 cat >>confdefs.h <<_ACEOF 3311 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3312 _ACEOF 3313 3314 cat >>confdefs.h <<_ACEOF 3315 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3316 _ACEOF 3317 3318 cat >>confdefs.h <<_ACEOF 3319 #define PACKAGE_STRING "$PACKAGE_STRING" 3320 _ACEOF 3321 3322 cat >>confdefs.h <<_ACEOF 3323 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3324 _ACEOF 3325 3326 cat >>confdefs.h <<_ACEOF 3327 #define PACKAGE_URL "$PACKAGE_URL" 3328 _ACEOF 3329 3330 3331 # Let the site file select an alternate cache file if it wants to. 3332 # Prefer an explicitly selected file to automatically selected ones. 3333 ac_site_file1=NONE 3334 ac_site_file2=NONE 3335 if test -n "$CONFIG_SITE"; then 3336 # We do not want a PATH search for config.site. 3337 case $CONFIG_SITE in #(( 3338 -*) ac_site_file1=./$CONFIG_SITE;; 3339 */*) ac_site_file1=$CONFIG_SITE;; 3340 *) ac_site_file1=./$CONFIG_SITE;; 3341 esac 3342 elif test "x$prefix" != xNONE; then 3343 ac_site_file1=$prefix/share/config.site 3344 ac_site_file2=$prefix/etc/config.site 3345 else 3346 ac_site_file1=$ac_default_prefix/share/config.site 3347 ac_site_file2=$ac_default_prefix/etc/config.site 3348 fi 3349 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3350 do 3351 test "x$ac_site_file" = xNONE && continue 3352 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3354 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3355 sed 's/^/| /' "$ac_site_file" >&5 3356 . "$ac_site_file" \ 3357 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3359 as_fn_error $? "failed to load site script $ac_site_file 3360 See \`config.log' for more details" "$LINENO" 5; } 3361 fi 3362 done 3363 3364 if test -r "$cache_file"; then 3365 # Some versions of bash will fail to source /dev/null (special files 3366 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3367 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3369 $as_echo "$as_me: loading cache $cache_file" >&6;} 3370 case $cache_file in 3371 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3372 *) . "./$cache_file";; 3373 esac 3374 fi 3375 else 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3377 $as_echo "$as_me: creating cache $cache_file" >&6;} 3378 >$cache_file 3379 fi 3380 3381 # Check that the precious variables saved in the cache have kept the same 3382 # value. 3383 ac_cache_corrupted=false 3384 for ac_var in $ac_precious_vars; do 3385 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3386 eval ac_new_set=\$ac_env_${ac_var}_set 3387 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3388 eval ac_new_val=\$ac_env_${ac_var}_value 3389 case $ac_old_set,$ac_new_set in 3390 set,) 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3392 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3393 ac_cache_corrupted=: ;; 3394 ,set) 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3396 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3397 ac_cache_corrupted=: ;; 3398 ,);; 3399 *) 3400 if test "x$ac_old_val" != "x$ac_new_val"; then 3401 # differences in whitespace do not lead to failure. 3402 ac_old_val_w=`echo x $ac_old_val` 3403 ac_new_val_w=`echo x $ac_new_val` 3404 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3406 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3407 ac_cache_corrupted=: 3408 else 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3410 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3411 eval $ac_var=\$ac_old_val 3412 fi 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3414 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3416 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3417 fi;; 3418 esac 3419 # Pass precious variables to config.status. 3420 if test "$ac_new_set" = set; then 3421 case $ac_new_val in 3422 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3423 *) ac_arg=$ac_var=$ac_new_val ;; 3424 esac 3425 case " $ac_configure_args " in 3426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3427 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3428 esac 3429 fi 3430 done 3431 if $ac_cache_corrupted; then 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3435 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3436 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3437 fi 3438 ## -------------------- ## 3439 ## Main body of script. ## 3440 ## -------------------- ## 3441 3442 ac_ext=c 3443 ac_cpp='$CPP $CPPFLAGS' 3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3447 3448 3449 3450 ac_aux_dir= 3451 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do 3452 if test -f "$ac_dir/install-sh"; then 3453 ac_aux_dir=$ac_dir 3454 ac_install_sh="$ac_aux_dir/install-sh -c" 3455 break 3456 elif test -f "$ac_dir/install.sh"; then 3457 ac_aux_dir=$ac_dir 3458 ac_install_sh="$ac_aux_dir/install.sh -c" 3459 break 3460 elif test -f "$ac_dir/shtool"; then 3461 ac_aux_dir=$ac_dir 3462 ac_install_sh="$ac_aux_dir/shtool install -c" 3463 break 3464 fi 3465 done 3466 if test -z "$ac_aux_dir"; then 3467 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/make/autoconf/build-aux \"$srcdir\"/$TOPDIR/make/autoconf/build-aux" "$LINENO" 5 3468 fi 3469 3470 # These three variables are undocumented and unsupported, 3471 # and are intended to be withdrawn in a future Autoconf release. 3472 # They can cause serious problems if a builder's source tree is in a directory 3473 # whose full name contains unusual characters. 3474 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3475 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3476 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3477 3478 3479 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3480 3481 # 3482 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3483 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3484 # 3485 # This code is free software; you can redistribute it and/or modify it 3486 # under the terms of the GNU General Public License version 2 only, as 3487 # published by the Free Software Foundation. Oracle designates this 3488 # particular file as subject to the "Classpath" exception as provided 3489 # by Oracle in the LICENSE file that accompanied this code. 3490 # 3491 # This code is distributed in the hope that it will be useful, but WITHOUT 3492 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3493 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3494 # version 2 for more details (a copy is included in the LICENSE file that 3495 # accompanied this code). 3496 # 3497 # You should have received a copy of the GNU General Public License version 3498 # 2 along with this work; if not, write to the Free Software Foundation, 3499 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3500 # 3501 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3502 # or visit www.oracle.com if you need additional information or have any 3503 # questions. 3504 # 3505 3506 # 3507 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3508 # 3509 # This program is free software; you can redistribute it and/or modify 3510 # it under the terms of the GNU General Public License as published by 3511 # the Free Software Foundation; either version 2 of the License, or 3512 # (at your option) any later version. 3513 # 3514 # This program is distributed in the hope that it will be useful, but 3515 # WITHOUT ANY WARRANTY; without even the implied warranty of 3516 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3517 # General Public License for more details. 3518 # 3519 # You should have received a copy of the GNU General Public License 3520 # along with this program; if not, write to the Free Software 3521 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3522 # 3523 # As a special exception to the GNU General Public License, if you 3524 # distribute this file as part of a program that contains a 3525 # configuration script generated by Autoconf, you may include it under 3526 # the same distribution terms that you use for the rest of that program. 3527 3528 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3529 # ---------------------------------- 3530 # PKG_PROG_PKG_CONFIG 3531 3532 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3533 # 3534 # Check to see whether a particular set of modules exists. Similar 3535 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3536 # 3537 # 3538 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3539 # this or PKG_CHECK_MODULES is called, or make sure to call 3540 # PKG_CHECK_EXISTS manually 3541 # -------------------------------------------------------------- 3542 3543 3544 3545 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3546 # --------------------------------------------- 3547 # _PKG_CONFIG 3548 3549 # _PKG_SHORT_ERRORS_SUPPORTED 3550 # ----------------------------- 3551 # _PKG_SHORT_ERRORS_SUPPORTED 3552 3553 3554 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3555 # [ACTION-IF-NOT-FOUND]) 3556 # 3557 # 3558 # Note that if there is a possibility the first call to 3559 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3560 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3561 # 3562 # 3563 # -------------------------------------------------------------- 3564 # PKG_CHECK_MODULES 3565 3566 3567 # Include these first... 3568 # 3569 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3570 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3571 # 3572 # This code is free software; you can redistribute it and/or modify it 3573 # under the terms of the GNU General Public License version 2 only, as 3574 # published by the Free Software Foundation. Oracle designates this 3575 # particular file as subject to the "Classpath" exception as provided 3576 # by Oracle in the LICENSE file that accompanied this code. 3577 # 3578 # This code is distributed in the hope that it will be useful, but WITHOUT 3579 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3580 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3581 # version 2 for more details (a copy is included in the LICENSE file that 3582 # accompanied this code). 3583 # 3584 # You should have received a copy of the GNU General Public License version 3585 # 2 along with this work; if not, write to the Free Software Foundation, 3586 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3587 # 3588 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3589 # or visit www.oracle.com if you need additional information or have any 3590 # questions. 3591 # 3592 3593 # Create a function/macro that takes a series of named arguments. The call is 3594 # similar to AC_DEFUN, but the setup of the function looks like this: 3595 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3596 # ... do something 3597 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3598 # ]) 3599 # A star (*) in front of a named argument means that it is required and it's 3600 # presence will be verified. To pass e.g. the first value as a normal indexed 3601 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3602 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3603 # "ARG_FOO". 3604 # 3605 # The generated function can be called like this: 3606 # MYFUNC(FOO: [foo-val], 3607 # BAR: [ 3608 # $ECHO hello world 3609 # ]) 3610 # Note that the argument value must start on the same line as the argument name. 3611 # 3612 # Argument 1: Name of the function to define 3613 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3614 # Argument 3: Argument array to treat as named, typically $@ 3615 # Argument 4: The main function body 3616 3617 3618 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3619 # If so, then append $1 to $2 \ 3620 # Also set JVM_ARG_OK to true/false depending on outcome. 3621 3622 3623 # Appends a string to a path variable, only adding the : when needed. 3624 3625 3626 # Prepends a string to a path variable, only adding the : when needed. 3627 3628 3629 # This will make sure the given variable points to a full and proper 3630 # path. This means: 3631 # 1) There will be no spaces in the path. On unix platforms, 3632 # spaces in the path will result in an error. On Windows, 3633 # the path will be rewritten using short-style to be space-free. 3634 # 2) The path will be absolute, and it will be in unix-style (on 3635 # cygwin). 3636 # $1: The name of the variable to fix 3637 3638 3639 # This will make sure the given variable points to a executable 3640 # with a full and proper path. This means: 3641 # 1) There will be no spaces in the path. On unix platforms, 3642 # spaces in the path will result in an error. On Windows, 3643 # the path will be rewritten using short-style to be space-free. 3644 # 2) The path will be absolute, and it will be in unix-style (on 3645 # cygwin). 3646 # Any arguments given to the executable is preserved. 3647 # If the input variable does not have a directory specification, then 3648 # it need to be in the PATH. 3649 # $1: The name of the variable to fix 3650 3651 3652 3653 3654 # Register a --with argument but mark it as deprecated 3655 # $1: The name of the with argument to deprecate, not including --with- 3656 3657 3658 # Register a --enable argument but mark it as deprecated 3659 # $1: The name of the with argument to deprecate, not including --enable- 3660 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3661 # $3: Messages to user. 3662 3663 3664 3665 3666 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3667 # $1: variable to check 3668 3669 3670 # Check that there are no unprocessed overridden variables left. 3671 # If so, they are an incorrect argument and we will exit with an error. 3672 3673 3674 # Setup a tool for the given variable. If correctly specified by the user, 3675 # use that value, otherwise search for the tool using the supplied code snippet. 3676 # $1: variable to set 3677 # $2: code snippet to call to look for the tool 3678 # $3: code snippet to call if variable was used to find tool 3679 3680 3681 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3682 # $1: variable to set 3683 # $2: executable name (or list of names) to look for 3684 # $3: [path] 3685 3686 3687 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3688 # $1: variable to set 3689 # $2: executable name (or list of names) to look for 3690 3691 3692 # Like BASIC_PATH_PROGS but fails if no tool was found. 3693 # $1: variable to set 3694 # $2: executable name (or list of names) to look for 3695 # $3: [path] 3696 3697 3698 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3699 # $1: variable to set 3700 # $2: autoconf macro to call to look for the special tool 3701 3702 3703 # Setup the most fundamental tools that relies on not much else to set up, 3704 # but is used by much of the early bootstrap code. 3705 3706 3707 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3708 3709 3710 # Evaluates platform specific overrides for devkit variables. 3711 # $1: Name of variable 3712 3713 3714 3715 3716 3717 3718 #%%% Simple tools %%% 3719 3720 # Check if we have found a usable version of make 3721 # $1: the path to a potential make binary (or empty) 3722 # $2: the description on how we found this 3723 3724 3725 3726 3727 # Goes looking for a usable version of GNU make. 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 # Check if build directory is on local disk. If not possible to determine, 3739 # we prefer to claim it's local. 3740 # Argument 1: directory to test 3741 # Argument 2: what to do if it is on local disk 3742 # Argument 3: what to do otherwise (remote disk or failure) 3743 3744 3745 # Check that source files have basic read permissions set. This might 3746 # not be the case in cygwin in certain conditions. 3747 3748 3749 3750 3751 # Check for support for specific options in bash 3752 3753 3754 ################################################################################ 3755 # 3756 # Default make target 3757 # 3758 3759 3760 # Code to run after AC_OUTPUT 3761 3762 3763 # 3764 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3765 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3766 # 3767 # This code is free software; you can redistribute it and/or modify it 3768 # under the terms of the GNU General Public License version 2 only, as 3769 # published by the Free Software Foundation. Oracle designates this 3770 # particular file as subject to the "Classpath" exception as provided 3771 # by Oracle in the LICENSE file that accompanied this code. 3772 # 3773 # This code is distributed in the hope that it will be useful, but WITHOUT 3774 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3775 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3776 # version 2 for more details (a copy is included in the LICENSE file that 3777 # accompanied this code). 3778 # 3779 # You should have received a copy of the GNU General Public License version 3780 # 2 along with this work; if not, write to the Free Software Foundation, 3781 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3782 # 3783 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3784 # or visit www.oracle.com if you need additional information or have any 3785 # questions. 3786 # 3787 3788 3789 3790 3791 3792 # Helper function which possibly converts a path using DOS-style short mode. 3793 # If so, the updated path is stored in $new_path. 3794 # $1: The path to check 3795 3796 3797 # Helper function which possibly converts a path using DOS-style short mode. 3798 # If so, the updated path is stored in $new_path. 3799 # $1: The path to check 3800 3801 3802 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3803 # and could probably be heavily simplified. However, all changes in this 3804 # area tend to need lot of testing in different scenarios, and in lack of 3805 # proper unit testing, cleaning this up has not been deemed worth the effort 3806 # at the moment. 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3817 3818 3819 3820 3821 # ... then the rest 3822 # 3823 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3824 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3825 # 3826 # This code is free software; you can redistribute it and/or modify it 3827 # under the terms of the GNU General Public License version 2 only, as 3828 # published by the Free Software Foundation. Oracle designates this 3829 # particular file as subject to the "Classpath" exception as provided 3830 # by Oracle in the LICENSE file that accompanied this code. 3831 # 3832 # This code is distributed in the hope that it will be useful, but WITHOUT 3833 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3834 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3835 # version 2 for more details (a copy is included in the LICENSE file that 3836 # accompanied this code). 3837 # 3838 # You should have received a copy of the GNU General Public License version 3839 # 2 along with this work; if not, write to the Free Software Foundation, 3840 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3841 # 3842 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3843 # or visit www.oracle.com if you need additional information or have any 3844 # questions. 3845 # 3846 3847 ######################################################################## 3848 # This file handles detection of the Boot JDK. The Boot JDK detection 3849 # process has been developed as a response to solve a complex real-world 3850 # problem. Initially, it was simple, but it has grown as platform after 3851 # platform, idiosyncracy after idiosyncracy has been supported. 3852 # 3853 # The basic idea is this: 3854 # 1) You need an acceptable *) JDK to use as a Boot JDK 3855 # 2) There are several ways to locate a JDK, that are mostly platform 3856 # dependent **) 3857 # 3) You can have multiple JDKs installed 3858 # 4) If possible, configure should try to dig out an acceptable JDK 3859 # automatically, without having to resort to command-line options 3860 # 3861 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3862 # javac) and not a JRE, etc. 3863 # 3864 # **) On Windows we typically use a well-known path. 3865 # On MacOSX we typically use the tool java_home. 3866 # On Linux we typically find javac in the $PATH, and then follow a 3867 # chain of symlinks that often ends up in a real JDK. 3868 # 3869 # This leads to the code where we check in different ways to locate a 3870 # JDK, and if one is found, check if it is acceptable. If not, we print 3871 # our reasons for rejecting it (useful when debugging non-working 3872 # configure situations) and continue checking the next one. 3873 ######################################################################## 3874 3875 # Execute the check given as argument, and verify the result 3876 # If the Boot JDK was previously found, do nothing 3877 # $1 A command line (typically autoconf macro) to execute 3878 3879 3880 # Test: Is bootjdk explicitly set by command line arguments? 3881 3882 3883 # Test: Is $JAVA_HOME set? 3884 3885 3886 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3887 3888 3889 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3890 # $1: Argument to the java_home binary (optional) 3891 3892 3893 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3894 3895 3896 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3897 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3898 # $1 = Path to directory containing jdk installations. 3899 # $2 = String to append to the found JDK directory to get the proper JDK home 3900 3901 3902 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3903 # environmental variable as base for where to look. 3904 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3905 3906 3907 # Test: Is there a JDK installed in default, well-known locations? 3908 3909 3910 # Check that a command-line tool in the Boot JDK is correct 3911 # $1 = name of variable to assign 3912 # $2 = name of binary 3913 3914 3915 ############################################################################### 3916 # 3917 # We need a Boot JDK to bootstrap the build. 3918 # 3919 3920 3921 3922 3923 3924 # BUILD_JDK: the location of the latest JDK that can run 3925 # on the host system and supports the target class file version 3926 # generated in this JDK build. This variable should only be 3927 # used after the launchers are built. 3928 # 3929 3930 # Execute the check given as argument, and verify the result. 3931 # If the JDK was previously found, do nothing. 3932 # $1 A command line (typically autoconf macro) to execute 3933 3934 3935 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3936 # is different than the host system doing the build (e.g. cross-compilation), 3937 # a special BUILD_JDK is built as part of the build process. An external 3938 # prebuilt BUILD_JDK can also be supplied. 3939 3940 3941 # 3942 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3943 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3944 # 3945 # This code is free software; you can redistribute it and/or modify it 3946 # under the terms of the GNU General Public License version 2 only, as 3947 # published by the Free Software Foundation. Oracle designates this 3948 # particular file as subject to the "Classpath" exception as provided 3949 # by Oracle in the LICENSE file that accompanied this code. 3950 # 3951 # This code is distributed in the hope that it will be useful, but WITHOUT 3952 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3953 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3954 # version 2 for more details (a copy is included in the LICENSE file that 3955 # accompanied this code). 3956 # 3957 # You should have received a copy of the GNU General Public License version 3958 # 2 along with this work; if not, write to the Free Software Foundation, 3959 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3960 # 3961 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3962 # or visit www.oracle.com if you need additional information or have any 3963 # questions. 3964 # 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 ################################################################################ 3983 # 3984 # Runs icecc-create-env once and prints the error if it fails 3985 # 3986 # $1: arguments to icecc-create-env 3987 # $2: log file 3988 # 3989 3990 3991 ################################################################################ 3992 # 3993 # Optionally enable distributed compilation of native code using icecc/icecream 3994 # 3995 3996 3997 3998 3999 4000 4001 4002 # 4003 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4004 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4005 # 4006 # This code is free software; you can redistribute it and/or modify it 4007 # under the terms of the GNU General Public License version 2 only, as 4008 # published by the Free Software Foundation. Oracle designates this 4009 # particular file as subject to the "Classpath" exception as provided 4010 # by Oracle in the LICENSE file that accompanied this code. 4011 # 4012 # This code is distributed in the hope that it will be useful, but WITHOUT 4013 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4014 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4015 # version 2 for more details (a copy is included in the LICENSE file that 4016 # accompanied this code). 4017 # 4018 # You should have received a copy of the GNU General Public License version 4019 # 2 along with this work; if not, write to the Free Software Foundation, 4020 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4021 # 4022 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4023 # or visit www.oracle.com if you need additional information or have any 4024 # questions. 4025 # 4026 4027 ################################################################################ 4028 # 4029 # Setup ABI profile (for arm) 4030 # 4031 4032 4033 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4034 # corresponding configure arguments instead 4035 4036 4037 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4038 # that configure can use them while detecting compilers. 4039 # TOOLCHAIN_TYPE is available here. 4040 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4041 4042 4043 4044 4045 4046 4047 # Documentation on common flags used for solstudio in HIGHEST. 4048 # 4049 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4050 # done with care, there are some assumptions below that need to 4051 # be understood about the use of pointers, and IEEE behavior. 4052 # 4053 # -fns: Use non-standard floating point mode (not IEEE 754) 4054 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4055 # -fsingle: Use single precision floating point with 'float' 4056 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4057 # (Source with excessing pointer casting and data access with mixed 4058 # pointer types are not recommended) 4059 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4060 # (If you expect perfect errno behavior, do not use this) 4061 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4062 # -xrestrict: Pointer parameters to functions do not overlap 4063 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4064 # If you pass in multiple pointers to the same data, do not use this) 4065 # -xlibmil: Inline some library routines 4066 # (If you expect perfect errno behavior, do not use this) 4067 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4068 # (If you expect perfect errno behavior, do not use this) 4069 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4070 4071 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4072 # Bug? 4073 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4074 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4075 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4076 #fi 4077 4078 4079 4080 4081 4082 4083 ################################################################################ 4084 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4085 # conditionals against. 4086 # $2 - Optional prefix for each variable defined. 4087 4088 4089 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4090 # IF_FALSE: [RUN-IF-FALSE]) 4091 # ------------------------------------------------------------ 4092 # Check that the C compiler supports an argument 4093 4094 4095 4096 4097 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4098 # IF_FALSE: [RUN-IF-FALSE]) 4099 # ------------------------------------------------------------ 4100 # Check that the C++ compiler supports an argument 4101 4102 4103 4104 4105 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4106 # IF_FALSE: [RUN-IF-FALSE]) 4107 # ------------------------------------------------------------ 4108 # Check that the C and C++ compilers support an argument 4109 4110 4111 4112 4113 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4114 # IF_FALSE: [RUN-IF-FALSE]) 4115 # ------------------------------------------------------------ 4116 # Check that the linker support an argument 4117 4118 4119 4120 4121 4122 4123 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4124 # Arguments: 4125 # $1 - Optional prefix for each variable defined. 4126 4127 4128 # 4129 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4130 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4131 # 4132 # This code is free software; you can redistribute it and/or modify it 4133 # under the terms of the GNU General Public License version 2 only, as 4134 # published by the Free Software Foundation. Oracle designates this 4135 # particular file as subject to the "Classpath" exception as provided 4136 # by Oracle in the LICENSE file that accompanied this code. 4137 # 4138 # This code is distributed in the hope that it will be useful, but WITHOUT 4139 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4140 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4141 # version 2 for more details (a copy is included in the LICENSE file that 4142 # accompanied this code). 4143 # 4144 # You should have received a copy of the GNU General Public License version 4145 # 2 along with this work; if not, write to the Free Software Foundation, 4146 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4147 # 4148 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4149 # or visit www.oracle.com if you need additional information or have any 4150 # questions. 4151 # 4152 4153 4154 4155 4156 4157 cygwin_help() { 4158 case $1 in 4159 unzip) 4160 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4161 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4162 ;; 4163 zip) 4164 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4165 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4166 ;; 4167 make) 4168 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4169 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4170 ;; 4171 freetype) 4172 HELP_MSG=" 4173 The freetype library can now be build during the configure process. 4174 Download the freetype sources and unpack them into an arbitrary directory: 4175 4176 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4177 tar -xzf freetype-2.5.3.tar.gz 4178 4179 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4180 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4181 builds or into '<freetype_src>/lib32' for 32-bit builds. 4182 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4183 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4184 4185 Alternatively you can unpack the sources like this to use the default directory: 4186 4187 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4188 ;; 4189 esac 4190 } 4191 4192 msys_help() { 4193 PKGHANDLER_COMMAND="" 4194 } 4195 4196 apt_help() { 4197 case $1 in 4198 reduced) 4199 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4200 devkit) 4201 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4202 openjdk) 4203 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4204 alsa) 4205 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4206 cups) 4207 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4208 fontconfig) 4209 PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;; 4210 freetype) 4211 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4212 ffi) 4213 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4214 x11) 4215 PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4216 ccache) 4217 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4218 dtrace) 4219 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4220 esac 4221 } 4222 4223 yum_help() { 4224 case $1 in 4225 devkit) 4226 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4227 openjdk) 4228 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4229 alsa) 4230 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4231 cups) 4232 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4233 fontconfig) 4234 PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;; 4235 freetype) 4236 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4237 x11) 4238 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4239 ccache) 4240 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4241 esac 4242 } 4243 4244 brew_help() { 4245 case $1 in 4246 openjdk) 4247 PKGHANDLER_COMMAND="brew cask install java" ;; 4248 freetype) 4249 PKGHANDLER_COMMAND="brew install freetype" ;; 4250 ccache) 4251 PKGHANDLER_COMMAND="brew install ccache" ;; 4252 esac 4253 } 4254 4255 port_help() { 4256 PKGHANDLER_COMMAND="" 4257 } 4258 4259 pkgutil_help() { 4260 PKGHANDLER_COMMAND="" 4261 } 4262 4263 pkgadd_help() { 4264 PKGHANDLER_COMMAND="" 4265 } 4266 4267 # This function will check if we're called from the "configure" wrapper while 4268 # printing --help. If so, we will print out additional information that can 4269 # only be extracted within the autoconf script, and then exit. This must be 4270 # called at the very beginning in configure.ac. 4271 4272 4273 4274 4275 4276 4277 # 4278 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4279 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4280 # 4281 # This code is free software; you can redistribute it and/or modify it 4282 # under the terms of the GNU General Public License version 2 only, as 4283 # published by the Free Software Foundation. Oracle designates this 4284 # particular file as subject to the "Classpath" exception as provided 4285 # by Oracle in the LICENSE file that accompanied this code. 4286 # 4287 # This code is distributed in the hope that it will be useful, but WITHOUT 4288 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4289 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4290 # version 2 for more details (a copy is included in the LICENSE file that 4291 # accompanied this code). 4292 # 4293 # You should have received a copy of the GNU General Public License version 4294 # 2 along with this work; if not, write to the Free Software Foundation, 4295 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4296 # 4297 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4298 # or visit www.oracle.com if you need additional information or have any 4299 # questions. 4300 # 4301 4302 # All valid JVM features, regardless of platform 4303 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \ 4304 graal vm-structs jni-check services management all-gcs nmt cds \ 4305 static-build link-time-opt aot" 4306 4307 # All valid JVM variants 4308 VALID_JVM_VARIANTS="server client minimal core zero custom" 4309 4310 ############################################################################### 4311 # Check if the specified JVM variant should be built. To be used in shell if 4312 # constructs, like this: 4313 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4314 # 4315 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4316 4317 # Definition kept in one line to allow inlining in if statements. 4318 # Additional [] needed to keep m4 from mangling shell constructs. 4319 4320 4321 ############################################################################### 4322 # Check if the specified JVM features are explicitly enabled. To be used in 4323 # shell if constructs, like this: 4324 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4325 # 4326 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4327 4328 # Definition kept in one line to allow inlining in if statements. 4329 # Additional [] needed to keep m4 from mangling shell constructs. 4330 4331 4332 ############################################################################### 4333 # Check which variants of the JVM that we want to build. Available variants are: 4334 # server: normal interpreter, and a tiered C1/C2 compiler 4335 # client: normal interpreter, and C1 (no C2 compiler) 4336 # minimal: reduced form of client with optional features stripped out 4337 # core: normal interpreter only, no compiler 4338 # zero: C++ based interpreter only, no compiler 4339 # custom: baseline JVM with no default features 4340 # 4341 4342 4343 ############################################################################### 4344 # Check if dtrace should be enabled and has all prerequisites present. 4345 # 4346 4347 4348 ################################################################################ 4349 # Check if AOT should be enabled 4350 # 4351 4352 4353 ################################################################################ 4354 # Allow to disable CDS 4355 # 4356 4357 4358 ############################################################################### 4359 # Set up all JVM features for each JVM variant. 4360 # 4361 4362 4363 ############################################################################### 4364 # Validate JVM features once all setup is complete, including custom setup. 4365 # 4366 4367 4368 ################################################################################ 4369 # 4370 # Specify which sources will be used to build the 64-bit ARM port 4371 # 4372 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm 4373 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64 4374 # 4375 4376 4377 4378 ################################################################################ 4379 # Check if gtest should be built 4380 # 4381 4382 4383 # 4384 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4385 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4386 # 4387 # This code is free software; you can redistribute it and/or modify it 4388 # under the terms of the GNU General Public License version 2 only, as 4389 # published by the Free Software Foundation. Oracle designates this 4390 # particular file as subject to the "Classpath" exception as provided 4391 # by Oracle in the LICENSE file that accompanied this code. 4392 # 4393 # This code is distributed in the hope that it will be useful, but WITHOUT 4394 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4395 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4396 # version 2 for more details (a copy is included in the LICENSE file that 4397 # accompanied this code). 4398 # 4399 # You should have received a copy of the GNU General Public License version 4400 # 2 along with this work; if not, write to the Free Software Foundation, 4401 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4402 # 4403 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4404 # or visit www.oracle.com if you need additional information or have any 4405 # questions. 4406 # 4407 4408 ############################################################################### 4409 # Check which variant of the JDK that we want to build. 4410 # Currently we have: 4411 # normal: standard edition 4412 # but the custom make system may add other variants 4413 # 4414 # Effectively the JDK variant gives a name to a specific set of 4415 # modules to compile into the JDK. 4416 4417 4418 ############################################################################### 4419 # Set the debug level 4420 # release: no debug information, all optimizations, no asserts. 4421 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4422 # fastdebug: debug information (-g), all optimizations, all asserts 4423 # slowdebug: debug information (-g), no optimizations, all asserts 4424 4425 4426 ############################################################################### 4427 # 4428 # Should we build only OpenJDK even if closed sources are present? 4429 # 4430 4431 4432 4433 4434 ############################################################################### 4435 # 4436 # Enable or disable the elliptic curve crypto implementation 4437 # 4438 4439 4440 4441 4442 ################################################################################ 4443 # 4444 # Gcov coverage data for hotspot 4445 # 4446 4447 4448 ############################################################################### 4449 # 4450 # AddressSanitizer 4451 # 4452 4453 4454 ################################################################################ 4455 # 4456 # Static build support. When enabled will generate static 4457 # libraries instead of shared libraries for all JDK libs. 4458 # 4459 4460 4461 ################################################################################ 4462 # 4463 # jlink options. 4464 # We always keep packaged modules in JDK image. 4465 # 4466 4467 4468 ################################################################################ 4469 # 4470 # Check if building of the jtreg failure handler should be enabled. 4471 # 4472 4473 4474 ################################################################################ 4475 # 4476 # Enable or disable generation of the classlist at build time 4477 # 4478 4479 4480 # 4481 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. 4482 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4483 # 4484 # This code is free software; you can redistribute it and/or modify it 4485 # under the terms of the GNU General Public License version 2 only, as 4486 # published by the Free Software Foundation. Oracle designates this 4487 # particular file as subject to the "Classpath" exception as provided 4488 # by Oracle in the LICENSE file that accompanied this code. 4489 # 4490 # This code is distributed in the hope that it will be useful, but WITHOUT 4491 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4492 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4493 # version 2 for more details (a copy is included in the LICENSE file that 4494 # accompanied this code). 4495 # 4496 # You should have received a copy of the GNU General Public License version 4497 # 2 along with this work; if not, write to the Free Software Foundation, 4498 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4499 # 4500 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4501 # or visit www.oracle.com if you need additional information or have any 4502 # questions. 4503 # 4504 4505 ############################################################################### 4506 # 4507 # Setup version numbers 4508 # 4509 4510 # Verify that a given string represents a valid version number, and assign it 4511 # to a variable. 4512 4513 # Argument 1: the variable to assign to 4514 # Argument 2: the value given by the user 4515 4516 4517 4518 4519 # 4520 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4521 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4522 # 4523 # This code is free software; you can redistribute it and/or modify it 4524 # under the terms of the GNU General Public License version 2 only, as 4525 # published by the Free Software Foundation. Oracle designates this 4526 # particular file as subject to the "Classpath" exception as provided 4527 # by Oracle in the LICENSE file that accompanied this code. 4528 # 4529 # This code is distributed in the hope that it will be useful, but WITHOUT 4530 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4531 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4532 # version 2 for more details (a copy is included in the LICENSE file that 4533 # accompanied this code). 4534 # 4535 # You should have received a copy of the GNU General Public License version 4536 # 2 along with this work; if not, write to the Free Software Foundation, 4537 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4538 # 4539 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4540 # or visit www.oracle.com if you need additional information or have any 4541 # questions. 4542 # 4543 4544 # Major library component reside in separate files. 4545 # 4546 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4547 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4548 # 4549 # This code is free software; you can redistribute it and/or modify it 4550 # under the terms of the GNU General Public License version 2 only, as 4551 # published by the Free Software Foundation. Oracle designates this 4552 # particular file as subject to the "Classpath" exception as provided 4553 # by Oracle in the LICENSE file that accompanied this code. 4554 # 4555 # This code is distributed in the hope that it will be useful, but WITHOUT 4556 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4557 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4558 # version 2 for more details (a copy is included in the LICENSE file that 4559 # accompanied this code). 4560 # 4561 # You should have received a copy of the GNU General Public License version 4562 # 2 along with this work; if not, write to the Free Software Foundation, 4563 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4564 # 4565 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4566 # or visit www.oracle.com if you need additional information or have any 4567 # questions. 4568 # 4569 4570 ################################################################################ 4571 # Setup alsa (Advanced Linux Sound Architecture) 4572 ################################################################################ 4573 4574 4575 # 4576 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4577 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4578 # 4579 # This code is free software; you can redistribute it and/or modify it 4580 # under the terms of the GNU General Public License version 2 only, as 4581 # published by the Free Software Foundation. Oracle designates this 4582 # particular file as subject to the "Classpath" exception as provided 4583 # by Oracle in the LICENSE file that accompanied this code. 4584 # 4585 # This code is distributed in the hope that it will be useful, but WITHOUT 4586 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4587 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4588 # version 2 for more details (a copy is included in the LICENSE file that 4589 # accompanied this code). 4590 # 4591 # You should have received a copy of the GNU General Public License version 4592 # 2 along with this work; if not, write to the Free Software Foundation, 4593 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4594 # 4595 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4596 # or visit www.oracle.com if you need additional information or have any 4597 # questions. 4598 # 4599 4600 ################################################################################ 4601 # Setup bundled libraries. 4602 # 4603 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4604 # OpenJDK repository. Default is to use these libraries as bundled, but they 4605 # might be replaced by en external version by the user. 4606 ################################################################################ 4607 4608 4609 ################################################################################ 4610 # Setup libjpeg 4611 ################################################################################ 4612 4613 4614 ################################################################################ 4615 # Setup giflib 4616 ################################################################################ 4617 4618 4619 ################################################################################ 4620 # Setup libpng 4621 ################################################################################ 4622 4623 4624 ################################################################################ 4625 # Setup zlib 4626 ################################################################################ 4627 4628 4629 ################################################################################ 4630 # Setup lcms (Little CMS) 4631 ################################################################################ 4632 4633 4634 # 4635 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4636 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4637 # 4638 # This code is free software; you can redistribute it and/or modify it 4639 # under the terms of the GNU General Public License version 2 only, as 4640 # published by the Free Software Foundation. Oracle designates this 4641 # particular file as subject to the "Classpath" exception as provided 4642 # by Oracle in the LICENSE file that accompanied this code. 4643 # 4644 # This code is distributed in the hope that it will be useful, but WITHOUT 4645 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4646 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4647 # version 2 for more details (a copy is included in the LICENSE file that 4648 # accompanied this code). 4649 # 4650 # You should have received a copy of the GNU General Public License version 4651 # 2 along with this work; if not, write to the Free Software Foundation, 4652 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4653 # 4654 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4655 # or visit www.oracle.com if you need additional information or have any 4656 # questions. 4657 # 4658 4659 ################################################################################ 4660 # Setup cups (Common Unix Printing System) 4661 ################################################################################ 4662 4663 4664 # 4665 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4666 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4667 # 4668 # This code is free software; you can redistribute it and/or modify it 4669 # under the terms of the GNU General Public License version 2 only, as 4670 # published by the Free Software Foundation. Oracle designates this 4671 # particular file as subject to the "Classpath" exception as provided 4672 # by Oracle in the LICENSE file that accompanied this code. 4673 # 4674 # This code is distributed in the hope that it will be useful, but WITHOUT 4675 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4676 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4677 # version 2 for more details (a copy is included in the LICENSE file that 4678 # accompanied this code). 4679 # 4680 # You should have received a copy of the GNU General Public License version 4681 # 2 along with this work; if not, write to the Free Software Foundation, 4682 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4683 # 4684 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4685 # or visit www.oracle.com if you need additional information or have any 4686 # questions. 4687 # 4688 4689 ################################################################################ 4690 # Setup libffi (Foreign Function Interface) 4691 ################################################################################ 4692 4693 4694 # 4695 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4696 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4697 # 4698 # This code is free software; you can redistribute it and/or modify it 4699 # under the terms of the GNU General Public License version 2 only, as 4700 # published by the Free Software Foundation. Oracle designates this 4701 # particular file as subject to the "Classpath" exception as provided 4702 # by Oracle in the LICENSE file that accompanied this code. 4703 # 4704 # This code is distributed in the hope that it will be useful, but WITHOUT 4705 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4706 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4707 # version 2 for more details (a copy is included in the LICENSE file that 4708 # accompanied this code). 4709 # 4710 # You should have received a copy of the GNU General Public License version 4711 # 2 along with this work; if not, write to the Free Software Foundation, 4712 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4713 # 4714 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4715 # or visit www.oracle.com if you need additional information or have any 4716 # questions. 4717 # 4718 4719 ################################################################################ 4720 # Build the freetype lib from source 4721 ################################################################################ 4722 4723 4724 ################################################################################ 4725 # Check if a potential freeype library match is correct and usable 4726 ################################################################################ 4727 4728 4729 ################################################################################ 4730 # Setup freetype (The FreeType2 font rendering library) 4731 ################################################################################ 4732 4733 4734 # 4735 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4736 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4737 # 4738 # This code is free software; you can redistribute it and/or modify it 4739 # under the terms of the GNU General Public License version 2 only, as 4740 # published by the Free Software Foundation. Oracle designates this 4741 # particular file as subject to the "Classpath" exception as provided 4742 # by Oracle in the LICENSE file that accompanied this code. 4743 # 4744 # This code is distributed in the hope that it will be useful, but WITHOUT 4745 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4746 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4747 # version 2 for more details (a copy is included in the LICENSE file that 4748 # accompanied this code). 4749 # 4750 # You should have received a copy of the GNU General Public License version 4751 # 2 along with this work; if not, write to the Free Software Foundation, 4752 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4753 # 4754 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4755 # or visit www.oracle.com if you need additional information or have any 4756 # questions. 4757 # 4758 4759 ################################################################################ 4760 # Setup the standard C/C++ runtime libraries. 4761 # 4762 # Most importantly, determine if stdc++ should be linked statically or 4763 # dynamically. 4764 ################################################################################ 4765 4766 4767 # 4768 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4769 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4770 # 4771 # This code is free software; you can redistribute it and/or modify it 4772 # under the terms of the GNU General Public License version 2 only, as 4773 # published by the Free Software Foundation. Oracle designates this 4774 # particular file as subject to the "Classpath" exception as provided 4775 # by Oracle in the LICENSE file that accompanied this code. 4776 # 4777 # This code is distributed in the hope that it will be useful, but WITHOUT 4778 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4779 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4780 # version 2 for more details (a copy is included in the LICENSE file that 4781 # accompanied this code). 4782 # 4783 # You should have received a copy of the GNU General Public License version 4784 # 2 along with this work; if not, write to the Free Software Foundation, 4785 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4786 # 4787 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4788 # or visit www.oracle.com if you need additional information or have any 4789 # questions. 4790 # 4791 4792 ################################################################################ 4793 # Setup X11 Windows system 4794 ################################################################################ 4795 4796 4797 # 4798 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. 4799 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4800 # 4801 # This code is free software; you can redistribute it and/or modify it 4802 # under the terms of the GNU General Public License version 2 only, as 4803 # published by the Free Software Foundation. Oracle designates this 4804 # particular file as subject to the "Classpath" exception as provided 4805 # by Oracle in the LICENSE file that accompanied this code. 4806 # 4807 # This code is distributed in the hope that it will be useful, but WITHOUT 4808 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4809 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4810 # version 2 for more details (a copy is included in the LICENSE file that 4811 # accompanied this code). 4812 # 4813 # You should have received a copy of the GNU General Public License version 4814 # 2 along with this work; if not, write to the Free Software Foundation, 4815 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4816 # 4817 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4818 # or visit www.oracle.com if you need additional information or have any 4819 # questions. 4820 # 4821 4822 ################################################################################ 4823 # Setup fontconfig 4824 ################################################################################ 4825 4826 4827 4828 ################################################################################ 4829 # Determine which libraries are needed for this configuration 4830 ################################################################################ 4831 4832 4833 ################################################################################ 4834 # Parse library options, and setup needed libraries 4835 ################################################################################ 4836 4837 4838 ################################################################################ 4839 # Setup various libraries, typically small system libraries 4840 ################################################################################ 4841 4842 4843 ################################################################################ 4844 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4845 # redistribute it in the test image. 4846 ################################################################################ 4847 4848 4849 4850 # 4851 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4852 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4853 # 4854 # This code is free software; you can redistribute it and/or modify it 4855 # under the terms of the GNU General Public License version 2 only, as 4856 # published by the Free Software Foundation. Oracle designates this 4857 # particular file as subject to the "Classpath" exception as provided 4858 # by Oracle in the LICENSE file that accompanied this code. 4859 # 4860 # This code is distributed in the hope that it will be useful, but WITHOUT 4861 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4862 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4863 # version 2 for more details (a copy is included in the LICENSE file that 4864 # accompanied this code). 4865 # 4866 # You should have received a copy of the GNU General Public License version 4867 # 2 along with this work; if not, write to the Free Software Foundation, 4868 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4869 # 4870 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4871 # or visit www.oracle.com if you need additional information or have any 4872 # questions. 4873 # 4874 4875 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4876 # Converts autoconf style CPU name to OpenJDK style, into 4877 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4878 4879 4880 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4881 # Converts autoconf style OS name to OpenJDK style, into 4882 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4883 4884 4885 # Expects $host_os $host_cpu $build_os and $build_cpu 4886 # and $with_target_bits to have been setup! 4887 # 4888 # Translate the standard triplet(quadruplet) definition 4889 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4890 # OPENJDK_BUILD_OS, etc. 4891 4892 4893 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4894 # accordingly. Must be done after setting up build and target system, but before 4895 # doing anything else with these values. 4896 4897 4898 # Setup the legacy variables, for controlling the old makefiles. 4899 # 4900 4901 4902 # $1 - Either TARGET or BUILD to setup the variables for. 4903 4904 4905 4906 4907 4908 4909 #%%% Build and target systems %%% 4910 4911 4912 4913 4914 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4915 # Add -mX to various FLAGS variables. 4916 4917 4918 4919 4920 4921 4922 # 4923 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4924 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4925 # 4926 # This code is free software; you can redistribute it and/or modify it 4927 # under the terms of the GNU General Public License version 2 only, as 4928 # published by the Free Software Foundation. Oracle designates this 4929 # particular file as subject to the "Classpath" exception as provided 4930 # by Oracle in the LICENSE file that accompanied this code. 4931 # 4932 # This code is distributed in the hope that it will be useful, but WITHOUT 4933 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4934 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4935 # version 2 for more details (a copy is included in the LICENSE file that 4936 # accompanied this code). 4937 # 4938 # You should have received a copy of the GNU General Public License version 4939 # 2 along with this work; if not, write to the Free Software Foundation, 4940 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4941 # 4942 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4943 # or visit www.oracle.com if you need additional information or have any 4944 # questions. 4945 # 4946 4947 4948 4949 ################################################################################ 4950 # Define a mechanism for importing extra prebuilt modules 4951 # 4952 4953 4954 4955 # 4956 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4957 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4958 # 4959 # This code is free software; you can redistribute it and/or modify it 4960 # under the terms of the GNU General Public License version 2 only, as 4961 # published by the Free Software Foundation. Oracle designates this 4962 # particular file as subject to the "Classpath" exception as provided 4963 # by Oracle in the LICENSE file that accompanied this code. 4964 # 4965 # This code is distributed in the hope that it will be useful, but WITHOUT 4966 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4967 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4968 # version 2 for more details (a copy is included in the LICENSE file that 4969 # accompanied this code). 4970 # 4971 # You should have received a copy of the GNU General Public License version 4972 # 2 along with this work; if not, write to the Free Software Foundation, 4973 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4974 # 4975 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4976 # or visit www.oracle.com if you need additional information or have any 4977 # questions. 4978 # 4979 4980 ######################################################################## 4981 # This file is responsible for detecting, verifying and setting up the 4982 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4983 # proper paths to the binaries, but it will not setup any flags. 4984 # 4985 # The binaries used is determined by the toolchain type, which is the family of 4986 # compilers and related tools that are used. 4987 ######################################################################## 4988 4989 4990 # All valid toolchains, regardless of platform (used by help.m4) 4991 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4992 4993 # These toolchains are valid on different platforms 4994 VALID_TOOLCHAINS_linux="gcc clang" 4995 VALID_TOOLCHAINS_solaris="solstudio" 4996 VALID_TOOLCHAINS_macosx="gcc clang" 4997 VALID_TOOLCHAINS_aix="xlc" 4998 VALID_TOOLCHAINS_windows="microsoft" 4999 5000 # Toolchain descriptions 5001 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 5002 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 5003 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 5004 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 5005 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 5006 5007 # Minimum supported versions, empty means unspecified 5008 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 5009 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7" 5010 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010 5011 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 5012 TOOLCHAIN_MINIMUM_VERSION_xlc="" 5013 5014 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 5015 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 5016 # $1 - optional variable prefix for compiler and version variables (BUILD_) 5017 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 5018 5019 5020 # Check if the configured compiler (C and C++) is of a specific version or 5021 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 5022 # 5023 # Arguments: 5024 # VERSION: The version string to check against the found version 5025 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 5026 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 5027 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 5028 5029 5030 5031 5032 # Setup a number of variables describing how native output files are 5033 # named on this platform/toolchain. 5034 5035 5036 # Determine which toolchain type to use, and make sure it is valid for this 5037 # platform. Setup various information about the selected toolchain. 5038 5039 5040 # Before we start detecting the toolchain executables, we might need some 5041 # special setup, e.g. additional paths etc. 5042 5043 5044 # Restore path, etc 5045 5046 5047 # Check if a compiler is of the toolchain type we expect, and save the version 5048 # information from it. If the compiler does not match the expected type, 5049 # this function will abort using AC_MSG_ERROR. If it matches, the version will 5050 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 5051 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 5052 # 5053 # $1 = compiler to test (CC or CXX) 5054 # $2 = human readable name of compiler (C or C++) 5055 5056 5057 # Try to locate the given C or C++ compiler in the path, or otherwise. 5058 # 5059 # $1 = compiler to test (CC or CXX) 5060 # $2 = human readable name of compiler (C or C++) 5061 # $3 = compiler name to search for 5062 5063 5064 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 5065 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 5066 # archiver (AR). Verify that the compilers are correct according to the 5067 # toolchain type. 5068 5069 5070 # Setup additional tools that is considered a part of the toolchain, but not the 5071 # core part. Many of these are highly platform-specific and do not exist, 5072 # and/or are not needed on all platforms. 5073 5074 5075 # Setup the build tools (i.e, the compiler and linker used to build programs 5076 # that should be run on the build platform, not the target platform, as a build 5077 # helper). Since the non-cross-compile case uses the normal, target compilers 5078 # for this, we can only do this after these have been setup. 5079 5080 5081 # Do some additional checks on the detected tools. 5082 5083 5084 # Setup the JTReg Regression Test Harness. 5085 5086 5087 # Setup the JIB dependency resolver 5088 5089 5090 # 5091 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5092 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5093 # 5094 # This code is free software; you can redistribute it and/or modify it 5095 # under the terms of the GNU General Public License version 2 only, as 5096 # published by the Free Software Foundation. Oracle designates this 5097 # particular file as subject to the "Classpath" exception as provided 5098 # by Oracle in the LICENSE file that accompanied this code. 5099 # 5100 # This code is distributed in the hope that it will be useful, but WITHOUT 5101 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5102 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5103 # version 2 for more details (a copy is included in the LICENSE file that 5104 # accompanied this code). 5105 # 5106 # You should have received a copy of the GNU General Public License version 5107 # 2 along with this work; if not, write to the Free Software Foundation, 5108 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5109 # 5110 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5111 # or visit www.oracle.com if you need additional information or have any 5112 # questions. 5113 # 5114 5115 ################################################################################ 5116 # The order of these defines the priority by which we try to find them. 5117 VALID_VS_VERSIONS="2013 2012 2010" 5118 5119 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5120 VS_VERSION_INTERNAL_2010=100 5121 VS_MSVCR_2010=msvcr100.dll 5122 # We don't use msvcp on Visual Studio 2010 5123 #VS_MSVCP_2010=msvcp100.dll 5124 VS_ENVVAR_2010="VS100COMNTOOLS" 5125 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5126 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5127 VS_VS_PLATFORM_NAME_2010="v100" 5128 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5129 5130 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5131 VS_VERSION_INTERNAL_2012=110 5132 VS_MSVCR_2012=msvcr110.dll 5133 VS_MSVCP_2012=msvcp110.dll 5134 VS_ENVVAR_2012="VS110COMNTOOLS" 5135 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5136 VS_SDK_INSTALLDIR_2012= 5137 VS_VS_PLATFORM_NAME_2012="v110" 5138 VS_SDK_PLATFORM_NAME_2012= 5139 5140 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5141 VS_VERSION_INTERNAL_2013=120 5142 VS_MSVCR_2013=msvcr120.dll 5143 VS_MSVCP_2013=msvcp120.dll 5144 VS_ENVVAR_2013="VS120COMNTOOLS" 5145 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5146 VS_SDK_INSTALLDIR_2013= 5147 VS_VS_PLATFORM_NAME_2013="v120" 5148 VS_SDK_PLATFORM_NAME_2013= 5149 5150 ################################################################################ 5151 5152 5153 5154 ################################################################################ 5155 5156 5157 5158 ################################################################################ 5159 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5160 # build environment and assigns it to VS_ENV_CMD 5161 5162 5163 ################################################################################ 5164 5165 5166 5167 ################################################################################ 5168 # Check if the VS env variables were setup prior to running configure. 5169 # If not, then find vcvarsall.bat and run it automatically, and integrate 5170 # the set env variables into the spec file. 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 # This line needs to be here, verbatim, after all includes and the dummy hook 5186 # definitions. It is replaced with custom functionality when building 5187 # custom sources. 5188 #CUSTOM_AUTOCONF_INCLUDE 5189 5190 # Do not change or remove the following line, it is needed for consistency checks: 5191 DATE_WHEN_GENERATED=1516716346 5192 5193 ############################################################################### 5194 # 5195 # Initialization / Boot-strapping 5196 # 5197 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5198 # thus it jumps back and forth, each time gaining something needed later on. 5199 # 5200 ############################################################################### 5201 5202 # If we are requested to print additional help, do that and then exit. 5203 # This must be the very first call. 5204 5205 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5206 5207 # Print available toolchains 5208 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5209 $PRINTF "Which are valid to use depends on the build platform.\n" 5210 for toolchain in $VALID_TOOLCHAINS_all; do 5211 # Use indirect variable referencing 5212 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5213 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5214 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5215 done 5216 $PRINTF "\n" 5217 5218 # Print available jvm features 5219 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5220 $PRINTF "Which are valid to use depends on the target platform.\n " 5221 $PRINTF "%s " $VALID_JVM_FEATURES 5222 $PRINTF "\n" 5223 5224 # And now exit directly 5225 exit 0 5226 fi 5227 5228 5229 # Basic initialization that must happen first of all in the normal process. 5230 5231 # Save the original command line. This is passed to us by the wrapper configure script. 5232 5233 # Save the path variable before it gets changed 5234 ORIGINAL_PATH="$PATH" 5235 5236 DATE_WHEN_CONFIGURED=`LANG=C date` 5237 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5239 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5241 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5242 5243 5244 # Start with tools that do not need have cross compilation support 5245 # and can be expected to be found in the default PATH. These tools are 5246 # used by configure. 5247 5248 # First are all the simple required tools. 5249 5250 5251 5252 # Publish this variable in the help. 5253 5254 5255 if [ -z "${BASENAME+x}" ]; then 5256 # The variable is not set by user, try to locate tool using the code snippet 5257 for ac_prog in basename 5258 do 5259 # Extract the first word of "$ac_prog", so it can be a program name with args. 5260 set dummy $ac_prog; ac_word=$2 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5262 $as_echo_n "checking for $ac_word... " >&6; } 5263 if ${ac_cv_path_BASENAME+:} false; then : 5264 $as_echo_n "(cached) " >&6 5265 else 5266 case $BASENAME in 5267 [\\/]* | ?:[\\/]*) 5268 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5269 ;; 5270 *) 5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5272 for as_dir in $PATH 5273 do 5274 IFS=$as_save_IFS 5275 test -z "$as_dir" && as_dir=. 5276 for ac_exec_ext in '' $ac_executable_extensions; do 5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5278 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5280 break 2 5281 fi 5282 done 5283 done 5284 IFS=$as_save_IFS 5285 5286 ;; 5287 esac 5288 fi 5289 BASENAME=$ac_cv_path_BASENAME 5290 if test -n "$BASENAME"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5292 $as_echo "$BASENAME" >&6; } 5293 else 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295 $as_echo "no" >&6; } 5296 fi 5297 5298 5299 test -n "$BASENAME" && break 5300 done 5301 5302 else 5303 # The variable is set, but is it from the command line or the environment? 5304 5305 # Try to remove the string !BASENAME! from our list. 5306 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5307 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5308 # If it failed, the variable was not from the command line. Ignore it, 5309 # but warn the user (except for BASH, which is always set by the calling BASH). 5310 if test "xBASENAME" != xBASH; then 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5312 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5313 fi 5314 # Try to locate tool using the code snippet 5315 for ac_prog in basename 5316 do 5317 # Extract the first word of "$ac_prog", so it can be a program name with args. 5318 set dummy $ac_prog; ac_word=$2 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5320 $as_echo_n "checking for $ac_word... " >&6; } 5321 if ${ac_cv_path_BASENAME+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323 else 5324 case $BASENAME in 5325 [\\/]* | ?:[\\/]*) 5326 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5327 ;; 5328 *) 5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5330 for as_dir in $PATH 5331 do 5332 IFS=$as_save_IFS 5333 test -z "$as_dir" && as_dir=. 5334 for ac_exec_ext in '' $ac_executable_extensions; do 5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5336 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5338 break 2 5339 fi 5340 done 5341 done 5342 IFS=$as_save_IFS 5343 5344 ;; 5345 esac 5346 fi 5347 BASENAME=$ac_cv_path_BASENAME 5348 if test -n "$BASENAME"; then 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5350 $as_echo "$BASENAME" >&6; } 5351 else 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5353 $as_echo "no" >&6; } 5354 fi 5355 5356 5357 test -n "$BASENAME" && break 5358 done 5359 5360 else 5361 # If it succeeded, then it was overridden by the user. We will use it 5362 # for the tool. 5363 5364 # First remove it from the list of overridden variables, so we can test 5365 # for unknown variables in the end. 5366 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5367 5368 # Check if we try to supply an empty value 5369 if test "x$BASENAME" = x; then 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5371 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5373 $as_echo_n "checking for BASENAME... " >&6; } 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5375 $as_echo "disabled" >&6; } 5376 else 5377 # Check if the provided tool contains a complete path. 5378 tool_specified="$BASENAME" 5379 tool_basename="${tool_specified##*/}" 5380 if test "x$tool_basename" = "x$tool_specified"; then 5381 # A command without a complete path is provided, search $PATH. 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5383 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5384 # Extract the first word of "$tool_basename", so it can be a program name with args. 5385 set dummy $tool_basename; ac_word=$2 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5387 $as_echo_n "checking for $ac_word... " >&6; } 5388 if ${ac_cv_path_BASENAME+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390 else 5391 case $BASENAME in 5392 [\\/]* | ?:[\\/]*) 5393 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5394 ;; 5395 *) 5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5397 for as_dir in $PATH 5398 do 5399 IFS=$as_save_IFS 5400 test -z "$as_dir" && as_dir=. 5401 for ac_exec_ext in '' $ac_executable_extensions; do 5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5403 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5405 break 2 5406 fi 5407 done 5408 done 5409 IFS=$as_save_IFS 5410 5411 ;; 5412 esac 5413 fi 5414 BASENAME=$ac_cv_path_BASENAME 5415 if test -n "$BASENAME"; then 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5417 $as_echo "$BASENAME" >&6; } 5418 else 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5420 $as_echo "no" >&6; } 5421 fi 5422 5423 5424 if test "x$BASENAME" = x; then 5425 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5426 fi 5427 else 5428 # Otherwise we believe it is a complete path. Use it as it is. 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5430 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5432 $as_echo_n "checking for BASENAME... " >&6; } 5433 if test ! -x "$tool_specified"; then 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5435 $as_echo "not found" >&6; } 5436 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5437 fi 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5439 $as_echo "$tool_specified" >&6; } 5440 fi 5441 fi 5442 fi 5443 5444 fi 5445 5446 5447 5448 if test "x$BASENAME" = x; then 5449 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5450 fi 5451 5452 5453 5454 5455 5456 # Publish this variable in the help. 5457 5458 5459 if [ -z "${BASH+x}" ]; then 5460 # The variable is not set by user, try to locate tool using the code snippet 5461 for ac_prog in bash 5462 do 5463 # Extract the first word of "$ac_prog", so it can be a program name with args. 5464 set dummy $ac_prog; ac_word=$2 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5466 $as_echo_n "checking for $ac_word... " >&6; } 5467 if ${ac_cv_path_BASH+:} false; then : 5468 $as_echo_n "(cached) " >&6 5469 else 5470 case $BASH in 5471 [\\/]* | ?:[\\/]*) 5472 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5473 ;; 5474 *) 5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5476 for as_dir in $PATH 5477 do 5478 IFS=$as_save_IFS 5479 test -z "$as_dir" && as_dir=. 5480 for ac_exec_ext in '' $ac_executable_extensions; do 5481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5482 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5484 break 2 5485 fi 5486 done 5487 done 5488 IFS=$as_save_IFS 5489 5490 ;; 5491 esac 5492 fi 5493 BASH=$ac_cv_path_BASH 5494 if test -n "$BASH"; then 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5496 $as_echo "$BASH" >&6; } 5497 else 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5499 $as_echo "no" >&6; } 5500 fi 5501 5502 5503 test -n "$BASH" && break 5504 done 5505 5506 else 5507 # The variable is set, but is it from the command line or the environment? 5508 5509 # Try to remove the string !BASH! from our list. 5510 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5511 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5512 # If it failed, the variable was not from the command line. Ignore it, 5513 # but warn the user (except for BASH, which is always set by the calling BASH). 5514 if test "xBASH" != xBASH; then 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5516 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5517 fi 5518 # Try to locate tool using the code snippet 5519 for ac_prog in bash 5520 do 5521 # Extract the first word of "$ac_prog", so it can be a program name with args. 5522 set dummy $ac_prog; ac_word=$2 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5524 $as_echo_n "checking for $ac_word... " >&6; } 5525 if ${ac_cv_path_BASH+:} false; then : 5526 $as_echo_n "(cached) " >&6 5527 else 5528 case $BASH in 5529 [\\/]* | ?:[\\/]*) 5530 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5531 ;; 5532 *) 5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5534 for as_dir in $PATH 5535 do 5536 IFS=$as_save_IFS 5537 test -z "$as_dir" && as_dir=. 5538 for ac_exec_ext in '' $ac_executable_extensions; do 5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5540 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5542 break 2 5543 fi 5544 done 5545 done 5546 IFS=$as_save_IFS 5547 5548 ;; 5549 esac 5550 fi 5551 BASH=$ac_cv_path_BASH 5552 if test -n "$BASH"; then 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5554 $as_echo "$BASH" >&6; } 5555 else 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5557 $as_echo "no" >&6; } 5558 fi 5559 5560 5561 test -n "$BASH" && break 5562 done 5563 5564 else 5565 # If it succeeded, then it was overridden by the user. We will use it 5566 # for the tool. 5567 5568 # First remove it from the list of overridden variables, so we can test 5569 # for unknown variables in the end. 5570 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5571 5572 # Check if we try to supply an empty value 5573 if test "x$BASH" = x; then 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5575 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5577 $as_echo_n "checking for BASH... " >&6; } 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5579 $as_echo "disabled" >&6; } 5580 else 5581 # Check if the provided tool contains a complete path. 5582 tool_specified="$BASH" 5583 tool_basename="${tool_specified##*/}" 5584 if test "x$tool_basename" = "x$tool_specified"; then 5585 # A command without a complete path is provided, search $PATH. 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5587 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5588 # Extract the first word of "$tool_basename", so it can be a program name with args. 5589 set dummy $tool_basename; ac_word=$2 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5591 $as_echo_n "checking for $ac_word... " >&6; } 5592 if ${ac_cv_path_BASH+:} false; then : 5593 $as_echo_n "(cached) " >&6 5594 else 5595 case $BASH in 5596 [\\/]* | ?:[\\/]*) 5597 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5598 ;; 5599 *) 5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5601 for as_dir in $PATH 5602 do 5603 IFS=$as_save_IFS 5604 test -z "$as_dir" && as_dir=. 5605 for ac_exec_ext in '' $ac_executable_extensions; do 5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5607 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5609 break 2 5610 fi 5611 done 5612 done 5613 IFS=$as_save_IFS 5614 5615 ;; 5616 esac 5617 fi 5618 BASH=$ac_cv_path_BASH 5619 if test -n "$BASH"; then 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5621 $as_echo "$BASH" >&6; } 5622 else 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5624 $as_echo "no" >&6; } 5625 fi 5626 5627 5628 if test "x$BASH" = x; then 5629 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5630 fi 5631 else 5632 # Otherwise we believe it is a complete path. Use it as it is. 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5634 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5636 $as_echo_n "checking for BASH... " >&6; } 5637 if test ! -x "$tool_specified"; then 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5639 $as_echo "not found" >&6; } 5640 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5641 fi 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5643 $as_echo "$tool_specified" >&6; } 5644 fi 5645 fi 5646 fi 5647 5648 fi 5649 5650 5651 5652 if test "x$BASH" = x; then 5653 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5654 fi 5655 5656 5657 5658 5659 5660 # Publish this variable in the help. 5661 5662 5663 if [ -z "${CAT+x}" ]; then 5664 # The variable is not set by user, try to locate tool using the code snippet 5665 for ac_prog in cat 5666 do 5667 # Extract the first word of "$ac_prog", so it can be a program name with args. 5668 set dummy $ac_prog; ac_word=$2 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5670 $as_echo_n "checking for $ac_word... " >&6; } 5671 if ${ac_cv_path_CAT+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673 else 5674 case $CAT in 5675 [\\/]* | ?:[\\/]*) 5676 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5677 ;; 5678 *) 5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5680 for as_dir in $PATH 5681 do 5682 IFS=$as_save_IFS 5683 test -z "$as_dir" && as_dir=. 5684 for ac_exec_ext in '' $ac_executable_extensions; do 5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5686 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5688 break 2 5689 fi 5690 done 5691 done 5692 IFS=$as_save_IFS 5693 5694 ;; 5695 esac 5696 fi 5697 CAT=$ac_cv_path_CAT 5698 if test -n "$CAT"; then 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5700 $as_echo "$CAT" >&6; } 5701 else 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5703 $as_echo "no" >&6; } 5704 fi 5705 5706 5707 test -n "$CAT" && break 5708 done 5709 5710 else 5711 # The variable is set, but is it from the command line or the environment? 5712 5713 # Try to remove the string !CAT! from our list. 5714 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5715 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5716 # If it failed, the variable was not from the command line. Ignore it, 5717 # but warn the user (except for BASH, which is always set by the calling BASH). 5718 if test "xCAT" != xBASH; then 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5720 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5721 fi 5722 # Try to locate tool using the code snippet 5723 for ac_prog in cat 5724 do 5725 # Extract the first word of "$ac_prog", so it can be a program name with args. 5726 set dummy $ac_prog; ac_word=$2 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5728 $as_echo_n "checking for $ac_word... " >&6; } 5729 if ${ac_cv_path_CAT+:} false; then : 5730 $as_echo_n "(cached) " >&6 5731 else 5732 case $CAT in 5733 [\\/]* | ?:[\\/]*) 5734 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5735 ;; 5736 *) 5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5738 for as_dir in $PATH 5739 do 5740 IFS=$as_save_IFS 5741 test -z "$as_dir" && as_dir=. 5742 for ac_exec_ext in '' $ac_executable_extensions; do 5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5744 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5746 break 2 5747 fi 5748 done 5749 done 5750 IFS=$as_save_IFS 5751 5752 ;; 5753 esac 5754 fi 5755 CAT=$ac_cv_path_CAT 5756 if test -n "$CAT"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5758 $as_echo "$CAT" >&6; } 5759 else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761 $as_echo "no" >&6; } 5762 fi 5763 5764 5765 test -n "$CAT" && break 5766 done 5767 5768 else 5769 # If it succeeded, then it was overridden by the user. We will use it 5770 # for the tool. 5771 5772 # First remove it from the list of overridden variables, so we can test 5773 # for unknown variables in the end. 5774 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5775 5776 # Check if we try to supply an empty value 5777 if test "x$CAT" = x; then 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5779 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5781 $as_echo_n "checking for CAT... " >&6; } 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5783 $as_echo "disabled" >&6; } 5784 else 5785 # Check if the provided tool contains a complete path. 5786 tool_specified="$CAT" 5787 tool_basename="${tool_specified##*/}" 5788 if test "x$tool_basename" = "x$tool_specified"; then 5789 # A command without a complete path is provided, search $PATH. 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5791 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5792 # Extract the first word of "$tool_basename", so it can be a program name with args. 5793 set dummy $tool_basename; ac_word=$2 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5795 $as_echo_n "checking for $ac_word... " >&6; } 5796 if ${ac_cv_path_CAT+:} false; then : 5797 $as_echo_n "(cached) " >&6 5798 else 5799 case $CAT in 5800 [\\/]* | ?:[\\/]*) 5801 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5802 ;; 5803 *) 5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5805 for as_dir in $PATH 5806 do 5807 IFS=$as_save_IFS 5808 test -z "$as_dir" && as_dir=. 5809 for ac_exec_ext in '' $ac_executable_extensions; do 5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5811 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5813 break 2 5814 fi 5815 done 5816 done 5817 IFS=$as_save_IFS 5818 5819 ;; 5820 esac 5821 fi 5822 CAT=$ac_cv_path_CAT 5823 if test -n "$CAT"; then 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5825 $as_echo "$CAT" >&6; } 5826 else 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5828 $as_echo "no" >&6; } 5829 fi 5830 5831 5832 if test "x$CAT" = x; then 5833 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5834 fi 5835 else 5836 # Otherwise we believe it is a complete path. Use it as it is. 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5838 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5840 $as_echo_n "checking for CAT... " >&6; } 5841 if test ! -x "$tool_specified"; then 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5843 $as_echo "not found" >&6; } 5844 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5845 fi 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5847 $as_echo "$tool_specified" >&6; } 5848 fi 5849 fi 5850 fi 5851 5852 fi 5853 5854 5855 5856 if test "x$CAT" = x; then 5857 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5858 fi 5859 5860 5861 5862 5863 5864 # Publish this variable in the help. 5865 5866 5867 if [ -z "${CHMOD+x}" ]; then 5868 # The variable is not set by user, try to locate tool using the code snippet 5869 for ac_prog in chmod 5870 do 5871 # Extract the first word of "$ac_prog", so it can be a program name with args. 5872 set dummy $ac_prog; ac_word=$2 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5874 $as_echo_n "checking for $ac_word... " >&6; } 5875 if ${ac_cv_path_CHMOD+:} false; then : 5876 $as_echo_n "(cached) " >&6 5877 else 5878 case $CHMOD in 5879 [\\/]* | ?:[\\/]*) 5880 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5881 ;; 5882 *) 5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5884 for as_dir in $PATH 5885 do 5886 IFS=$as_save_IFS 5887 test -z "$as_dir" && as_dir=. 5888 for ac_exec_ext in '' $ac_executable_extensions; do 5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5890 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5892 break 2 5893 fi 5894 done 5895 done 5896 IFS=$as_save_IFS 5897 5898 ;; 5899 esac 5900 fi 5901 CHMOD=$ac_cv_path_CHMOD 5902 if test -n "$CHMOD"; then 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5904 $as_echo "$CHMOD" >&6; } 5905 else 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5907 $as_echo "no" >&6; } 5908 fi 5909 5910 5911 test -n "$CHMOD" && break 5912 done 5913 5914 else 5915 # The variable is set, but is it from the command line or the environment? 5916 5917 # Try to remove the string !CHMOD! from our list. 5918 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5919 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5920 # If it failed, the variable was not from the command line. Ignore it, 5921 # but warn the user (except for BASH, which is always set by the calling BASH). 5922 if test "xCHMOD" != xBASH; then 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5924 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5925 fi 5926 # Try to locate tool using the code snippet 5927 for ac_prog in chmod 5928 do 5929 # Extract the first word of "$ac_prog", so it can be a program name with args. 5930 set dummy $ac_prog; ac_word=$2 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5932 $as_echo_n "checking for $ac_word... " >&6; } 5933 if ${ac_cv_path_CHMOD+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935 else 5936 case $CHMOD in 5937 [\\/]* | ?:[\\/]*) 5938 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5939 ;; 5940 *) 5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5942 for as_dir in $PATH 5943 do 5944 IFS=$as_save_IFS 5945 test -z "$as_dir" && as_dir=. 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5948 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952 done 5953 done 5954 IFS=$as_save_IFS 5955 5956 ;; 5957 esac 5958 fi 5959 CHMOD=$ac_cv_path_CHMOD 5960 if test -n "$CHMOD"; then 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5962 $as_echo "$CHMOD" >&6; } 5963 else 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5965 $as_echo "no" >&6; } 5966 fi 5967 5968 5969 test -n "$CHMOD" && break 5970 done 5971 5972 else 5973 # If it succeeded, then it was overridden by the user. We will use it 5974 # for the tool. 5975 5976 # First remove it from the list of overridden variables, so we can test 5977 # for unknown variables in the end. 5978 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5979 5980 # Check if we try to supply an empty value 5981 if test "x$CHMOD" = x; then 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5983 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5985 $as_echo_n "checking for CHMOD... " >&6; } 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5987 $as_echo "disabled" >&6; } 5988 else 5989 # Check if the provided tool contains a complete path. 5990 tool_specified="$CHMOD" 5991 tool_basename="${tool_specified##*/}" 5992 if test "x$tool_basename" = "x$tool_specified"; then 5993 # A command without a complete path is provided, search $PATH. 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5995 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5996 # Extract the first word of "$tool_basename", so it can be a program name with args. 5997 set dummy $tool_basename; ac_word=$2 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5999 $as_echo_n "checking for $ac_word... " >&6; } 6000 if ${ac_cv_path_CHMOD+:} false; then : 6001 $as_echo_n "(cached) " >&6 6002 else 6003 case $CHMOD in 6004 [\\/]* | ?:[\\/]*) 6005 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 6006 ;; 6007 *) 6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6009 for as_dir in $PATH 6010 do 6011 IFS=$as_save_IFS 6012 test -z "$as_dir" && as_dir=. 6013 for ac_exec_ext in '' $ac_executable_extensions; do 6014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6015 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6017 break 2 6018 fi 6019 done 6020 done 6021 IFS=$as_save_IFS 6022 6023 ;; 6024 esac 6025 fi 6026 CHMOD=$ac_cv_path_CHMOD 6027 if test -n "$CHMOD"; then 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 6029 $as_echo "$CHMOD" >&6; } 6030 else 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6032 $as_echo "no" >&6; } 6033 fi 6034 6035 6036 if test "x$CHMOD" = x; then 6037 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6038 fi 6039 else 6040 # Otherwise we believe it is a complete path. Use it as it is. 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 6042 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 6044 $as_echo_n "checking for CHMOD... " >&6; } 6045 if test ! -x "$tool_specified"; then 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6047 $as_echo "not found" >&6; } 6048 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 6049 fi 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6051 $as_echo "$tool_specified" >&6; } 6052 fi 6053 fi 6054 fi 6055 6056 fi 6057 6058 6059 6060 if test "x$CHMOD" = x; then 6061 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 6062 fi 6063 6064 6065 6066 6067 6068 # Publish this variable in the help. 6069 6070 6071 if [ -z "${CMP+x}" ]; then 6072 # The variable is not set by user, try to locate tool using the code snippet 6073 for ac_prog in cmp 6074 do 6075 # Extract the first word of "$ac_prog", so it can be a program name with args. 6076 set dummy $ac_prog; ac_word=$2 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6078 $as_echo_n "checking for $ac_word... " >&6; } 6079 if ${ac_cv_path_CMP+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081 else 6082 case $CMP in 6083 [\\/]* | ?:[\\/]*) 6084 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6085 ;; 6086 *) 6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6088 for as_dir in $PATH 6089 do 6090 IFS=$as_save_IFS 6091 test -z "$as_dir" && as_dir=. 6092 for ac_exec_ext in '' $ac_executable_extensions; do 6093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6094 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6096 break 2 6097 fi 6098 done 6099 done 6100 IFS=$as_save_IFS 6101 6102 ;; 6103 esac 6104 fi 6105 CMP=$ac_cv_path_CMP 6106 if test -n "$CMP"; then 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6108 $as_echo "$CMP" >&6; } 6109 else 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6111 $as_echo "no" >&6; } 6112 fi 6113 6114 6115 test -n "$CMP" && break 6116 done 6117 6118 else 6119 # The variable is set, but is it from the command line or the environment? 6120 6121 # Try to remove the string !CMP! from our list. 6122 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6123 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6124 # If it failed, the variable was not from the command line. Ignore it, 6125 # but warn the user (except for BASH, which is always set by the calling BASH). 6126 if test "xCMP" != xBASH; then 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6128 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6129 fi 6130 # Try to locate tool using the code snippet 6131 for ac_prog in cmp 6132 do 6133 # Extract the first word of "$ac_prog", so it can be a program name with args. 6134 set dummy $ac_prog; ac_word=$2 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6136 $as_echo_n "checking for $ac_word... " >&6; } 6137 if ${ac_cv_path_CMP+:} false; then : 6138 $as_echo_n "(cached) " >&6 6139 else 6140 case $CMP in 6141 [\\/]* | ?:[\\/]*) 6142 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6143 ;; 6144 *) 6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6146 for as_dir in $PATH 6147 do 6148 IFS=$as_save_IFS 6149 test -z "$as_dir" && as_dir=. 6150 for ac_exec_ext in '' $ac_executable_extensions; do 6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6152 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6154 break 2 6155 fi 6156 done 6157 done 6158 IFS=$as_save_IFS 6159 6160 ;; 6161 esac 6162 fi 6163 CMP=$ac_cv_path_CMP 6164 if test -n "$CMP"; then 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6166 $as_echo "$CMP" >&6; } 6167 else 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6169 $as_echo "no" >&6; } 6170 fi 6171 6172 6173 test -n "$CMP" && break 6174 done 6175 6176 else 6177 # If it succeeded, then it was overridden by the user. We will use it 6178 # for the tool. 6179 6180 # First remove it from the list of overridden variables, so we can test 6181 # for unknown variables in the end. 6182 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6183 6184 # Check if we try to supply an empty value 6185 if test "x$CMP" = x; then 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6187 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6189 $as_echo_n "checking for CMP... " >&6; } 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6191 $as_echo "disabled" >&6; } 6192 else 6193 # Check if the provided tool contains a complete path. 6194 tool_specified="$CMP" 6195 tool_basename="${tool_specified##*/}" 6196 if test "x$tool_basename" = "x$tool_specified"; then 6197 # A command without a complete path is provided, search $PATH. 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6199 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6200 # Extract the first word of "$tool_basename", so it can be a program name with args. 6201 set dummy $tool_basename; ac_word=$2 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6203 $as_echo_n "checking for $ac_word... " >&6; } 6204 if ${ac_cv_path_CMP+:} false; then : 6205 $as_echo_n "(cached) " >&6 6206 else 6207 case $CMP in 6208 [\\/]* | ?:[\\/]*) 6209 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6210 ;; 6211 *) 6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6213 for as_dir in $PATH 6214 do 6215 IFS=$as_save_IFS 6216 test -z "$as_dir" && as_dir=. 6217 for ac_exec_ext in '' $ac_executable_extensions; do 6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6219 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6221 break 2 6222 fi 6223 done 6224 done 6225 IFS=$as_save_IFS 6226 6227 ;; 6228 esac 6229 fi 6230 CMP=$ac_cv_path_CMP 6231 if test -n "$CMP"; then 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6233 $as_echo "$CMP" >&6; } 6234 else 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6236 $as_echo "no" >&6; } 6237 fi 6238 6239 6240 if test "x$CMP" = x; then 6241 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6242 fi 6243 else 6244 # Otherwise we believe it is a complete path. Use it as it is. 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6246 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6248 $as_echo_n "checking for CMP... " >&6; } 6249 if test ! -x "$tool_specified"; then 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6251 $as_echo "not found" >&6; } 6252 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6253 fi 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6255 $as_echo "$tool_specified" >&6; } 6256 fi 6257 fi 6258 fi 6259 6260 fi 6261 6262 6263 6264 if test "x$CMP" = x; then 6265 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6266 fi 6267 6268 6269 6270 6271 6272 # Publish this variable in the help. 6273 6274 6275 if [ -z "${COMM+x}" ]; then 6276 # The variable is not set by user, try to locate tool using the code snippet 6277 for ac_prog in comm 6278 do 6279 # Extract the first word of "$ac_prog", so it can be a program name with args. 6280 set dummy $ac_prog; ac_word=$2 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6282 $as_echo_n "checking for $ac_word... " >&6; } 6283 if ${ac_cv_path_COMM+:} false; then : 6284 $as_echo_n "(cached) " >&6 6285 else 6286 case $COMM in 6287 [\\/]* | ?:[\\/]*) 6288 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6289 ;; 6290 *) 6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6292 for as_dir in $PATH 6293 do 6294 IFS=$as_save_IFS 6295 test -z "$as_dir" && as_dir=. 6296 for ac_exec_ext in '' $ac_executable_extensions; do 6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6298 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6300 break 2 6301 fi 6302 done 6303 done 6304 IFS=$as_save_IFS 6305 6306 ;; 6307 esac 6308 fi 6309 COMM=$ac_cv_path_COMM 6310 if test -n "$COMM"; then 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6312 $as_echo "$COMM" >&6; } 6313 else 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6315 $as_echo "no" >&6; } 6316 fi 6317 6318 6319 test -n "$COMM" && break 6320 done 6321 6322 else 6323 # The variable is set, but is it from the command line or the environment? 6324 6325 # Try to remove the string !COMM! from our list. 6326 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6327 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6328 # If it failed, the variable was not from the command line. Ignore it, 6329 # but warn the user (except for BASH, which is always set by the calling BASH). 6330 if test "xCOMM" != xBASH; then 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6332 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6333 fi 6334 # Try to locate tool using the code snippet 6335 for ac_prog in comm 6336 do 6337 # Extract the first word of "$ac_prog", so it can be a program name with args. 6338 set dummy $ac_prog; ac_word=$2 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340 $as_echo_n "checking for $ac_word... " >&6; } 6341 if ${ac_cv_path_COMM+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343 else 6344 case $COMM in 6345 [\\/]* | ?:[\\/]*) 6346 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6347 ;; 6348 *) 6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6350 for as_dir in $PATH 6351 do 6352 IFS=$as_save_IFS 6353 test -z "$as_dir" && as_dir=. 6354 for ac_exec_ext in '' $ac_executable_extensions; do 6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6356 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6358 break 2 6359 fi 6360 done 6361 done 6362 IFS=$as_save_IFS 6363 6364 ;; 6365 esac 6366 fi 6367 COMM=$ac_cv_path_COMM 6368 if test -n "$COMM"; then 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6370 $as_echo "$COMM" >&6; } 6371 else 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6373 $as_echo "no" >&6; } 6374 fi 6375 6376 6377 test -n "$COMM" && break 6378 done 6379 6380 else 6381 # If it succeeded, then it was overridden by the user. We will use it 6382 # for the tool. 6383 6384 # First remove it from the list of overridden variables, so we can test 6385 # for unknown variables in the end. 6386 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6387 6388 # Check if we try to supply an empty value 6389 if test "x$COMM" = x; then 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6391 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6393 $as_echo_n "checking for COMM... " >&6; } 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6395 $as_echo "disabled" >&6; } 6396 else 6397 # Check if the provided tool contains a complete path. 6398 tool_specified="$COMM" 6399 tool_basename="${tool_specified##*/}" 6400 if test "x$tool_basename" = "x$tool_specified"; then 6401 # A command without a complete path is provided, search $PATH. 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6403 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6404 # Extract the first word of "$tool_basename", so it can be a program name with args. 6405 set dummy $tool_basename; ac_word=$2 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6407 $as_echo_n "checking for $ac_word... " >&6; } 6408 if ${ac_cv_path_COMM+:} false; then : 6409 $as_echo_n "(cached) " >&6 6410 else 6411 case $COMM in 6412 [\\/]* | ?:[\\/]*) 6413 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6414 ;; 6415 *) 6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6417 for as_dir in $PATH 6418 do 6419 IFS=$as_save_IFS 6420 test -z "$as_dir" && as_dir=. 6421 for ac_exec_ext in '' $ac_executable_extensions; do 6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6423 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6425 break 2 6426 fi 6427 done 6428 done 6429 IFS=$as_save_IFS 6430 6431 ;; 6432 esac 6433 fi 6434 COMM=$ac_cv_path_COMM 6435 if test -n "$COMM"; then 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6437 $as_echo "$COMM" >&6; } 6438 else 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6440 $as_echo "no" >&6; } 6441 fi 6442 6443 6444 if test "x$COMM" = x; then 6445 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6446 fi 6447 else 6448 # Otherwise we believe it is a complete path. Use it as it is. 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6450 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6452 $as_echo_n "checking for COMM... " >&6; } 6453 if test ! -x "$tool_specified"; then 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6455 $as_echo "not found" >&6; } 6456 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6457 fi 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6459 $as_echo "$tool_specified" >&6; } 6460 fi 6461 fi 6462 fi 6463 6464 fi 6465 6466 6467 6468 if test "x$COMM" = x; then 6469 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6470 fi 6471 6472 6473 6474 6475 6476 # Publish this variable in the help. 6477 6478 6479 if [ -z "${CP+x}" ]; then 6480 # The variable is not set by user, try to locate tool using the code snippet 6481 for ac_prog in cp 6482 do 6483 # Extract the first word of "$ac_prog", so it can be a program name with args. 6484 set dummy $ac_prog; ac_word=$2 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6486 $as_echo_n "checking for $ac_word... " >&6; } 6487 if ${ac_cv_path_CP+:} false; then : 6488 $as_echo_n "(cached) " >&6 6489 else 6490 case $CP in 6491 [\\/]* | ?:[\\/]*) 6492 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6493 ;; 6494 *) 6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6496 for as_dir in $PATH 6497 do 6498 IFS=$as_save_IFS 6499 test -z "$as_dir" && as_dir=. 6500 for ac_exec_ext in '' $ac_executable_extensions; do 6501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6502 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6504 break 2 6505 fi 6506 done 6507 done 6508 IFS=$as_save_IFS 6509 6510 ;; 6511 esac 6512 fi 6513 CP=$ac_cv_path_CP 6514 if test -n "$CP"; then 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6516 $as_echo "$CP" >&6; } 6517 else 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6519 $as_echo "no" >&6; } 6520 fi 6521 6522 6523 test -n "$CP" && break 6524 done 6525 6526 else 6527 # The variable is set, but is it from the command line or the environment? 6528 6529 # Try to remove the string !CP! from our list. 6530 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6531 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6532 # If it failed, the variable was not from the command line. Ignore it, 6533 # but warn the user (except for BASH, which is always set by the calling BASH). 6534 if test "xCP" != xBASH; then 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6536 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6537 fi 6538 # Try to locate tool using the code snippet 6539 for ac_prog in cp 6540 do 6541 # Extract the first word of "$ac_prog", so it can be a program name with args. 6542 set dummy $ac_prog; ac_word=$2 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6544 $as_echo_n "checking for $ac_word... " >&6; } 6545 if ${ac_cv_path_CP+:} false; then : 6546 $as_echo_n "(cached) " >&6 6547 else 6548 case $CP in 6549 [\\/]* | ?:[\\/]*) 6550 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6551 ;; 6552 *) 6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6554 for as_dir in $PATH 6555 do 6556 IFS=$as_save_IFS 6557 test -z "$as_dir" && as_dir=. 6558 for ac_exec_ext in '' $ac_executable_extensions; do 6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6560 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6562 break 2 6563 fi 6564 done 6565 done 6566 IFS=$as_save_IFS 6567 6568 ;; 6569 esac 6570 fi 6571 CP=$ac_cv_path_CP 6572 if test -n "$CP"; then 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6574 $as_echo "$CP" >&6; } 6575 else 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6577 $as_echo "no" >&6; } 6578 fi 6579 6580 6581 test -n "$CP" && break 6582 done 6583 6584 else 6585 # If it succeeded, then it was overridden by the user. We will use it 6586 # for the tool. 6587 6588 # First remove it from the list of overridden variables, so we can test 6589 # for unknown variables in the end. 6590 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6591 6592 # Check if we try to supply an empty value 6593 if test "x$CP" = x; then 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6595 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6597 $as_echo_n "checking for CP... " >&6; } 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6599 $as_echo "disabled" >&6; } 6600 else 6601 # Check if the provided tool contains a complete path. 6602 tool_specified="$CP" 6603 tool_basename="${tool_specified##*/}" 6604 if test "x$tool_basename" = "x$tool_specified"; then 6605 # A command without a complete path is provided, search $PATH. 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6607 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6608 # Extract the first word of "$tool_basename", so it can be a program name with args. 6609 set dummy $tool_basename; ac_word=$2 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6611 $as_echo_n "checking for $ac_word... " >&6; } 6612 if ${ac_cv_path_CP+:} false; then : 6613 $as_echo_n "(cached) " >&6 6614 else 6615 case $CP in 6616 [\\/]* | ?:[\\/]*) 6617 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6618 ;; 6619 *) 6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621 for as_dir in $PATH 6622 do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6627 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631 done 6632 done 6633 IFS=$as_save_IFS 6634 6635 ;; 6636 esac 6637 fi 6638 CP=$ac_cv_path_CP 6639 if test -n "$CP"; then 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6641 $as_echo "$CP" >&6; } 6642 else 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6644 $as_echo "no" >&6; } 6645 fi 6646 6647 6648 if test "x$CP" = x; then 6649 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6650 fi 6651 else 6652 # Otherwise we believe it is a complete path. Use it as it is. 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6654 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6656 $as_echo_n "checking for CP... " >&6; } 6657 if test ! -x "$tool_specified"; then 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6659 $as_echo "not found" >&6; } 6660 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6661 fi 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6663 $as_echo "$tool_specified" >&6; } 6664 fi 6665 fi 6666 fi 6667 6668 fi 6669 6670 6671 6672 if test "x$CP" = x; then 6673 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6674 fi 6675 6676 6677 6678 6679 6680 # Publish this variable in the help. 6681 6682 6683 if [ -z "${CUT+x}" ]; then 6684 # The variable is not set by user, try to locate tool using the code snippet 6685 for ac_prog in cut 6686 do 6687 # Extract the first word of "$ac_prog", so it can be a program name with args. 6688 set dummy $ac_prog; ac_word=$2 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6690 $as_echo_n "checking for $ac_word... " >&6; } 6691 if ${ac_cv_path_CUT+:} false; then : 6692 $as_echo_n "(cached) " >&6 6693 else 6694 case $CUT in 6695 [\\/]* | ?:[\\/]*) 6696 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6697 ;; 6698 *) 6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6700 for as_dir in $PATH 6701 do 6702 IFS=$as_save_IFS 6703 test -z "$as_dir" && as_dir=. 6704 for ac_exec_ext in '' $ac_executable_extensions; do 6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6706 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6708 break 2 6709 fi 6710 done 6711 done 6712 IFS=$as_save_IFS 6713 6714 ;; 6715 esac 6716 fi 6717 CUT=$ac_cv_path_CUT 6718 if test -n "$CUT"; then 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6720 $as_echo "$CUT" >&6; } 6721 else 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6723 $as_echo "no" >&6; } 6724 fi 6725 6726 6727 test -n "$CUT" && break 6728 done 6729 6730 else 6731 # The variable is set, but is it from the command line or the environment? 6732 6733 # Try to remove the string !CUT! from our list. 6734 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6735 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6736 # If it failed, the variable was not from the command line. Ignore it, 6737 # but warn the user (except for BASH, which is always set by the calling BASH). 6738 if test "xCUT" != xBASH; then 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6740 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6741 fi 6742 # Try to locate tool using the code snippet 6743 for ac_prog in cut 6744 do 6745 # Extract the first word of "$ac_prog", so it can be a program name with args. 6746 set dummy $ac_prog; ac_word=$2 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748 $as_echo_n "checking for $ac_word... " >&6; } 6749 if ${ac_cv_path_CUT+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751 else 6752 case $CUT in 6753 [\\/]* | ?:[\\/]*) 6754 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6755 ;; 6756 *) 6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6758 for as_dir in $PATH 6759 do 6760 IFS=$as_save_IFS 6761 test -z "$as_dir" && as_dir=. 6762 for ac_exec_ext in '' $ac_executable_extensions; do 6763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6764 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6766 break 2 6767 fi 6768 done 6769 done 6770 IFS=$as_save_IFS 6771 6772 ;; 6773 esac 6774 fi 6775 CUT=$ac_cv_path_CUT 6776 if test -n "$CUT"; then 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6778 $as_echo "$CUT" >&6; } 6779 else 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781 $as_echo "no" >&6; } 6782 fi 6783 6784 6785 test -n "$CUT" && break 6786 done 6787 6788 else 6789 # If it succeeded, then it was overridden by the user. We will use it 6790 # for the tool. 6791 6792 # First remove it from the list of overridden variables, so we can test 6793 # for unknown variables in the end. 6794 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6795 6796 # Check if we try to supply an empty value 6797 if test "x$CUT" = x; then 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6799 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6801 $as_echo_n "checking for CUT... " >&6; } 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6803 $as_echo "disabled" >&6; } 6804 else 6805 # Check if the provided tool contains a complete path. 6806 tool_specified="$CUT" 6807 tool_basename="${tool_specified##*/}" 6808 if test "x$tool_basename" = "x$tool_specified"; then 6809 # A command without a complete path is provided, search $PATH. 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6811 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6812 # Extract the first word of "$tool_basename", so it can be a program name with args. 6813 set dummy $tool_basename; ac_word=$2 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6815 $as_echo_n "checking for $ac_word... " >&6; } 6816 if ${ac_cv_path_CUT+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818 else 6819 case $CUT in 6820 [\\/]* | ?:[\\/]*) 6821 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6822 ;; 6823 *) 6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825 for as_dir in $PATH 6826 do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6831 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835 done 6836 done 6837 IFS=$as_save_IFS 6838 6839 ;; 6840 esac 6841 fi 6842 CUT=$ac_cv_path_CUT 6843 if test -n "$CUT"; then 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6845 $as_echo "$CUT" >&6; } 6846 else 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848 $as_echo "no" >&6; } 6849 fi 6850 6851 6852 if test "x$CUT" = x; then 6853 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6854 fi 6855 else 6856 # Otherwise we believe it is a complete path. Use it as it is. 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6858 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6860 $as_echo_n "checking for CUT... " >&6; } 6861 if test ! -x "$tool_specified"; then 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6863 $as_echo "not found" >&6; } 6864 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6865 fi 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6867 $as_echo "$tool_specified" >&6; } 6868 fi 6869 fi 6870 fi 6871 6872 fi 6873 6874 6875 6876 if test "x$CUT" = x; then 6877 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6878 fi 6879 6880 6881 6882 6883 6884 # Publish this variable in the help. 6885 6886 6887 if [ -z "${DATE+x}" ]; then 6888 # The variable is not set by user, try to locate tool using the code snippet 6889 for ac_prog in date 6890 do 6891 # Extract the first word of "$ac_prog", so it can be a program name with args. 6892 set dummy $ac_prog; ac_word=$2 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6894 $as_echo_n "checking for $ac_word... " >&6; } 6895 if ${ac_cv_path_DATE+:} false; then : 6896 $as_echo_n "(cached) " >&6 6897 else 6898 case $DATE in 6899 [\\/]* | ?:[\\/]*) 6900 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6901 ;; 6902 *) 6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6904 for as_dir in $PATH 6905 do 6906 IFS=$as_save_IFS 6907 test -z "$as_dir" && as_dir=. 6908 for ac_exec_ext in '' $ac_executable_extensions; do 6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6910 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6912 break 2 6913 fi 6914 done 6915 done 6916 IFS=$as_save_IFS 6917 6918 ;; 6919 esac 6920 fi 6921 DATE=$ac_cv_path_DATE 6922 if test -n "$DATE"; then 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6924 $as_echo "$DATE" >&6; } 6925 else 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6927 $as_echo "no" >&6; } 6928 fi 6929 6930 6931 test -n "$DATE" && break 6932 done 6933 6934 else 6935 # The variable is set, but is it from the command line or the environment? 6936 6937 # Try to remove the string !DATE! from our list. 6938 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6939 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6940 # If it failed, the variable was not from the command line. Ignore it, 6941 # but warn the user (except for BASH, which is always set by the calling BASH). 6942 if test "xDATE" != xBASH; then 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6944 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6945 fi 6946 # Try to locate tool using the code snippet 6947 for ac_prog in date 6948 do 6949 # Extract the first word of "$ac_prog", so it can be a program name with args. 6950 set dummy $ac_prog; ac_word=$2 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6952 $as_echo_n "checking for $ac_word... " >&6; } 6953 if ${ac_cv_path_DATE+:} false; then : 6954 $as_echo_n "(cached) " >&6 6955 else 6956 case $DATE in 6957 [\\/]* | ?:[\\/]*) 6958 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6959 ;; 6960 *) 6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6962 for as_dir in $PATH 6963 do 6964 IFS=$as_save_IFS 6965 test -z "$as_dir" && as_dir=. 6966 for ac_exec_ext in '' $ac_executable_extensions; do 6967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6968 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6970 break 2 6971 fi 6972 done 6973 done 6974 IFS=$as_save_IFS 6975 6976 ;; 6977 esac 6978 fi 6979 DATE=$ac_cv_path_DATE 6980 if test -n "$DATE"; then 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6982 $as_echo "$DATE" >&6; } 6983 else 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6985 $as_echo "no" >&6; } 6986 fi 6987 6988 6989 test -n "$DATE" && break 6990 done 6991 6992 else 6993 # If it succeeded, then it was overridden by the user. We will use it 6994 # for the tool. 6995 6996 # First remove it from the list of overridden variables, so we can test 6997 # for unknown variables in the end. 6998 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6999 7000 # Check if we try to supply an empty value 7001 if test "x$DATE" = x; then 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 7003 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7005 $as_echo_n "checking for DATE... " >&6; } 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7007 $as_echo "disabled" >&6; } 7008 else 7009 # Check if the provided tool contains a complete path. 7010 tool_specified="$DATE" 7011 tool_basename="${tool_specified##*/}" 7012 if test "x$tool_basename" = "x$tool_specified"; then 7013 # A command without a complete path is provided, search $PATH. 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 7015 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 7016 # Extract the first word of "$tool_basename", so it can be a program name with args. 7017 set dummy $tool_basename; ac_word=$2 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7019 $as_echo_n "checking for $ac_word... " >&6; } 7020 if ${ac_cv_path_DATE+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022 else 7023 case $DATE in 7024 [\\/]* | ?:[\\/]*) 7025 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 7026 ;; 7027 *) 7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7029 for as_dir in $PATH 7030 do 7031 IFS=$as_save_IFS 7032 test -z "$as_dir" && as_dir=. 7033 for ac_exec_ext in '' $ac_executable_extensions; do 7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7035 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7037 break 2 7038 fi 7039 done 7040 done 7041 IFS=$as_save_IFS 7042 7043 ;; 7044 esac 7045 fi 7046 DATE=$ac_cv_path_DATE 7047 if test -n "$DATE"; then 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 7049 $as_echo "$DATE" >&6; } 7050 else 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7052 $as_echo "no" >&6; } 7053 fi 7054 7055 7056 if test "x$DATE" = x; then 7057 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7058 fi 7059 else 7060 # Otherwise we believe it is a complete path. Use it as it is. 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 7062 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7064 $as_echo_n "checking for DATE... " >&6; } 7065 if test ! -x "$tool_specified"; then 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7067 $as_echo "not found" >&6; } 7068 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 7069 fi 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7071 $as_echo "$tool_specified" >&6; } 7072 fi 7073 fi 7074 fi 7075 7076 fi 7077 7078 7079 7080 if test "x$DATE" = x; then 7081 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 7082 fi 7083 7084 7085 7086 7087 7088 # Publish this variable in the help. 7089 7090 7091 if [ -z "${DIFF+x}" ]; then 7092 # The variable is not set by user, try to locate tool using the code snippet 7093 for ac_prog in gdiff diff 7094 do 7095 # Extract the first word of "$ac_prog", so it can be a program name with args. 7096 set dummy $ac_prog; ac_word=$2 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7098 $as_echo_n "checking for $ac_word... " >&6; } 7099 if ${ac_cv_path_DIFF+:} false; then : 7100 $as_echo_n "(cached) " >&6 7101 else 7102 case $DIFF in 7103 [\\/]* | ?:[\\/]*) 7104 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7105 ;; 7106 *) 7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7108 for as_dir in $PATH 7109 do 7110 IFS=$as_save_IFS 7111 test -z "$as_dir" && as_dir=. 7112 for ac_exec_ext in '' $ac_executable_extensions; do 7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7114 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7116 break 2 7117 fi 7118 done 7119 done 7120 IFS=$as_save_IFS 7121 7122 ;; 7123 esac 7124 fi 7125 DIFF=$ac_cv_path_DIFF 7126 if test -n "$DIFF"; then 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7128 $as_echo "$DIFF" >&6; } 7129 else 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7131 $as_echo "no" >&6; } 7132 fi 7133 7134 7135 test -n "$DIFF" && break 7136 done 7137 7138 else 7139 # The variable is set, but is it from the command line or the environment? 7140 7141 # Try to remove the string !DIFF! from our list. 7142 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7143 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7144 # If it failed, the variable was not from the command line. Ignore it, 7145 # but warn the user (except for BASH, which is always set by the calling BASH). 7146 if test "xDIFF" != xBASH; then 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7148 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7149 fi 7150 # Try to locate tool using the code snippet 7151 for ac_prog in gdiff diff 7152 do 7153 # Extract the first word of "$ac_prog", so it can be a program name with args. 7154 set dummy $ac_prog; ac_word=$2 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7156 $as_echo_n "checking for $ac_word... " >&6; } 7157 if ${ac_cv_path_DIFF+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159 else 7160 case $DIFF in 7161 [\\/]* | ?:[\\/]*) 7162 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7163 ;; 7164 *) 7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7166 for as_dir in $PATH 7167 do 7168 IFS=$as_save_IFS 7169 test -z "$as_dir" && as_dir=. 7170 for ac_exec_ext in '' $ac_executable_extensions; do 7171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7172 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7174 break 2 7175 fi 7176 done 7177 done 7178 IFS=$as_save_IFS 7179 7180 ;; 7181 esac 7182 fi 7183 DIFF=$ac_cv_path_DIFF 7184 if test -n "$DIFF"; then 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7186 $as_echo "$DIFF" >&6; } 7187 else 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7189 $as_echo "no" >&6; } 7190 fi 7191 7192 7193 test -n "$DIFF" && break 7194 done 7195 7196 else 7197 # If it succeeded, then it was overridden by the user. We will use it 7198 # for the tool. 7199 7200 # First remove it from the list of overridden variables, so we can test 7201 # for unknown variables in the end. 7202 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7203 7204 # Check if we try to supply an empty value 7205 if test "x$DIFF" = x; then 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7207 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7209 $as_echo_n "checking for DIFF... " >&6; } 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7211 $as_echo "disabled" >&6; } 7212 else 7213 # Check if the provided tool contains a complete path. 7214 tool_specified="$DIFF" 7215 tool_basename="${tool_specified##*/}" 7216 if test "x$tool_basename" = "x$tool_specified"; then 7217 # A command without a complete path is provided, search $PATH. 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7219 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7220 # Extract the first word of "$tool_basename", so it can be a program name with args. 7221 set dummy $tool_basename; ac_word=$2 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7223 $as_echo_n "checking for $ac_word... " >&6; } 7224 if ${ac_cv_path_DIFF+:} false; then : 7225 $as_echo_n "(cached) " >&6 7226 else 7227 case $DIFF in 7228 [\\/]* | ?:[\\/]*) 7229 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7230 ;; 7231 *) 7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7233 for as_dir in $PATH 7234 do 7235 IFS=$as_save_IFS 7236 test -z "$as_dir" && as_dir=. 7237 for ac_exec_ext in '' $ac_executable_extensions; do 7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7239 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7241 break 2 7242 fi 7243 done 7244 done 7245 IFS=$as_save_IFS 7246 7247 ;; 7248 esac 7249 fi 7250 DIFF=$ac_cv_path_DIFF 7251 if test -n "$DIFF"; then 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7253 $as_echo "$DIFF" >&6; } 7254 else 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7256 $as_echo "no" >&6; } 7257 fi 7258 7259 7260 if test "x$DIFF" = x; then 7261 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7262 fi 7263 else 7264 # Otherwise we believe it is a complete path. Use it as it is. 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7266 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7268 $as_echo_n "checking for DIFF... " >&6; } 7269 if test ! -x "$tool_specified"; then 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7271 $as_echo "not found" >&6; } 7272 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7273 fi 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7275 $as_echo "$tool_specified" >&6; } 7276 fi 7277 fi 7278 fi 7279 7280 fi 7281 7282 7283 7284 if test "x$DIFF" = x; then 7285 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7286 fi 7287 7288 7289 7290 7291 7292 # Publish this variable in the help. 7293 7294 7295 if [ -z "${DIRNAME+x}" ]; then 7296 # The variable is not set by user, try to locate tool using the code snippet 7297 for ac_prog in dirname 7298 do 7299 # Extract the first word of "$ac_prog", so it can be a program name with args. 7300 set dummy $ac_prog; ac_word=$2 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7302 $as_echo_n "checking for $ac_word... " >&6; } 7303 if ${ac_cv_path_DIRNAME+:} false; then : 7304 $as_echo_n "(cached) " >&6 7305 else 7306 case $DIRNAME in 7307 [\\/]* | ?:[\\/]*) 7308 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7309 ;; 7310 *) 7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7312 for as_dir in $PATH 7313 do 7314 IFS=$as_save_IFS 7315 test -z "$as_dir" && as_dir=. 7316 for ac_exec_ext in '' $ac_executable_extensions; do 7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7318 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7320 break 2 7321 fi 7322 done 7323 done 7324 IFS=$as_save_IFS 7325 7326 ;; 7327 esac 7328 fi 7329 DIRNAME=$ac_cv_path_DIRNAME 7330 if test -n "$DIRNAME"; then 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7332 $as_echo "$DIRNAME" >&6; } 7333 else 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7335 $as_echo "no" >&6; } 7336 fi 7337 7338 7339 test -n "$DIRNAME" && break 7340 done 7341 7342 else 7343 # The variable is set, but is it from the command line or the environment? 7344 7345 # Try to remove the string !DIRNAME! from our list. 7346 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7347 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7348 # If it failed, the variable was not from the command line. Ignore it, 7349 # but warn the user (except for BASH, which is always set by the calling BASH). 7350 if test "xDIRNAME" != xBASH; then 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7352 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7353 fi 7354 # Try to locate tool using the code snippet 7355 for ac_prog in dirname 7356 do 7357 # Extract the first word of "$ac_prog", so it can be a program name with args. 7358 set dummy $ac_prog; ac_word=$2 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7360 $as_echo_n "checking for $ac_word... " >&6; } 7361 if ${ac_cv_path_DIRNAME+:} false; then : 7362 $as_echo_n "(cached) " >&6 7363 else 7364 case $DIRNAME in 7365 [\\/]* | ?:[\\/]*) 7366 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7367 ;; 7368 *) 7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7370 for as_dir in $PATH 7371 do 7372 IFS=$as_save_IFS 7373 test -z "$as_dir" && as_dir=. 7374 for ac_exec_ext in '' $ac_executable_extensions; do 7375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7376 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7378 break 2 7379 fi 7380 done 7381 done 7382 IFS=$as_save_IFS 7383 7384 ;; 7385 esac 7386 fi 7387 DIRNAME=$ac_cv_path_DIRNAME 7388 if test -n "$DIRNAME"; then 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7390 $as_echo "$DIRNAME" >&6; } 7391 else 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7393 $as_echo "no" >&6; } 7394 fi 7395 7396 7397 test -n "$DIRNAME" && break 7398 done 7399 7400 else 7401 # If it succeeded, then it was overridden by the user. We will use it 7402 # for the tool. 7403 7404 # First remove it from the list of overridden variables, so we can test 7405 # for unknown variables in the end. 7406 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7407 7408 # Check if we try to supply an empty value 7409 if test "x$DIRNAME" = x; then 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7411 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7413 $as_echo_n "checking for DIRNAME... " >&6; } 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7415 $as_echo "disabled" >&6; } 7416 else 7417 # Check if the provided tool contains a complete path. 7418 tool_specified="$DIRNAME" 7419 tool_basename="${tool_specified##*/}" 7420 if test "x$tool_basename" = "x$tool_specified"; then 7421 # A command without a complete path is provided, search $PATH. 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7423 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7424 # Extract the first word of "$tool_basename", so it can be a program name with args. 7425 set dummy $tool_basename; ac_word=$2 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7427 $as_echo_n "checking for $ac_word... " >&6; } 7428 if ${ac_cv_path_DIRNAME+:} false; then : 7429 $as_echo_n "(cached) " >&6 7430 else 7431 case $DIRNAME in 7432 [\\/]* | ?:[\\/]*) 7433 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7434 ;; 7435 *) 7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7437 for as_dir in $PATH 7438 do 7439 IFS=$as_save_IFS 7440 test -z "$as_dir" && as_dir=. 7441 for ac_exec_ext in '' $ac_executable_extensions; do 7442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7443 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7445 break 2 7446 fi 7447 done 7448 done 7449 IFS=$as_save_IFS 7450 7451 ;; 7452 esac 7453 fi 7454 DIRNAME=$ac_cv_path_DIRNAME 7455 if test -n "$DIRNAME"; then 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7457 $as_echo "$DIRNAME" >&6; } 7458 else 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7460 $as_echo "no" >&6; } 7461 fi 7462 7463 7464 if test "x$DIRNAME" = x; then 7465 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7466 fi 7467 else 7468 # Otherwise we believe it is a complete path. Use it as it is. 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7470 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7472 $as_echo_n "checking for DIRNAME... " >&6; } 7473 if test ! -x "$tool_specified"; then 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7475 $as_echo "not found" >&6; } 7476 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7477 fi 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7479 $as_echo "$tool_specified" >&6; } 7480 fi 7481 fi 7482 fi 7483 7484 fi 7485 7486 7487 7488 if test "x$DIRNAME" = x; then 7489 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7490 fi 7491 7492 7493 7494 7495 7496 # Publish this variable in the help. 7497 7498 7499 if [ -z "${ECHO+x}" ]; then 7500 # The variable is not set by user, try to locate tool using the code snippet 7501 for ac_prog in echo 7502 do 7503 # Extract the first word of "$ac_prog", so it can be a program name with args. 7504 set dummy $ac_prog; ac_word=$2 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7506 $as_echo_n "checking for $ac_word... " >&6; } 7507 if ${ac_cv_path_ECHO+:} false; then : 7508 $as_echo_n "(cached) " >&6 7509 else 7510 case $ECHO in 7511 [\\/]* | ?:[\\/]*) 7512 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7513 ;; 7514 *) 7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7516 for as_dir in $PATH 7517 do 7518 IFS=$as_save_IFS 7519 test -z "$as_dir" && as_dir=. 7520 for ac_exec_ext in '' $ac_executable_extensions; do 7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7522 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7524 break 2 7525 fi 7526 done 7527 done 7528 IFS=$as_save_IFS 7529 7530 ;; 7531 esac 7532 fi 7533 ECHO=$ac_cv_path_ECHO 7534 if test -n "$ECHO"; then 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7536 $as_echo "$ECHO" >&6; } 7537 else 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7539 $as_echo "no" >&6; } 7540 fi 7541 7542 7543 test -n "$ECHO" && break 7544 done 7545 7546 else 7547 # The variable is set, but is it from the command line or the environment? 7548 7549 # Try to remove the string !ECHO! from our list. 7550 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7551 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7552 # If it failed, the variable was not from the command line. Ignore it, 7553 # but warn the user (except for BASH, which is always set by the calling BASH). 7554 if test "xECHO" != xBASH; then 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7556 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7557 fi 7558 # Try to locate tool using the code snippet 7559 for ac_prog in echo 7560 do 7561 # Extract the first word of "$ac_prog", so it can be a program name with args. 7562 set dummy $ac_prog; ac_word=$2 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7564 $as_echo_n "checking for $ac_word... " >&6; } 7565 if ${ac_cv_path_ECHO+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567 else 7568 case $ECHO in 7569 [\\/]* | ?:[\\/]*) 7570 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7571 ;; 7572 *) 7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7574 for as_dir in $PATH 7575 do 7576 IFS=$as_save_IFS 7577 test -z "$as_dir" && as_dir=. 7578 for ac_exec_ext in '' $ac_executable_extensions; do 7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7580 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7582 break 2 7583 fi 7584 done 7585 done 7586 IFS=$as_save_IFS 7587 7588 ;; 7589 esac 7590 fi 7591 ECHO=$ac_cv_path_ECHO 7592 if test -n "$ECHO"; then 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7594 $as_echo "$ECHO" >&6; } 7595 else 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7597 $as_echo "no" >&6; } 7598 fi 7599 7600 7601 test -n "$ECHO" && break 7602 done 7603 7604 else 7605 # If it succeeded, then it was overridden by the user. We will use it 7606 # for the tool. 7607 7608 # First remove it from the list of overridden variables, so we can test 7609 # for unknown variables in the end. 7610 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7611 7612 # Check if we try to supply an empty value 7613 if test "x$ECHO" = x; then 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7615 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7617 $as_echo_n "checking for ECHO... " >&6; } 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7619 $as_echo "disabled" >&6; } 7620 else 7621 # Check if the provided tool contains a complete path. 7622 tool_specified="$ECHO" 7623 tool_basename="${tool_specified##*/}" 7624 if test "x$tool_basename" = "x$tool_specified"; then 7625 # A command without a complete path is provided, search $PATH. 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7627 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7628 # Extract the first word of "$tool_basename", so it can be a program name with args. 7629 set dummy $tool_basename; ac_word=$2 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7631 $as_echo_n "checking for $ac_word... " >&6; } 7632 if ${ac_cv_path_ECHO+:} false; then : 7633 $as_echo_n "(cached) " >&6 7634 else 7635 case $ECHO in 7636 [\\/]* | ?:[\\/]*) 7637 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7638 ;; 7639 *) 7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7641 for as_dir in $PATH 7642 do 7643 IFS=$as_save_IFS 7644 test -z "$as_dir" && as_dir=. 7645 for ac_exec_ext in '' $ac_executable_extensions; do 7646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7647 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7649 break 2 7650 fi 7651 done 7652 done 7653 IFS=$as_save_IFS 7654 7655 ;; 7656 esac 7657 fi 7658 ECHO=$ac_cv_path_ECHO 7659 if test -n "$ECHO"; then 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7661 $as_echo "$ECHO" >&6; } 7662 else 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7664 $as_echo "no" >&6; } 7665 fi 7666 7667 7668 if test "x$ECHO" = x; then 7669 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7670 fi 7671 else 7672 # Otherwise we believe it is a complete path. Use it as it is. 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7674 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7676 $as_echo_n "checking for ECHO... " >&6; } 7677 if test ! -x "$tool_specified"; then 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7679 $as_echo "not found" >&6; } 7680 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7681 fi 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7683 $as_echo "$tool_specified" >&6; } 7684 fi 7685 fi 7686 fi 7687 7688 fi 7689 7690 7691 7692 if test "x$ECHO" = x; then 7693 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7694 fi 7695 7696 7697 7698 7699 7700 # Publish this variable in the help. 7701 7702 7703 if [ -z "${EXPR+x}" ]; then 7704 # The variable is not set by user, try to locate tool using the code snippet 7705 for ac_prog in expr 7706 do 7707 # Extract the first word of "$ac_prog", so it can be a program name with args. 7708 set dummy $ac_prog; ac_word=$2 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7710 $as_echo_n "checking for $ac_word... " >&6; } 7711 if ${ac_cv_path_EXPR+:} false; then : 7712 $as_echo_n "(cached) " >&6 7713 else 7714 case $EXPR in 7715 [\\/]* | ?:[\\/]*) 7716 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7717 ;; 7718 *) 7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7720 for as_dir in $PATH 7721 do 7722 IFS=$as_save_IFS 7723 test -z "$as_dir" && as_dir=. 7724 for ac_exec_ext in '' $ac_executable_extensions; do 7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7726 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7728 break 2 7729 fi 7730 done 7731 done 7732 IFS=$as_save_IFS 7733 7734 ;; 7735 esac 7736 fi 7737 EXPR=$ac_cv_path_EXPR 7738 if test -n "$EXPR"; then 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7740 $as_echo "$EXPR" >&6; } 7741 else 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7743 $as_echo "no" >&6; } 7744 fi 7745 7746 7747 test -n "$EXPR" && break 7748 done 7749 7750 else 7751 # The variable is set, but is it from the command line or the environment? 7752 7753 # Try to remove the string !EXPR! from our list. 7754 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7755 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7756 # If it failed, the variable was not from the command line. Ignore it, 7757 # but warn the user (except for BASH, which is always set by the calling BASH). 7758 if test "xEXPR" != xBASH; then 7759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7760 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7761 fi 7762 # Try to locate tool using the code snippet 7763 for ac_prog in expr 7764 do 7765 # Extract the first word of "$ac_prog", so it can be a program name with args. 7766 set dummy $ac_prog; ac_word=$2 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7768 $as_echo_n "checking for $ac_word... " >&6; } 7769 if ${ac_cv_path_EXPR+:} false; then : 7770 $as_echo_n "(cached) " >&6 7771 else 7772 case $EXPR in 7773 [\\/]* | ?:[\\/]*) 7774 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7775 ;; 7776 *) 7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7778 for as_dir in $PATH 7779 do 7780 IFS=$as_save_IFS 7781 test -z "$as_dir" && as_dir=. 7782 for ac_exec_ext in '' $ac_executable_extensions; do 7783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7784 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7786 break 2 7787 fi 7788 done 7789 done 7790 IFS=$as_save_IFS 7791 7792 ;; 7793 esac 7794 fi 7795 EXPR=$ac_cv_path_EXPR 7796 if test -n "$EXPR"; then 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7798 $as_echo "$EXPR" >&6; } 7799 else 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7801 $as_echo "no" >&6; } 7802 fi 7803 7804 7805 test -n "$EXPR" && break 7806 done 7807 7808 else 7809 # If it succeeded, then it was overridden by the user. We will use it 7810 # for the tool. 7811 7812 # First remove it from the list of overridden variables, so we can test 7813 # for unknown variables in the end. 7814 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7815 7816 # Check if we try to supply an empty value 7817 if test "x$EXPR" = x; then 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7819 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7821 $as_echo_n "checking for EXPR... " >&6; } 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7823 $as_echo "disabled" >&6; } 7824 else 7825 # Check if the provided tool contains a complete path. 7826 tool_specified="$EXPR" 7827 tool_basename="${tool_specified##*/}" 7828 if test "x$tool_basename" = "x$tool_specified"; then 7829 # A command without a complete path is provided, search $PATH. 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7831 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7832 # Extract the first word of "$tool_basename", so it can be a program name with args. 7833 set dummy $tool_basename; ac_word=$2 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7835 $as_echo_n "checking for $ac_word... " >&6; } 7836 if ${ac_cv_path_EXPR+:} false; then : 7837 $as_echo_n "(cached) " >&6 7838 else 7839 case $EXPR in 7840 [\\/]* | ?:[\\/]*) 7841 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7842 ;; 7843 *) 7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7845 for as_dir in $PATH 7846 do 7847 IFS=$as_save_IFS 7848 test -z "$as_dir" && as_dir=. 7849 for ac_exec_ext in '' $ac_executable_extensions; do 7850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7851 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7853 break 2 7854 fi 7855 done 7856 done 7857 IFS=$as_save_IFS 7858 7859 ;; 7860 esac 7861 fi 7862 EXPR=$ac_cv_path_EXPR 7863 if test -n "$EXPR"; then 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7865 $as_echo "$EXPR" >&6; } 7866 else 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7868 $as_echo "no" >&6; } 7869 fi 7870 7871 7872 if test "x$EXPR" = x; then 7873 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7874 fi 7875 else 7876 # Otherwise we believe it is a complete path. Use it as it is. 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7878 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7880 $as_echo_n "checking for EXPR... " >&6; } 7881 if test ! -x "$tool_specified"; then 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7883 $as_echo "not found" >&6; } 7884 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7885 fi 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7887 $as_echo "$tool_specified" >&6; } 7888 fi 7889 fi 7890 fi 7891 7892 fi 7893 7894 7895 7896 if test "x$EXPR" = x; then 7897 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7898 fi 7899 7900 7901 7902 7903 7904 # Publish this variable in the help. 7905 7906 7907 if [ -z "${FILE+x}" ]; then 7908 # The variable is not set by user, try to locate tool using the code snippet 7909 for ac_prog in file 7910 do 7911 # Extract the first word of "$ac_prog", so it can be a program name with args. 7912 set dummy $ac_prog; ac_word=$2 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7914 $as_echo_n "checking for $ac_word... " >&6; } 7915 if ${ac_cv_path_FILE+:} false; then : 7916 $as_echo_n "(cached) " >&6 7917 else 7918 case $FILE in 7919 [\\/]* | ?:[\\/]*) 7920 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7921 ;; 7922 *) 7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7924 for as_dir in $PATH 7925 do 7926 IFS=$as_save_IFS 7927 test -z "$as_dir" && as_dir=. 7928 for ac_exec_ext in '' $ac_executable_extensions; do 7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7930 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7932 break 2 7933 fi 7934 done 7935 done 7936 IFS=$as_save_IFS 7937 7938 ;; 7939 esac 7940 fi 7941 FILE=$ac_cv_path_FILE 7942 if test -n "$FILE"; then 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7944 $as_echo "$FILE" >&6; } 7945 else 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7947 $as_echo "no" >&6; } 7948 fi 7949 7950 7951 test -n "$FILE" && break 7952 done 7953 7954 else 7955 # The variable is set, but is it from the command line or the environment? 7956 7957 # Try to remove the string !FILE! from our list. 7958 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7959 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7960 # If it failed, the variable was not from the command line. Ignore it, 7961 # but warn the user (except for BASH, which is always set by the calling BASH). 7962 if test "xFILE" != xBASH; then 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7964 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7965 fi 7966 # Try to locate tool using the code snippet 7967 for ac_prog in file 7968 do 7969 # Extract the first word of "$ac_prog", so it can be a program name with args. 7970 set dummy $ac_prog; ac_word=$2 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7972 $as_echo_n "checking for $ac_word... " >&6; } 7973 if ${ac_cv_path_FILE+:} false; then : 7974 $as_echo_n "(cached) " >&6 7975 else 7976 case $FILE in 7977 [\\/]* | ?:[\\/]*) 7978 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7979 ;; 7980 *) 7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7982 for as_dir in $PATH 7983 do 7984 IFS=$as_save_IFS 7985 test -z "$as_dir" && as_dir=. 7986 for ac_exec_ext in '' $ac_executable_extensions; do 7987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7988 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7990 break 2 7991 fi 7992 done 7993 done 7994 IFS=$as_save_IFS 7995 7996 ;; 7997 esac 7998 fi 7999 FILE=$ac_cv_path_FILE 8000 if test -n "$FILE"; then 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8002 $as_echo "$FILE" >&6; } 8003 else 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8005 $as_echo "no" >&6; } 8006 fi 8007 8008 8009 test -n "$FILE" && break 8010 done 8011 8012 else 8013 # If it succeeded, then it was overridden by the user. We will use it 8014 # for the tool. 8015 8016 # First remove it from the list of overridden variables, so we can test 8017 # for unknown variables in the end. 8018 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8019 8020 # Check if we try to supply an empty value 8021 if test "x$FILE" = x; then 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 8023 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8025 $as_echo_n "checking for FILE... " >&6; } 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8027 $as_echo "disabled" >&6; } 8028 else 8029 # Check if the provided tool contains a complete path. 8030 tool_specified="$FILE" 8031 tool_basename="${tool_specified##*/}" 8032 if test "x$tool_basename" = "x$tool_specified"; then 8033 # A command without a complete path is provided, search $PATH. 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 8035 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 8036 # Extract the first word of "$tool_basename", so it can be a program name with args. 8037 set dummy $tool_basename; ac_word=$2 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8039 $as_echo_n "checking for $ac_word... " >&6; } 8040 if ${ac_cv_path_FILE+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042 else 8043 case $FILE in 8044 [\\/]* | ?:[\\/]*) 8045 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 8046 ;; 8047 *) 8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8049 for as_dir in $PATH 8050 do 8051 IFS=$as_save_IFS 8052 test -z "$as_dir" && as_dir=. 8053 for ac_exec_ext in '' $ac_executable_extensions; do 8054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8055 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8057 break 2 8058 fi 8059 done 8060 done 8061 IFS=$as_save_IFS 8062 8063 ;; 8064 esac 8065 fi 8066 FILE=$ac_cv_path_FILE 8067 if test -n "$FILE"; then 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8069 $as_echo "$FILE" >&6; } 8070 else 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8072 $as_echo "no" >&6; } 8073 fi 8074 8075 8076 if test "x$FILE" = x; then 8077 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8078 fi 8079 else 8080 # Otherwise we believe it is a complete path. Use it as it is. 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 8082 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8084 $as_echo_n "checking for FILE... " >&6; } 8085 if test ! -x "$tool_specified"; then 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8087 $as_echo "not found" >&6; } 8088 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8089 fi 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8091 $as_echo "$tool_specified" >&6; } 8092 fi 8093 fi 8094 fi 8095 8096 fi 8097 8098 8099 8100 if test "x$FILE" = x; then 8101 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8102 fi 8103 8104 8105 8106 8107 8108 # Publish this variable in the help. 8109 8110 8111 if [ -z "${FIND+x}" ]; then 8112 # The variable is not set by user, try to locate tool using the code snippet 8113 for ac_prog in find 8114 do 8115 # Extract the first word of "$ac_prog", so it can be a program name with args. 8116 set dummy $ac_prog; ac_word=$2 8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8118 $as_echo_n "checking for $ac_word... " >&6; } 8119 if ${ac_cv_path_FIND+:} false; then : 8120 $as_echo_n "(cached) " >&6 8121 else 8122 case $FIND in 8123 [\\/]* | ?:[\\/]*) 8124 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8125 ;; 8126 *) 8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8128 for as_dir in $PATH 8129 do 8130 IFS=$as_save_IFS 8131 test -z "$as_dir" && as_dir=. 8132 for ac_exec_ext in '' $ac_executable_extensions; do 8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8134 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8136 break 2 8137 fi 8138 done 8139 done 8140 IFS=$as_save_IFS 8141 8142 ;; 8143 esac 8144 fi 8145 FIND=$ac_cv_path_FIND 8146 if test -n "$FIND"; then 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8148 $as_echo "$FIND" >&6; } 8149 else 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8151 $as_echo "no" >&6; } 8152 fi 8153 8154 8155 test -n "$FIND" && break 8156 done 8157 8158 else 8159 # The variable is set, but is it from the command line or the environment? 8160 8161 # Try to remove the string !FIND! from our list. 8162 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8163 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8164 # If it failed, the variable was not from the command line. Ignore it, 8165 # but warn the user (except for BASH, which is always set by the calling BASH). 8166 if test "xFIND" != xBASH; then 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8168 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8169 fi 8170 # Try to locate tool using the code snippet 8171 for ac_prog in find 8172 do 8173 # Extract the first word of "$ac_prog", so it can be a program name with args. 8174 set dummy $ac_prog; ac_word=$2 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8176 $as_echo_n "checking for $ac_word... " >&6; } 8177 if ${ac_cv_path_FIND+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179 else 8180 case $FIND in 8181 [\\/]* | ?:[\\/]*) 8182 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8183 ;; 8184 *) 8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8186 for as_dir in $PATH 8187 do 8188 IFS=$as_save_IFS 8189 test -z "$as_dir" && as_dir=. 8190 for ac_exec_ext in '' $ac_executable_extensions; do 8191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8192 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8194 break 2 8195 fi 8196 done 8197 done 8198 IFS=$as_save_IFS 8199 8200 ;; 8201 esac 8202 fi 8203 FIND=$ac_cv_path_FIND 8204 if test -n "$FIND"; then 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8206 $as_echo "$FIND" >&6; } 8207 else 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8209 $as_echo "no" >&6; } 8210 fi 8211 8212 8213 test -n "$FIND" && break 8214 done 8215 8216 else 8217 # If it succeeded, then it was overridden by the user. We will use it 8218 # for the tool. 8219 8220 # First remove it from the list of overridden variables, so we can test 8221 # for unknown variables in the end. 8222 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8223 8224 # Check if we try to supply an empty value 8225 if test "x$FIND" = x; then 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8227 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8229 $as_echo_n "checking for FIND... " >&6; } 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8231 $as_echo "disabled" >&6; } 8232 else 8233 # Check if the provided tool contains a complete path. 8234 tool_specified="$FIND" 8235 tool_basename="${tool_specified##*/}" 8236 if test "x$tool_basename" = "x$tool_specified"; then 8237 # A command without a complete path is provided, search $PATH. 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8239 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8240 # Extract the first word of "$tool_basename", so it can be a program name with args. 8241 set dummy $tool_basename; ac_word=$2 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8243 $as_echo_n "checking for $ac_word... " >&6; } 8244 if ${ac_cv_path_FIND+:} false; then : 8245 $as_echo_n "(cached) " >&6 8246 else 8247 case $FIND in 8248 [\\/]* | ?:[\\/]*) 8249 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8250 ;; 8251 *) 8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8253 for as_dir in $PATH 8254 do 8255 IFS=$as_save_IFS 8256 test -z "$as_dir" && as_dir=. 8257 for ac_exec_ext in '' $ac_executable_extensions; do 8258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8259 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8261 break 2 8262 fi 8263 done 8264 done 8265 IFS=$as_save_IFS 8266 8267 ;; 8268 esac 8269 fi 8270 FIND=$ac_cv_path_FIND 8271 if test -n "$FIND"; then 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8273 $as_echo "$FIND" >&6; } 8274 else 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8276 $as_echo "no" >&6; } 8277 fi 8278 8279 8280 if test "x$FIND" = x; then 8281 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8282 fi 8283 else 8284 # Otherwise we believe it is a complete path. Use it as it is. 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8286 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8288 $as_echo_n "checking for FIND... " >&6; } 8289 if test ! -x "$tool_specified"; then 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8291 $as_echo "not found" >&6; } 8292 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8293 fi 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8295 $as_echo "$tool_specified" >&6; } 8296 fi 8297 fi 8298 fi 8299 8300 fi 8301 8302 8303 8304 if test "x$FIND" = x; then 8305 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8306 fi 8307 8308 8309 8310 8311 8312 # Publish this variable in the help. 8313 8314 8315 if [ -z "${HEAD+x}" ]; then 8316 # The variable is not set by user, try to locate tool using the code snippet 8317 for ac_prog in head 8318 do 8319 # Extract the first word of "$ac_prog", so it can be a program name with args. 8320 set dummy $ac_prog; ac_word=$2 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8322 $as_echo_n "checking for $ac_word... " >&6; } 8323 if ${ac_cv_path_HEAD+:} false; then : 8324 $as_echo_n "(cached) " >&6 8325 else 8326 case $HEAD in 8327 [\\/]* | ?:[\\/]*) 8328 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8329 ;; 8330 *) 8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8332 for as_dir in $PATH 8333 do 8334 IFS=$as_save_IFS 8335 test -z "$as_dir" && as_dir=. 8336 for ac_exec_ext in '' $ac_executable_extensions; do 8337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8338 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8340 break 2 8341 fi 8342 done 8343 done 8344 IFS=$as_save_IFS 8345 8346 ;; 8347 esac 8348 fi 8349 HEAD=$ac_cv_path_HEAD 8350 if test -n "$HEAD"; then 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8352 $as_echo "$HEAD" >&6; } 8353 else 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8355 $as_echo "no" >&6; } 8356 fi 8357 8358 8359 test -n "$HEAD" && break 8360 done 8361 8362 else 8363 # The variable is set, but is it from the command line or the environment? 8364 8365 # Try to remove the string !HEAD! from our list. 8366 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8367 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8368 # If it failed, the variable was not from the command line. Ignore it, 8369 # but warn the user (except for BASH, which is always set by the calling BASH). 8370 if test "xHEAD" != xBASH; then 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8372 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8373 fi 8374 # Try to locate tool using the code snippet 8375 for ac_prog in head 8376 do 8377 # Extract the first word of "$ac_prog", so it can be a program name with args. 8378 set dummy $ac_prog; ac_word=$2 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8380 $as_echo_n "checking for $ac_word... " >&6; } 8381 if ${ac_cv_path_HEAD+:} false; then : 8382 $as_echo_n "(cached) " >&6 8383 else 8384 case $HEAD in 8385 [\\/]* | ?:[\\/]*) 8386 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8387 ;; 8388 *) 8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8390 for as_dir in $PATH 8391 do 8392 IFS=$as_save_IFS 8393 test -z "$as_dir" && as_dir=. 8394 for ac_exec_ext in '' $ac_executable_extensions; do 8395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8396 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8398 break 2 8399 fi 8400 done 8401 done 8402 IFS=$as_save_IFS 8403 8404 ;; 8405 esac 8406 fi 8407 HEAD=$ac_cv_path_HEAD 8408 if test -n "$HEAD"; then 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8410 $as_echo "$HEAD" >&6; } 8411 else 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8413 $as_echo "no" >&6; } 8414 fi 8415 8416 8417 test -n "$HEAD" && break 8418 done 8419 8420 else 8421 # If it succeeded, then it was overridden by the user. We will use it 8422 # for the tool. 8423 8424 # First remove it from the list of overridden variables, so we can test 8425 # for unknown variables in the end. 8426 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8427 8428 # Check if we try to supply an empty value 8429 if test "x$HEAD" = x; then 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8431 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8433 $as_echo_n "checking for HEAD... " >&6; } 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8435 $as_echo "disabled" >&6; } 8436 else 8437 # Check if the provided tool contains a complete path. 8438 tool_specified="$HEAD" 8439 tool_basename="${tool_specified##*/}" 8440 if test "x$tool_basename" = "x$tool_specified"; then 8441 # A command without a complete path is provided, search $PATH. 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8443 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8444 # Extract the first word of "$tool_basename", so it can be a program name with args. 8445 set dummy $tool_basename; ac_word=$2 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8447 $as_echo_n "checking for $ac_word... " >&6; } 8448 if ${ac_cv_path_HEAD+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450 else 8451 case $HEAD in 8452 [\\/]* | ?:[\\/]*) 8453 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8454 ;; 8455 *) 8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8457 for as_dir in $PATH 8458 do 8459 IFS=$as_save_IFS 8460 test -z "$as_dir" && as_dir=. 8461 for ac_exec_ext in '' $ac_executable_extensions; do 8462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8463 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8465 break 2 8466 fi 8467 done 8468 done 8469 IFS=$as_save_IFS 8470 8471 ;; 8472 esac 8473 fi 8474 HEAD=$ac_cv_path_HEAD 8475 if test -n "$HEAD"; then 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8477 $as_echo "$HEAD" >&6; } 8478 else 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8480 $as_echo "no" >&6; } 8481 fi 8482 8483 8484 if test "x$HEAD" = x; then 8485 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8486 fi 8487 else 8488 # Otherwise we believe it is a complete path. Use it as it is. 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8490 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8492 $as_echo_n "checking for HEAD... " >&6; } 8493 if test ! -x "$tool_specified"; then 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8495 $as_echo "not found" >&6; } 8496 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8497 fi 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8499 $as_echo "$tool_specified" >&6; } 8500 fi 8501 fi 8502 fi 8503 8504 fi 8505 8506 8507 8508 if test "x$HEAD" = x; then 8509 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8510 fi 8511 8512 8513 8514 8515 8516 # Publish this variable in the help. 8517 8518 8519 if [ -z "${GUNZIP+x}" ]; then 8520 # The variable is not set by user, try to locate tool using the code snippet 8521 for ac_prog in gunzip 8522 do 8523 # Extract the first word of "$ac_prog", so it can be a program name with args. 8524 set dummy $ac_prog; ac_word=$2 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8526 $as_echo_n "checking for $ac_word... " >&6; } 8527 if ${ac_cv_path_GUNZIP+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529 else 8530 case $GUNZIP in 8531 [\\/]* | ?:[\\/]*) 8532 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8533 ;; 8534 *) 8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8536 for as_dir in $PATH 8537 do 8538 IFS=$as_save_IFS 8539 test -z "$as_dir" && as_dir=. 8540 for ac_exec_ext in '' $ac_executable_extensions; do 8541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8542 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8544 break 2 8545 fi 8546 done 8547 done 8548 IFS=$as_save_IFS 8549 8550 ;; 8551 esac 8552 fi 8553 GUNZIP=$ac_cv_path_GUNZIP 8554 if test -n "$GUNZIP"; then 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8556 $as_echo "$GUNZIP" >&6; } 8557 else 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8559 $as_echo "no" >&6; } 8560 fi 8561 8562 8563 test -n "$GUNZIP" && break 8564 done 8565 8566 else 8567 # The variable is set, but is it from the command line or the environment? 8568 8569 # Try to remove the string !GUNZIP! from our list. 8570 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8571 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8572 # If it failed, the variable was not from the command line. Ignore it, 8573 # but warn the user (except for BASH, which is always set by the calling BASH). 8574 if test "xGUNZIP" != xBASH; then 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8576 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8577 fi 8578 # Try to locate tool using the code snippet 8579 for ac_prog in gunzip 8580 do 8581 # Extract the first word of "$ac_prog", so it can be a program name with args. 8582 set dummy $ac_prog; ac_word=$2 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8584 $as_echo_n "checking for $ac_word... " >&6; } 8585 if ${ac_cv_path_GUNZIP+:} false; then : 8586 $as_echo_n "(cached) " >&6 8587 else 8588 case $GUNZIP in 8589 [\\/]* | ?:[\\/]*) 8590 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8591 ;; 8592 *) 8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8594 for as_dir in $PATH 8595 do 8596 IFS=$as_save_IFS 8597 test -z "$as_dir" && as_dir=. 8598 for ac_exec_ext in '' $ac_executable_extensions; do 8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8600 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8602 break 2 8603 fi 8604 done 8605 done 8606 IFS=$as_save_IFS 8607 8608 ;; 8609 esac 8610 fi 8611 GUNZIP=$ac_cv_path_GUNZIP 8612 if test -n "$GUNZIP"; then 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8614 $as_echo "$GUNZIP" >&6; } 8615 else 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8617 $as_echo "no" >&6; } 8618 fi 8619 8620 8621 test -n "$GUNZIP" && break 8622 done 8623 8624 else 8625 # If it succeeded, then it was overridden by the user. We will use it 8626 # for the tool. 8627 8628 # First remove it from the list of overridden variables, so we can test 8629 # for unknown variables in the end. 8630 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8631 8632 # Check if we try to supply an empty value 8633 if test "x$GUNZIP" = x; then 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8635 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8637 $as_echo_n "checking for GUNZIP... " >&6; } 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8639 $as_echo "disabled" >&6; } 8640 else 8641 # Check if the provided tool contains a complete path. 8642 tool_specified="$GUNZIP" 8643 tool_basename="${tool_specified##*/}" 8644 if test "x$tool_basename" = "x$tool_specified"; then 8645 # A command without a complete path is provided, search $PATH. 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8647 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8648 # Extract the first word of "$tool_basename", so it can be a program name with args. 8649 set dummy $tool_basename; ac_word=$2 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8651 $as_echo_n "checking for $ac_word... " >&6; } 8652 if ${ac_cv_path_GUNZIP+:} false; then : 8653 $as_echo_n "(cached) " >&6 8654 else 8655 case $GUNZIP in 8656 [\\/]* | ?:[\\/]*) 8657 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8658 ;; 8659 *) 8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8661 for as_dir in $PATH 8662 do 8663 IFS=$as_save_IFS 8664 test -z "$as_dir" && as_dir=. 8665 for ac_exec_ext in '' $ac_executable_extensions; do 8666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8667 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8669 break 2 8670 fi 8671 done 8672 done 8673 IFS=$as_save_IFS 8674 8675 ;; 8676 esac 8677 fi 8678 GUNZIP=$ac_cv_path_GUNZIP 8679 if test -n "$GUNZIP"; then 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8681 $as_echo "$GUNZIP" >&6; } 8682 else 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8684 $as_echo "no" >&6; } 8685 fi 8686 8687 8688 if test "x$GUNZIP" = x; then 8689 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8690 fi 8691 else 8692 # Otherwise we believe it is a complete path. Use it as it is. 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8694 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8696 $as_echo_n "checking for GUNZIP... " >&6; } 8697 if test ! -x "$tool_specified"; then 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8699 $as_echo "not found" >&6; } 8700 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8701 fi 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8703 $as_echo "$tool_specified" >&6; } 8704 fi 8705 fi 8706 fi 8707 8708 fi 8709 8710 8711 8712 if test "x$GUNZIP" = x; then 8713 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8714 fi 8715 8716 8717 8718 8719 8720 # Publish this variable in the help. 8721 8722 8723 if [ -z "${GZIP+x}" ]; then 8724 # The variable is not set by user, try to locate tool using the code snippet 8725 for ac_prog in pigz gzip 8726 do 8727 # Extract the first word of "$ac_prog", so it can be a program name with args. 8728 set dummy $ac_prog; ac_word=$2 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8730 $as_echo_n "checking for $ac_word... " >&6; } 8731 if ${ac_cv_path_GZIP+:} false; then : 8732 $as_echo_n "(cached) " >&6 8733 else 8734 case $GZIP in 8735 [\\/]* | ?:[\\/]*) 8736 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8737 ;; 8738 *) 8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8740 for as_dir in $PATH 8741 do 8742 IFS=$as_save_IFS 8743 test -z "$as_dir" && as_dir=. 8744 for ac_exec_ext in '' $ac_executable_extensions; do 8745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8746 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8748 break 2 8749 fi 8750 done 8751 done 8752 IFS=$as_save_IFS 8753 8754 ;; 8755 esac 8756 fi 8757 GZIP=$ac_cv_path_GZIP 8758 if test -n "$GZIP"; then 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8760 $as_echo "$GZIP" >&6; } 8761 else 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8763 $as_echo "no" >&6; } 8764 fi 8765 8766 8767 test -n "$GZIP" && break 8768 done 8769 8770 else 8771 # The variable is set, but is it from the command line or the environment? 8772 8773 # Try to remove the string !GZIP! from our list. 8774 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8775 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8776 # If it failed, the variable was not from the command line. Ignore it, 8777 # but warn the user (except for BASH, which is always set by the calling BASH). 8778 if test "xGZIP" != xBASH; then 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8780 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8781 fi 8782 # Try to locate tool using the code snippet 8783 for ac_prog in pigz gzip 8784 do 8785 # Extract the first word of "$ac_prog", so it can be a program name with args. 8786 set dummy $ac_prog; ac_word=$2 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8788 $as_echo_n "checking for $ac_word... " >&6; } 8789 if ${ac_cv_path_GZIP+:} false; then : 8790 $as_echo_n "(cached) " >&6 8791 else 8792 case $GZIP in 8793 [\\/]* | ?:[\\/]*) 8794 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8795 ;; 8796 *) 8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8798 for as_dir in $PATH 8799 do 8800 IFS=$as_save_IFS 8801 test -z "$as_dir" && as_dir=. 8802 for ac_exec_ext in '' $ac_executable_extensions; do 8803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8804 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8806 break 2 8807 fi 8808 done 8809 done 8810 IFS=$as_save_IFS 8811 8812 ;; 8813 esac 8814 fi 8815 GZIP=$ac_cv_path_GZIP 8816 if test -n "$GZIP"; then 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8818 $as_echo "$GZIP" >&6; } 8819 else 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8821 $as_echo "no" >&6; } 8822 fi 8823 8824 8825 test -n "$GZIP" && break 8826 done 8827 8828 else 8829 # If it succeeded, then it was overridden by the user. We will use it 8830 # for the tool. 8831 8832 # First remove it from the list of overridden variables, so we can test 8833 # for unknown variables in the end. 8834 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8835 8836 # Check if we try to supply an empty value 8837 if test "x$GZIP" = x; then 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8839 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8841 $as_echo_n "checking for GZIP... " >&6; } 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8843 $as_echo "disabled" >&6; } 8844 else 8845 # Check if the provided tool contains a complete path. 8846 tool_specified="$GZIP" 8847 tool_basename="${tool_specified##*/}" 8848 if test "x$tool_basename" = "x$tool_specified"; then 8849 # A command without a complete path is provided, search $PATH. 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8851 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8852 # Extract the first word of "$tool_basename", so it can be a program name with args. 8853 set dummy $tool_basename; ac_word=$2 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8855 $as_echo_n "checking for $ac_word... " >&6; } 8856 if ${ac_cv_path_GZIP+:} false; then : 8857 $as_echo_n "(cached) " >&6 8858 else 8859 case $GZIP in 8860 [\\/]* | ?:[\\/]*) 8861 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8862 ;; 8863 *) 8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8865 for as_dir in $PATH 8866 do 8867 IFS=$as_save_IFS 8868 test -z "$as_dir" && as_dir=. 8869 for ac_exec_ext in '' $ac_executable_extensions; do 8870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8871 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8873 break 2 8874 fi 8875 done 8876 done 8877 IFS=$as_save_IFS 8878 8879 ;; 8880 esac 8881 fi 8882 GZIP=$ac_cv_path_GZIP 8883 if test -n "$GZIP"; then 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8885 $as_echo "$GZIP" >&6; } 8886 else 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8888 $as_echo "no" >&6; } 8889 fi 8890 8891 8892 if test "x$GZIP" = x; then 8893 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8894 fi 8895 else 8896 # Otherwise we believe it is a complete path. Use it as it is. 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8898 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8900 $as_echo_n "checking for GZIP... " >&6; } 8901 if test ! -x "$tool_specified"; then 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8903 $as_echo "not found" >&6; } 8904 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8905 fi 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8907 $as_echo "$tool_specified" >&6; } 8908 fi 8909 fi 8910 fi 8911 8912 fi 8913 8914 8915 8916 if test "x$GZIP" = x; then 8917 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8918 fi 8919 8920 8921 8922 8923 8924 # Publish this variable in the help. 8925 8926 8927 if [ -z "${LN+x}" ]; then 8928 # The variable is not set by user, try to locate tool using the code snippet 8929 for ac_prog in ln 8930 do 8931 # Extract the first word of "$ac_prog", so it can be a program name with args. 8932 set dummy $ac_prog; ac_word=$2 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8934 $as_echo_n "checking for $ac_word... " >&6; } 8935 if ${ac_cv_path_LN+:} false; then : 8936 $as_echo_n "(cached) " >&6 8937 else 8938 case $LN in 8939 [\\/]* | ?:[\\/]*) 8940 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8941 ;; 8942 *) 8943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8944 for as_dir in $PATH 8945 do 8946 IFS=$as_save_IFS 8947 test -z "$as_dir" && as_dir=. 8948 for ac_exec_ext in '' $ac_executable_extensions; do 8949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8950 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8952 break 2 8953 fi 8954 done 8955 done 8956 IFS=$as_save_IFS 8957 8958 ;; 8959 esac 8960 fi 8961 LN=$ac_cv_path_LN 8962 if test -n "$LN"; then 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8964 $as_echo "$LN" >&6; } 8965 else 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8967 $as_echo "no" >&6; } 8968 fi 8969 8970 8971 test -n "$LN" && break 8972 done 8973 8974 else 8975 # The variable is set, but is it from the command line or the environment? 8976 8977 # Try to remove the string !LN! from our list. 8978 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8979 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8980 # If it failed, the variable was not from the command line. Ignore it, 8981 # but warn the user (except for BASH, which is always set by the calling BASH). 8982 if test "xLN" != xBASH; then 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8984 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8985 fi 8986 # Try to locate tool using the code snippet 8987 for ac_prog in ln 8988 do 8989 # Extract the first word of "$ac_prog", so it can be a program name with args. 8990 set dummy $ac_prog; ac_word=$2 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8992 $as_echo_n "checking for $ac_word... " >&6; } 8993 if ${ac_cv_path_LN+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995 else 8996 case $LN in 8997 [\\/]* | ?:[\\/]*) 8998 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8999 ;; 9000 *) 9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9002 for as_dir in $PATH 9003 do 9004 IFS=$as_save_IFS 9005 test -z "$as_dir" && as_dir=. 9006 for ac_exec_ext in '' $ac_executable_extensions; do 9007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9008 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9010 break 2 9011 fi 9012 done 9013 done 9014 IFS=$as_save_IFS 9015 9016 ;; 9017 esac 9018 fi 9019 LN=$ac_cv_path_LN 9020 if test -n "$LN"; then 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9022 $as_echo "$LN" >&6; } 9023 else 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9025 $as_echo "no" >&6; } 9026 fi 9027 9028 9029 test -n "$LN" && break 9030 done 9031 9032 else 9033 # If it succeeded, then it was overridden by the user. We will use it 9034 # for the tool. 9035 9036 # First remove it from the list of overridden variables, so we can test 9037 # for unknown variables in the end. 9038 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9039 9040 # Check if we try to supply an empty value 9041 if test "x$LN" = x; then 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 9043 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9045 $as_echo_n "checking for LN... " >&6; } 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9047 $as_echo "disabled" >&6; } 9048 else 9049 # Check if the provided tool contains a complete path. 9050 tool_specified="$LN" 9051 tool_basename="${tool_specified##*/}" 9052 if test "x$tool_basename" = "x$tool_specified"; then 9053 # A command without a complete path is provided, search $PATH. 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 9055 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 9056 # Extract the first word of "$tool_basename", so it can be a program name with args. 9057 set dummy $tool_basename; ac_word=$2 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9059 $as_echo_n "checking for $ac_word... " >&6; } 9060 if ${ac_cv_path_LN+:} false; then : 9061 $as_echo_n "(cached) " >&6 9062 else 9063 case $LN in 9064 [\\/]* | ?:[\\/]*) 9065 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9066 ;; 9067 *) 9068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9069 for as_dir in $PATH 9070 do 9071 IFS=$as_save_IFS 9072 test -z "$as_dir" && as_dir=. 9073 for ac_exec_ext in '' $ac_executable_extensions; do 9074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9075 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9077 break 2 9078 fi 9079 done 9080 done 9081 IFS=$as_save_IFS 9082 9083 ;; 9084 esac 9085 fi 9086 LN=$ac_cv_path_LN 9087 if test -n "$LN"; then 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9089 $as_echo "$LN" >&6; } 9090 else 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9092 $as_echo "no" >&6; } 9093 fi 9094 9095 9096 if test "x$LN" = x; then 9097 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9098 fi 9099 else 9100 # Otherwise we believe it is a complete path. Use it as it is. 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9102 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9104 $as_echo_n "checking for LN... " >&6; } 9105 if test ! -x "$tool_specified"; then 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9107 $as_echo "not found" >&6; } 9108 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9109 fi 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9111 $as_echo "$tool_specified" >&6; } 9112 fi 9113 fi 9114 fi 9115 9116 fi 9117 9118 9119 9120 if test "x$LN" = x; then 9121 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9122 fi 9123 9124 9125 9126 9127 9128 # Publish this variable in the help. 9129 9130 9131 if [ -z "${LS+x}" ]; then 9132 # The variable is not set by user, try to locate tool using the code snippet 9133 for ac_prog in ls 9134 do 9135 # Extract the first word of "$ac_prog", so it can be a program name with args. 9136 set dummy $ac_prog; ac_word=$2 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9138 $as_echo_n "checking for $ac_word... " >&6; } 9139 if ${ac_cv_path_LS+:} false; then : 9140 $as_echo_n "(cached) " >&6 9141 else 9142 case $LS in 9143 [\\/]* | ?:[\\/]*) 9144 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9145 ;; 9146 *) 9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9148 for as_dir in $PATH 9149 do 9150 IFS=$as_save_IFS 9151 test -z "$as_dir" && as_dir=. 9152 for ac_exec_ext in '' $ac_executable_extensions; do 9153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9154 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9156 break 2 9157 fi 9158 done 9159 done 9160 IFS=$as_save_IFS 9161 9162 ;; 9163 esac 9164 fi 9165 LS=$ac_cv_path_LS 9166 if test -n "$LS"; then 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9168 $as_echo "$LS" >&6; } 9169 else 9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9171 $as_echo "no" >&6; } 9172 fi 9173 9174 9175 test -n "$LS" && break 9176 done 9177 9178 else 9179 # The variable is set, but is it from the command line or the environment? 9180 9181 # Try to remove the string !LS! from our list. 9182 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9183 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9184 # If it failed, the variable was not from the command line. Ignore it, 9185 # but warn the user (except for BASH, which is always set by the calling BASH). 9186 if test "xLS" != xBASH; then 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9188 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9189 fi 9190 # Try to locate tool using the code snippet 9191 for ac_prog in ls 9192 do 9193 # Extract the first word of "$ac_prog", so it can be a program name with args. 9194 set dummy $ac_prog; ac_word=$2 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9196 $as_echo_n "checking for $ac_word... " >&6; } 9197 if ${ac_cv_path_LS+:} false; then : 9198 $as_echo_n "(cached) " >&6 9199 else 9200 case $LS in 9201 [\\/]* | ?:[\\/]*) 9202 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9203 ;; 9204 *) 9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9206 for as_dir in $PATH 9207 do 9208 IFS=$as_save_IFS 9209 test -z "$as_dir" && as_dir=. 9210 for ac_exec_ext in '' $ac_executable_extensions; do 9211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9212 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9214 break 2 9215 fi 9216 done 9217 done 9218 IFS=$as_save_IFS 9219 9220 ;; 9221 esac 9222 fi 9223 LS=$ac_cv_path_LS 9224 if test -n "$LS"; then 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9226 $as_echo "$LS" >&6; } 9227 else 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9229 $as_echo "no" >&6; } 9230 fi 9231 9232 9233 test -n "$LS" && break 9234 done 9235 9236 else 9237 # If it succeeded, then it was overridden by the user. We will use it 9238 # for the tool. 9239 9240 # First remove it from the list of overridden variables, so we can test 9241 # for unknown variables in the end. 9242 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9243 9244 # Check if we try to supply an empty value 9245 if test "x$LS" = x; then 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9247 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9249 $as_echo_n "checking for LS... " >&6; } 9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9251 $as_echo "disabled" >&6; } 9252 else 9253 # Check if the provided tool contains a complete path. 9254 tool_specified="$LS" 9255 tool_basename="${tool_specified##*/}" 9256 if test "x$tool_basename" = "x$tool_specified"; then 9257 # A command without a complete path is provided, search $PATH. 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9259 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9260 # Extract the first word of "$tool_basename", so it can be a program name with args. 9261 set dummy $tool_basename; ac_word=$2 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9263 $as_echo_n "checking for $ac_word... " >&6; } 9264 if ${ac_cv_path_LS+:} false; then : 9265 $as_echo_n "(cached) " >&6 9266 else 9267 case $LS in 9268 [\\/]* | ?:[\\/]*) 9269 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9270 ;; 9271 *) 9272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9273 for as_dir in $PATH 9274 do 9275 IFS=$as_save_IFS 9276 test -z "$as_dir" && as_dir=. 9277 for ac_exec_ext in '' $ac_executable_extensions; do 9278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9279 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9281 break 2 9282 fi 9283 done 9284 done 9285 IFS=$as_save_IFS 9286 9287 ;; 9288 esac 9289 fi 9290 LS=$ac_cv_path_LS 9291 if test -n "$LS"; then 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9293 $as_echo "$LS" >&6; } 9294 else 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9296 $as_echo "no" >&6; } 9297 fi 9298 9299 9300 if test "x$LS" = x; then 9301 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9302 fi 9303 else 9304 # Otherwise we believe it is a complete path. Use it as it is. 9305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9306 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9308 $as_echo_n "checking for LS... " >&6; } 9309 if test ! -x "$tool_specified"; then 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9311 $as_echo "not found" >&6; } 9312 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9313 fi 9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9315 $as_echo "$tool_specified" >&6; } 9316 fi 9317 fi 9318 fi 9319 9320 fi 9321 9322 9323 9324 if test "x$LS" = x; then 9325 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9326 fi 9327 9328 9329 9330 9331 9332 # Publish this variable in the help. 9333 9334 9335 if [ -z "${MKDIR+x}" ]; then 9336 # The variable is not set by user, try to locate tool using the code snippet 9337 for ac_prog in mkdir 9338 do 9339 # Extract the first word of "$ac_prog", so it can be a program name with args. 9340 set dummy $ac_prog; ac_word=$2 9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9342 $as_echo_n "checking for $ac_word... " >&6; } 9343 if ${ac_cv_path_MKDIR+:} false; then : 9344 $as_echo_n "(cached) " >&6 9345 else 9346 case $MKDIR in 9347 [\\/]* | ?:[\\/]*) 9348 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9349 ;; 9350 *) 9351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9352 for as_dir in $PATH 9353 do 9354 IFS=$as_save_IFS 9355 test -z "$as_dir" && as_dir=. 9356 for ac_exec_ext in '' $ac_executable_extensions; do 9357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9358 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9360 break 2 9361 fi 9362 done 9363 done 9364 IFS=$as_save_IFS 9365 9366 ;; 9367 esac 9368 fi 9369 MKDIR=$ac_cv_path_MKDIR 9370 if test -n "$MKDIR"; then 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9372 $as_echo "$MKDIR" >&6; } 9373 else 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9375 $as_echo "no" >&6; } 9376 fi 9377 9378 9379 test -n "$MKDIR" && break 9380 done 9381 9382 else 9383 # The variable is set, but is it from the command line or the environment? 9384 9385 # Try to remove the string !MKDIR! from our list. 9386 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9387 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9388 # If it failed, the variable was not from the command line. Ignore it, 9389 # but warn the user (except for BASH, which is always set by the calling BASH). 9390 if test "xMKDIR" != xBASH; then 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9392 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9393 fi 9394 # Try to locate tool using the code snippet 9395 for ac_prog in mkdir 9396 do 9397 # Extract the first word of "$ac_prog", so it can be a program name with args. 9398 set dummy $ac_prog; ac_word=$2 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9400 $as_echo_n "checking for $ac_word... " >&6; } 9401 if ${ac_cv_path_MKDIR+:} false; then : 9402 $as_echo_n "(cached) " >&6 9403 else 9404 case $MKDIR in 9405 [\\/]* | ?:[\\/]*) 9406 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9407 ;; 9408 *) 9409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9410 for as_dir in $PATH 9411 do 9412 IFS=$as_save_IFS 9413 test -z "$as_dir" && as_dir=. 9414 for ac_exec_ext in '' $ac_executable_extensions; do 9415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9416 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9418 break 2 9419 fi 9420 done 9421 done 9422 IFS=$as_save_IFS 9423 9424 ;; 9425 esac 9426 fi 9427 MKDIR=$ac_cv_path_MKDIR 9428 if test -n "$MKDIR"; then 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9430 $as_echo "$MKDIR" >&6; } 9431 else 9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9433 $as_echo "no" >&6; } 9434 fi 9435 9436 9437 test -n "$MKDIR" && break 9438 done 9439 9440 else 9441 # If it succeeded, then it was overridden by the user. We will use it 9442 # for the tool. 9443 9444 # First remove it from the list of overridden variables, so we can test 9445 # for unknown variables in the end. 9446 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9447 9448 # Check if we try to supply an empty value 9449 if test "x$MKDIR" = x; then 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9451 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9453 $as_echo_n "checking for MKDIR... " >&6; } 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9455 $as_echo "disabled" >&6; } 9456 else 9457 # Check if the provided tool contains a complete path. 9458 tool_specified="$MKDIR" 9459 tool_basename="${tool_specified##*/}" 9460 if test "x$tool_basename" = "x$tool_specified"; then 9461 # A command without a complete path is provided, search $PATH. 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9463 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9464 # Extract the first word of "$tool_basename", so it can be a program name with args. 9465 set dummy $tool_basename; ac_word=$2 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9467 $as_echo_n "checking for $ac_word... " >&6; } 9468 if ${ac_cv_path_MKDIR+:} false; then : 9469 $as_echo_n "(cached) " >&6 9470 else 9471 case $MKDIR in 9472 [\\/]* | ?:[\\/]*) 9473 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9474 ;; 9475 *) 9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9477 for as_dir in $PATH 9478 do 9479 IFS=$as_save_IFS 9480 test -z "$as_dir" && as_dir=. 9481 for ac_exec_ext in '' $ac_executable_extensions; do 9482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9483 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9485 break 2 9486 fi 9487 done 9488 done 9489 IFS=$as_save_IFS 9490 9491 ;; 9492 esac 9493 fi 9494 MKDIR=$ac_cv_path_MKDIR 9495 if test -n "$MKDIR"; then 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9497 $as_echo "$MKDIR" >&6; } 9498 else 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9500 $as_echo "no" >&6; } 9501 fi 9502 9503 9504 if test "x$MKDIR" = x; then 9505 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9506 fi 9507 else 9508 # Otherwise we believe it is a complete path. Use it as it is. 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9510 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9512 $as_echo_n "checking for MKDIR... " >&6; } 9513 if test ! -x "$tool_specified"; then 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9515 $as_echo "not found" >&6; } 9516 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9517 fi 9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9519 $as_echo "$tool_specified" >&6; } 9520 fi 9521 fi 9522 fi 9523 9524 fi 9525 9526 9527 9528 if test "x$MKDIR" = x; then 9529 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9530 fi 9531 9532 9533 9534 9535 9536 # Publish this variable in the help. 9537 9538 9539 if [ -z "${MKTEMP+x}" ]; then 9540 # The variable is not set by user, try to locate tool using the code snippet 9541 for ac_prog in mktemp 9542 do 9543 # Extract the first word of "$ac_prog", so it can be a program name with args. 9544 set dummy $ac_prog; ac_word=$2 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9546 $as_echo_n "checking for $ac_word... " >&6; } 9547 if ${ac_cv_path_MKTEMP+:} false; then : 9548 $as_echo_n "(cached) " >&6 9549 else 9550 case $MKTEMP in 9551 [\\/]* | ?:[\\/]*) 9552 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9553 ;; 9554 *) 9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9556 for as_dir in $PATH 9557 do 9558 IFS=$as_save_IFS 9559 test -z "$as_dir" && as_dir=. 9560 for ac_exec_ext in '' $ac_executable_extensions; do 9561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9562 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9564 break 2 9565 fi 9566 done 9567 done 9568 IFS=$as_save_IFS 9569 9570 ;; 9571 esac 9572 fi 9573 MKTEMP=$ac_cv_path_MKTEMP 9574 if test -n "$MKTEMP"; then 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9576 $as_echo "$MKTEMP" >&6; } 9577 else 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9579 $as_echo "no" >&6; } 9580 fi 9581 9582 9583 test -n "$MKTEMP" && break 9584 done 9585 9586 else 9587 # The variable is set, but is it from the command line or the environment? 9588 9589 # Try to remove the string !MKTEMP! from our list. 9590 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9591 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9592 # If it failed, the variable was not from the command line. Ignore it, 9593 # but warn the user (except for BASH, which is always set by the calling BASH). 9594 if test "xMKTEMP" != xBASH; then 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9596 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9597 fi 9598 # Try to locate tool using the code snippet 9599 for ac_prog in mktemp 9600 do 9601 # Extract the first word of "$ac_prog", so it can be a program name with args. 9602 set dummy $ac_prog; ac_word=$2 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9604 $as_echo_n "checking for $ac_word... " >&6; } 9605 if ${ac_cv_path_MKTEMP+:} false; then : 9606 $as_echo_n "(cached) " >&6 9607 else 9608 case $MKTEMP in 9609 [\\/]* | ?:[\\/]*) 9610 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9611 ;; 9612 *) 9613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9614 for as_dir in $PATH 9615 do 9616 IFS=$as_save_IFS 9617 test -z "$as_dir" && as_dir=. 9618 for ac_exec_ext in '' $ac_executable_extensions; do 9619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9620 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9622 break 2 9623 fi 9624 done 9625 done 9626 IFS=$as_save_IFS 9627 9628 ;; 9629 esac 9630 fi 9631 MKTEMP=$ac_cv_path_MKTEMP 9632 if test -n "$MKTEMP"; then 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9634 $as_echo "$MKTEMP" >&6; } 9635 else 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9637 $as_echo "no" >&6; } 9638 fi 9639 9640 9641 test -n "$MKTEMP" && break 9642 done 9643 9644 else 9645 # If it succeeded, then it was overridden by the user. We will use it 9646 # for the tool. 9647 9648 # First remove it from the list of overridden variables, so we can test 9649 # for unknown variables in the end. 9650 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9651 9652 # Check if we try to supply an empty value 9653 if test "x$MKTEMP" = x; then 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9655 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9657 $as_echo_n "checking for MKTEMP... " >&6; } 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9659 $as_echo "disabled" >&6; } 9660 else 9661 # Check if the provided tool contains a complete path. 9662 tool_specified="$MKTEMP" 9663 tool_basename="${tool_specified##*/}" 9664 if test "x$tool_basename" = "x$tool_specified"; then 9665 # A command without a complete path is provided, search $PATH. 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9667 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9668 # Extract the first word of "$tool_basename", so it can be a program name with args. 9669 set dummy $tool_basename; ac_word=$2 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9671 $as_echo_n "checking for $ac_word... " >&6; } 9672 if ${ac_cv_path_MKTEMP+:} false; then : 9673 $as_echo_n "(cached) " >&6 9674 else 9675 case $MKTEMP in 9676 [\\/]* | ?:[\\/]*) 9677 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9678 ;; 9679 *) 9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9681 for as_dir in $PATH 9682 do 9683 IFS=$as_save_IFS 9684 test -z "$as_dir" && as_dir=. 9685 for ac_exec_ext in '' $ac_executable_extensions; do 9686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9687 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9689 break 2 9690 fi 9691 done 9692 done 9693 IFS=$as_save_IFS 9694 9695 ;; 9696 esac 9697 fi 9698 MKTEMP=$ac_cv_path_MKTEMP 9699 if test -n "$MKTEMP"; then 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9701 $as_echo "$MKTEMP" >&6; } 9702 else 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9704 $as_echo "no" >&6; } 9705 fi 9706 9707 9708 if test "x$MKTEMP" = x; then 9709 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9710 fi 9711 else 9712 # Otherwise we believe it is a complete path. Use it as it is. 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9714 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9716 $as_echo_n "checking for MKTEMP... " >&6; } 9717 if test ! -x "$tool_specified"; then 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9719 $as_echo "not found" >&6; } 9720 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9721 fi 9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9723 $as_echo "$tool_specified" >&6; } 9724 fi 9725 fi 9726 fi 9727 9728 fi 9729 9730 9731 9732 if test "x$MKTEMP" = x; then 9733 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9734 fi 9735 9736 9737 9738 9739 9740 # Publish this variable in the help. 9741 9742 9743 if [ -z "${MV+x}" ]; then 9744 # The variable is not set by user, try to locate tool using the code snippet 9745 for ac_prog in mv 9746 do 9747 # Extract the first word of "$ac_prog", so it can be a program name with args. 9748 set dummy $ac_prog; ac_word=$2 9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9750 $as_echo_n "checking for $ac_word... " >&6; } 9751 if ${ac_cv_path_MV+:} false; then : 9752 $as_echo_n "(cached) " >&6 9753 else 9754 case $MV in 9755 [\\/]* | ?:[\\/]*) 9756 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9757 ;; 9758 *) 9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9760 for as_dir in $PATH 9761 do 9762 IFS=$as_save_IFS 9763 test -z "$as_dir" && as_dir=. 9764 for ac_exec_ext in '' $ac_executable_extensions; do 9765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9766 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9768 break 2 9769 fi 9770 done 9771 done 9772 IFS=$as_save_IFS 9773 9774 ;; 9775 esac 9776 fi 9777 MV=$ac_cv_path_MV 9778 if test -n "$MV"; then 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9780 $as_echo "$MV" >&6; } 9781 else 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9783 $as_echo "no" >&6; } 9784 fi 9785 9786 9787 test -n "$MV" && break 9788 done 9789 9790 else 9791 # The variable is set, but is it from the command line or the environment? 9792 9793 # Try to remove the string !MV! from our list. 9794 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9795 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9796 # If it failed, the variable was not from the command line. Ignore it, 9797 # but warn the user (except for BASH, which is always set by the calling BASH). 9798 if test "xMV" != xBASH; then 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9800 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9801 fi 9802 # Try to locate tool using the code snippet 9803 for ac_prog in mv 9804 do 9805 # Extract the first word of "$ac_prog", so it can be a program name with args. 9806 set dummy $ac_prog; ac_word=$2 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9808 $as_echo_n "checking for $ac_word... " >&6; } 9809 if ${ac_cv_path_MV+:} false; then : 9810 $as_echo_n "(cached) " >&6 9811 else 9812 case $MV in 9813 [\\/]* | ?:[\\/]*) 9814 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9815 ;; 9816 *) 9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9818 for as_dir in $PATH 9819 do 9820 IFS=$as_save_IFS 9821 test -z "$as_dir" && as_dir=. 9822 for ac_exec_ext in '' $ac_executable_extensions; do 9823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9824 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9826 break 2 9827 fi 9828 done 9829 done 9830 IFS=$as_save_IFS 9831 9832 ;; 9833 esac 9834 fi 9835 MV=$ac_cv_path_MV 9836 if test -n "$MV"; then 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9838 $as_echo "$MV" >&6; } 9839 else 9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9841 $as_echo "no" >&6; } 9842 fi 9843 9844 9845 test -n "$MV" && break 9846 done 9847 9848 else 9849 # If it succeeded, then it was overridden by the user. We will use it 9850 # for the tool. 9851 9852 # First remove it from the list of overridden variables, so we can test 9853 # for unknown variables in the end. 9854 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9855 9856 # Check if we try to supply an empty value 9857 if test "x$MV" = x; then 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9859 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9861 $as_echo_n "checking for MV... " >&6; } 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9863 $as_echo "disabled" >&6; } 9864 else 9865 # Check if the provided tool contains a complete path. 9866 tool_specified="$MV" 9867 tool_basename="${tool_specified##*/}" 9868 if test "x$tool_basename" = "x$tool_specified"; then 9869 # A command without a complete path is provided, search $PATH. 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9871 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9872 # Extract the first word of "$tool_basename", so it can be a program name with args. 9873 set dummy $tool_basename; ac_word=$2 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9875 $as_echo_n "checking for $ac_word... " >&6; } 9876 if ${ac_cv_path_MV+:} false; then : 9877 $as_echo_n "(cached) " >&6 9878 else 9879 case $MV in 9880 [\\/]* | ?:[\\/]*) 9881 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9882 ;; 9883 *) 9884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9885 for as_dir in $PATH 9886 do 9887 IFS=$as_save_IFS 9888 test -z "$as_dir" && as_dir=. 9889 for ac_exec_ext in '' $ac_executable_extensions; do 9890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9891 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9893 break 2 9894 fi 9895 done 9896 done 9897 IFS=$as_save_IFS 9898 9899 ;; 9900 esac 9901 fi 9902 MV=$ac_cv_path_MV 9903 if test -n "$MV"; then 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9905 $as_echo "$MV" >&6; } 9906 else 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9908 $as_echo "no" >&6; } 9909 fi 9910 9911 9912 if test "x$MV" = x; then 9913 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9914 fi 9915 else 9916 # Otherwise we believe it is a complete path. Use it as it is. 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9918 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9920 $as_echo_n "checking for MV... " >&6; } 9921 if test ! -x "$tool_specified"; then 9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9923 $as_echo "not found" >&6; } 9924 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9925 fi 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9927 $as_echo "$tool_specified" >&6; } 9928 fi 9929 fi 9930 fi 9931 9932 fi 9933 9934 9935 9936 if test "x$MV" = x; then 9937 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9938 fi 9939 9940 9941 9942 9943 9944 # Publish this variable in the help. 9945 9946 9947 if [ -z "${NAWK+x}" ]; then 9948 # The variable is not set by user, try to locate tool using the code snippet 9949 for ac_prog in nawk gawk awk 9950 do 9951 # Extract the first word of "$ac_prog", so it can be a program name with args. 9952 set dummy $ac_prog; ac_word=$2 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9954 $as_echo_n "checking for $ac_word... " >&6; } 9955 if ${ac_cv_path_NAWK+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957 else 9958 case $NAWK in 9959 [\\/]* | ?:[\\/]*) 9960 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9961 ;; 9962 *) 9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9964 for as_dir in $PATH 9965 do 9966 IFS=$as_save_IFS 9967 test -z "$as_dir" && as_dir=. 9968 for ac_exec_ext in '' $ac_executable_extensions; do 9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9970 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9972 break 2 9973 fi 9974 done 9975 done 9976 IFS=$as_save_IFS 9977 9978 ;; 9979 esac 9980 fi 9981 NAWK=$ac_cv_path_NAWK 9982 if test -n "$NAWK"; then 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9984 $as_echo "$NAWK" >&6; } 9985 else 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9987 $as_echo "no" >&6; } 9988 fi 9989 9990 9991 test -n "$NAWK" && break 9992 done 9993 9994 else 9995 # The variable is set, but is it from the command line or the environment? 9996 9997 # Try to remove the string !NAWK! from our list. 9998 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9999 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10000 # If it failed, the variable was not from the command line. Ignore it, 10001 # but warn the user (except for BASH, which is always set by the calling BASH). 10002 if test "xNAWK" != xBASH; then 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 10004 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 10005 fi 10006 # Try to locate tool using the code snippet 10007 for ac_prog in nawk gawk awk 10008 do 10009 # Extract the first word of "$ac_prog", so it can be a program name with args. 10010 set dummy $ac_prog; ac_word=$2 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10012 $as_echo_n "checking for $ac_word... " >&6; } 10013 if ${ac_cv_path_NAWK+:} false; then : 10014 $as_echo_n "(cached) " >&6 10015 else 10016 case $NAWK in 10017 [\\/]* | ?:[\\/]*) 10018 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10019 ;; 10020 *) 10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10022 for as_dir in $PATH 10023 do 10024 IFS=$as_save_IFS 10025 test -z "$as_dir" && as_dir=. 10026 for ac_exec_ext in '' $ac_executable_extensions; do 10027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10028 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10030 break 2 10031 fi 10032 done 10033 done 10034 IFS=$as_save_IFS 10035 10036 ;; 10037 esac 10038 fi 10039 NAWK=$ac_cv_path_NAWK 10040 if test -n "$NAWK"; then 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10042 $as_echo "$NAWK" >&6; } 10043 else 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10045 $as_echo "no" >&6; } 10046 fi 10047 10048 10049 test -n "$NAWK" && break 10050 done 10051 10052 else 10053 # If it succeeded, then it was overridden by the user. We will use it 10054 # for the tool. 10055 10056 # First remove it from the list of overridden variables, so we can test 10057 # for unknown variables in the end. 10058 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10059 10060 # Check if we try to supply an empty value 10061 if test "x$NAWK" = x; then 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 10063 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10065 $as_echo_n "checking for NAWK... " >&6; } 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10067 $as_echo "disabled" >&6; } 10068 else 10069 # Check if the provided tool contains a complete path. 10070 tool_specified="$NAWK" 10071 tool_basename="${tool_specified##*/}" 10072 if test "x$tool_basename" = "x$tool_specified"; then 10073 # A command without a complete path is provided, search $PATH. 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 10075 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 10076 # Extract the first word of "$tool_basename", so it can be a program name with args. 10077 set dummy $tool_basename; ac_word=$2 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10079 $as_echo_n "checking for $ac_word... " >&6; } 10080 if ${ac_cv_path_NAWK+:} false; then : 10081 $as_echo_n "(cached) " >&6 10082 else 10083 case $NAWK in 10084 [\\/]* | ?:[\\/]*) 10085 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10086 ;; 10087 *) 10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10089 for as_dir in $PATH 10090 do 10091 IFS=$as_save_IFS 10092 test -z "$as_dir" && as_dir=. 10093 for ac_exec_ext in '' $ac_executable_extensions; do 10094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10095 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10097 break 2 10098 fi 10099 done 10100 done 10101 IFS=$as_save_IFS 10102 10103 ;; 10104 esac 10105 fi 10106 NAWK=$ac_cv_path_NAWK 10107 if test -n "$NAWK"; then 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10109 $as_echo "$NAWK" >&6; } 10110 else 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10112 $as_echo "no" >&6; } 10113 fi 10114 10115 10116 if test "x$NAWK" = x; then 10117 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10118 fi 10119 else 10120 # Otherwise we believe it is a complete path. Use it as it is. 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10122 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10124 $as_echo_n "checking for NAWK... " >&6; } 10125 if test ! -x "$tool_specified"; then 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10127 $as_echo "not found" >&6; } 10128 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10129 fi 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10131 $as_echo "$tool_specified" >&6; } 10132 fi 10133 fi 10134 fi 10135 10136 fi 10137 10138 10139 10140 if test "x$NAWK" = x; then 10141 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10142 fi 10143 10144 10145 10146 10147 10148 # Publish this variable in the help. 10149 10150 10151 if [ -z "${PRINTF+x}" ]; then 10152 # The variable is not set by user, try to locate tool using the code snippet 10153 for ac_prog in printf 10154 do 10155 # Extract the first word of "$ac_prog", so it can be a program name with args. 10156 set dummy $ac_prog; ac_word=$2 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10158 $as_echo_n "checking for $ac_word... " >&6; } 10159 if ${ac_cv_path_PRINTF+:} false; then : 10160 $as_echo_n "(cached) " >&6 10161 else 10162 case $PRINTF in 10163 [\\/]* | ?:[\\/]*) 10164 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10165 ;; 10166 *) 10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10168 for as_dir in $PATH 10169 do 10170 IFS=$as_save_IFS 10171 test -z "$as_dir" && as_dir=. 10172 for ac_exec_ext in '' $ac_executable_extensions; do 10173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10174 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10176 break 2 10177 fi 10178 done 10179 done 10180 IFS=$as_save_IFS 10181 10182 ;; 10183 esac 10184 fi 10185 PRINTF=$ac_cv_path_PRINTF 10186 if test -n "$PRINTF"; then 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10188 $as_echo "$PRINTF" >&6; } 10189 else 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10191 $as_echo "no" >&6; } 10192 fi 10193 10194 10195 test -n "$PRINTF" && break 10196 done 10197 10198 else 10199 # The variable is set, but is it from the command line or the environment? 10200 10201 # Try to remove the string !PRINTF! from our list. 10202 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10203 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10204 # If it failed, the variable was not from the command line. Ignore it, 10205 # but warn the user (except for BASH, which is always set by the calling BASH). 10206 if test "xPRINTF" != xBASH; then 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10208 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10209 fi 10210 # Try to locate tool using the code snippet 10211 for ac_prog in printf 10212 do 10213 # Extract the first word of "$ac_prog", so it can be a program name with args. 10214 set dummy $ac_prog; ac_word=$2 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10216 $as_echo_n "checking for $ac_word... " >&6; } 10217 if ${ac_cv_path_PRINTF+:} false; then : 10218 $as_echo_n "(cached) " >&6 10219 else 10220 case $PRINTF in 10221 [\\/]* | ?:[\\/]*) 10222 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10223 ;; 10224 *) 10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10226 for as_dir in $PATH 10227 do 10228 IFS=$as_save_IFS 10229 test -z "$as_dir" && as_dir=. 10230 for ac_exec_ext in '' $ac_executable_extensions; do 10231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10232 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10234 break 2 10235 fi 10236 done 10237 done 10238 IFS=$as_save_IFS 10239 10240 ;; 10241 esac 10242 fi 10243 PRINTF=$ac_cv_path_PRINTF 10244 if test -n "$PRINTF"; then 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10246 $as_echo "$PRINTF" >&6; } 10247 else 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10249 $as_echo "no" >&6; } 10250 fi 10251 10252 10253 test -n "$PRINTF" && break 10254 done 10255 10256 else 10257 # If it succeeded, then it was overridden by the user. We will use it 10258 # for the tool. 10259 10260 # First remove it from the list of overridden variables, so we can test 10261 # for unknown variables in the end. 10262 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10263 10264 # Check if we try to supply an empty value 10265 if test "x$PRINTF" = x; then 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10267 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10269 $as_echo_n "checking for PRINTF... " >&6; } 10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10271 $as_echo "disabled" >&6; } 10272 else 10273 # Check if the provided tool contains a complete path. 10274 tool_specified="$PRINTF" 10275 tool_basename="${tool_specified##*/}" 10276 if test "x$tool_basename" = "x$tool_specified"; then 10277 # A command without a complete path is provided, search $PATH. 10278 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10279 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10280 # Extract the first word of "$tool_basename", so it can be a program name with args. 10281 set dummy $tool_basename; ac_word=$2 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10283 $as_echo_n "checking for $ac_word... " >&6; } 10284 if ${ac_cv_path_PRINTF+:} false; then : 10285 $as_echo_n "(cached) " >&6 10286 else 10287 case $PRINTF in 10288 [\\/]* | ?:[\\/]*) 10289 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10290 ;; 10291 *) 10292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10293 for as_dir in $PATH 10294 do 10295 IFS=$as_save_IFS 10296 test -z "$as_dir" && as_dir=. 10297 for ac_exec_ext in '' $ac_executable_extensions; do 10298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10299 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10301 break 2 10302 fi 10303 done 10304 done 10305 IFS=$as_save_IFS 10306 10307 ;; 10308 esac 10309 fi 10310 PRINTF=$ac_cv_path_PRINTF 10311 if test -n "$PRINTF"; then 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10313 $as_echo "$PRINTF" >&6; } 10314 else 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10316 $as_echo "no" >&6; } 10317 fi 10318 10319 10320 if test "x$PRINTF" = x; then 10321 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10322 fi 10323 else 10324 # Otherwise we believe it is a complete path. Use it as it is. 10325 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10326 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10328 $as_echo_n "checking for PRINTF... " >&6; } 10329 if test ! -x "$tool_specified"; then 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10331 $as_echo "not found" >&6; } 10332 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10333 fi 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10335 $as_echo "$tool_specified" >&6; } 10336 fi 10337 fi 10338 fi 10339 10340 fi 10341 10342 10343 10344 if test "x$PRINTF" = x; then 10345 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10346 fi 10347 10348 10349 10350 10351 10352 # Publish this variable in the help. 10353 10354 10355 if [ -z "${RM+x}" ]; then 10356 # The variable is not set by user, try to locate tool using the code snippet 10357 for ac_prog in rm 10358 do 10359 # Extract the first word of "$ac_prog", so it can be a program name with args. 10360 set dummy $ac_prog; ac_word=$2 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10362 $as_echo_n "checking for $ac_word... " >&6; } 10363 if ${ac_cv_path_RM+:} false; then : 10364 $as_echo_n "(cached) " >&6 10365 else 10366 case $RM in 10367 [\\/]* | ?:[\\/]*) 10368 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10369 ;; 10370 *) 10371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10372 for as_dir in $PATH 10373 do 10374 IFS=$as_save_IFS 10375 test -z "$as_dir" && as_dir=. 10376 for ac_exec_ext in '' $ac_executable_extensions; do 10377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10378 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10380 break 2 10381 fi 10382 done 10383 done 10384 IFS=$as_save_IFS 10385 10386 ;; 10387 esac 10388 fi 10389 RM=$ac_cv_path_RM 10390 if test -n "$RM"; then 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10392 $as_echo "$RM" >&6; } 10393 else 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10395 $as_echo "no" >&6; } 10396 fi 10397 10398 10399 test -n "$RM" && break 10400 done 10401 10402 else 10403 # The variable is set, but is it from the command line or the environment? 10404 10405 # Try to remove the string !RM! from our list. 10406 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10407 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10408 # If it failed, the variable was not from the command line. Ignore it, 10409 # but warn the user (except for BASH, which is always set by the calling BASH). 10410 if test "xRM" != xBASH; then 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10412 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10413 fi 10414 # Try to locate tool using the code snippet 10415 for ac_prog in rm 10416 do 10417 # Extract the first word of "$ac_prog", so it can be a program name with args. 10418 set dummy $ac_prog; ac_word=$2 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10420 $as_echo_n "checking for $ac_word... " >&6; } 10421 if ${ac_cv_path_RM+:} false; then : 10422 $as_echo_n "(cached) " >&6 10423 else 10424 case $RM in 10425 [\\/]* | ?:[\\/]*) 10426 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10427 ;; 10428 *) 10429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10430 for as_dir in $PATH 10431 do 10432 IFS=$as_save_IFS 10433 test -z "$as_dir" && as_dir=. 10434 for ac_exec_ext in '' $ac_executable_extensions; do 10435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10436 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10438 break 2 10439 fi 10440 done 10441 done 10442 IFS=$as_save_IFS 10443 10444 ;; 10445 esac 10446 fi 10447 RM=$ac_cv_path_RM 10448 if test -n "$RM"; then 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10450 $as_echo "$RM" >&6; } 10451 else 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10453 $as_echo "no" >&6; } 10454 fi 10455 10456 10457 test -n "$RM" && break 10458 done 10459 10460 else 10461 # If it succeeded, then it was overridden by the user. We will use it 10462 # for the tool. 10463 10464 # First remove it from the list of overridden variables, so we can test 10465 # for unknown variables in the end. 10466 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10467 10468 # Check if we try to supply an empty value 10469 if test "x$RM" = x; then 10470 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10471 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10473 $as_echo_n "checking for RM... " >&6; } 10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10475 $as_echo "disabled" >&6; } 10476 else 10477 # Check if the provided tool contains a complete path. 10478 tool_specified="$RM" 10479 tool_basename="${tool_specified##*/}" 10480 if test "x$tool_basename" = "x$tool_specified"; then 10481 # A command without a complete path is provided, search $PATH. 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10483 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10484 # Extract the first word of "$tool_basename", so it can be a program name with args. 10485 set dummy $tool_basename; ac_word=$2 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10487 $as_echo_n "checking for $ac_word... " >&6; } 10488 if ${ac_cv_path_RM+:} false; then : 10489 $as_echo_n "(cached) " >&6 10490 else 10491 case $RM in 10492 [\\/]* | ?:[\\/]*) 10493 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10494 ;; 10495 *) 10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10497 for as_dir in $PATH 10498 do 10499 IFS=$as_save_IFS 10500 test -z "$as_dir" && as_dir=. 10501 for ac_exec_ext in '' $ac_executable_extensions; do 10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10503 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10505 break 2 10506 fi 10507 done 10508 done 10509 IFS=$as_save_IFS 10510 10511 ;; 10512 esac 10513 fi 10514 RM=$ac_cv_path_RM 10515 if test -n "$RM"; then 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10517 $as_echo "$RM" >&6; } 10518 else 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10520 $as_echo "no" >&6; } 10521 fi 10522 10523 10524 if test "x$RM" = x; then 10525 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10526 fi 10527 else 10528 # Otherwise we believe it is a complete path. Use it as it is. 10529 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10530 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10532 $as_echo_n "checking for RM... " >&6; } 10533 if test ! -x "$tool_specified"; then 10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10535 $as_echo "not found" >&6; } 10536 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10537 fi 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10539 $as_echo "$tool_specified" >&6; } 10540 fi 10541 fi 10542 fi 10543 10544 fi 10545 10546 10547 10548 if test "x$RM" = x; then 10549 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10550 fi 10551 10552 10553 10554 10555 10556 # Publish this variable in the help. 10557 10558 10559 if [ -z "${RMDIR+x}" ]; then 10560 # The variable is not set by user, try to locate tool using the code snippet 10561 for ac_prog in rmdir 10562 do 10563 # Extract the first word of "$ac_prog", so it can be a program name with args. 10564 set dummy $ac_prog; ac_word=$2 10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10566 $as_echo_n "checking for $ac_word... " >&6; } 10567 if ${ac_cv_path_RMDIR+:} false; then : 10568 $as_echo_n "(cached) " >&6 10569 else 10570 case $RMDIR in 10571 [\\/]* | ?:[\\/]*) 10572 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10573 ;; 10574 *) 10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10576 for as_dir in $PATH 10577 do 10578 IFS=$as_save_IFS 10579 test -z "$as_dir" && as_dir=. 10580 for ac_exec_ext in '' $ac_executable_extensions; do 10581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10582 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10584 break 2 10585 fi 10586 done 10587 done 10588 IFS=$as_save_IFS 10589 10590 ;; 10591 esac 10592 fi 10593 RMDIR=$ac_cv_path_RMDIR 10594 if test -n "$RMDIR"; then 10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10596 $as_echo "$RMDIR" >&6; } 10597 else 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10599 $as_echo "no" >&6; } 10600 fi 10601 10602 10603 test -n "$RMDIR" && break 10604 done 10605 10606 else 10607 # The variable is set, but is it from the command line or the environment? 10608 10609 # Try to remove the string !RMDIR! from our list. 10610 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10611 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10612 # If it failed, the variable was not from the command line. Ignore it, 10613 # but warn the user (except for BASH, which is always set by the calling BASH). 10614 if test "xRMDIR" != xBASH; then 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10616 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10617 fi 10618 # Try to locate tool using the code snippet 10619 for ac_prog in rmdir 10620 do 10621 # Extract the first word of "$ac_prog", so it can be a program name with args. 10622 set dummy $ac_prog; ac_word=$2 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10624 $as_echo_n "checking for $ac_word... " >&6; } 10625 if ${ac_cv_path_RMDIR+:} false; then : 10626 $as_echo_n "(cached) " >&6 10627 else 10628 case $RMDIR in 10629 [\\/]* | ?:[\\/]*) 10630 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10631 ;; 10632 *) 10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10634 for as_dir in $PATH 10635 do 10636 IFS=$as_save_IFS 10637 test -z "$as_dir" && as_dir=. 10638 for ac_exec_ext in '' $ac_executable_extensions; do 10639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10640 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10642 break 2 10643 fi 10644 done 10645 done 10646 IFS=$as_save_IFS 10647 10648 ;; 10649 esac 10650 fi 10651 RMDIR=$ac_cv_path_RMDIR 10652 if test -n "$RMDIR"; then 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10654 $as_echo "$RMDIR" >&6; } 10655 else 10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10657 $as_echo "no" >&6; } 10658 fi 10659 10660 10661 test -n "$RMDIR" && break 10662 done 10663 10664 else 10665 # If it succeeded, then it was overridden by the user. We will use it 10666 # for the tool. 10667 10668 # First remove it from the list of overridden variables, so we can test 10669 # for unknown variables in the end. 10670 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10671 10672 # Check if we try to supply an empty value 10673 if test "x$RMDIR" = x; then 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10675 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10677 $as_echo_n "checking for RMDIR... " >&6; } 10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10679 $as_echo "disabled" >&6; } 10680 else 10681 # Check if the provided tool contains a complete path. 10682 tool_specified="$RMDIR" 10683 tool_basename="${tool_specified##*/}" 10684 if test "x$tool_basename" = "x$tool_specified"; then 10685 # A command without a complete path is provided, search $PATH. 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10687 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10688 # Extract the first word of "$tool_basename", so it can be a program name with args. 10689 set dummy $tool_basename; ac_word=$2 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10691 $as_echo_n "checking for $ac_word... " >&6; } 10692 if ${ac_cv_path_RMDIR+:} false; then : 10693 $as_echo_n "(cached) " >&6 10694 else 10695 case $RMDIR in 10696 [\\/]* | ?:[\\/]*) 10697 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10698 ;; 10699 *) 10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10701 for as_dir in $PATH 10702 do 10703 IFS=$as_save_IFS 10704 test -z "$as_dir" && as_dir=. 10705 for ac_exec_ext in '' $ac_executable_extensions; do 10706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10707 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10709 break 2 10710 fi 10711 done 10712 done 10713 IFS=$as_save_IFS 10714 10715 ;; 10716 esac 10717 fi 10718 RMDIR=$ac_cv_path_RMDIR 10719 if test -n "$RMDIR"; then 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10721 $as_echo "$RMDIR" >&6; } 10722 else 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10724 $as_echo "no" >&6; } 10725 fi 10726 10727 10728 if test "x$RMDIR" = x; then 10729 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10730 fi 10731 else 10732 # Otherwise we believe it is a complete path. Use it as it is. 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10734 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10736 $as_echo_n "checking for RMDIR... " >&6; } 10737 if test ! -x "$tool_specified"; then 10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10739 $as_echo "not found" >&6; } 10740 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10741 fi 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10743 $as_echo "$tool_specified" >&6; } 10744 fi 10745 fi 10746 fi 10747 10748 fi 10749 10750 10751 10752 if test "x$RMDIR" = x; then 10753 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10754 fi 10755 10756 10757 10758 10759 10760 # Publish this variable in the help. 10761 10762 10763 if [ -z "${SH+x}" ]; then 10764 # The variable is not set by user, try to locate tool using the code snippet 10765 for ac_prog in sh 10766 do 10767 # Extract the first word of "$ac_prog", so it can be a program name with args. 10768 set dummy $ac_prog; ac_word=$2 10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10770 $as_echo_n "checking for $ac_word... " >&6; } 10771 if ${ac_cv_path_SH+:} false; then : 10772 $as_echo_n "(cached) " >&6 10773 else 10774 case $SH in 10775 [\\/]* | ?:[\\/]*) 10776 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10777 ;; 10778 *) 10779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10780 for as_dir in $PATH 10781 do 10782 IFS=$as_save_IFS 10783 test -z "$as_dir" && as_dir=. 10784 for ac_exec_ext in '' $ac_executable_extensions; do 10785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10786 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10788 break 2 10789 fi 10790 done 10791 done 10792 IFS=$as_save_IFS 10793 10794 ;; 10795 esac 10796 fi 10797 SH=$ac_cv_path_SH 10798 if test -n "$SH"; then 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10800 $as_echo "$SH" >&6; } 10801 else 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10803 $as_echo "no" >&6; } 10804 fi 10805 10806 10807 test -n "$SH" && break 10808 done 10809 10810 else 10811 # The variable is set, but is it from the command line or the environment? 10812 10813 # Try to remove the string !SH! from our list. 10814 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10815 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10816 # If it failed, the variable was not from the command line. Ignore it, 10817 # but warn the user (except for BASH, which is always set by the calling BASH). 10818 if test "xSH" != xBASH; then 10819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10820 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10821 fi 10822 # Try to locate tool using the code snippet 10823 for ac_prog in sh 10824 do 10825 # Extract the first word of "$ac_prog", so it can be a program name with args. 10826 set dummy $ac_prog; ac_word=$2 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10828 $as_echo_n "checking for $ac_word... " >&6; } 10829 if ${ac_cv_path_SH+:} false; then : 10830 $as_echo_n "(cached) " >&6 10831 else 10832 case $SH in 10833 [\\/]* | ?:[\\/]*) 10834 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10835 ;; 10836 *) 10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10838 for as_dir in $PATH 10839 do 10840 IFS=$as_save_IFS 10841 test -z "$as_dir" && as_dir=. 10842 for ac_exec_ext in '' $ac_executable_extensions; do 10843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10844 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10846 break 2 10847 fi 10848 done 10849 done 10850 IFS=$as_save_IFS 10851 10852 ;; 10853 esac 10854 fi 10855 SH=$ac_cv_path_SH 10856 if test -n "$SH"; then 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10858 $as_echo "$SH" >&6; } 10859 else 10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10861 $as_echo "no" >&6; } 10862 fi 10863 10864 10865 test -n "$SH" && break 10866 done 10867 10868 else 10869 # If it succeeded, then it was overridden by the user. We will use it 10870 # for the tool. 10871 10872 # First remove it from the list of overridden variables, so we can test 10873 # for unknown variables in the end. 10874 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10875 10876 # Check if we try to supply an empty value 10877 if test "x$SH" = x; then 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10879 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10881 $as_echo_n "checking for SH... " >&6; } 10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10883 $as_echo "disabled" >&6; } 10884 else 10885 # Check if the provided tool contains a complete path. 10886 tool_specified="$SH" 10887 tool_basename="${tool_specified##*/}" 10888 if test "x$tool_basename" = "x$tool_specified"; then 10889 # A command without a complete path is provided, search $PATH. 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10891 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10892 # Extract the first word of "$tool_basename", so it can be a program name with args. 10893 set dummy $tool_basename; ac_word=$2 10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10895 $as_echo_n "checking for $ac_word... " >&6; } 10896 if ${ac_cv_path_SH+:} false; then : 10897 $as_echo_n "(cached) " >&6 10898 else 10899 case $SH in 10900 [\\/]* | ?:[\\/]*) 10901 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10902 ;; 10903 *) 10904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10905 for as_dir in $PATH 10906 do 10907 IFS=$as_save_IFS 10908 test -z "$as_dir" && as_dir=. 10909 for ac_exec_ext in '' $ac_executable_extensions; do 10910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10911 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10913 break 2 10914 fi 10915 done 10916 done 10917 IFS=$as_save_IFS 10918 10919 ;; 10920 esac 10921 fi 10922 SH=$ac_cv_path_SH 10923 if test -n "$SH"; then 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10925 $as_echo "$SH" >&6; } 10926 else 10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10928 $as_echo "no" >&6; } 10929 fi 10930 10931 10932 if test "x$SH" = x; then 10933 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10934 fi 10935 else 10936 # Otherwise we believe it is a complete path. Use it as it is. 10937 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10938 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10940 $as_echo_n "checking for SH... " >&6; } 10941 if test ! -x "$tool_specified"; then 10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10943 $as_echo "not found" >&6; } 10944 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10945 fi 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10947 $as_echo "$tool_specified" >&6; } 10948 fi 10949 fi 10950 fi 10951 10952 fi 10953 10954 10955 10956 if test "x$SH" = x; then 10957 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10958 fi 10959 10960 10961 10962 10963 10964 # Publish this variable in the help. 10965 10966 10967 if [ -z "${SORT+x}" ]; then 10968 # The variable is not set by user, try to locate tool using the code snippet 10969 for ac_prog in sort 10970 do 10971 # Extract the first word of "$ac_prog", so it can be a program name with args. 10972 set dummy $ac_prog; ac_word=$2 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10974 $as_echo_n "checking for $ac_word... " >&6; } 10975 if ${ac_cv_path_SORT+:} false; then : 10976 $as_echo_n "(cached) " >&6 10977 else 10978 case $SORT in 10979 [\\/]* | ?:[\\/]*) 10980 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10981 ;; 10982 *) 10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10984 for as_dir in $PATH 10985 do 10986 IFS=$as_save_IFS 10987 test -z "$as_dir" && as_dir=. 10988 for ac_exec_ext in '' $ac_executable_extensions; do 10989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10990 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10992 break 2 10993 fi 10994 done 10995 done 10996 IFS=$as_save_IFS 10997 10998 ;; 10999 esac 11000 fi 11001 SORT=$ac_cv_path_SORT 11002 if test -n "$SORT"; then 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11004 $as_echo "$SORT" >&6; } 11005 else 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11007 $as_echo "no" >&6; } 11008 fi 11009 11010 11011 test -n "$SORT" && break 11012 done 11013 11014 else 11015 # The variable is set, but is it from the command line or the environment? 11016 11017 # Try to remove the string !SORT! from our list. 11018 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 11019 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11020 # If it failed, the variable was not from the command line. Ignore it, 11021 # but warn the user (except for BASH, which is always set by the calling BASH). 11022 if test "xSORT" != xBASH; then 11023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 11024 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 11025 fi 11026 # Try to locate tool using the code snippet 11027 for ac_prog in sort 11028 do 11029 # Extract the first word of "$ac_prog", so it can be a program name with args. 11030 set dummy $ac_prog; ac_word=$2 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11032 $as_echo_n "checking for $ac_word... " >&6; } 11033 if ${ac_cv_path_SORT+:} false; then : 11034 $as_echo_n "(cached) " >&6 11035 else 11036 case $SORT in 11037 [\\/]* | ?:[\\/]*) 11038 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11039 ;; 11040 *) 11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11042 for as_dir in $PATH 11043 do 11044 IFS=$as_save_IFS 11045 test -z "$as_dir" && as_dir=. 11046 for ac_exec_ext in '' $ac_executable_extensions; do 11047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11048 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11050 break 2 11051 fi 11052 done 11053 done 11054 IFS=$as_save_IFS 11055 11056 ;; 11057 esac 11058 fi 11059 SORT=$ac_cv_path_SORT 11060 if test -n "$SORT"; then 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11062 $as_echo "$SORT" >&6; } 11063 else 11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11065 $as_echo "no" >&6; } 11066 fi 11067 11068 11069 test -n "$SORT" && break 11070 done 11071 11072 else 11073 # If it succeeded, then it was overridden by the user. We will use it 11074 # for the tool. 11075 11076 # First remove it from the list of overridden variables, so we can test 11077 # for unknown variables in the end. 11078 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11079 11080 # Check if we try to supply an empty value 11081 if test "x$SORT" = x; then 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11083 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11085 $as_echo_n "checking for SORT... " >&6; } 11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11087 $as_echo "disabled" >&6; } 11088 else 11089 # Check if the provided tool contains a complete path. 11090 tool_specified="$SORT" 11091 tool_basename="${tool_specified##*/}" 11092 if test "x$tool_basename" = "x$tool_specified"; then 11093 # A command without a complete path is provided, search $PATH. 11094 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11095 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11096 # Extract the first word of "$tool_basename", so it can be a program name with args. 11097 set dummy $tool_basename; ac_word=$2 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11099 $as_echo_n "checking for $ac_word... " >&6; } 11100 if ${ac_cv_path_SORT+:} false; then : 11101 $as_echo_n "(cached) " >&6 11102 else 11103 case $SORT in 11104 [\\/]* | ?:[\\/]*) 11105 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11106 ;; 11107 *) 11108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11109 for as_dir in $PATH 11110 do 11111 IFS=$as_save_IFS 11112 test -z "$as_dir" && as_dir=. 11113 for ac_exec_ext in '' $ac_executable_extensions; do 11114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11115 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11117 break 2 11118 fi 11119 done 11120 done 11121 IFS=$as_save_IFS 11122 11123 ;; 11124 esac 11125 fi 11126 SORT=$ac_cv_path_SORT 11127 if test -n "$SORT"; then 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11129 $as_echo "$SORT" >&6; } 11130 else 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11132 $as_echo "no" >&6; } 11133 fi 11134 11135 11136 if test "x$SORT" = x; then 11137 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11138 fi 11139 else 11140 # Otherwise we believe it is a complete path. Use it as it is. 11141 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11142 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11144 $as_echo_n "checking for SORT... " >&6; } 11145 if test ! -x "$tool_specified"; then 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11147 $as_echo "not found" >&6; } 11148 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11149 fi 11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11151 $as_echo "$tool_specified" >&6; } 11152 fi 11153 fi 11154 fi 11155 11156 fi 11157 11158 11159 11160 if test "x$SORT" = x; then 11161 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11162 fi 11163 11164 11165 11166 11167 11168 # Publish this variable in the help. 11169 11170 11171 if [ -z "${TAIL+x}" ]; then 11172 # The variable is not set by user, try to locate tool using the code snippet 11173 for ac_prog in tail 11174 do 11175 # Extract the first word of "$ac_prog", so it can be a program name with args. 11176 set dummy $ac_prog; ac_word=$2 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11178 $as_echo_n "checking for $ac_word... " >&6; } 11179 if ${ac_cv_path_TAIL+:} false; then : 11180 $as_echo_n "(cached) " >&6 11181 else 11182 case $TAIL in 11183 [\\/]* | ?:[\\/]*) 11184 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11185 ;; 11186 *) 11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11188 for as_dir in $PATH 11189 do 11190 IFS=$as_save_IFS 11191 test -z "$as_dir" && as_dir=. 11192 for ac_exec_ext in '' $ac_executable_extensions; do 11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11194 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11196 break 2 11197 fi 11198 done 11199 done 11200 IFS=$as_save_IFS 11201 11202 ;; 11203 esac 11204 fi 11205 TAIL=$ac_cv_path_TAIL 11206 if test -n "$TAIL"; then 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11208 $as_echo "$TAIL" >&6; } 11209 else 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11211 $as_echo "no" >&6; } 11212 fi 11213 11214 11215 test -n "$TAIL" && break 11216 done 11217 11218 else 11219 # The variable is set, but is it from the command line or the environment? 11220 11221 # Try to remove the string !TAIL! from our list. 11222 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11223 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11224 # If it failed, the variable was not from the command line. Ignore it, 11225 # but warn the user (except for BASH, which is always set by the calling BASH). 11226 if test "xTAIL" != xBASH; then 11227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11228 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11229 fi 11230 # Try to locate tool using the code snippet 11231 for ac_prog in tail 11232 do 11233 # Extract the first word of "$ac_prog", so it can be a program name with args. 11234 set dummy $ac_prog; ac_word=$2 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11236 $as_echo_n "checking for $ac_word... " >&6; } 11237 if ${ac_cv_path_TAIL+:} false; then : 11238 $as_echo_n "(cached) " >&6 11239 else 11240 case $TAIL in 11241 [\\/]* | ?:[\\/]*) 11242 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11243 ;; 11244 *) 11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11246 for as_dir in $PATH 11247 do 11248 IFS=$as_save_IFS 11249 test -z "$as_dir" && as_dir=. 11250 for ac_exec_ext in '' $ac_executable_extensions; do 11251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11252 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11254 break 2 11255 fi 11256 done 11257 done 11258 IFS=$as_save_IFS 11259 11260 ;; 11261 esac 11262 fi 11263 TAIL=$ac_cv_path_TAIL 11264 if test -n "$TAIL"; then 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11266 $as_echo "$TAIL" >&6; } 11267 else 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11269 $as_echo "no" >&6; } 11270 fi 11271 11272 11273 test -n "$TAIL" && break 11274 done 11275 11276 else 11277 # If it succeeded, then it was overridden by the user. We will use it 11278 # for the tool. 11279 11280 # First remove it from the list of overridden variables, so we can test 11281 # for unknown variables in the end. 11282 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11283 11284 # Check if we try to supply an empty value 11285 if test "x$TAIL" = x; then 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11287 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11289 $as_echo_n "checking for TAIL... " >&6; } 11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11291 $as_echo "disabled" >&6; } 11292 else 11293 # Check if the provided tool contains a complete path. 11294 tool_specified="$TAIL" 11295 tool_basename="${tool_specified##*/}" 11296 if test "x$tool_basename" = "x$tool_specified"; then 11297 # A command without a complete path is provided, search $PATH. 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11299 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11300 # Extract the first word of "$tool_basename", so it can be a program name with args. 11301 set dummy $tool_basename; ac_word=$2 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11303 $as_echo_n "checking for $ac_word... " >&6; } 11304 if ${ac_cv_path_TAIL+:} false; then : 11305 $as_echo_n "(cached) " >&6 11306 else 11307 case $TAIL in 11308 [\\/]* | ?:[\\/]*) 11309 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11310 ;; 11311 *) 11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11313 for as_dir in $PATH 11314 do 11315 IFS=$as_save_IFS 11316 test -z "$as_dir" && as_dir=. 11317 for ac_exec_ext in '' $ac_executable_extensions; do 11318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11319 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11321 break 2 11322 fi 11323 done 11324 done 11325 IFS=$as_save_IFS 11326 11327 ;; 11328 esac 11329 fi 11330 TAIL=$ac_cv_path_TAIL 11331 if test -n "$TAIL"; then 11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11333 $as_echo "$TAIL" >&6; } 11334 else 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11336 $as_echo "no" >&6; } 11337 fi 11338 11339 11340 if test "x$TAIL" = x; then 11341 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11342 fi 11343 else 11344 # Otherwise we believe it is a complete path. Use it as it is. 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11346 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11348 $as_echo_n "checking for TAIL... " >&6; } 11349 if test ! -x "$tool_specified"; then 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11351 $as_echo "not found" >&6; } 11352 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11353 fi 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11355 $as_echo "$tool_specified" >&6; } 11356 fi 11357 fi 11358 fi 11359 11360 fi 11361 11362 11363 11364 if test "x$TAIL" = x; then 11365 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11366 fi 11367 11368 11369 11370 11371 11372 # Publish this variable in the help. 11373 11374 11375 if [ -z "${TAR+x}" ]; then 11376 # The variable is not set by user, try to locate tool using the code snippet 11377 for ac_prog in gtar tar 11378 do 11379 # Extract the first word of "$ac_prog", so it can be a program name with args. 11380 set dummy $ac_prog; ac_word=$2 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11382 $as_echo_n "checking for $ac_word... " >&6; } 11383 if ${ac_cv_path_TAR+:} false; then : 11384 $as_echo_n "(cached) " >&6 11385 else 11386 case $TAR in 11387 [\\/]* | ?:[\\/]*) 11388 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11389 ;; 11390 *) 11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11392 for as_dir in $PATH 11393 do 11394 IFS=$as_save_IFS 11395 test -z "$as_dir" && as_dir=. 11396 for ac_exec_ext in '' $ac_executable_extensions; do 11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11398 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11400 break 2 11401 fi 11402 done 11403 done 11404 IFS=$as_save_IFS 11405 11406 ;; 11407 esac 11408 fi 11409 TAR=$ac_cv_path_TAR 11410 if test -n "$TAR"; then 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11412 $as_echo "$TAR" >&6; } 11413 else 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11415 $as_echo "no" >&6; } 11416 fi 11417 11418 11419 test -n "$TAR" && break 11420 done 11421 11422 else 11423 # The variable is set, but is it from the command line or the environment? 11424 11425 # Try to remove the string !TAR! from our list. 11426 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11427 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11428 # If it failed, the variable was not from the command line. Ignore it, 11429 # but warn the user (except for BASH, which is always set by the calling BASH). 11430 if test "xTAR" != xBASH; then 11431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11432 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11433 fi 11434 # Try to locate tool using the code snippet 11435 for ac_prog in gtar tar 11436 do 11437 # Extract the first word of "$ac_prog", so it can be a program name with args. 11438 set dummy $ac_prog; ac_word=$2 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11440 $as_echo_n "checking for $ac_word... " >&6; } 11441 if ${ac_cv_path_TAR+:} false; then : 11442 $as_echo_n "(cached) " >&6 11443 else 11444 case $TAR in 11445 [\\/]* | ?:[\\/]*) 11446 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11447 ;; 11448 *) 11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11450 for as_dir in $PATH 11451 do 11452 IFS=$as_save_IFS 11453 test -z "$as_dir" && as_dir=. 11454 for ac_exec_ext in '' $ac_executable_extensions; do 11455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11456 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11458 break 2 11459 fi 11460 done 11461 done 11462 IFS=$as_save_IFS 11463 11464 ;; 11465 esac 11466 fi 11467 TAR=$ac_cv_path_TAR 11468 if test -n "$TAR"; then 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11470 $as_echo "$TAR" >&6; } 11471 else 11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11473 $as_echo "no" >&6; } 11474 fi 11475 11476 11477 test -n "$TAR" && break 11478 done 11479 11480 else 11481 # If it succeeded, then it was overridden by the user. We will use it 11482 # for the tool. 11483 11484 # First remove it from the list of overridden variables, so we can test 11485 # for unknown variables in the end. 11486 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11487 11488 # Check if we try to supply an empty value 11489 if test "x$TAR" = x; then 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11491 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11493 $as_echo_n "checking for TAR... " >&6; } 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11495 $as_echo "disabled" >&6; } 11496 else 11497 # Check if the provided tool contains a complete path. 11498 tool_specified="$TAR" 11499 tool_basename="${tool_specified##*/}" 11500 if test "x$tool_basename" = "x$tool_specified"; then 11501 # A command without a complete path is provided, search $PATH. 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11503 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11504 # Extract the first word of "$tool_basename", so it can be a program name with args. 11505 set dummy $tool_basename; ac_word=$2 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11507 $as_echo_n "checking for $ac_word... " >&6; } 11508 if ${ac_cv_path_TAR+:} false; then : 11509 $as_echo_n "(cached) " >&6 11510 else 11511 case $TAR in 11512 [\\/]* | ?:[\\/]*) 11513 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11514 ;; 11515 *) 11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11517 for as_dir in $PATH 11518 do 11519 IFS=$as_save_IFS 11520 test -z "$as_dir" && as_dir=. 11521 for ac_exec_ext in '' $ac_executable_extensions; do 11522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11523 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11525 break 2 11526 fi 11527 done 11528 done 11529 IFS=$as_save_IFS 11530 11531 ;; 11532 esac 11533 fi 11534 TAR=$ac_cv_path_TAR 11535 if test -n "$TAR"; then 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11537 $as_echo "$TAR" >&6; } 11538 else 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11540 $as_echo "no" >&6; } 11541 fi 11542 11543 11544 if test "x$TAR" = x; then 11545 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11546 fi 11547 else 11548 # Otherwise we believe it is a complete path. Use it as it is. 11549 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11550 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11552 $as_echo_n "checking for TAR... " >&6; } 11553 if test ! -x "$tool_specified"; then 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11555 $as_echo "not found" >&6; } 11556 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11557 fi 11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11559 $as_echo "$tool_specified" >&6; } 11560 fi 11561 fi 11562 fi 11563 11564 fi 11565 11566 11567 11568 if test "x$TAR" = x; then 11569 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11570 fi 11571 11572 11573 11574 11575 11576 # Publish this variable in the help. 11577 11578 11579 if [ -z "${TEE+x}" ]; then 11580 # The variable is not set by user, try to locate tool using the code snippet 11581 for ac_prog in tee 11582 do 11583 # Extract the first word of "$ac_prog", so it can be a program name with args. 11584 set dummy $ac_prog; ac_word=$2 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11586 $as_echo_n "checking for $ac_word... " >&6; } 11587 if ${ac_cv_path_TEE+:} false; then : 11588 $as_echo_n "(cached) " >&6 11589 else 11590 case $TEE in 11591 [\\/]* | ?:[\\/]*) 11592 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11593 ;; 11594 *) 11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11596 for as_dir in $PATH 11597 do 11598 IFS=$as_save_IFS 11599 test -z "$as_dir" && as_dir=. 11600 for ac_exec_ext in '' $ac_executable_extensions; do 11601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11602 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11604 break 2 11605 fi 11606 done 11607 done 11608 IFS=$as_save_IFS 11609 11610 ;; 11611 esac 11612 fi 11613 TEE=$ac_cv_path_TEE 11614 if test -n "$TEE"; then 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11616 $as_echo "$TEE" >&6; } 11617 else 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11619 $as_echo "no" >&6; } 11620 fi 11621 11622 11623 test -n "$TEE" && break 11624 done 11625 11626 else 11627 # The variable is set, but is it from the command line or the environment? 11628 11629 # Try to remove the string !TEE! from our list. 11630 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11631 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11632 # If it failed, the variable was not from the command line. Ignore it, 11633 # but warn the user (except for BASH, which is always set by the calling BASH). 11634 if test "xTEE" != xBASH; then 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11636 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11637 fi 11638 # Try to locate tool using the code snippet 11639 for ac_prog in tee 11640 do 11641 # Extract the first word of "$ac_prog", so it can be a program name with args. 11642 set dummy $ac_prog; ac_word=$2 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11644 $as_echo_n "checking for $ac_word... " >&6; } 11645 if ${ac_cv_path_TEE+:} false; then : 11646 $as_echo_n "(cached) " >&6 11647 else 11648 case $TEE in 11649 [\\/]* | ?:[\\/]*) 11650 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11651 ;; 11652 *) 11653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11654 for as_dir in $PATH 11655 do 11656 IFS=$as_save_IFS 11657 test -z "$as_dir" && as_dir=. 11658 for ac_exec_ext in '' $ac_executable_extensions; do 11659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11660 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11662 break 2 11663 fi 11664 done 11665 done 11666 IFS=$as_save_IFS 11667 11668 ;; 11669 esac 11670 fi 11671 TEE=$ac_cv_path_TEE 11672 if test -n "$TEE"; then 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11674 $as_echo "$TEE" >&6; } 11675 else 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11677 $as_echo "no" >&6; } 11678 fi 11679 11680 11681 test -n "$TEE" && break 11682 done 11683 11684 else 11685 # If it succeeded, then it was overridden by the user. We will use it 11686 # for the tool. 11687 11688 # First remove it from the list of overridden variables, so we can test 11689 # for unknown variables in the end. 11690 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11691 11692 # Check if we try to supply an empty value 11693 if test "x$TEE" = x; then 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11695 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11697 $as_echo_n "checking for TEE... " >&6; } 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11699 $as_echo "disabled" >&6; } 11700 else 11701 # Check if the provided tool contains a complete path. 11702 tool_specified="$TEE" 11703 tool_basename="${tool_specified##*/}" 11704 if test "x$tool_basename" = "x$tool_specified"; then 11705 # A command without a complete path is provided, search $PATH. 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11707 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11708 # Extract the first word of "$tool_basename", so it can be a program name with args. 11709 set dummy $tool_basename; ac_word=$2 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11711 $as_echo_n "checking for $ac_word... " >&6; } 11712 if ${ac_cv_path_TEE+:} false; then : 11713 $as_echo_n "(cached) " >&6 11714 else 11715 case $TEE in 11716 [\\/]* | ?:[\\/]*) 11717 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11718 ;; 11719 *) 11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11721 for as_dir in $PATH 11722 do 11723 IFS=$as_save_IFS 11724 test -z "$as_dir" && as_dir=. 11725 for ac_exec_ext in '' $ac_executable_extensions; do 11726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11727 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11729 break 2 11730 fi 11731 done 11732 done 11733 IFS=$as_save_IFS 11734 11735 ;; 11736 esac 11737 fi 11738 TEE=$ac_cv_path_TEE 11739 if test -n "$TEE"; then 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11741 $as_echo "$TEE" >&6; } 11742 else 11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11744 $as_echo "no" >&6; } 11745 fi 11746 11747 11748 if test "x$TEE" = x; then 11749 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11750 fi 11751 else 11752 # Otherwise we believe it is a complete path. Use it as it is. 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11754 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11756 $as_echo_n "checking for TEE... " >&6; } 11757 if test ! -x "$tool_specified"; then 11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11759 $as_echo "not found" >&6; } 11760 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11761 fi 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11763 $as_echo "$tool_specified" >&6; } 11764 fi 11765 fi 11766 fi 11767 11768 fi 11769 11770 11771 11772 if test "x$TEE" = x; then 11773 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11774 fi 11775 11776 11777 11778 11779 11780 # Publish this variable in the help. 11781 11782 11783 if [ -z "${TOUCH+x}" ]; then 11784 # The variable is not set by user, try to locate tool using the code snippet 11785 for ac_prog in touch 11786 do 11787 # Extract the first word of "$ac_prog", so it can be a program name with args. 11788 set dummy $ac_prog; ac_word=$2 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11790 $as_echo_n "checking for $ac_word... " >&6; } 11791 if ${ac_cv_path_TOUCH+:} false; then : 11792 $as_echo_n "(cached) " >&6 11793 else 11794 case $TOUCH in 11795 [\\/]* | ?:[\\/]*) 11796 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11797 ;; 11798 *) 11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11800 for as_dir in $PATH 11801 do 11802 IFS=$as_save_IFS 11803 test -z "$as_dir" && as_dir=. 11804 for ac_exec_ext in '' $ac_executable_extensions; do 11805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11806 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11808 break 2 11809 fi 11810 done 11811 done 11812 IFS=$as_save_IFS 11813 11814 ;; 11815 esac 11816 fi 11817 TOUCH=$ac_cv_path_TOUCH 11818 if test -n "$TOUCH"; then 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11820 $as_echo "$TOUCH" >&6; } 11821 else 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11823 $as_echo "no" >&6; } 11824 fi 11825 11826 11827 test -n "$TOUCH" && break 11828 done 11829 11830 else 11831 # The variable is set, but is it from the command line or the environment? 11832 11833 # Try to remove the string !TOUCH! from our list. 11834 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11835 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11836 # If it failed, the variable was not from the command line. Ignore it, 11837 # but warn the user (except for BASH, which is always set by the calling BASH). 11838 if test "xTOUCH" != xBASH; then 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11840 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11841 fi 11842 # Try to locate tool using the code snippet 11843 for ac_prog in touch 11844 do 11845 # Extract the first word of "$ac_prog", so it can be a program name with args. 11846 set dummy $ac_prog; ac_word=$2 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11848 $as_echo_n "checking for $ac_word... " >&6; } 11849 if ${ac_cv_path_TOUCH+:} false; then : 11850 $as_echo_n "(cached) " >&6 11851 else 11852 case $TOUCH in 11853 [\\/]* | ?:[\\/]*) 11854 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11855 ;; 11856 *) 11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11858 for as_dir in $PATH 11859 do 11860 IFS=$as_save_IFS 11861 test -z "$as_dir" && as_dir=. 11862 for ac_exec_ext in '' $ac_executable_extensions; do 11863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11864 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11866 break 2 11867 fi 11868 done 11869 done 11870 IFS=$as_save_IFS 11871 11872 ;; 11873 esac 11874 fi 11875 TOUCH=$ac_cv_path_TOUCH 11876 if test -n "$TOUCH"; then 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11878 $as_echo "$TOUCH" >&6; } 11879 else 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11881 $as_echo "no" >&6; } 11882 fi 11883 11884 11885 test -n "$TOUCH" && break 11886 done 11887 11888 else 11889 # If it succeeded, then it was overridden by the user. We will use it 11890 # for the tool. 11891 11892 # First remove it from the list of overridden variables, so we can test 11893 # for unknown variables in the end. 11894 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11895 11896 # Check if we try to supply an empty value 11897 if test "x$TOUCH" = x; then 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11899 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11901 $as_echo_n "checking for TOUCH... " >&6; } 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11903 $as_echo "disabled" >&6; } 11904 else 11905 # Check if the provided tool contains a complete path. 11906 tool_specified="$TOUCH" 11907 tool_basename="${tool_specified##*/}" 11908 if test "x$tool_basename" = "x$tool_specified"; then 11909 # A command without a complete path is provided, search $PATH. 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11911 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11912 # Extract the first word of "$tool_basename", so it can be a program name with args. 11913 set dummy $tool_basename; ac_word=$2 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11915 $as_echo_n "checking for $ac_word... " >&6; } 11916 if ${ac_cv_path_TOUCH+:} false; then : 11917 $as_echo_n "(cached) " >&6 11918 else 11919 case $TOUCH in 11920 [\\/]* | ?:[\\/]*) 11921 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11922 ;; 11923 *) 11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11925 for as_dir in $PATH 11926 do 11927 IFS=$as_save_IFS 11928 test -z "$as_dir" && as_dir=. 11929 for ac_exec_ext in '' $ac_executable_extensions; do 11930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11931 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11933 break 2 11934 fi 11935 done 11936 done 11937 IFS=$as_save_IFS 11938 11939 ;; 11940 esac 11941 fi 11942 TOUCH=$ac_cv_path_TOUCH 11943 if test -n "$TOUCH"; then 11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11945 $as_echo "$TOUCH" >&6; } 11946 else 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11948 $as_echo "no" >&6; } 11949 fi 11950 11951 11952 if test "x$TOUCH" = x; then 11953 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11954 fi 11955 else 11956 # Otherwise we believe it is a complete path. Use it as it is. 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11958 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11960 $as_echo_n "checking for TOUCH... " >&6; } 11961 if test ! -x "$tool_specified"; then 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11963 $as_echo "not found" >&6; } 11964 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11965 fi 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11967 $as_echo "$tool_specified" >&6; } 11968 fi 11969 fi 11970 fi 11971 11972 fi 11973 11974 11975 11976 if test "x$TOUCH" = x; then 11977 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11978 fi 11979 11980 11981 11982 11983 11984 # Publish this variable in the help. 11985 11986 11987 if [ -z "${TR+x}" ]; then 11988 # The variable is not set by user, try to locate tool using the code snippet 11989 for ac_prog in tr 11990 do 11991 # Extract the first word of "$ac_prog", so it can be a program name with args. 11992 set dummy $ac_prog; ac_word=$2 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11994 $as_echo_n "checking for $ac_word... " >&6; } 11995 if ${ac_cv_path_TR+:} false; then : 11996 $as_echo_n "(cached) " >&6 11997 else 11998 case $TR in 11999 [\\/]* | ?:[\\/]*) 12000 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12001 ;; 12002 *) 12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12004 for as_dir in $PATH 12005 do 12006 IFS=$as_save_IFS 12007 test -z "$as_dir" && as_dir=. 12008 for ac_exec_ext in '' $ac_executable_extensions; do 12009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12010 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12012 break 2 12013 fi 12014 done 12015 done 12016 IFS=$as_save_IFS 12017 12018 ;; 12019 esac 12020 fi 12021 TR=$ac_cv_path_TR 12022 if test -n "$TR"; then 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12024 $as_echo "$TR" >&6; } 12025 else 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12027 $as_echo "no" >&6; } 12028 fi 12029 12030 12031 test -n "$TR" && break 12032 done 12033 12034 else 12035 # The variable is set, but is it from the command line or the environment? 12036 12037 # Try to remove the string !TR! from our list. 12038 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 12039 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12040 # If it failed, the variable was not from the command line. Ignore it, 12041 # but warn the user (except for BASH, which is always set by the calling BASH). 12042 if test "xTR" != xBASH; then 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 12044 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 12045 fi 12046 # Try to locate tool using the code snippet 12047 for ac_prog in tr 12048 do 12049 # Extract the first word of "$ac_prog", so it can be a program name with args. 12050 set dummy $ac_prog; ac_word=$2 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12052 $as_echo_n "checking for $ac_word... " >&6; } 12053 if ${ac_cv_path_TR+:} false; then : 12054 $as_echo_n "(cached) " >&6 12055 else 12056 case $TR in 12057 [\\/]* | ?:[\\/]*) 12058 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12059 ;; 12060 *) 12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12062 for as_dir in $PATH 12063 do 12064 IFS=$as_save_IFS 12065 test -z "$as_dir" && as_dir=. 12066 for ac_exec_ext in '' $ac_executable_extensions; do 12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12068 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12070 break 2 12071 fi 12072 done 12073 done 12074 IFS=$as_save_IFS 12075 12076 ;; 12077 esac 12078 fi 12079 TR=$ac_cv_path_TR 12080 if test -n "$TR"; then 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12082 $as_echo "$TR" >&6; } 12083 else 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12085 $as_echo "no" >&6; } 12086 fi 12087 12088 12089 test -n "$TR" && break 12090 done 12091 12092 else 12093 # If it succeeded, then it was overridden by the user. We will use it 12094 # for the tool. 12095 12096 # First remove it from the list of overridden variables, so we can test 12097 # for unknown variables in the end. 12098 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12099 12100 # Check if we try to supply an empty value 12101 if test "x$TR" = x; then 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12103 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12105 $as_echo_n "checking for TR... " >&6; } 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12107 $as_echo "disabled" >&6; } 12108 else 12109 # Check if the provided tool contains a complete path. 12110 tool_specified="$TR" 12111 tool_basename="${tool_specified##*/}" 12112 if test "x$tool_basename" = "x$tool_specified"; then 12113 # A command without a complete path is provided, search $PATH. 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12115 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12116 # Extract the first word of "$tool_basename", so it can be a program name with args. 12117 set dummy $tool_basename; ac_word=$2 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12119 $as_echo_n "checking for $ac_word... " >&6; } 12120 if ${ac_cv_path_TR+:} false; then : 12121 $as_echo_n "(cached) " >&6 12122 else 12123 case $TR in 12124 [\\/]* | ?:[\\/]*) 12125 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12126 ;; 12127 *) 12128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12129 for as_dir in $PATH 12130 do 12131 IFS=$as_save_IFS 12132 test -z "$as_dir" && as_dir=. 12133 for ac_exec_ext in '' $ac_executable_extensions; do 12134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12135 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12137 break 2 12138 fi 12139 done 12140 done 12141 IFS=$as_save_IFS 12142 12143 ;; 12144 esac 12145 fi 12146 TR=$ac_cv_path_TR 12147 if test -n "$TR"; then 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12149 $as_echo "$TR" >&6; } 12150 else 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12152 $as_echo "no" >&6; } 12153 fi 12154 12155 12156 if test "x$TR" = x; then 12157 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12158 fi 12159 else 12160 # Otherwise we believe it is a complete path. Use it as it is. 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12162 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12164 $as_echo_n "checking for TR... " >&6; } 12165 if test ! -x "$tool_specified"; then 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12167 $as_echo "not found" >&6; } 12168 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12169 fi 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12171 $as_echo "$tool_specified" >&6; } 12172 fi 12173 fi 12174 fi 12175 12176 fi 12177 12178 12179 12180 if test "x$TR" = x; then 12181 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12182 fi 12183 12184 12185 12186 12187 12188 # Publish this variable in the help. 12189 12190 12191 if [ -z "${UNAME+x}" ]; then 12192 # The variable is not set by user, try to locate tool using the code snippet 12193 for ac_prog in uname 12194 do 12195 # Extract the first word of "$ac_prog", so it can be a program name with args. 12196 set dummy $ac_prog; ac_word=$2 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12198 $as_echo_n "checking for $ac_word... " >&6; } 12199 if ${ac_cv_path_UNAME+:} false; then : 12200 $as_echo_n "(cached) " >&6 12201 else 12202 case $UNAME in 12203 [\\/]* | ?:[\\/]*) 12204 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12205 ;; 12206 *) 12207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12208 for as_dir in $PATH 12209 do 12210 IFS=$as_save_IFS 12211 test -z "$as_dir" && as_dir=. 12212 for ac_exec_ext in '' $ac_executable_extensions; do 12213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12214 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12216 break 2 12217 fi 12218 done 12219 done 12220 IFS=$as_save_IFS 12221 12222 ;; 12223 esac 12224 fi 12225 UNAME=$ac_cv_path_UNAME 12226 if test -n "$UNAME"; then 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12228 $as_echo "$UNAME" >&6; } 12229 else 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12231 $as_echo "no" >&6; } 12232 fi 12233 12234 12235 test -n "$UNAME" && break 12236 done 12237 12238 else 12239 # The variable is set, but is it from the command line or the environment? 12240 12241 # Try to remove the string !UNAME! from our list. 12242 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12243 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12244 # If it failed, the variable was not from the command line. Ignore it, 12245 # but warn the user (except for BASH, which is always set by the calling BASH). 12246 if test "xUNAME" != xBASH; then 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12248 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12249 fi 12250 # Try to locate tool using the code snippet 12251 for ac_prog in uname 12252 do 12253 # Extract the first word of "$ac_prog", so it can be a program name with args. 12254 set dummy $ac_prog; ac_word=$2 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12256 $as_echo_n "checking for $ac_word... " >&6; } 12257 if ${ac_cv_path_UNAME+:} false; then : 12258 $as_echo_n "(cached) " >&6 12259 else 12260 case $UNAME in 12261 [\\/]* | ?:[\\/]*) 12262 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12263 ;; 12264 *) 12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12266 for as_dir in $PATH 12267 do 12268 IFS=$as_save_IFS 12269 test -z "$as_dir" && as_dir=. 12270 for ac_exec_ext in '' $ac_executable_extensions; do 12271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12272 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12274 break 2 12275 fi 12276 done 12277 done 12278 IFS=$as_save_IFS 12279 12280 ;; 12281 esac 12282 fi 12283 UNAME=$ac_cv_path_UNAME 12284 if test -n "$UNAME"; then 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12286 $as_echo "$UNAME" >&6; } 12287 else 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12289 $as_echo "no" >&6; } 12290 fi 12291 12292 12293 test -n "$UNAME" && break 12294 done 12295 12296 else 12297 # If it succeeded, then it was overridden by the user. We will use it 12298 # for the tool. 12299 12300 # First remove it from the list of overridden variables, so we can test 12301 # for unknown variables in the end. 12302 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12303 12304 # Check if we try to supply an empty value 12305 if test "x$UNAME" = x; then 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12307 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12309 $as_echo_n "checking for UNAME... " >&6; } 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12311 $as_echo "disabled" >&6; } 12312 else 12313 # Check if the provided tool contains a complete path. 12314 tool_specified="$UNAME" 12315 tool_basename="${tool_specified##*/}" 12316 if test "x$tool_basename" = "x$tool_specified"; then 12317 # A command without a complete path is provided, search $PATH. 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12319 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12320 # Extract the first word of "$tool_basename", so it can be a program name with args. 12321 set dummy $tool_basename; ac_word=$2 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12323 $as_echo_n "checking for $ac_word... " >&6; } 12324 if ${ac_cv_path_UNAME+:} false; then : 12325 $as_echo_n "(cached) " >&6 12326 else 12327 case $UNAME in 12328 [\\/]* | ?:[\\/]*) 12329 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12330 ;; 12331 *) 12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12333 for as_dir in $PATH 12334 do 12335 IFS=$as_save_IFS 12336 test -z "$as_dir" && as_dir=. 12337 for ac_exec_ext in '' $ac_executable_extensions; do 12338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12339 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12341 break 2 12342 fi 12343 done 12344 done 12345 IFS=$as_save_IFS 12346 12347 ;; 12348 esac 12349 fi 12350 UNAME=$ac_cv_path_UNAME 12351 if test -n "$UNAME"; then 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12353 $as_echo "$UNAME" >&6; } 12354 else 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12356 $as_echo "no" >&6; } 12357 fi 12358 12359 12360 if test "x$UNAME" = x; then 12361 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12362 fi 12363 else 12364 # Otherwise we believe it is a complete path. Use it as it is. 12365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12366 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12368 $as_echo_n "checking for UNAME... " >&6; } 12369 if test ! -x "$tool_specified"; then 12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12371 $as_echo "not found" >&6; } 12372 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12373 fi 12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12375 $as_echo "$tool_specified" >&6; } 12376 fi 12377 fi 12378 fi 12379 12380 fi 12381 12382 12383 12384 if test "x$UNAME" = x; then 12385 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12386 fi 12387 12388 12389 12390 12391 12392 # Publish this variable in the help. 12393 12394 12395 if [ -z "${UNIQ+x}" ]; then 12396 # The variable is not set by user, try to locate tool using the code snippet 12397 for ac_prog in uniq 12398 do 12399 # Extract the first word of "$ac_prog", so it can be a program name with args. 12400 set dummy $ac_prog; ac_word=$2 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12402 $as_echo_n "checking for $ac_word... " >&6; } 12403 if ${ac_cv_path_UNIQ+:} false; then : 12404 $as_echo_n "(cached) " >&6 12405 else 12406 case $UNIQ in 12407 [\\/]* | ?:[\\/]*) 12408 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12409 ;; 12410 *) 12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12412 for as_dir in $PATH 12413 do 12414 IFS=$as_save_IFS 12415 test -z "$as_dir" && as_dir=. 12416 for ac_exec_ext in '' $ac_executable_extensions; do 12417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12418 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12420 break 2 12421 fi 12422 done 12423 done 12424 IFS=$as_save_IFS 12425 12426 ;; 12427 esac 12428 fi 12429 UNIQ=$ac_cv_path_UNIQ 12430 if test -n "$UNIQ"; then 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12432 $as_echo "$UNIQ" >&6; } 12433 else 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12435 $as_echo "no" >&6; } 12436 fi 12437 12438 12439 test -n "$UNIQ" && break 12440 done 12441 12442 else 12443 # The variable is set, but is it from the command line or the environment? 12444 12445 # Try to remove the string !UNIQ! from our list. 12446 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12447 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12448 # If it failed, the variable was not from the command line. Ignore it, 12449 # but warn the user (except for BASH, which is always set by the calling BASH). 12450 if test "xUNIQ" != xBASH; then 12451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12452 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12453 fi 12454 # Try to locate tool using the code snippet 12455 for ac_prog in uniq 12456 do 12457 # Extract the first word of "$ac_prog", so it can be a program name with args. 12458 set dummy $ac_prog; ac_word=$2 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12460 $as_echo_n "checking for $ac_word... " >&6; } 12461 if ${ac_cv_path_UNIQ+:} false; then : 12462 $as_echo_n "(cached) " >&6 12463 else 12464 case $UNIQ in 12465 [\\/]* | ?:[\\/]*) 12466 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12467 ;; 12468 *) 12469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12470 for as_dir in $PATH 12471 do 12472 IFS=$as_save_IFS 12473 test -z "$as_dir" && as_dir=. 12474 for ac_exec_ext in '' $ac_executable_extensions; do 12475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12476 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12478 break 2 12479 fi 12480 done 12481 done 12482 IFS=$as_save_IFS 12483 12484 ;; 12485 esac 12486 fi 12487 UNIQ=$ac_cv_path_UNIQ 12488 if test -n "$UNIQ"; then 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12490 $as_echo "$UNIQ" >&6; } 12491 else 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12493 $as_echo "no" >&6; } 12494 fi 12495 12496 12497 test -n "$UNIQ" && break 12498 done 12499 12500 else 12501 # If it succeeded, then it was overridden by the user. We will use it 12502 # for the tool. 12503 12504 # First remove it from the list of overridden variables, so we can test 12505 # for unknown variables in the end. 12506 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12507 12508 # Check if we try to supply an empty value 12509 if test "x$UNIQ" = x; then 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12511 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12513 $as_echo_n "checking for UNIQ... " >&6; } 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12515 $as_echo "disabled" >&6; } 12516 else 12517 # Check if the provided tool contains a complete path. 12518 tool_specified="$UNIQ" 12519 tool_basename="${tool_specified##*/}" 12520 if test "x$tool_basename" = "x$tool_specified"; then 12521 # A command without a complete path is provided, search $PATH. 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12523 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12524 # Extract the first word of "$tool_basename", so it can be a program name with args. 12525 set dummy $tool_basename; ac_word=$2 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12527 $as_echo_n "checking for $ac_word... " >&6; } 12528 if ${ac_cv_path_UNIQ+:} false; then : 12529 $as_echo_n "(cached) " >&6 12530 else 12531 case $UNIQ in 12532 [\\/]* | ?:[\\/]*) 12533 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12534 ;; 12535 *) 12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12537 for as_dir in $PATH 12538 do 12539 IFS=$as_save_IFS 12540 test -z "$as_dir" && as_dir=. 12541 for ac_exec_ext in '' $ac_executable_extensions; do 12542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12543 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12545 break 2 12546 fi 12547 done 12548 done 12549 IFS=$as_save_IFS 12550 12551 ;; 12552 esac 12553 fi 12554 UNIQ=$ac_cv_path_UNIQ 12555 if test -n "$UNIQ"; then 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12557 $as_echo "$UNIQ" >&6; } 12558 else 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12560 $as_echo "no" >&6; } 12561 fi 12562 12563 12564 if test "x$UNIQ" = x; then 12565 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12566 fi 12567 else 12568 # Otherwise we believe it is a complete path. Use it as it is. 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12570 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12572 $as_echo_n "checking for UNIQ... " >&6; } 12573 if test ! -x "$tool_specified"; then 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12575 $as_echo "not found" >&6; } 12576 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12577 fi 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12579 $as_echo "$tool_specified" >&6; } 12580 fi 12581 fi 12582 fi 12583 12584 fi 12585 12586 12587 12588 if test "x$UNIQ" = x; then 12589 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12590 fi 12591 12592 12593 12594 12595 12596 # Publish this variable in the help. 12597 12598 12599 if [ -z "${WC+x}" ]; then 12600 # The variable is not set by user, try to locate tool using the code snippet 12601 for ac_prog in wc 12602 do 12603 # Extract the first word of "$ac_prog", so it can be a program name with args. 12604 set dummy $ac_prog; ac_word=$2 12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12606 $as_echo_n "checking for $ac_word... " >&6; } 12607 if ${ac_cv_path_WC+:} false; then : 12608 $as_echo_n "(cached) " >&6 12609 else 12610 case $WC in 12611 [\\/]* | ?:[\\/]*) 12612 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12613 ;; 12614 *) 12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12616 for as_dir in $PATH 12617 do 12618 IFS=$as_save_IFS 12619 test -z "$as_dir" && as_dir=. 12620 for ac_exec_ext in '' $ac_executable_extensions; do 12621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12622 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12624 break 2 12625 fi 12626 done 12627 done 12628 IFS=$as_save_IFS 12629 12630 ;; 12631 esac 12632 fi 12633 WC=$ac_cv_path_WC 12634 if test -n "$WC"; then 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12636 $as_echo "$WC" >&6; } 12637 else 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12639 $as_echo "no" >&6; } 12640 fi 12641 12642 12643 test -n "$WC" && break 12644 done 12645 12646 else 12647 # The variable is set, but is it from the command line or the environment? 12648 12649 # Try to remove the string !WC! from our list. 12650 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12651 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12652 # If it failed, the variable was not from the command line. Ignore it, 12653 # but warn the user (except for BASH, which is always set by the calling BASH). 12654 if test "xWC" != xBASH; then 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12656 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12657 fi 12658 # Try to locate tool using the code snippet 12659 for ac_prog in wc 12660 do 12661 # Extract the first word of "$ac_prog", so it can be a program name with args. 12662 set dummy $ac_prog; ac_word=$2 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12664 $as_echo_n "checking for $ac_word... " >&6; } 12665 if ${ac_cv_path_WC+:} false; then : 12666 $as_echo_n "(cached) " >&6 12667 else 12668 case $WC in 12669 [\\/]* | ?:[\\/]*) 12670 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12671 ;; 12672 *) 12673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12674 for as_dir in $PATH 12675 do 12676 IFS=$as_save_IFS 12677 test -z "$as_dir" && as_dir=. 12678 for ac_exec_ext in '' $ac_executable_extensions; do 12679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12680 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12682 break 2 12683 fi 12684 done 12685 done 12686 IFS=$as_save_IFS 12687 12688 ;; 12689 esac 12690 fi 12691 WC=$ac_cv_path_WC 12692 if test -n "$WC"; then 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12694 $as_echo "$WC" >&6; } 12695 else 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12697 $as_echo "no" >&6; } 12698 fi 12699 12700 12701 test -n "$WC" && break 12702 done 12703 12704 else 12705 # If it succeeded, then it was overridden by the user. We will use it 12706 # for the tool. 12707 12708 # First remove it from the list of overridden variables, so we can test 12709 # for unknown variables in the end. 12710 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12711 12712 # Check if we try to supply an empty value 12713 if test "x$WC" = x; then 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12715 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12717 $as_echo_n "checking for WC... " >&6; } 12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12719 $as_echo "disabled" >&6; } 12720 else 12721 # Check if the provided tool contains a complete path. 12722 tool_specified="$WC" 12723 tool_basename="${tool_specified##*/}" 12724 if test "x$tool_basename" = "x$tool_specified"; then 12725 # A command without a complete path is provided, search $PATH. 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12727 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12728 # Extract the first word of "$tool_basename", so it can be a program name with args. 12729 set dummy $tool_basename; ac_word=$2 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12731 $as_echo_n "checking for $ac_word... " >&6; } 12732 if ${ac_cv_path_WC+:} false; then : 12733 $as_echo_n "(cached) " >&6 12734 else 12735 case $WC in 12736 [\\/]* | ?:[\\/]*) 12737 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12738 ;; 12739 *) 12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12741 for as_dir in $PATH 12742 do 12743 IFS=$as_save_IFS 12744 test -z "$as_dir" && as_dir=. 12745 for ac_exec_ext in '' $ac_executable_extensions; do 12746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12747 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12749 break 2 12750 fi 12751 done 12752 done 12753 IFS=$as_save_IFS 12754 12755 ;; 12756 esac 12757 fi 12758 WC=$ac_cv_path_WC 12759 if test -n "$WC"; then 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12761 $as_echo "$WC" >&6; } 12762 else 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12764 $as_echo "no" >&6; } 12765 fi 12766 12767 12768 if test "x$WC" = x; then 12769 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12770 fi 12771 else 12772 # Otherwise we believe it is a complete path. Use it as it is. 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12774 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12776 $as_echo_n "checking for WC... " >&6; } 12777 if test ! -x "$tool_specified"; then 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12779 $as_echo "not found" >&6; } 12780 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12781 fi 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12783 $as_echo "$tool_specified" >&6; } 12784 fi 12785 fi 12786 fi 12787 12788 fi 12789 12790 12791 12792 if test "x$WC" = x; then 12793 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12794 fi 12795 12796 12797 12798 12799 12800 # Publish this variable in the help. 12801 12802 12803 if [ -z "${WHICH+x}" ]; then 12804 # The variable is not set by user, try to locate tool using the code snippet 12805 for ac_prog in which 12806 do 12807 # Extract the first word of "$ac_prog", so it can be a program name with args. 12808 set dummy $ac_prog; ac_word=$2 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12810 $as_echo_n "checking for $ac_word... " >&6; } 12811 if ${ac_cv_path_WHICH+:} false; then : 12812 $as_echo_n "(cached) " >&6 12813 else 12814 case $WHICH in 12815 [\\/]* | ?:[\\/]*) 12816 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12817 ;; 12818 *) 12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12820 for as_dir in $PATH 12821 do 12822 IFS=$as_save_IFS 12823 test -z "$as_dir" && as_dir=. 12824 for ac_exec_ext in '' $ac_executable_extensions; do 12825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12826 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12828 break 2 12829 fi 12830 done 12831 done 12832 IFS=$as_save_IFS 12833 12834 ;; 12835 esac 12836 fi 12837 WHICH=$ac_cv_path_WHICH 12838 if test -n "$WHICH"; then 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12840 $as_echo "$WHICH" >&6; } 12841 else 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12843 $as_echo "no" >&6; } 12844 fi 12845 12846 12847 test -n "$WHICH" && break 12848 done 12849 12850 else 12851 # The variable is set, but is it from the command line or the environment? 12852 12853 # Try to remove the string !WHICH! from our list. 12854 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12855 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12856 # If it failed, the variable was not from the command line. Ignore it, 12857 # but warn the user (except for BASH, which is always set by the calling BASH). 12858 if test "xWHICH" != xBASH; then 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12860 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12861 fi 12862 # Try to locate tool using the code snippet 12863 for ac_prog in which 12864 do 12865 # Extract the first word of "$ac_prog", so it can be a program name with args. 12866 set dummy $ac_prog; ac_word=$2 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12868 $as_echo_n "checking for $ac_word... " >&6; } 12869 if ${ac_cv_path_WHICH+:} false; then : 12870 $as_echo_n "(cached) " >&6 12871 else 12872 case $WHICH in 12873 [\\/]* | ?:[\\/]*) 12874 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12875 ;; 12876 *) 12877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12878 for as_dir in $PATH 12879 do 12880 IFS=$as_save_IFS 12881 test -z "$as_dir" && as_dir=. 12882 for ac_exec_ext in '' $ac_executable_extensions; do 12883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12884 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12886 break 2 12887 fi 12888 done 12889 done 12890 IFS=$as_save_IFS 12891 12892 ;; 12893 esac 12894 fi 12895 WHICH=$ac_cv_path_WHICH 12896 if test -n "$WHICH"; then 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12898 $as_echo "$WHICH" >&6; } 12899 else 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12901 $as_echo "no" >&6; } 12902 fi 12903 12904 12905 test -n "$WHICH" && break 12906 done 12907 12908 else 12909 # If it succeeded, then it was overridden by the user. We will use it 12910 # for the tool. 12911 12912 # First remove it from the list of overridden variables, so we can test 12913 # for unknown variables in the end. 12914 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12915 12916 # Check if we try to supply an empty value 12917 if test "x$WHICH" = x; then 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12919 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12921 $as_echo_n "checking for WHICH... " >&6; } 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12923 $as_echo "disabled" >&6; } 12924 else 12925 # Check if the provided tool contains a complete path. 12926 tool_specified="$WHICH" 12927 tool_basename="${tool_specified##*/}" 12928 if test "x$tool_basename" = "x$tool_specified"; then 12929 # A command without a complete path is provided, search $PATH. 12930 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12931 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12932 # Extract the first word of "$tool_basename", so it can be a program name with args. 12933 set dummy $tool_basename; ac_word=$2 12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12935 $as_echo_n "checking for $ac_word... " >&6; } 12936 if ${ac_cv_path_WHICH+:} false; then : 12937 $as_echo_n "(cached) " >&6 12938 else 12939 case $WHICH in 12940 [\\/]* | ?:[\\/]*) 12941 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12942 ;; 12943 *) 12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12945 for as_dir in $PATH 12946 do 12947 IFS=$as_save_IFS 12948 test -z "$as_dir" && as_dir=. 12949 for ac_exec_ext in '' $ac_executable_extensions; do 12950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12951 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12953 break 2 12954 fi 12955 done 12956 done 12957 IFS=$as_save_IFS 12958 12959 ;; 12960 esac 12961 fi 12962 WHICH=$ac_cv_path_WHICH 12963 if test -n "$WHICH"; then 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12965 $as_echo "$WHICH" >&6; } 12966 else 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12968 $as_echo "no" >&6; } 12969 fi 12970 12971 12972 if test "x$WHICH" = x; then 12973 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12974 fi 12975 else 12976 # Otherwise we believe it is a complete path. Use it as it is. 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12978 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12980 $as_echo_n "checking for WHICH... " >&6; } 12981 if test ! -x "$tool_specified"; then 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12983 $as_echo "not found" >&6; } 12984 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12985 fi 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12987 $as_echo "$tool_specified" >&6; } 12988 fi 12989 fi 12990 fi 12991 12992 fi 12993 12994 12995 12996 if test "x$WHICH" = x; then 12997 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12998 fi 12999 13000 13001 13002 13003 13004 # Publish this variable in the help. 13005 13006 13007 if [ -z "${XARGS+x}" ]; then 13008 # The variable is not set by user, try to locate tool using the code snippet 13009 for ac_prog in xargs 13010 do 13011 # Extract the first word of "$ac_prog", so it can be a program name with args. 13012 set dummy $ac_prog; ac_word=$2 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13014 $as_echo_n "checking for $ac_word... " >&6; } 13015 if ${ac_cv_path_XARGS+:} false; then : 13016 $as_echo_n "(cached) " >&6 13017 else 13018 case $XARGS in 13019 [\\/]* | ?:[\\/]*) 13020 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13021 ;; 13022 *) 13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13024 for as_dir in $PATH 13025 do 13026 IFS=$as_save_IFS 13027 test -z "$as_dir" && as_dir=. 13028 for ac_exec_ext in '' $ac_executable_extensions; do 13029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13030 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13032 break 2 13033 fi 13034 done 13035 done 13036 IFS=$as_save_IFS 13037 13038 ;; 13039 esac 13040 fi 13041 XARGS=$ac_cv_path_XARGS 13042 if test -n "$XARGS"; then 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13044 $as_echo "$XARGS" >&6; } 13045 else 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13047 $as_echo "no" >&6; } 13048 fi 13049 13050 13051 test -n "$XARGS" && break 13052 done 13053 13054 else 13055 # The variable is set, but is it from the command line or the environment? 13056 13057 # Try to remove the string !XARGS! from our list. 13058 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 13059 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13060 # If it failed, the variable was not from the command line. Ignore it, 13061 # but warn the user (except for BASH, which is always set by the calling BASH). 13062 if test "xXARGS" != xBASH; then 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 13064 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 13065 fi 13066 # Try to locate tool using the code snippet 13067 for ac_prog in xargs 13068 do 13069 # Extract the first word of "$ac_prog", so it can be a program name with args. 13070 set dummy $ac_prog; ac_word=$2 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13072 $as_echo_n "checking for $ac_word... " >&6; } 13073 if ${ac_cv_path_XARGS+:} false; then : 13074 $as_echo_n "(cached) " >&6 13075 else 13076 case $XARGS in 13077 [\\/]* | ?:[\\/]*) 13078 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13079 ;; 13080 *) 13081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13082 for as_dir in $PATH 13083 do 13084 IFS=$as_save_IFS 13085 test -z "$as_dir" && as_dir=. 13086 for ac_exec_ext in '' $ac_executable_extensions; do 13087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13088 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13090 break 2 13091 fi 13092 done 13093 done 13094 IFS=$as_save_IFS 13095 13096 ;; 13097 esac 13098 fi 13099 XARGS=$ac_cv_path_XARGS 13100 if test -n "$XARGS"; then 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13102 $as_echo "$XARGS" >&6; } 13103 else 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13105 $as_echo "no" >&6; } 13106 fi 13107 13108 13109 test -n "$XARGS" && break 13110 done 13111 13112 else 13113 # If it succeeded, then it was overridden by the user. We will use it 13114 # for the tool. 13115 13116 # First remove it from the list of overridden variables, so we can test 13117 # for unknown variables in the end. 13118 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13119 13120 # Check if we try to supply an empty value 13121 if test "x$XARGS" = x; then 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13123 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13125 $as_echo_n "checking for XARGS... " >&6; } 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13127 $as_echo "disabled" >&6; } 13128 else 13129 # Check if the provided tool contains a complete path. 13130 tool_specified="$XARGS" 13131 tool_basename="${tool_specified##*/}" 13132 if test "x$tool_basename" = "x$tool_specified"; then 13133 # A command without a complete path is provided, search $PATH. 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13135 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13136 # Extract the first word of "$tool_basename", so it can be a program name with args. 13137 set dummy $tool_basename; ac_word=$2 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13139 $as_echo_n "checking for $ac_word... " >&6; } 13140 if ${ac_cv_path_XARGS+:} false; then : 13141 $as_echo_n "(cached) " >&6 13142 else 13143 case $XARGS in 13144 [\\/]* | ?:[\\/]*) 13145 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13146 ;; 13147 *) 13148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13149 for as_dir in $PATH 13150 do 13151 IFS=$as_save_IFS 13152 test -z "$as_dir" && as_dir=. 13153 for ac_exec_ext in '' $ac_executable_extensions; do 13154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13155 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13157 break 2 13158 fi 13159 done 13160 done 13161 IFS=$as_save_IFS 13162 13163 ;; 13164 esac 13165 fi 13166 XARGS=$ac_cv_path_XARGS 13167 if test -n "$XARGS"; then 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13169 $as_echo "$XARGS" >&6; } 13170 else 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13172 $as_echo "no" >&6; } 13173 fi 13174 13175 13176 if test "x$XARGS" = x; then 13177 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13178 fi 13179 else 13180 # Otherwise we believe it is a complete path. Use it as it is. 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13182 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13184 $as_echo_n "checking for XARGS... " >&6; } 13185 if test ! -x "$tool_specified"; then 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13187 $as_echo "not found" >&6; } 13188 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13189 fi 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13191 $as_echo "$tool_specified" >&6; } 13192 fi 13193 fi 13194 fi 13195 13196 fi 13197 13198 13199 13200 if test "x$XARGS" = x; then 13201 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13202 fi 13203 13204 13205 13206 # Then required tools that require some special treatment. 13207 13208 13209 # Publish this variable in the help. 13210 13211 13212 if [ -z "${AWK+x}" ]; then 13213 # The variable is not set by user, try to locate tool using the code snippet 13214 for ac_prog in gawk mawk nawk awk 13215 do 13216 # Extract the first word of "$ac_prog", so it can be a program name with args. 13217 set dummy $ac_prog; ac_word=$2 13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13219 $as_echo_n "checking for $ac_word... " >&6; } 13220 if ${ac_cv_prog_AWK+:} false; then : 13221 $as_echo_n "(cached) " >&6 13222 else 13223 if test -n "$AWK"; then 13224 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13225 else 13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13227 for as_dir in $PATH 13228 do 13229 IFS=$as_save_IFS 13230 test -z "$as_dir" && as_dir=. 13231 for ac_exec_ext in '' $ac_executable_extensions; do 13232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13233 ac_cv_prog_AWK="$ac_prog" 13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13235 break 2 13236 fi 13237 done 13238 done 13239 IFS=$as_save_IFS 13240 13241 fi 13242 fi 13243 AWK=$ac_cv_prog_AWK 13244 if test -n "$AWK"; then 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13246 $as_echo "$AWK" >&6; } 13247 else 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13249 $as_echo "no" >&6; } 13250 fi 13251 13252 13253 test -n "$AWK" && break 13254 done 13255 13256 else 13257 # The variable is set, but is it from the command line or the environment? 13258 13259 # Try to remove the string !AWK! from our list. 13260 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13261 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13262 # If it failed, the variable was not from the command line. Ignore it, 13263 # but warn the user (except for BASH, which is always set by the calling BASH). 13264 if test "xAWK" != xBASH; then 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13266 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13267 fi 13268 # Try to locate tool using the code snippet 13269 for ac_prog in gawk mawk nawk awk 13270 do 13271 # Extract the first word of "$ac_prog", so it can be a program name with args. 13272 set dummy $ac_prog; ac_word=$2 13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13274 $as_echo_n "checking for $ac_word... " >&6; } 13275 if ${ac_cv_prog_AWK+:} false; then : 13276 $as_echo_n "(cached) " >&6 13277 else 13278 if test -n "$AWK"; then 13279 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13280 else 13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13282 for as_dir in $PATH 13283 do 13284 IFS=$as_save_IFS 13285 test -z "$as_dir" && as_dir=. 13286 for ac_exec_ext in '' $ac_executable_extensions; do 13287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13288 ac_cv_prog_AWK="$ac_prog" 13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13290 break 2 13291 fi 13292 done 13293 done 13294 IFS=$as_save_IFS 13295 13296 fi 13297 fi 13298 AWK=$ac_cv_prog_AWK 13299 if test -n "$AWK"; then 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13301 $as_echo "$AWK" >&6; } 13302 else 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13304 $as_echo "no" >&6; } 13305 fi 13306 13307 13308 test -n "$AWK" && break 13309 done 13310 13311 else 13312 # If it succeeded, then it was overridden by the user. We will use it 13313 # for the tool. 13314 13315 # First remove it from the list of overridden variables, so we can test 13316 # for unknown variables in the end. 13317 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13318 13319 # Check if we try to supply an empty value 13320 if test "x$AWK" = x; then 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13322 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13324 $as_echo_n "checking for AWK... " >&6; } 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13326 $as_echo "disabled" >&6; } 13327 else 13328 # Check if the provided tool contains a complete path. 13329 tool_specified="$AWK" 13330 tool_basename="${tool_specified##*/}" 13331 if test "x$tool_basename" = "x$tool_specified"; then 13332 # A command without a complete path is provided, search $PATH. 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13334 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13335 # Extract the first word of "$tool_basename", so it can be a program name with args. 13336 set dummy $tool_basename; ac_word=$2 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13338 $as_echo_n "checking for $ac_word... " >&6; } 13339 if ${ac_cv_path_AWK+:} false; then : 13340 $as_echo_n "(cached) " >&6 13341 else 13342 case $AWK in 13343 [\\/]* | ?:[\\/]*) 13344 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13345 ;; 13346 *) 13347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13348 for as_dir in $PATH 13349 do 13350 IFS=$as_save_IFS 13351 test -z "$as_dir" && as_dir=. 13352 for ac_exec_ext in '' $ac_executable_extensions; do 13353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13354 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13356 break 2 13357 fi 13358 done 13359 done 13360 IFS=$as_save_IFS 13361 13362 ;; 13363 esac 13364 fi 13365 AWK=$ac_cv_path_AWK 13366 if test -n "$AWK"; then 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13368 $as_echo "$AWK" >&6; } 13369 else 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13371 $as_echo "no" >&6; } 13372 fi 13373 13374 13375 if test "x$AWK" = x; then 13376 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13377 fi 13378 else 13379 # Otherwise we believe it is a complete path. Use it as it is. 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13381 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13383 $as_echo_n "checking for AWK... " >&6; } 13384 if test ! -x "$tool_specified"; then 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13386 $as_echo "not found" >&6; } 13387 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13388 fi 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13390 $as_echo "$tool_specified" >&6; } 13391 fi 13392 fi 13393 fi 13394 13395 fi 13396 13397 13398 if test "x$AWK" = x; then 13399 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13400 fi 13401 13402 13403 13404 13405 # Publish this variable in the help. 13406 13407 13408 if [ -z "${GREP+x}" ]; then 13409 # The variable is not set by user, try to locate tool using the code snippet 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13411 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13412 if ${ac_cv_path_GREP+:} false; then : 13413 $as_echo_n "(cached) " >&6 13414 else 13415 if test -z "$GREP"; then 13416 ac_path_GREP_found=false 13417 # Loop through the user's path and test for each of PROGNAME-LIST 13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13419 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13420 do 13421 IFS=$as_save_IFS 13422 test -z "$as_dir" && as_dir=. 13423 for ac_prog in grep ggrep; do 13424 for ac_exec_ext in '' $ac_executable_extensions; do 13425 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13426 as_fn_executable_p "$ac_path_GREP" || continue 13427 # Check for GNU ac_path_GREP and select it if it is found. 13428 # Check for GNU $ac_path_GREP 13429 case `"$ac_path_GREP" --version 2>&1` in 13430 *GNU*) 13431 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13432 *) 13433 ac_count=0 13434 $as_echo_n 0123456789 >"conftest.in" 13435 while : 13436 do 13437 cat "conftest.in" "conftest.in" >"conftest.tmp" 13438 mv "conftest.tmp" "conftest.in" 13439 cp "conftest.in" "conftest.nl" 13440 $as_echo 'GREP' >> "conftest.nl" 13441 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13443 as_fn_arith $ac_count + 1 && ac_count=$as_val 13444 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13445 # Best one so far, save it but keep looking for a better one 13446 ac_cv_path_GREP="$ac_path_GREP" 13447 ac_path_GREP_max=$ac_count 13448 fi 13449 # 10*(2^10) chars as input seems more than enough 13450 test $ac_count -gt 10 && break 13451 done 13452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13453 esac 13454 13455 $ac_path_GREP_found && break 3 13456 done 13457 done 13458 done 13459 IFS=$as_save_IFS 13460 if test -z "$ac_cv_path_GREP"; then 13461 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13462 fi 13463 else 13464 ac_cv_path_GREP=$GREP 13465 fi 13466 13467 fi 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13469 $as_echo "$ac_cv_path_GREP" >&6; } 13470 GREP="$ac_cv_path_GREP" 13471 13472 13473 else 13474 # The variable is set, but is it from the command line or the environment? 13475 13476 # Try to remove the string !GREP! from our list. 13477 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13478 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13479 # If it failed, the variable was not from the command line. Ignore it, 13480 # but warn the user (except for BASH, which is always set by the calling BASH). 13481 if test "xGREP" != xBASH; then 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13483 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13484 fi 13485 # Try to locate tool using the code snippet 13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13487 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13488 if ${ac_cv_path_GREP+:} false; then : 13489 $as_echo_n "(cached) " >&6 13490 else 13491 if test -z "$GREP"; then 13492 ac_path_GREP_found=false 13493 # Loop through the user's path and test for each of PROGNAME-LIST 13494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13496 do 13497 IFS=$as_save_IFS 13498 test -z "$as_dir" && as_dir=. 13499 for ac_prog in grep ggrep; do 13500 for ac_exec_ext in '' $ac_executable_extensions; do 13501 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13502 as_fn_executable_p "$ac_path_GREP" || continue 13503 # Check for GNU ac_path_GREP and select it if it is found. 13504 # Check for GNU $ac_path_GREP 13505 case `"$ac_path_GREP" --version 2>&1` in 13506 *GNU*) 13507 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13508 *) 13509 ac_count=0 13510 $as_echo_n 0123456789 >"conftest.in" 13511 while : 13512 do 13513 cat "conftest.in" "conftest.in" >"conftest.tmp" 13514 mv "conftest.tmp" "conftest.in" 13515 cp "conftest.in" "conftest.nl" 13516 $as_echo 'GREP' >> "conftest.nl" 13517 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13519 as_fn_arith $ac_count + 1 && ac_count=$as_val 13520 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13521 # Best one so far, save it but keep looking for a better one 13522 ac_cv_path_GREP="$ac_path_GREP" 13523 ac_path_GREP_max=$ac_count 13524 fi 13525 # 10*(2^10) chars as input seems more than enough 13526 test $ac_count -gt 10 && break 13527 done 13528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13529 esac 13530 13531 $ac_path_GREP_found && break 3 13532 done 13533 done 13534 done 13535 IFS=$as_save_IFS 13536 if test -z "$ac_cv_path_GREP"; then 13537 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13538 fi 13539 else 13540 ac_cv_path_GREP=$GREP 13541 fi 13542 13543 fi 13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13545 $as_echo "$ac_cv_path_GREP" >&6; } 13546 GREP="$ac_cv_path_GREP" 13547 13548 13549 else 13550 # If it succeeded, then it was overridden by the user. We will use it 13551 # for the tool. 13552 13553 # First remove it from the list of overridden variables, so we can test 13554 # for unknown variables in the end. 13555 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13556 13557 # Check if we try to supply an empty value 13558 if test "x$GREP" = x; then 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13560 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13562 $as_echo_n "checking for GREP... " >&6; } 13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13564 $as_echo "disabled" >&6; } 13565 else 13566 # Check if the provided tool contains a complete path. 13567 tool_specified="$GREP" 13568 tool_basename="${tool_specified##*/}" 13569 if test "x$tool_basename" = "x$tool_specified"; then 13570 # A command without a complete path is provided, search $PATH. 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13572 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13573 # Extract the first word of "$tool_basename", so it can be a program name with args. 13574 set dummy $tool_basename; ac_word=$2 13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13576 $as_echo_n "checking for $ac_word... " >&6; } 13577 if ${ac_cv_path_GREP+:} false; then : 13578 $as_echo_n "(cached) " >&6 13579 else 13580 case $GREP in 13581 [\\/]* | ?:[\\/]*) 13582 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13583 ;; 13584 *) 13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13586 for as_dir in $PATH 13587 do 13588 IFS=$as_save_IFS 13589 test -z "$as_dir" && as_dir=. 13590 for ac_exec_ext in '' $ac_executable_extensions; do 13591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13592 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13594 break 2 13595 fi 13596 done 13597 done 13598 IFS=$as_save_IFS 13599 13600 ;; 13601 esac 13602 fi 13603 GREP=$ac_cv_path_GREP 13604 if test -n "$GREP"; then 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13606 $as_echo "$GREP" >&6; } 13607 else 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13609 $as_echo "no" >&6; } 13610 fi 13611 13612 13613 if test "x$GREP" = x; then 13614 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13615 fi 13616 else 13617 # Otherwise we believe it is a complete path. Use it as it is. 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13619 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13621 $as_echo_n "checking for GREP... " >&6; } 13622 if test ! -x "$tool_specified"; then 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13624 $as_echo "not found" >&6; } 13625 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13626 fi 13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13628 $as_echo "$tool_specified" >&6; } 13629 fi 13630 fi 13631 fi 13632 13633 fi 13634 13635 13636 if test "x$GREP" = x; then 13637 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13638 fi 13639 13640 13641 13642 13643 # Publish this variable in the help. 13644 13645 13646 if [ -z "${EGREP+x}" ]; then 13647 # The variable is not set by user, try to locate tool using the code snippet 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13649 $as_echo_n "checking for egrep... " >&6; } 13650 if ${ac_cv_path_EGREP+:} false; then : 13651 $as_echo_n "(cached) " >&6 13652 else 13653 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13654 then ac_cv_path_EGREP="$GREP -E" 13655 else 13656 if test -z "$EGREP"; then 13657 ac_path_EGREP_found=false 13658 # Loop through the user's path and test for each of PROGNAME-LIST 13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13661 do 13662 IFS=$as_save_IFS 13663 test -z "$as_dir" && as_dir=. 13664 for ac_prog in egrep; do 13665 for ac_exec_ext in '' $ac_executable_extensions; do 13666 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13667 as_fn_executable_p "$ac_path_EGREP" || continue 13668 # Check for GNU ac_path_EGREP and select it if it is found. 13669 # Check for GNU $ac_path_EGREP 13670 case `"$ac_path_EGREP" --version 2>&1` in 13671 *GNU*) 13672 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13673 *) 13674 ac_count=0 13675 $as_echo_n 0123456789 >"conftest.in" 13676 while : 13677 do 13678 cat "conftest.in" "conftest.in" >"conftest.tmp" 13679 mv "conftest.tmp" "conftest.in" 13680 cp "conftest.in" "conftest.nl" 13681 $as_echo 'EGREP' >> "conftest.nl" 13682 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13684 as_fn_arith $ac_count + 1 && ac_count=$as_val 13685 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13686 # Best one so far, save it but keep looking for a better one 13687 ac_cv_path_EGREP="$ac_path_EGREP" 13688 ac_path_EGREP_max=$ac_count 13689 fi 13690 # 10*(2^10) chars as input seems more than enough 13691 test $ac_count -gt 10 && break 13692 done 13693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13694 esac 13695 13696 $ac_path_EGREP_found && break 3 13697 done 13698 done 13699 done 13700 IFS=$as_save_IFS 13701 if test -z "$ac_cv_path_EGREP"; then 13702 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13703 fi 13704 else 13705 ac_cv_path_EGREP=$EGREP 13706 fi 13707 13708 fi 13709 fi 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13711 $as_echo "$ac_cv_path_EGREP" >&6; } 13712 EGREP="$ac_cv_path_EGREP" 13713 13714 13715 else 13716 # The variable is set, but is it from the command line or the environment? 13717 13718 # Try to remove the string !EGREP! from our list. 13719 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13720 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13721 # If it failed, the variable was not from the command line. Ignore it, 13722 # but warn the user (except for BASH, which is always set by the calling BASH). 13723 if test "xEGREP" != xBASH; then 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13725 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13726 fi 13727 # Try to locate tool using the code snippet 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13729 $as_echo_n "checking for egrep... " >&6; } 13730 if ${ac_cv_path_EGREP+:} false; then : 13731 $as_echo_n "(cached) " >&6 13732 else 13733 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13734 then ac_cv_path_EGREP="$GREP -E" 13735 else 13736 if test -z "$EGREP"; then 13737 ac_path_EGREP_found=false 13738 # Loop through the user's path and test for each of PROGNAME-LIST 13739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13741 do 13742 IFS=$as_save_IFS 13743 test -z "$as_dir" && as_dir=. 13744 for ac_prog in egrep; do 13745 for ac_exec_ext in '' $ac_executable_extensions; do 13746 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13747 as_fn_executable_p "$ac_path_EGREP" || continue 13748 # Check for GNU ac_path_EGREP and select it if it is found. 13749 # Check for GNU $ac_path_EGREP 13750 case `"$ac_path_EGREP" --version 2>&1` in 13751 *GNU*) 13752 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13753 *) 13754 ac_count=0 13755 $as_echo_n 0123456789 >"conftest.in" 13756 while : 13757 do 13758 cat "conftest.in" "conftest.in" >"conftest.tmp" 13759 mv "conftest.tmp" "conftest.in" 13760 cp "conftest.in" "conftest.nl" 13761 $as_echo 'EGREP' >> "conftest.nl" 13762 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13764 as_fn_arith $ac_count + 1 && ac_count=$as_val 13765 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13766 # Best one so far, save it but keep looking for a better one 13767 ac_cv_path_EGREP="$ac_path_EGREP" 13768 ac_path_EGREP_max=$ac_count 13769 fi 13770 # 10*(2^10) chars as input seems more than enough 13771 test $ac_count -gt 10 && break 13772 done 13773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13774 esac 13775 13776 $ac_path_EGREP_found && break 3 13777 done 13778 done 13779 done 13780 IFS=$as_save_IFS 13781 if test -z "$ac_cv_path_EGREP"; then 13782 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13783 fi 13784 else 13785 ac_cv_path_EGREP=$EGREP 13786 fi 13787 13788 fi 13789 fi 13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13791 $as_echo "$ac_cv_path_EGREP" >&6; } 13792 EGREP="$ac_cv_path_EGREP" 13793 13794 13795 else 13796 # If it succeeded, then it was overridden by the user. We will use it 13797 # for the tool. 13798 13799 # First remove it from the list of overridden variables, so we can test 13800 # for unknown variables in the end. 13801 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13802 13803 # Check if we try to supply an empty value 13804 if test "x$EGREP" = x; then 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13806 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13808 $as_echo_n "checking for EGREP... " >&6; } 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13810 $as_echo "disabled" >&6; } 13811 else 13812 # Check if the provided tool contains a complete path. 13813 tool_specified="$EGREP" 13814 tool_basename="${tool_specified##*/}" 13815 if test "x$tool_basename" = "x$tool_specified"; then 13816 # A command without a complete path is provided, search $PATH. 13817 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13818 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13819 # Extract the first word of "$tool_basename", so it can be a program name with args. 13820 set dummy $tool_basename; ac_word=$2 13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13822 $as_echo_n "checking for $ac_word... " >&6; } 13823 if ${ac_cv_path_EGREP+:} false; then : 13824 $as_echo_n "(cached) " >&6 13825 else 13826 case $EGREP in 13827 [\\/]* | ?:[\\/]*) 13828 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13829 ;; 13830 *) 13831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13832 for as_dir in $PATH 13833 do 13834 IFS=$as_save_IFS 13835 test -z "$as_dir" && as_dir=. 13836 for ac_exec_ext in '' $ac_executable_extensions; do 13837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13838 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13840 break 2 13841 fi 13842 done 13843 done 13844 IFS=$as_save_IFS 13845 13846 ;; 13847 esac 13848 fi 13849 EGREP=$ac_cv_path_EGREP 13850 if test -n "$EGREP"; then 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13852 $as_echo "$EGREP" >&6; } 13853 else 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13855 $as_echo "no" >&6; } 13856 fi 13857 13858 13859 if test "x$EGREP" = x; then 13860 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13861 fi 13862 else 13863 # Otherwise we believe it is a complete path. Use it as it is. 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13865 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13867 $as_echo_n "checking for EGREP... " >&6; } 13868 if test ! -x "$tool_specified"; then 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13870 $as_echo "not found" >&6; } 13871 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13872 fi 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13874 $as_echo "$tool_specified" >&6; } 13875 fi 13876 fi 13877 fi 13878 13879 fi 13880 13881 13882 if test "x$EGREP" = x; then 13883 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13884 fi 13885 13886 13887 13888 13889 # Publish this variable in the help. 13890 13891 13892 if [ -z "${FGREP+x}" ]; then 13893 # The variable is not set by user, try to locate tool using the code snippet 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13895 $as_echo_n "checking for fgrep... " >&6; } 13896 if ${ac_cv_path_FGREP+:} false; then : 13897 $as_echo_n "(cached) " >&6 13898 else 13899 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13900 then ac_cv_path_FGREP="$GREP -F" 13901 else 13902 if test -z "$FGREP"; then 13903 ac_path_FGREP_found=false 13904 # Loop through the user's path and test for each of PROGNAME-LIST 13905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13907 do 13908 IFS=$as_save_IFS 13909 test -z "$as_dir" && as_dir=. 13910 for ac_prog in fgrep; do 13911 for ac_exec_ext in '' $ac_executable_extensions; do 13912 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13913 as_fn_executable_p "$ac_path_FGREP" || continue 13914 # Check for GNU ac_path_FGREP and select it if it is found. 13915 # Check for GNU $ac_path_FGREP 13916 case `"$ac_path_FGREP" --version 2>&1` in 13917 *GNU*) 13918 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13919 *) 13920 ac_count=0 13921 $as_echo_n 0123456789 >"conftest.in" 13922 while : 13923 do 13924 cat "conftest.in" "conftest.in" >"conftest.tmp" 13925 mv "conftest.tmp" "conftest.in" 13926 cp "conftest.in" "conftest.nl" 13927 $as_echo 'FGREP' >> "conftest.nl" 13928 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13930 as_fn_arith $ac_count + 1 && ac_count=$as_val 13931 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13932 # Best one so far, save it but keep looking for a better one 13933 ac_cv_path_FGREP="$ac_path_FGREP" 13934 ac_path_FGREP_max=$ac_count 13935 fi 13936 # 10*(2^10) chars as input seems more than enough 13937 test $ac_count -gt 10 && break 13938 done 13939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13940 esac 13941 13942 $ac_path_FGREP_found && break 3 13943 done 13944 done 13945 done 13946 IFS=$as_save_IFS 13947 if test -z "$ac_cv_path_FGREP"; then 13948 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13949 fi 13950 else 13951 ac_cv_path_FGREP=$FGREP 13952 fi 13953 13954 fi 13955 fi 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13957 $as_echo "$ac_cv_path_FGREP" >&6; } 13958 FGREP="$ac_cv_path_FGREP" 13959 13960 13961 else 13962 # The variable is set, but is it from the command line or the environment? 13963 13964 # Try to remove the string !FGREP! from our list. 13965 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13966 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13967 # If it failed, the variable was not from the command line. Ignore it, 13968 # but warn the user (except for BASH, which is always set by the calling BASH). 13969 if test "xFGREP" != xBASH; then 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13971 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13972 fi 13973 # Try to locate tool using the code snippet 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13975 $as_echo_n "checking for fgrep... " >&6; } 13976 if ${ac_cv_path_FGREP+:} false; then : 13977 $as_echo_n "(cached) " >&6 13978 else 13979 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13980 then ac_cv_path_FGREP="$GREP -F" 13981 else 13982 if test -z "$FGREP"; then 13983 ac_path_FGREP_found=false 13984 # Loop through the user's path and test for each of PROGNAME-LIST 13985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13987 do 13988 IFS=$as_save_IFS 13989 test -z "$as_dir" && as_dir=. 13990 for ac_prog in fgrep; do 13991 for ac_exec_ext in '' $ac_executable_extensions; do 13992 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13993 as_fn_executable_p "$ac_path_FGREP" || continue 13994 # Check for GNU ac_path_FGREP and select it if it is found. 13995 # Check for GNU $ac_path_FGREP 13996 case `"$ac_path_FGREP" --version 2>&1` in 13997 *GNU*) 13998 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13999 *) 14000 ac_count=0 14001 $as_echo_n 0123456789 >"conftest.in" 14002 while : 14003 do 14004 cat "conftest.in" "conftest.in" >"conftest.tmp" 14005 mv "conftest.tmp" "conftest.in" 14006 cp "conftest.in" "conftest.nl" 14007 $as_echo 'FGREP' >> "conftest.nl" 14008 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 14009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14010 as_fn_arith $ac_count + 1 && ac_count=$as_val 14011 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 14012 # Best one so far, save it but keep looking for a better one 14013 ac_cv_path_FGREP="$ac_path_FGREP" 14014 ac_path_FGREP_max=$ac_count 14015 fi 14016 # 10*(2^10) chars as input seems more than enough 14017 test $ac_count -gt 10 && break 14018 done 14019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14020 esac 14021 14022 $ac_path_FGREP_found && break 3 14023 done 14024 done 14025 done 14026 IFS=$as_save_IFS 14027 if test -z "$ac_cv_path_FGREP"; then 14028 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14029 fi 14030 else 14031 ac_cv_path_FGREP=$FGREP 14032 fi 14033 14034 fi 14035 fi 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14037 $as_echo "$ac_cv_path_FGREP" >&6; } 14038 FGREP="$ac_cv_path_FGREP" 14039 14040 14041 else 14042 # If it succeeded, then it was overridden by the user. We will use it 14043 # for the tool. 14044 14045 # First remove it from the list of overridden variables, so we can test 14046 # for unknown variables in the end. 14047 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14048 14049 # Check if we try to supply an empty value 14050 if test "x$FGREP" = x; then 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 14052 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14054 $as_echo_n "checking for FGREP... " >&6; } 14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14056 $as_echo "disabled" >&6; } 14057 else 14058 # Check if the provided tool contains a complete path. 14059 tool_specified="$FGREP" 14060 tool_basename="${tool_specified##*/}" 14061 if test "x$tool_basename" = "x$tool_specified"; then 14062 # A command without a complete path is provided, search $PATH. 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 14064 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 14065 # Extract the first word of "$tool_basename", so it can be a program name with args. 14066 set dummy $tool_basename; ac_word=$2 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14068 $as_echo_n "checking for $ac_word... " >&6; } 14069 if ${ac_cv_path_FGREP+:} false; then : 14070 $as_echo_n "(cached) " >&6 14071 else 14072 case $FGREP in 14073 [\\/]* | ?:[\\/]*) 14074 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 14075 ;; 14076 *) 14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14078 for as_dir in $PATH 14079 do 14080 IFS=$as_save_IFS 14081 test -z "$as_dir" && as_dir=. 14082 for ac_exec_ext in '' $ac_executable_extensions; do 14083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14084 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14086 break 2 14087 fi 14088 done 14089 done 14090 IFS=$as_save_IFS 14091 14092 ;; 14093 esac 14094 fi 14095 FGREP=$ac_cv_path_FGREP 14096 if test -n "$FGREP"; then 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14098 $as_echo "$FGREP" >&6; } 14099 else 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14101 $as_echo "no" >&6; } 14102 fi 14103 14104 14105 if test "x$FGREP" = x; then 14106 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14107 fi 14108 else 14109 # Otherwise we believe it is a complete path. Use it as it is. 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14111 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14113 $as_echo_n "checking for FGREP... " >&6; } 14114 if test ! -x "$tool_specified"; then 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14116 $as_echo "not found" >&6; } 14117 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14118 fi 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14120 $as_echo "$tool_specified" >&6; } 14121 fi 14122 fi 14123 fi 14124 14125 fi 14126 14127 14128 if test "x$FGREP" = x; then 14129 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14130 fi 14131 14132 14133 14134 14135 # Publish this variable in the help. 14136 14137 14138 if [ -z "${SED+x}" ]; then 14139 # The variable is not set by user, try to locate tool using the code snippet 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14141 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14142 if ${ac_cv_path_SED+:} false; then : 14143 $as_echo_n "(cached) " >&6 14144 else 14145 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14146 for ac_i in 1 2 3 4 5 6 7; do 14147 ac_script="$ac_script$as_nl$ac_script" 14148 done 14149 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14150 { ac_script=; unset ac_script;} 14151 if test -z "$SED"; then 14152 ac_path_SED_found=false 14153 # Loop through the user's path and test for each of PROGNAME-LIST 14154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14155 for as_dir in $PATH 14156 do 14157 IFS=$as_save_IFS 14158 test -z "$as_dir" && as_dir=. 14159 for ac_prog in sed gsed; do 14160 for ac_exec_ext in '' $ac_executable_extensions; do 14161 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14162 as_fn_executable_p "$ac_path_SED" || continue 14163 # Check for GNU ac_path_SED and select it if it is found. 14164 # Check for GNU $ac_path_SED 14165 case `"$ac_path_SED" --version 2>&1` in 14166 *GNU*) 14167 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14168 *) 14169 ac_count=0 14170 $as_echo_n 0123456789 >"conftest.in" 14171 while : 14172 do 14173 cat "conftest.in" "conftest.in" >"conftest.tmp" 14174 mv "conftest.tmp" "conftest.in" 14175 cp "conftest.in" "conftest.nl" 14176 $as_echo '' >> "conftest.nl" 14177 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14179 as_fn_arith $ac_count + 1 && ac_count=$as_val 14180 if test $ac_count -gt ${ac_path_SED_max-0}; then 14181 # Best one so far, save it but keep looking for a better one 14182 ac_cv_path_SED="$ac_path_SED" 14183 ac_path_SED_max=$ac_count 14184 fi 14185 # 10*(2^10) chars as input seems more than enough 14186 test $ac_count -gt 10 && break 14187 done 14188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14189 esac 14190 14191 $ac_path_SED_found && break 3 14192 done 14193 done 14194 done 14195 IFS=$as_save_IFS 14196 if test -z "$ac_cv_path_SED"; then 14197 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14198 fi 14199 else 14200 ac_cv_path_SED=$SED 14201 fi 14202 14203 fi 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14205 $as_echo "$ac_cv_path_SED" >&6; } 14206 SED="$ac_cv_path_SED" 14207 rm -f conftest.sed 14208 14209 else 14210 # The variable is set, but is it from the command line or the environment? 14211 14212 # Try to remove the string !SED! from our list. 14213 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14214 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14215 # If it failed, the variable was not from the command line. Ignore it, 14216 # but warn the user (except for BASH, which is always set by the calling BASH). 14217 if test "xSED" != xBASH; then 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14219 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14220 fi 14221 # Try to locate tool using the code snippet 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14223 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14224 if ${ac_cv_path_SED+:} false; then : 14225 $as_echo_n "(cached) " >&6 14226 else 14227 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14228 for ac_i in 1 2 3 4 5 6 7; do 14229 ac_script="$ac_script$as_nl$ac_script" 14230 done 14231 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14232 { ac_script=; unset ac_script;} 14233 if test -z "$SED"; then 14234 ac_path_SED_found=false 14235 # Loop through the user's path and test for each of PROGNAME-LIST 14236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14237 for as_dir in $PATH 14238 do 14239 IFS=$as_save_IFS 14240 test -z "$as_dir" && as_dir=. 14241 for ac_prog in sed gsed; do 14242 for ac_exec_ext in '' $ac_executable_extensions; do 14243 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14244 as_fn_executable_p "$ac_path_SED" || continue 14245 # Check for GNU ac_path_SED and select it if it is found. 14246 # Check for GNU $ac_path_SED 14247 case `"$ac_path_SED" --version 2>&1` in 14248 *GNU*) 14249 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14250 *) 14251 ac_count=0 14252 $as_echo_n 0123456789 >"conftest.in" 14253 while : 14254 do 14255 cat "conftest.in" "conftest.in" >"conftest.tmp" 14256 mv "conftest.tmp" "conftest.in" 14257 cp "conftest.in" "conftest.nl" 14258 $as_echo '' >> "conftest.nl" 14259 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14261 as_fn_arith $ac_count + 1 && ac_count=$as_val 14262 if test $ac_count -gt ${ac_path_SED_max-0}; then 14263 # Best one so far, save it but keep looking for a better one 14264 ac_cv_path_SED="$ac_path_SED" 14265 ac_path_SED_max=$ac_count 14266 fi 14267 # 10*(2^10) chars as input seems more than enough 14268 test $ac_count -gt 10 && break 14269 done 14270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14271 esac 14272 14273 $ac_path_SED_found && break 3 14274 done 14275 done 14276 done 14277 IFS=$as_save_IFS 14278 if test -z "$ac_cv_path_SED"; then 14279 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14280 fi 14281 else 14282 ac_cv_path_SED=$SED 14283 fi 14284 14285 fi 14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14287 $as_echo "$ac_cv_path_SED" >&6; } 14288 SED="$ac_cv_path_SED" 14289 rm -f conftest.sed 14290 14291 else 14292 # If it succeeded, then it was overridden by the user. We will use it 14293 # for the tool. 14294 14295 # First remove it from the list of overridden variables, so we can test 14296 # for unknown variables in the end. 14297 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14298 14299 # Check if we try to supply an empty value 14300 if test "x$SED" = x; then 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14302 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14304 $as_echo_n "checking for SED... " >&6; } 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14306 $as_echo "disabled" >&6; } 14307 else 14308 # Check if the provided tool contains a complete path. 14309 tool_specified="$SED" 14310 tool_basename="${tool_specified##*/}" 14311 if test "x$tool_basename" = "x$tool_specified"; then 14312 # A command without a complete path is provided, search $PATH. 14313 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14314 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14315 # Extract the first word of "$tool_basename", so it can be a program name with args. 14316 set dummy $tool_basename; ac_word=$2 14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14318 $as_echo_n "checking for $ac_word... " >&6; } 14319 if ${ac_cv_path_SED+:} false; then : 14320 $as_echo_n "(cached) " >&6 14321 else 14322 case $SED in 14323 [\\/]* | ?:[\\/]*) 14324 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14325 ;; 14326 *) 14327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14328 for as_dir in $PATH 14329 do 14330 IFS=$as_save_IFS 14331 test -z "$as_dir" && as_dir=. 14332 for ac_exec_ext in '' $ac_executable_extensions; do 14333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14334 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14336 break 2 14337 fi 14338 done 14339 done 14340 IFS=$as_save_IFS 14341 14342 ;; 14343 esac 14344 fi 14345 SED=$ac_cv_path_SED 14346 if test -n "$SED"; then 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14348 $as_echo "$SED" >&6; } 14349 else 14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14351 $as_echo "no" >&6; } 14352 fi 14353 14354 14355 if test "x$SED" = x; then 14356 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14357 fi 14358 else 14359 # Otherwise we believe it is a complete path. Use it as it is. 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14361 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14363 $as_echo_n "checking for SED... " >&6; } 14364 if test ! -x "$tool_specified"; then 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14366 $as_echo "not found" >&6; } 14367 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14368 fi 14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14370 $as_echo "$tool_specified" >&6; } 14371 fi 14372 fi 14373 fi 14374 14375 fi 14376 14377 14378 if test "x$SED" = x; then 14379 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14380 fi 14381 14382 14383 14384 # Always force rm. 14385 RM="$RM -f" 14386 14387 # pwd behaves differently on various platforms and some don't support the -L flag. 14388 # Always use the bash builtin pwd to get uniform behavior. 14389 THEPWDCMD=pwd 14390 14391 # These are not required on all platforms 14392 14393 14394 # Publish this variable in the help. 14395 14396 14397 if [ -z "${CYGPATH+x}" ]; then 14398 # The variable is not set by user, try to locate tool using the code snippet 14399 for ac_prog in cygpath 14400 do 14401 # Extract the first word of "$ac_prog", so it can be a program name with args. 14402 set dummy $ac_prog; ac_word=$2 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14404 $as_echo_n "checking for $ac_word... " >&6; } 14405 if ${ac_cv_path_CYGPATH+:} false; then : 14406 $as_echo_n "(cached) " >&6 14407 else 14408 case $CYGPATH in 14409 [\\/]* | ?:[\\/]*) 14410 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14411 ;; 14412 *) 14413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14414 for as_dir in $PATH 14415 do 14416 IFS=$as_save_IFS 14417 test -z "$as_dir" && as_dir=. 14418 for ac_exec_ext in '' $ac_executable_extensions; do 14419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14420 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14422 break 2 14423 fi 14424 done 14425 done 14426 IFS=$as_save_IFS 14427 14428 ;; 14429 esac 14430 fi 14431 CYGPATH=$ac_cv_path_CYGPATH 14432 if test -n "$CYGPATH"; then 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14434 $as_echo "$CYGPATH" >&6; } 14435 else 14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14437 $as_echo "no" >&6; } 14438 fi 14439 14440 14441 test -n "$CYGPATH" && break 14442 done 14443 14444 else 14445 # The variable is set, but is it from the command line or the environment? 14446 14447 # Try to remove the string !CYGPATH! from our list. 14448 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14449 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14450 # If it failed, the variable was not from the command line. Ignore it, 14451 # but warn the user (except for BASH, which is always set by the calling BASH). 14452 if test "xCYGPATH" != xBASH; then 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14454 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14455 fi 14456 # Try to locate tool using the code snippet 14457 for ac_prog in cygpath 14458 do 14459 # Extract the first word of "$ac_prog", so it can be a program name with args. 14460 set dummy $ac_prog; ac_word=$2 14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14462 $as_echo_n "checking for $ac_word... " >&6; } 14463 if ${ac_cv_path_CYGPATH+:} false; then : 14464 $as_echo_n "(cached) " >&6 14465 else 14466 case $CYGPATH in 14467 [\\/]* | ?:[\\/]*) 14468 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14469 ;; 14470 *) 14471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14472 for as_dir in $PATH 14473 do 14474 IFS=$as_save_IFS 14475 test -z "$as_dir" && as_dir=. 14476 for ac_exec_ext in '' $ac_executable_extensions; do 14477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14478 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14480 break 2 14481 fi 14482 done 14483 done 14484 IFS=$as_save_IFS 14485 14486 ;; 14487 esac 14488 fi 14489 CYGPATH=$ac_cv_path_CYGPATH 14490 if test -n "$CYGPATH"; then 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14492 $as_echo "$CYGPATH" >&6; } 14493 else 14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14495 $as_echo "no" >&6; } 14496 fi 14497 14498 14499 test -n "$CYGPATH" && break 14500 done 14501 14502 else 14503 # If it succeeded, then it was overridden by the user. We will use it 14504 # for the tool. 14505 14506 # First remove it from the list of overridden variables, so we can test 14507 # for unknown variables in the end. 14508 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14509 14510 # Check if we try to supply an empty value 14511 if test "x$CYGPATH" = x; then 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14513 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14515 $as_echo_n "checking for CYGPATH... " >&6; } 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14517 $as_echo "disabled" >&6; } 14518 else 14519 # Check if the provided tool contains a complete path. 14520 tool_specified="$CYGPATH" 14521 tool_basename="${tool_specified##*/}" 14522 if test "x$tool_basename" = "x$tool_specified"; then 14523 # A command without a complete path is provided, search $PATH. 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14525 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14526 # Extract the first word of "$tool_basename", so it can be a program name with args. 14527 set dummy $tool_basename; ac_word=$2 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14529 $as_echo_n "checking for $ac_word... " >&6; } 14530 if ${ac_cv_path_CYGPATH+:} false; then : 14531 $as_echo_n "(cached) " >&6 14532 else 14533 case $CYGPATH in 14534 [\\/]* | ?:[\\/]*) 14535 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14536 ;; 14537 *) 14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14539 for as_dir in $PATH 14540 do 14541 IFS=$as_save_IFS 14542 test -z "$as_dir" && as_dir=. 14543 for ac_exec_ext in '' $ac_executable_extensions; do 14544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14545 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14547 break 2 14548 fi 14549 done 14550 done 14551 IFS=$as_save_IFS 14552 14553 ;; 14554 esac 14555 fi 14556 CYGPATH=$ac_cv_path_CYGPATH 14557 if test -n "$CYGPATH"; then 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14559 $as_echo "$CYGPATH" >&6; } 14560 else 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14562 $as_echo "no" >&6; } 14563 fi 14564 14565 14566 if test "x$CYGPATH" = x; then 14567 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14568 fi 14569 else 14570 # Otherwise we believe it is a complete path. Use it as it is. 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14572 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14574 $as_echo_n "checking for CYGPATH... " >&6; } 14575 if test ! -x "$tool_specified"; then 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14577 $as_echo "not found" >&6; } 14578 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14579 fi 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14581 $as_echo "$tool_specified" >&6; } 14582 fi 14583 fi 14584 fi 14585 14586 fi 14587 14588 14589 14590 14591 # Publish this variable in the help. 14592 14593 14594 if [ -z "${READLINK+x}" ]; then 14595 # The variable is not set by user, try to locate tool using the code snippet 14596 for ac_prog in greadlink readlink 14597 do 14598 # Extract the first word of "$ac_prog", so it can be a program name with args. 14599 set dummy $ac_prog; ac_word=$2 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14601 $as_echo_n "checking for $ac_word... " >&6; } 14602 if ${ac_cv_path_READLINK+:} false; then : 14603 $as_echo_n "(cached) " >&6 14604 else 14605 case $READLINK in 14606 [\\/]* | ?:[\\/]*) 14607 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14608 ;; 14609 *) 14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14611 for as_dir in $PATH 14612 do 14613 IFS=$as_save_IFS 14614 test -z "$as_dir" && as_dir=. 14615 for ac_exec_ext in '' $ac_executable_extensions; do 14616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14617 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14619 break 2 14620 fi 14621 done 14622 done 14623 IFS=$as_save_IFS 14624 14625 ;; 14626 esac 14627 fi 14628 READLINK=$ac_cv_path_READLINK 14629 if test -n "$READLINK"; then 14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14631 $as_echo "$READLINK" >&6; } 14632 else 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14634 $as_echo "no" >&6; } 14635 fi 14636 14637 14638 test -n "$READLINK" && break 14639 done 14640 14641 else 14642 # The variable is set, but is it from the command line or the environment? 14643 14644 # Try to remove the string !READLINK! from our list. 14645 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14646 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14647 # If it failed, the variable was not from the command line. Ignore it, 14648 # but warn the user (except for BASH, which is always set by the calling BASH). 14649 if test "xREADLINK" != xBASH; then 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14651 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14652 fi 14653 # Try to locate tool using the code snippet 14654 for ac_prog in greadlink readlink 14655 do 14656 # Extract the first word of "$ac_prog", so it can be a program name with args. 14657 set dummy $ac_prog; ac_word=$2 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14659 $as_echo_n "checking for $ac_word... " >&6; } 14660 if ${ac_cv_path_READLINK+:} false; then : 14661 $as_echo_n "(cached) " >&6 14662 else 14663 case $READLINK in 14664 [\\/]* | ?:[\\/]*) 14665 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14666 ;; 14667 *) 14668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14669 for as_dir in $PATH 14670 do 14671 IFS=$as_save_IFS 14672 test -z "$as_dir" && as_dir=. 14673 for ac_exec_ext in '' $ac_executable_extensions; do 14674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14675 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14677 break 2 14678 fi 14679 done 14680 done 14681 IFS=$as_save_IFS 14682 14683 ;; 14684 esac 14685 fi 14686 READLINK=$ac_cv_path_READLINK 14687 if test -n "$READLINK"; then 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14689 $as_echo "$READLINK" >&6; } 14690 else 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14692 $as_echo "no" >&6; } 14693 fi 14694 14695 14696 test -n "$READLINK" && break 14697 done 14698 14699 else 14700 # If it succeeded, then it was overridden by the user. We will use it 14701 # for the tool. 14702 14703 # First remove it from the list of overridden variables, so we can test 14704 # for unknown variables in the end. 14705 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14706 14707 # Check if we try to supply an empty value 14708 if test "x$READLINK" = x; then 14709 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14710 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14712 $as_echo_n "checking for READLINK... " >&6; } 14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14714 $as_echo "disabled" >&6; } 14715 else 14716 # Check if the provided tool contains a complete path. 14717 tool_specified="$READLINK" 14718 tool_basename="${tool_specified##*/}" 14719 if test "x$tool_basename" = "x$tool_specified"; then 14720 # A command without a complete path is provided, search $PATH. 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14722 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14723 # Extract the first word of "$tool_basename", so it can be a program name with args. 14724 set dummy $tool_basename; ac_word=$2 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14726 $as_echo_n "checking for $ac_word... " >&6; } 14727 if ${ac_cv_path_READLINK+:} false; then : 14728 $as_echo_n "(cached) " >&6 14729 else 14730 case $READLINK in 14731 [\\/]* | ?:[\\/]*) 14732 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14733 ;; 14734 *) 14735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14736 for as_dir in $PATH 14737 do 14738 IFS=$as_save_IFS 14739 test -z "$as_dir" && as_dir=. 14740 for ac_exec_ext in '' $ac_executable_extensions; do 14741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14742 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14744 break 2 14745 fi 14746 done 14747 done 14748 IFS=$as_save_IFS 14749 14750 ;; 14751 esac 14752 fi 14753 READLINK=$ac_cv_path_READLINK 14754 if test -n "$READLINK"; then 14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14756 $as_echo "$READLINK" >&6; } 14757 else 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14759 $as_echo "no" >&6; } 14760 fi 14761 14762 14763 if test "x$READLINK" = x; then 14764 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14765 fi 14766 else 14767 # Otherwise we believe it is a complete path. Use it as it is. 14768 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14769 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14771 $as_echo_n "checking for READLINK... " >&6; } 14772 if test ! -x "$tool_specified"; then 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14774 $as_echo "not found" >&6; } 14775 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14776 fi 14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14778 $as_echo "$tool_specified" >&6; } 14779 fi 14780 fi 14781 fi 14782 14783 fi 14784 14785 14786 14787 14788 # Publish this variable in the help. 14789 14790 14791 if [ -z "${DF+x}" ]; then 14792 # The variable is not set by user, try to locate tool using the code snippet 14793 for ac_prog in df 14794 do 14795 # Extract the first word of "$ac_prog", so it can be a program name with args. 14796 set dummy $ac_prog; ac_word=$2 14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14798 $as_echo_n "checking for $ac_word... " >&6; } 14799 if ${ac_cv_path_DF+:} false; then : 14800 $as_echo_n "(cached) " >&6 14801 else 14802 case $DF in 14803 [\\/]* | ?:[\\/]*) 14804 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14805 ;; 14806 *) 14807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14808 for as_dir in $PATH 14809 do 14810 IFS=$as_save_IFS 14811 test -z "$as_dir" && as_dir=. 14812 for ac_exec_ext in '' $ac_executable_extensions; do 14813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14814 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14816 break 2 14817 fi 14818 done 14819 done 14820 IFS=$as_save_IFS 14821 14822 ;; 14823 esac 14824 fi 14825 DF=$ac_cv_path_DF 14826 if test -n "$DF"; then 14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14828 $as_echo "$DF" >&6; } 14829 else 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14831 $as_echo "no" >&6; } 14832 fi 14833 14834 14835 test -n "$DF" && break 14836 done 14837 14838 else 14839 # The variable is set, but is it from the command line or the environment? 14840 14841 # Try to remove the string !DF! from our list. 14842 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14843 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14844 # If it failed, the variable was not from the command line. Ignore it, 14845 # but warn the user (except for BASH, which is always set by the calling BASH). 14846 if test "xDF" != xBASH; then 14847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14848 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14849 fi 14850 # Try to locate tool using the code snippet 14851 for ac_prog in df 14852 do 14853 # Extract the first word of "$ac_prog", so it can be a program name with args. 14854 set dummy $ac_prog; ac_word=$2 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14856 $as_echo_n "checking for $ac_word... " >&6; } 14857 if ${ac_cv_path_DF+:} false; then : 14858 $as_echo_n "(cached) " >&6 14859 else 14860 case $DF in 14861 [\\/]* | ?:[\\/]*) 14862 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14863 ;; 14864 *) 14865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14866 for as_dir in $PATH 14867 do 14868 IFS=$as_save_IFS 14869 test -z "$as_dir" && as_dir=. 14870 for ac_exec_ext in '' $ac_executable_extensions; do 14871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14872 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14874 break 2 14875 fi 14876 done 14877 done 14878 IFS=$as_save_IFS 14879 14880 ;; 14881 esac 14882 fi 14883 DF=$ac_cv_path_DF 14884 if test -n "$DF"; then 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14886 $as_echo "$DF" >&6; } 14887 else 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14889 $as_echo "no" >&6; } 14890 fi 14891 14892 14893 test -n "$DF" && break 14894 done 14895 14896 else 14897 # If it succeeded, then it was overridden by the user. We will use it 14898 # for the tool. 14899 14900 # First remove it from the list of overridden variables, so we can test 14901 # for unknown variables in the end. 14902 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14903 14904 # Check if we try to supply an empty value 14905 if test "x$DF" = x; then 14906 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14907 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14909 $as_echo_n "checking for DF... " >&6; } 14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14911 $as_echo "disabled" >&6; } 14912 else 14913 # Check if the provided tool contains a complete path. 14914 tool_specified="$DF" 14915 tool_basename="${tool_specified##*/}" 14916 if test "x$tool_basename" = "x$tool_specified"; then 14917 # A command without a complete path is provided, search $PATH. 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14919 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14920 # Extract the first word of "$tool_basename", so it can be a program name with args. 14921 set dummy $tool_basename; ac_word=$2 14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14923 $as_echo_n "checking for $ac_word... " >&6; } 14924 if ${ac_cv_path_DF+:} false; then : 14925 $as_echo_n "(cached) " >&6 14926 else 14927 case $DF in 14928 [\\/]* | ?:[\\/]*) 14929 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14930 ;; 14931 *) 14932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14933 for as_dir in $PATH 14934 do 14935 IFS=$as_save_IFS 14936 test -z "$as_dir" && as_dir=. 14937 for ac_exec_ext in '' $ac_executable_extensions; do 14938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14939 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14941 break 2 14942 fi 14943 done 14944 done 14945 IFS=$as_save_IFS 14946 14947 ;; 14948 esac 14949 fi 14950 DF=$ac_cv_path_DF 14951 if test -n "$DF"; then 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14953 $as_echo "$DF" >&6; } 14954 else 14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14956 $as_echo "no" >&6; } 14957 fi 14958 14959 14960 if test "x$DF" = x; then 14961 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14962 fi 14963 else 14964 # Otherwise we believe it is a complete path. Use it as it is. 14965 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14966 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14968 $as_echo_n "checking for DF... " >&6; } 14969 if test ! -x "$tool_specified"; then 14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14971 $as_echo "not found" >&6; } 14972 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14973 fi 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14975 $as_echo "$tool_specified" >&6; } 14976 fi 14977 fi 14978 fi 14979 14980 fi 14981 14982 14983 14984 14985 # Publish this variable in the help. 14986 14987 14988 if [ -z "${CPIO+x}" ]; then 14989 # The variable is not set by user, try to locate tool using the code snippet 14990 for ac_prog in cpio bsdcpio 14991 do 14992 # Extract the first word of "$ac_prog", so it can be a program name with args. 14993 set dummy $ac_prog; ac_word=$2 14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14995 $as_echo_n "checking for $ac_word... " >&6; } 14996 if ${ac_cv_path_CPIO+:} false; then : 14997 $as_echo_n "(cached) " >&6 14998 else 14999 case $CPIO in 15000 [\\/]* | ?:[\\/]*) 15001 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15002 ;; 15003 *) 15004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15005 for as_dir in $PATH 15006 do 15007 IFS=$as_save_IFS 15008 test -z "$as_dir" && as_dir=. 15009 for ac_exec_ext in '' $ac_executable_extensions; do 15010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15011 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15013 break 2 15014 fi 15015 done 15016 done 15017 IFS=$as_save_IFS 15018 15019 ;; 15020 esac 15021 fi 15022 CPIO=$ac_cv_path_CPIO 15023 if test -n "$CPIO"; then 15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15025 $as_echo "$CPIO" >&6; } 15026 else 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15028 $as_echo "no" >&6; } 15029 fi 15030 15031 15032 test -n "$CPIO" && break 15033 done 15034 15035 else 15036 # The variable is set, but is it from the command line or the environment? 15037 15038 # Try to remove the string !CPIO! from our list. 15039 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 15040 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15041 # If it failed, the variable was not from the command line. Ignore it, 15042 # but warn the user (except for BASH, which is always set by the calling BASH). 15043 if test "xCPIO" != xBASH; then 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 15045 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 15046 fi 15047 # Try to locate tool using the code snippet 15048 for ac_prog in cpio bsdcpio 15049 do 15050 # Extract the first word of "$ac_prog", so it can be a program name with args. 15051 set dummy $ac_prog; ac_word=$2 15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15053 $as_echo_n "checking for $ac_word... " >&6; } 15054 if ${ac_cv_path_CPIO+:} false; then : 15055 $as_echo_n "(cached) " >&6 15056 else 15057 case $CPIO in 15058 [\\/]* | ?:[\\/]*) 15059 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15060 ;; 15061 *) 15062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15063 for as_dir in $PATH 15064 do 15065 IFS=$as_save_IFS 15066 test -z "$as_dir" && as_dir=. 15067 for ac_exec_ext in '' $ac_executable_extensions; do 15068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15069 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15071 break 2 15072 fi 15073 done 15074 done 15075 IFS=$as_save_IFS 15076 15077 ;; 15078 esac 15079 fi 15080 CPIO=$ac_cv_path_CPIO 15081 if test -n "$CPIO"; then 15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15083 $as_echo "$CPIO" >&6; } 15084 else 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15086 $as_echo "no" >&6; } 15087 fi 15088 15089 15090 test -n "$CPIO" && break 15091 done 15092 15093 else 15094 # If it succeeded, then it was overridden by the user. We will use it 15095 # for the tool. 15096 15097 # First remove it from the list of overridden variables, so we can test 15098 # for unknown variables in the end. 15099 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15100 15101 # Check if we try to supply an empty value 15102 if test "x$CPIO" = x; then 15103 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15104 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15106 $as_echo_n "checking for CPIO... " >&6; } 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15108 $as_echo "disabled" >&6; } 15109 else 15110 # Check if the provided tool contains a complete path. 15111 tool_specified="$CPIO" 15112 tool_basename="${tool_specified##*/}" 15113 if test "x$tool_basename" = "x$tool_specified"; then 15114 # A command without a complete path is provided, search $PATH. 15115 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15116 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15117 # Extract the first word of "$tool_basename", so it can be a program name with args. 15118 set dummy $tool_basename; ac_word=$2 15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15120 $as_echo_n "checking for $ac_word... " >&6; } 15121 if ${ac_cv_path_CPIO+:} false; then : 15122 $as_echo_n "(cached) " >&6 15123 else 15124 case $CPIO in 15125 [\\/]* | ?:[\\/]*) 15126 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15127 ;; 15128 *) 15129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15130 for as_dir in $PATH 15131 do 15132 IFS=$as_save_IFS 15133 test -z "$as_dir" && as_dir=. 15134 for ac_exec_ext in '' $ac_executable_extensions; do 15135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15136 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15138 break 2 15139 fi 15140 done 15141 done 15142 IFS=$as_save_IFS 15143 15144 ;; 15145 esac 15146 fi 15147 CPIO=$ac_cv_path_CPIO 15148 if test -n "$CPIO"; then 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15150 $as_echo "$CPIO" >&6; } 15151 else 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15153 $as_echo "no" >&6; } 15154 fi 15155 15156 15157 if test "x$CPIO" = x; then 15158 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15159 fi 15160 else 15161 # Otherwise we believe it is a complete path. Use it as it is. 15162 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15163 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15165 $as_echo_n "checking for CPIO... " >&6; } 15166 if test ! -x "$tool_specified"; then 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15168 $as_echo "not found" >&6; } 15169 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15170 fi 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15172 $as_echo "$tool_specified" >&6; } 15173 fi 15174 fi 15175 fi 15176 15177 fi 15178 15179 15180 15181 15182 # Publish this variable in the help. 15183 15184 15185 if [ -z "${NICE+x}" ]; then 15186 # The variable is not set by user, try to locate tool using the code snippet 15187 for ac_prog in nice 15188 do 15189 # Extract the first word of "$ac_prog", so it can be a program name with args. 15190 set dummy $ac_prog; ac_word=$2 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15192 $as_echo_n "checking for $ac_word... " >&6; } 15193 if ${ac_cv_path_NICE+:} false; then : 15194 $as_echo_n "(cached) " >&6 15195 else 15196 case $NICE in 15197 [\\/]* | ?:[\\/]*) 15198 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15199 ;; 15200 *) 15201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15202 for as_dir in $PATH 15203 do 15204 IFS=$as_save_IFS 15205 test -z "$as_dir" && as_dir=. 15206 for ac_exec_ext in '' $ac_executable_extensions; do 15207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15208 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15210 break 2 15211 fi 15212 done 15213 done 15214 IFS=$as_save_IFS 15215 15216 ;; 15217 esac 15218 fi 15219 NICE=$ac_cv_path_NICE 15220 if test -n "$NICE"; then 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15222 $as_echo "$NICE" >&6; } 15223 else 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15225 $as_echo "no" >&6; } 15226 fi 15227 15228 15229 test -n "$NICE" && break 15230 done 15231 15232 else 15233 # The variable is set, but is it from the command line or the environment? 15234 15235 # Try to remove the string !NICE! from our list. 15236 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15237 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15238 # If it failed, the variable was not from the command line. Ignore it, 15239 # but warn the user (except for BASH, which is always set by the calling BASH). 15240 if test "xNICE" != xBASH; then 15241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15242 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15243 fi 15244 # Try to locate tool using the code snippet 15245 for ac_prog in nice 15246 do 15247 # Extract the first word of "$ac_prog", so it can be a program name with args. 15248 set dummy $ac_prog; ac_word=$2 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15250 $as_echo_n "checking for $ac_word... " >&6; } 15251 if ${ac_cv_path_NICE+:} false; then : 15252 $as_echo_n "(cached) " >&6 15253 else 15254 case $NICE in 15255 [\\/]* | ?:[\\/]*) 15256 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15257 ;; 15258 *) 15259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15260 for as_dir in $PATH 15261 do 15262 IFS=$as_save_IFS 15263 test -z "$as_dir" && as_dir=. 15264 for ac_exec_ext in '' $ac_executable_extensions; do 15265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15266 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15268 break 2 15269 fi 15270 done 15271 done 15272 IFS=$as_save_IFS 15273 15274 ;; 15275 esac 15276 fi 15277 NICE=$ac_cv_path_NICE 15278 if test -n "$NICE"; then 15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15280 $as_echo "$NICE" >&6; } 15281 else 15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15283 $as_echo "no" >&6; } 15284 fi 15285 15286 15287 test -n "$NICE" && break 15288 done 15289 15290 else 15291 # If it succeeded, then it was overridden by the user. We will use it 15292 # for the tool. 15293 15294 # First remove it from the list of overridden variables, so we can test 15295 # for unknown variables in the end. 15296 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15297 15298 # Check if we try to supply an empty value 15299 if test "x$NICE" = x; then 15300 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15301 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15303 $as_echo_n "checking for NICE... " >&6; } 15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15305 $as_echo "disabled" >&6; } 15306 else 15307 # Check if the provided tool contains a complete path. 15308 tool_specified="$NICE" 15309 tool_basename="${tool_specified##*/}" 15310 if test "x$tool_basename" = "x$tool_specified"; then 15311 # A command without a complete path is provided, search $PATH. 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15313 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15314 # Extract the first word of "$tool_basename", so it can be a program name with args. 15315 set dummy $tool_basename; ac_word=$2 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15317 $as_echo_n "checking for $ac_word... " >&6; } 15318 if ${ac_cv_path_NICE+:} false; then : 15319 $as_echo_n "(cached) " >&6 15320 else 15321 case $NICE in 15322 [\\/]* | ?:[\\/]*) 15323 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15324 ;; 15325 *) 15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15327 for as_dir in $PATH 15328 do 15329 IFS=$as_save_IFS 15330 test -z "$as_dir" && as_dir=. 15331 for ac_exec_ext in '' $ac_executable_extensions; do 15332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15333 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15335 break 2 15336 fi 15337 done 15338 done 15339 IFS=$as_save_IFS 15340 15341 ;; 15342 esac 15343 fi 15344 NICE=$ac_cv_path_NICE 15345 if test -n "$NICE"; then 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15347 $as_echo "$NICE" >&6; } 15348 else 15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15350 $as_echo "no" >&6; } 15351 fi 15352 15353 15354 if test "x$NICE" = x; then 15355 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15356 fi 15357 else 15358 # Otherwise we believe it is a complete path. Use it as it is. 15359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15360 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15362 $as_echo_n "checking for NICE... " >&6; } 15363 if test ! -x "$tool_specified"; then 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15365 $as_echo "not found" >&6; } 15366 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15367 fi 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15369 $as_echo "$tool_specified" >&6; } 15370 fi 15371 fi 15372 fi 15373 15374 fi 15375 15376 15377 15378 15379 # Publish this variable in the help. 15380 15381 15382 if [ -z "${PANDOC+x}" ]; then 15383 # The variable is not set by user, try to locate tool using the code snippet 15384 for ac_prog in pandoc 15385 do 15386 # Extract the first word of "$ac_prog", so it can be a program name with args. 15387 set dummy $ac_prog; ac_word=$2 15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15389 $as_echo_n "checking for $ac_word... " >&6; } 15390 if ${ac_cv_path_PANDOC+:} false; then : 15391 $as_echo_n "(cached) " >&6 15392 else 15393 case $PANDOC in 15394 [\\/]* | ?:[\\/]*) 15395 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15396 ;; 15397 *) 15398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15399 for as_dir in $PATH 15400 do 15401 IFS=$as_save_IFS 15402 test -z "$as_dir" && as_dir=. 15403 for ac_exec_ext in '' $ac_executable_extensions; do 15404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15405 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15407 break 2 15408 fi 15409 done 15410 done 15411 IFS=$as_save_IFS 15412 15413 ;; 15414 esac 15415 fi 15416 PANDOC=$ac_cv_path_PANDOC 15417 if test -n "$PANDOC"; then 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15419 $as_echo "$PANDOC" >&6; } 15420 else 15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15422 $as_echo "no" >&6; } 15423 fi 15424 15425 15426 test -n "$PANDOC" && break 15427 done 15428 15429 else 15430 # The variable is set, but is it from the command line or the environment? 15431 15432 # Try to remove the string !PANDOC! from our list. 15433 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/} 15434 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15435 # If it failed, the variable was not from the command line. Ignore it, 15436 # but warn the user (except for BASH, which is always set by the calling BASH). 15437 if test "xPANDOC" != xBASH; then 15438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5 15439 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;} 15440 fi 15441 # Try to locate tool using the code snippet 15442 for ac_prog in pandoc 15443 do 15444 # Extract the first word of "$ac_prog", so it can be a program name with args. 15445 set dummy $ac_prog; ac_word=$2 15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15447 $as_echo_n "checking for $ac_word... " >&6; } 15448 if ${ac_cv_path_PANDOC+:} false; then : 15449 $as_echo_n "(cached) " >&6 15450 else 15451 case $PANDOC in 15452 [\\/]* | ?:[\\/]*) 15453 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15454 ;; 15455 *) 15456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15457 for as_dir in $PATH 15458 do 15459 IFS=$as_save_IFS 15460 test -z "$as_dir" && as_dir=. 15461 for ac_exec_ext in '' $ac_executable_extensions; do 15462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15463 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15465 break 2 15466 fi 15467 done 15468 done 15469 IFS=$as_save_IFS 15470 15471 ;; 15472 esac 15473 fi 15474 PANDOC=$ac_cv_path_PANDOC 15475 if test -n "$PANDOC"; then 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15477 $as_echo "$PANDOC" >&6; } 15478 else 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15480 $as_echo "no" >&6; } 15481 fi 15482 15483 15484 test -n "$PANDOC" && break 15485 done 15486 15487 else 15488 # If it succeeded, then it was overridden by the user. We will use it 15489 # for the tool. 15490 15491 # First remove it from the list of overridden variables, so we can test 15492 # for unknown variables in the end. 15493 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15494 15495 # Check if we try to supply an empty value 15496 if test "x$PANDOC" = x; then 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5 15498 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;} 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15500 $as_echo_n "checking for PANDOC... " >&6; } 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15502 $as_echo "disabled" >&6; } 15503 else 15504 # Check if the provided tool contains a complete path. 15505 tool_specified="$PANDOC" 15506 tool_basename="${tool_specified##*/}" 15507 if test "x$tool_basename" = "x$tool_specified"; then 15508 # A command without a complete path is provided, search $PATH. 15509 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5 15510 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;} 15511 # Extract the first word of "$tool_basename", so it can be a program name with args. 15512 set dummy $tool_basename; ac_word=$2 15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15514 $as_echo_n "checking for $ac_word... " >&6; } 15515 if ${ac_cv_path_PANDOC+:} false; then : 15516 $as_echo_n "(cached) " >&6 15517 else 15518 case $PANDOC in 15519 [\\/]* | ?:[\\/]*) 15520 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15521 ;; 15522 *) 15523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15524 for as_dir in $PATH 15525 do 15526 IFS=$as_save_IFS 15527 test -z "$as_dir" && as_dir=. 15528 for ac_exec_ext in '' $ac_executable_extensions; do 15529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15530 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15532 break 2 15533 fi 15534 done 15535 done 15536 IFS=$as_save_IFS 15537 15538 ;; 15539 esac 15540 fi 15541 PANDOC=$ac_cv_path_PANDOC 15542 if test -n "$PANDOC"; then 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15544 $as_echo "$PANDOC" >&6; } 15545 else 15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15547 $as_echo "no" >&6; } 15548 fi 15549 15550 15551 if test "x$PANDOC" = x; then 15552 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15553 fi 15554 else 15555 # Otherwise we believe it is a complete path. Use it as it is. 15556 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5 15557 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;} 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15559 $as_echo_n "checking for PANDOC... " >&6; } 15560 if test ! -x "$tool_specified"; then 15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15562 $as_echo "not found" >&6; } 15563 as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5 15564 fi 15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15566 $as_echo "$tool_specified" >&6; } 15567 fi 15568 fi 15569 fi 15570 15571 fi 15572 15573 15574 15575 15576 # Now we can determine OpenJDK build and target platforms. This is required to 15577 # have early on. 15578 # Make sure we can run config.sub. 15579 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15580 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15581 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15583 $as_echo_n "checking build system type... " >&6; } 15584 if ${ac_cv_build+:} false; then : 15585 $as_echo_n "(cached) " >&6 15586 else 15587 ac_build_alias=$build_alias 15588 test "x$ac_build_alias" = x && 15589 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15590 test "x$ac_build_alias" = x && 15591 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15592 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15593 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15594 15595 fi 15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15597 $as_echo "$ac_cv_build" >&6; } 15598 case $ac_cv_build in 15599 *-*-*) ;; 15600 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15601 esac 15602 build=$ac_cv_build 15603 ac_save_IFS=$IFS; IFS='-' 15604 set x $ac_cv_build 15605 shift 15606 build_cpu=$1 15607 build_vendor=$2 15608 shift; shift 15609 # Remember, the first character of IFS is used to create $*, 15610 # except with old shells: 15611 build_os=$* 15612 IFS=$ac_save_IFS 15613 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15614 15615 15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15617 $as_echo_n "checking host system type... " >&6; } 15618 if ${ac_cv_host+:} false; then : 15619 $as_echo_n "(cached) " >&6 15620 else 15621 if test "x$host_alias" = x; then 15622 ac_cv_host=$ac_cv_build 15623 else 15624 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15626 fi 15627 15628 fi 15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15630 $as_echo "$ac_cv_host" >&6; } 15631 case $ac_cv_host in 15632 *-*-*) ;; 15633 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15634 esac 15635 host=$ac_cv_host 15636 ac_save_IFS=$IFS; IFS='-' 15637 set x $ac_cv_host 15638 shift 15639 host_cpu=$1 15640 host_vendor=$2 15641 shift; shift 15642 # Remember, the first character of IFS is used to create $*, 15643 # except with old shells: 15644 host_os=$* 15645 IFS=$ac_save_IFS 15646 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15647 15648 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15650 $as_echo_n "checking target system type... " >&6; } 15651 if ${ac_cv_target+:} false; then : 15652 $as_echo_n "(cached) " >&6 15653 else 15654 if test "x$target_alias" = x; then 15655 ac_cv_target=$ac_cv_host 15656 else 15657 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15658 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15659 fi 15660 15661 fi 15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15663 $as_echo "$ac_cv_target" >&6; } 15664 case $ac_cv_target in 15665 *-*-*) ;; 15666 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15667 esac 15668 target=$ac_cv_target 15669 ac_save_IFS=$IFS; IFS='-' 15670 set x $ac_cv_target 15671 shift 15672 target_cpu=$1 15673 target_vendor=$2 15674 shift; shift 15675 # Remember, the first character of IFS is used to create $*, 15676 # except with old shells: 15677 target_os=$* 15678 IFS=$ac_save_IFS 15679 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15680 15681 15682 # The aliases save the names the user supplied, while $host etc. 15683 # will get canonicalized. 15684 test -n "$target_alias" && 15685 test "$program_prefix$program_suffix$program_transform_name" = \ 15686 NONENONEs,x,x, && 15687 program_prefix=${target_alias}- 15688 15689 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15690 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15691 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15692 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15693 # to use the configure naming style. 15694 15695 15696 15697 15698 15699 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15700 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15701 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15702 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15703 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15704 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15705 15706 15707 15708 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15709 15710 case "$build_os" in 15711 *linux*) 15712 VAR_OS=linux 15713 VAR_OS_TYPE=unix 15714 ;; 15715 *solaris*) 15716 VAR_OS=solaris 15717 VAR_OS_TYPE=unix 15718 ;; 15719 *darwin*) 15720 VAR_OS=macosx 15721 VAR_OS_TYPE=unix 15722 ;; 15723 *bsd*) 15724 VAR_OS=bsd 15725 VAR_OS_TYPE=unix 15726 ;; 15727 *cygwin*) 15728 VAR_OS=windows 15729 VAR_OS_ENV=windows.cygwin 15730 ;; 15731 *mingw*) 15732 VAR_OS=windows 15733 VAR_OS_ENV=windows.msys 15734 ;; 15735 *wsl*) 15736 VAR_OS=windows 15737 VAR_OS_ENV=windows.wsl 15738 ;; 15739 *aix*) 15740 VAR_OS=aix 15741 VAR_OS_TYPE=unix 15742 ;; 15743 *) 15744 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15745 ;; 15746 esac 15747 15748 15749 # First argument is the cpu name from the trip/quad 15750 case "$build_cpu" in 15751 x86_64) 15752 VAR_CPU=x86_64 15753 VAR_CPU_ARCH=x86 15754 VAR_CPU_BITS=64 15755 VAR_CPU_ENDIAN=little 15756 ;; 15757 i?86) 15758 VAR_CPU=x86 15759 VAR_CPU_ARCH=x86 15760 VAR_CPU_BITS=32 15761 VAR_CPU_ENDIAN=little 15762 ;; 15763 alpha*) 15764 VAR_CPU=alpha 15765 VAR_CPU_ARCH=alpha 15766 VAR_CPU_BITS=64 15767 VAR_CPU_ENDIAN=little 15768 ;; 15769 arm*) 15770 VAR_CPU=arm 15771 VAR_CPU_ARCH=arm 15772 VAR_CPU_BITS=32 15773 VAR_CPU_ENDIAN=little 15774 ;; 15775 aarch64) 15776 VAR_CPU=aarch64 15777 VAR_CPU_ARCH=aarch64 15778 VAR_CPU_BITS=64 15779 VAR_CPU_ENDIAN=little 15780 ;; 15781 m68k) 15782 VAR_CPU=m68k 15783 VAR_CPU_ARCH=m68k 15784 VAR_CPU_BITS=32 15785 VAR_CPU_ENDIAN=big 15786 ;; 15787 mips) 15788 VAR_CPU=mips 15789 VAR_CPU_ARCH=mips 15790 VAR_CPU_BITS=32 15791 VAR_CPU_ENDIAN=big 15792 ;; 15793 mipsel) 15794 VAR_CPU=mipsel 15795 VAR_CPU_ARCH=mipsel 15796 VAR_CPU_BITS=32 15797 VAR_CPU_ENDIAN=little 15798 ;; 15799 mips64) 15800 VAR_CPU=mips64 15801 VAR_CPU_ARCH=mips64 15802 VAR_CPU_BITS=64 15803 VAR_CPU_ENDIAN=big 15804 ;; 15805 mips64el) 15806 VAR_CPU=mips64el 15807 VAR_CPU_ARCH=mips64el 15808 VAR_CPU_BITS=64 15809 VAR_CPU_ENDIAN=little 15810 ;; 15811 powerpc) 15812 VAR_CPU=ppc 15813 VAR_CPU_ARCH=ppc 15814 VAR_CPU_BITS=32 15815 VAR_CPU_ENDIAN=big 15816 ;; 15817 powerpc64) 15818 VAR_CPU=ppc64 15819 VAR_CPU_ARCH=ppc 15820 VAR_CPU_BITS=64 15821 VAR_CPU_ENDIAN=big 15822 ;; 15823 powerpc64le) 15824 VAR_CPU=ppc64le 15825 VAR_CPU_ARCH=ppc 15826 VAR_CPU_BITS=64 15827 VAR_CPU_ENDIAN=little 15828 ;; 15829 s390) 15830 VAR_CPU=s390 15831 VAR_CPU_ARCH=s390 15832 VAR_CPU_BITS=32 15833 VAR_CPU_ENDIAN=big 15834 ;; 15835 s390x) 15836 VAR_CPU=s390x 15837 VAR_CPU_ARCH=s390 15838 VAR_CPU_BITS=64 15839 VAR_CPU_ENDIAN=big 15840 ;; 15841 sh*eb) 15842 VAR_CPU=sh 15843 VAR_CPU_ARCH=sh 15844 VAR_CPU_BITS=32 15845 VAR_CPU_ENDIAN=big 15846 ;; 15847 sh*) 15848 VAR_CPU=sh 15849 VAR_CPU_ARCH=sh 15850 VAR_CPU_BITS=32 15851 VAR_CPU_ENDIAN=little 15852 ;; 15853 sparc) 15854 VAR_CPU=sparc 15855 VAR_CPU_ARCH=sparc 15856 VAR_CPU_BITS=32 15857 VAR_CPU_ENDIAN=big 15858 ;; 15859 sparcv9|sparc64) 15860 VAR_CPU=sparcv9 15861 VAR_CPU_ARCH=sparc 15862 VAR_CPU_BITS=64 15863 VAR_CPU_ENDIAN=big 15864 ;; 15865 *) 15866 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15867 ;; 15868 esac 15869 15870 # ..and setup our own variables. (Do this explicitly to facilitate searching) 15871 OPENJDK_BUILD_OS="$VAR_OS" 15872 if test "x$VAR_OS_TYPE" != x; then 15873 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15874 else 15875 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15876 fi 15877 if test "x$VAR_OS_ENV" != x; then 15878 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15879 else 15880 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15881 fi 15882 OPENJDK_BUILD_CPU="$VAR_CPU" 15883 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15884 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15885 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15886 15887 15888 15889 15890 15891 15892 15893 15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15895 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15897 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15898 15899 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15900 15901 case "$host_os" in 15902 *linux*) 15903 VAR_OS=linux 15904 VAR_OS_TYPE=unix 15905 ;; 15906 *solaris*) 15907 VAR_OS=solaris 15908 VAR_OS_TYPE=unix 15909 ;; 15910 *darwin*) 15911 VAR_OS=macosx 15912 VAR_OS_TYPE=unix 15913 ;; 15914 *bsd*) 15915 VAR_OS=bsd 15916 VAR_OS_TYPE=unix 15917 ;; 15918 *cygwin*) 15919 VAR_OS=windows 15920 VAR_OS_ENV=windows.cygwin 15921 ;; 15922 *mingw*) 15923 VAR_OS=windows 15924 VAR_OS_ENV=windows.msys 15925 ;; 15926 *wsl*) 15927 VAR_OS=windows 15928 VAR_OS_ENV=windows.wsl 15929 ;; 15930 *aix*) 15931 VAR_OS=aix 15932 VAR_OS_TYPE=unix 15933 ;; 15934 *) 15935 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15936 ;; 15937 esac 15938 15939 15940 # First argument is the cpu name from the trip/quad 15941 case "$host_cpu" in 15942 x86_64) 15943 VAR_CPU=x86_64 15944 VAR_CPU_ARCH=x86 15945 VAR_CPU_BITS=64 15946 VAR_CPU_ENDIAN=little 15947 ;; 15948 i?86) 15949 VAR_CPU=x86 15950 VAR_CPU_ARCH=x86 15951 VAR_CPU_BITS=32 15952 VAR_CPU_ENDIAN=little 15953 ;; 15954 alpha*) 15955 VAR_CPU=alpha 15956 VAR_CPU_ARCH=alpha 15957 VAR_CPU_BITS=64 15958 VAR_CPU_ENDIAN=little 15959 ;; 15960 arm*) 15961 VAR_CPU=arm 15962 VAR_CPU_ARCH=arm 15963 VAR_CPU_BITS=32 15964 VAR_CPU_ENDIAN=little 15965 ;; 15966 aarch64) 15967 VAR_CPU=aarch64 15968 VAR_CPU_ARCH=aarch64 15969 VAR_CPU_BITS=64 15970 VAR_CPU_ENDIAN=little 15971 ;; 15972 m68k) 15973 VAR_CPU=m68k 15974 VAR_CPU_ARCH=m68k 15975 VAR_CPU_BITS=32 15976 VAR_CPU_ENDIAN=big 15977 ;; 15978 mips) 15979 VAR_CPU=mips 15980 VAR_CPU_ARCH=mips 15981 VAR_CPU_BITS=32 15982 VAR_CPU_ENDIAN=big 15983 ;; 15984 mipsel) 15985 VAR_CPU=mipsel 15986 VAR_CPU_ARCH=mipsel 15987 VAR_CPU_BITS=32 15988 VAR_CPU_ENDIAN=little 15989 ;; 15990 mips64) 15991 VAR_CPU=mips64 15992 VAR_CPU_ARCH=mips64 15993 VAR_CPU_BITS=64 15994 VAR_CPU_ENDIAN=big 15995 ;; 15996 mips64el) 15997 VAR_CPU=mips64el 15998 VAR_CPU_ARCH=mips64el 15999 VAR_CPU_BITS=64 16000 VAR_CPU_ENDIAN=little 16001 ;; 16002 powerpc) 16003 VAR_CPU=ppc 16004 VAR_CPU_ARCH=ppc 16005 VAR_CPU_BITS=32 16006 VAR_CPU_ENDIAN=big 16007 ;; 16008 powerpc64) 16009 VAR_CPU=ppc64 16010 VAR_CPU_ARCH=ppc 16011 VAR_CPU_BITS=64 16012 VAR_CPU_ENDIAN=big 16013 ;; 16014 powerpc64le) 16015 VAR_CPU=ppc64le 16016 VAR_CPU_ARCH=ppc 16017 VAR_CPU_BITS=64 16018 VAR_CPU_ENDIAN=little 16019 ;; 16020 s390) 16021 VAR_CPU=s390 16022 VAR_CPU_ARCH=s390 16023 VAR_CPU_BITS=32 16024 VAR_CPU_ENDIAN=big 16025 ;; 16026 s390x) 16027 VAR_CPU=s390x 16028 VAR_CPU_ARCH=s390 16029 VAR_CPU_BITS=64 16030 VAR_CPU_ENDIAN=big 16031 ;; 16032 sh*eb) 16033 VAR_CPU=sh 16034 VAR_CPU_ARCH=sh 16035 VAR_CPU_BITS=32 16036 VAR_CPU_ENDIAN=big 16037 ;; 16038 sh*) 16039 VAR_CPU=sh 16040 VAR_CPU_ARCH=sh 16041 VAR_CPU_BITS=32 16042 VAR_CPU_ENDIAN=little 16043 ;; 16044 sparc) 16045 VAR_CPU=sparc 16046 VAR_CPU_ARCH=sparc 16047 VAR_CPU_BITS=32 16048 VAR_CPU_ENDIAN=big 16049 ;; 16050 sparcv9|sparc64) 16051 VAR_CPU=sparcv9 16052 VAR_CPU_ARCH=sparc 16053 VAR_CPU_BITS=64 16054 VAR_CPU_ENDIAN=big 16055 ;; 16056 *) 16057 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 16058 ;; 16059 esac 16060 16061 # ... and setup our own variables. (Do this explicitly to facilitate searching) 16062 OPENJDK_TARGET_OS="$VAR_OS" 16063 if test "x$VAR_OS_TYPE" != x; then 16064 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 16065 else 16066 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 16067 fi 16068 if test "x$VAR_OS_ENV" != x; then 16069 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 16070 else 16071 OPENJDK_TARGET_OS_ENV="$VAR_OS" 16072 fi 16073 OPENJDK_TARGET_CPU="$VAR_CPU" 16074 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 16075 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 16076 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 16077 16078 16079 16080 16081 16082 16083 16084 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 16086 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 16088 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 16089 16090 16091 16092 # Check whether --with-target-bits was given. 16093 if test "${with_target_bits+set}" = set; then : 16094 withval=$with_target_bits; 16095 fi 16096 16097 16098 # We have three types of compiles: 16099 # native == normal compilation, target system == build system 16100 # cross == traditional cross compilation, target system != build system; special toolchain needed 16101 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 16102 # 16103 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 16104 # We're doing a proper cross-compilation 16105 COMPILE_TYPE="cross" 16106 else 16107 COMPILE_TYPE="native" 16108 fi 16109 16110 if test "x$with_target_bits" != x; then 16111 if test "x$COMPILE_TYPE" = "xcross"; then 16112 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 16113 fi 16114 16115 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16116 # A reduced build is requested 16117 COMPILE_TYPE="reduced" 16118 OPENJDK_TARGET_CPU_BITS=32 16119 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 16120 OPENJDK_TARGET_CPU=x86 16121 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 16122 OPENJDK_TARGET_CPU=sparc 16123 else 16124 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 16125 fi 16126 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16127 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 16128 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 16129 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 16130 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 16131 else 16132 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 16133 fi 16134 fi 16135 16136 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 16138 $as_echo_n "checking compilation type... " >&6; } 16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 16140 $as_echo "$COMPILE_TYPE" >&6; } 16141 16142 16143 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16144 OPENJDK_MODULE_TARGET_OS_NAME="macos" 16145 else 16146 OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS" 16147 fi 16148 16149 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16150 OPENJDK_MODULE_TARGET_OS_ARCH="amd64" 16151 else 16152 OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU" 16153 fi 16154 16155 OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}" 16156 16157 16158 16159 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 16160 RELEASE_FILE_OS_NAME=SunOS 16161 fi 16162 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 16163 RELEASE_FILE_OS_NAME=Linux 16164 fi 16165 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16166 RELEASE_FILE_OS_NAME=Windows 16167 fi 16168 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16169 RELEASE_FILE_OS_NAME="Darwin" 16170 fi 16171 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 16172 RELEASE_FILE_OS_NAME="AIX" 16173 fi 16174 RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU} 16175 16176 16177 16178 16179 16180 16181 # Also store the legacy naming of the cpu. 16182 # Ie i586 and amd64 instead of x86 and x86_64 16183 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 16184 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16185 OPENJDK_TARGET_CPU_LEGACY="i586" 16186 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16187 # On all platforms except MacOSX replace x86_64 with amd64. 16188 OPENJDK_TARGET_CPU_LEGACY="amd64" 16189 elif test "x$OPENJDK_TARGET_CPU" = xalpha; then 16190 # Avoid name collisions with variables named alpha 16191 OPENJDK_TARGET_CPU_LEGACY="_alpha_" 16192 elif test "x$OPENJDK_TARGET_CPU" = xsh; then 16193 # Avoid name collisions with variables named sh 16194 OPENJDK_TARGET_CPU_LEGACY="_sh_" 16195 fi 16196 16197 16198 # And the second legacy naming of the cpu. 16199 # Ie i386 and amd64 instead of x86 and x86_64. 16200 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 16201 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16202 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 16203 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16204 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 16205 fi 16206 16207 16208 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16209 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16210 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 16211 OPENJDK_TARGET_CPU_ISADIR="" 16212 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 16213 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16214 OPENJDK_TARGET_CPU_ISADIR="/amd64" 16215 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16216 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 16217 fi 16218 fi 16219 16220 16221 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 16222 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 16223 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 16224 # On linux only, we replace x86 with i386. 16225 OPENJDK_TARGET_CPU_OSARCH="i386" 16226 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16227 # On all platforms except macosx, we replace x86_64 with amd64. 16228 OPENJDK_TARGET_CPU_OSARCH="amd64" 16229 fi 16230 16231 16232 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 16233 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16234 OPENJDK_TARGET_CPU_JLI="i386" 16235 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16236 # On all platforms except macosx, we replace x86_64 with amd64. 16237 OPENJDK_TARGET_CPU_JLI="amd64" 16238 fi 16239 16240 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16241 # Macosx is osx and x86_64 is x64 16242 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16243 OPENJDK_TARGET_OS_BUNDLE="osx" 16244 else 16245 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 16246 fi 16247 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16248 OPENJDK_TARGET_CPU_BUNDLE="x64" 16249 else 16250 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 16251 fi 16252 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 16253 16254 16255 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16256 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16257 # unpack200.exe. This variable is used in 16258 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16259 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 16260 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 16261 fi 16262 fi 16263 16264 if test "x$COMPILE_TYPE" = "xcross"; then 16265 # FIXME: ... or should this include reduced builds..? 16266 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 16267 else 16268 DEFINE_CROSS_COMPILE_ARCH="" 16269 fi 16270 16271 16272 # Convert openjdk platform names to hotspot names 16273 16274 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 16275 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16276 HOTSPOT_TARGET_OS=bsd 16277 fi 16278 16279 16280 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 16281 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 16282 HOTSPOT_TARGET_OS_TYPE=posix 16283 fi 16284 16285 16286 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 16287 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16288 HOTSPOT_TARGET_CPU=x86_32 16289 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16290 HOTSPOT_TARGET_CPU=sparc 16291 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16292 HOTSPOT_TARGET_CPU=ppc_64 16293 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16294 HOTSPOT_TARGET_CPU=ppc_64 16295 fi 16296 16297 16298 # This is identical with OPENJDK_*, but define anyway for consistency. 16299 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 16300 16301 16302 # Setup HOTSPOT_TARGET_CPU_DEFINE 16303 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16304 HOTSPOT_TARGET_CPU_DEFINE=IA32 16305 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16306 HOTSPOT_TARGET_CPU_DEFINE=AMD64 16307 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16308 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16309 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 16310 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 16311 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16312 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16313 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16314 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16315 16316 # The cpu defines below are for zero, we don't support them directly. 16317 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 16318 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16319 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 16320 HOTSPOT_TARGET_CPU_DEFINE=PPC32 16321 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 16322 HOTSPOT_TARGET_CPU_DEFINE=S390 16323 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 16324 HOTSPOT_TARGET_CPU_DEFINE=S390 16325 elif test "x$OPENJDK_TARGET_CPU" != x; then 16326 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 16327 fi 16328 16329 16330 # For historical reasons, the OS include directories have odd names. 16331 OPENJDK_TARGET_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS" 16332 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16333 OPENJDK_TARGET_OS_INCLUDE_SUBDIR="win32" 16334 elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 16335 OPENJDK_TARGET_OS_INCLUDE_SUBDIR="darwin" 16336 fi 16337 16338 16339 16340 # Also store the legacy naming of the cpu. 16341 # Ie i586 and amd64 instead of x86 and x86_64 16342 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 16343 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16344 OPENJDK_BUILD_CPU_LEGACY="i586" 16345 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16346 # On all platforms except MacOSX replace x86_64 with amd64. 16347 OPENJDK_BUILD_CPU_LEGACY="amd64" 16348 elif test "x$OPENJDK_BUILD_CPU" = xalpha; then 16349 # Avoid name collisions with variables named alpha 16350 OPENJDK_BUILD_CPU_LEGACY="_alpha_" 16351 elif test "x$OPENJDK_BUILD_CPU" = xsh; then 16352 # Avoid name collisions with variables named sh 16353 OPENJDK_BUILD_CPU_LEGACY="_sh_" 16354 fi 16355 16356 16357 # And the second legacy naming of the cpu. 16358 # Ie i386 and amd64 instead of x86 and x86_64. 16359 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16360 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16361 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16362 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16363 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16364 fi 16365 16366 16367 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16368 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16369 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16370 OPENJDK_BUILD_CPU_ISADIR="" 16371 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16372 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16373 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16374 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16375 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16376 fi 16377 fi 16378 16379 16380 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16381 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16382 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16383 # On linux only, we replace x86 with i386. 16384 OPENJDK_BUILD_CPU_OSARCH="i386" 16385 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16386 # On all platforms except macosx, we replace x86_64 with amd64. 16387 OPENJDK_BUILD_CPU_OSARCH="amd64" 16388 fi 16389 16390 16391 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16392 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16393 OPENJDK_BUILD_CPU_JLI="i386" 16394 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16395 # On all platforms except macosx, we replace x86_64 with amd64. 16396 OPENJDK_BUILD_CPU_JLI="amd64" 16397 fi 16398 16399 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16400 # Macosx is osx and x86_64 is x64 16401 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16402 OPENJDK_BUILD_OS_BUNDLE="osx" 16403 else 16404 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16405 fi 16406 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16407 OPENJDK_BUILD_CPU_BUNDLE="x64" 16408 else 16409 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16410 fi 16411 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16412 16413 16414 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16415 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16416 # unpack200.exe. This variable is used in 16417 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16418 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16419 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16420 fi 16421 fi 16422 16423 if test "x$COMPILE_TYPE" = "xcross"; then 16424 # FIXME: ... or should this include reduced builds..? 16425 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16426 else 16427 DEFINE_CROSS_COMPILE_ARCH="" 16428 fi 16429 16430 16431 # Convert openjdk platform names to hotspot names 16432 16433 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16434 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16435 HOTSPOT_BUILD_OS=bsd 16436 fi 16437 16438 16439 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16440 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16441 HOTSPOT_BUILD_OS_TYPE=posix 16442 fi 16443 16444 16445 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16446 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16447 HOTSPOT_BUILD_CPU=x86_32 16448 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16449 HOTSPOT_BUILD_CPU=sparc 16450 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16451 HOTSPOT_BUILD_CPU=ppc_64 16452 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16453 HOTSPOT_BUILD_CPU=ppc_64 16454 fi 16455 16456 16457 # This is identical with OPENJDK_*, but define anyway for consistency. 16458 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16459 16460 16461 # Setup HOTSPOT_BUILD_CPU_DEFINE 16462 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16463 HOTSPOT_BUILD_CPU_DEFINE=IA32 16464 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16465 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16466 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16467 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16468 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16469 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16470 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16471 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16472 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16473 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16474 16475 # The cpu defines below are for zero, we don't support them directly. 16476 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16477 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16478 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16479 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16480 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16481 HOTSPOT_BUILD_CPU_DEFINE=S390 16482 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16483 HOTSPOT_BUILD_CPU_DEFINE=S390 16484 elif test "x$OPENJDK_BUILD_CPU" != x; then 16485 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16486 fi 16487 16488 16489 # For historical reasons, the OS include directories have odd names. 16490 OPENJDK_BUILD_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS" 16491 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16492 OPENJDK_BUILD_OS_INCLUDE_SUBDIR="win32" 16493 elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 16494 OPENJDK_BUILD_OS_INCLUDE_SUBDIR="darwin" 16495 fi 16496 16497 16498 16499 16500 16501 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16502 16503 # Save the current directory this script was started from 16504 CURDIR="$PWD" 16505 16506 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16507 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16508 # was not available at that time. 16509 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16510 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16511 ORIGINAL_PATH="$REWRITTEN_PATH" 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16513 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16514 fi 16515 16516 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16517 PATH_SEP=";" 16518 16519 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16520 if test $SRC_ROOT_LENGTH -gt 100; then 16521 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16522 fi 16523 16524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16526 $as_echo_n "checking cygwin release... " >&6; } 16527 CYGWIN_VERSION=`$UNAME -r` 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16529 $as_echo "$CYGWIN_VERSION" >&6; } 16530 WINDOWS_ENV_VENDOR='cygwin' 16531 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16532 16533 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16534 if test "x$CYGWIN_VERSION_OLD" != x; then 16535 { $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 16536 $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;} 16537 as_fn_error $? "Cannot continue" "$LINENO" 5 16538 fi 16539 if test "x$CYGPATH" = x; then 16540 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16541 fi 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16543 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16544 # The cmd output ends with Windows line endings (CR/LF) 16545 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 16546 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16547 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16549 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16550 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16551 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16552 if test "x$test_cygdrive_prefix" = x; then 16553 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16554 fi 16555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16557 $as_echo_n "checking msys release... " >&6; } 16558 MSYS_VERSION=`$UNAME -r` 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16560 $as_echo "$MSYS_VERSION" >&6; } 16561 16562 WINDOWS_ENV_VENDOR='msys' 16563 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16564 16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16566 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16567 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16568 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16569 16570 windows_path="$MSYS_ROOT_PATH" 16571 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16572 unix_path=`$CYGPATH -u "$windows_path"` 16573 MSYS_ROOT_PATH="$unix_path" 16574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16575 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16576 MSYS_ROOT_PATH="$unix_path" 16577 fi 16578 16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16580 $as_echo "$MSYS_ROOT_PATH" >&6; } 16581 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then 16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wsl kernel" >&5 16584 $as_echo_n "checking wsl kernel... " >&6; } 16585 WSL_KERNEL_VERSION=`$UNAME -r` 16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WSL_KERNEL_VERSION" >&5 16587 $as_echo "$WSL_KERNEL_VERSION" >&6; } 16588 16589 WINDOWS_ENV_VENDOR='wsl' 16590 WINDOWS_ENV_VERSION="$WSL_KERNEL_VERSION" 16591 16592 WINDOWS_ENV_ROOT_PATH="/mnt/c" 16593 else 16594 as_fn_error $? "Unknown Windows environment: $OPENJDK_BUILD_OS_ENV " "$LINENO" 5 16595 fi 16596 16597 # Test if windows or unix (cygwin/msys) find is first in path. 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16599 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16600 FIND_BINARY_OUTPUT=`find --version 2>&1` 16601 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16603 $as_echo "unix style" >&6; } 16604 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16606 $as_echo "Windows" >&6; } 16607 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16608 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16609 { $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 16610 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16611 as_fn_error $? "Cannot continue" "$LINENO" 5 16612 else 16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16614 $as_echo "unknown" >&6; } 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16616 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16617 fi 16618 16619 else 16620 PATH_SEP=":" 16621 fi 16622 16623 16624 # We get the top-level directory from the supporting wrappers. 16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16626 $as_echo_n "checking for top-level directory... " >&6; } 16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16628 $as_echo "$TOPDIR" >&6; } 16629 16630 16631 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16632 16633 # Only process if variable expands to non-empty 16634 16635 if test "x$CURDIR" != x; then 16636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16637 16638 # Input might be given as Windows format, start by converting to 16639 # unix format. 16640 path="$CURDIR" 16641 new_path=`$CYGPATH -u "$path"` 16642 16643 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16644 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16645 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16646 # "foo.exe" is OK but "foo" is an error. 16647 # 16648 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16649 # It is also a way to make sure we got the proper file name for the real test later on. 16650 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16651 if test "x$test_shortpath" = x; then 16652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16653 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16654 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16655 fi 16656 16657 # Call helper function which possibly converts this using DOS-style short mode. 16658 # If so, the updated path is stored in $new_path. 16659 16660 input_path="$new_path" 16661 # Check if we need to convert this using DOS-style short mode. If the path 16662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16663 # take no chances and rewrite it. 16664 # Note: m4 eats our [], so we need to use [ and ] instead. 16665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16666 if test "x$has_forbidden_chars" != x; then 16667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16668 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16669 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16670 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16671 # Going to short mode and back again did indeed matter. Since short mode is 16672 # case insensitive, let's make it lowercase to improve readability. 16673 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16674 # Now convert it back to Unix-style (cygpath) 16675 input_path=`$CYGPATH -u "$shortmode_path"` 16676 new_path="$input_path" 16677 fi 16678 fi 16679 16680 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16681 if test "x$test_cygdrive_prefix" = x; then 16682 # As a simple fix, exclude /usr/bin since it's not a real path. 16683 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16684 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16685 # a path prefixed by /cygdrive for fixpath to work. 16686 new_path="$CYGWIN_ROOT_PATH$input_path" 16687 fi 16688 fi 16689 16690 16691 if test "x$path" != "x$new_path"; then 16692 CURDIR="$new_path" 16693 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16694 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16695 fi 16696 16697 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16698 16699 path="$CURDIR" 16700 has_colon=`$ECHO $path | $GREP ^.:` 16701 new_path="$path" 16702 if test "x$has_colon" = x; then 16703 # Not in mixed or Windows style, start by that. 16704 new_path=`cmd //c echo $path` 16705 fi 16706 16707 16708 input_path="$new_path" 16709 # Check if we need to convert this using DOS-style short mode. If the path 16710 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16711 # take no chances and rewrite it. 16712 # Note: m4 eats our [], so we need to use [ and ] instead. 16713 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16714 if test "x$has_forbidden_chars" != x; then 16715 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16716 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16717 fi 16718 16719 16720 windows_path="$new_path" 16721 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16722 unix_path=`$CYGPATH -u "$windows_path"` 16723 new_path="$unix_path" 16724 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16725 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16726 new_path="$unix_path" 16727 fi 16728 16729 if test "x$path" != "x$new_path"; then 16730 CURDIR="$new_path" 16731 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16732 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16733 fi 16734 16735 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16736 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16737 16738 else 16739 # We're on a unix platform. Hooray! :) 16740 path="$CURDIR" 16741 has_space=`$ECHO "$path" | $GREP " "` 16742 if test "x$has_space" != x; then 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16744 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16745 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16746 fi 16747 16748 # Use eval to expand a potential ~ 16749 eval path="$path" 16750 if test ! -f "$path" && test ! -d "$path"; then 16751 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16752 fi 16753 16754 if test -d "$path"; then 16755 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16756 else 16757 dir="`$DIRNAME "$path"`" 16758 base="`$BASENAME "$path"`" 16759 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16760 fi 16761 fi 16762 fi 16763 16764 16765 # Only process if variable expands to non-empty 16766 16767 if test "x$TOPDIR" != x; then 16768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16769 16770 # Input might be given as Windows format, start by converting to 16771 # unix format. 16772 path="$TOPDIR" 16773 new_path=`$CYGPATH -u "$path"` 16774 16775 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16776 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16777 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16778 # "foo.exe" is OK but "foo" is an error. 16779 # 16780 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16781 # It is also a way to make sure we got the proper file name for the real test later on. 16782 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16783 if test "x$test_shortpath" = x; then 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16785 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16786 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16787 fi 16788 16789 # Call helper function which possibly converts this using DOS-style short mode. 16790 # If so, the updated path is stored in $new_path. 16791 16792 input_path="$new_path" 16793 # Check if we need to convert this using DOS-style short mode. If the path 16794 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16795 # take no chances and rewrite it. 16796 # Note: m4 eats our [], so we need to use [ and ] instead. 16797 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16798 if test "x$has_forbidden_chars" != x; then 16799 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16800 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16801 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16802 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16803 # Going to short mode and back again did indeed matter. Since short mode is 16804 # case insensitive, let's make it lowercase to improve readability. 16805 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16806 # Now convert it back to Unix-style (cygpath) 16807 input_path=`$CYGPATH -u "$shortmode_path"` 16808 new_path="$input_path" 16809 fi 16810 fi 16811 16812 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16813 if test "x$test_cygdrive_prefix" = x; then 16814 # As a simple fix, exclude /usr/bin since it's not a real path. 16815 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16816 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16817 # a path prefixed by /cygdrive for fixpath to work. 16818 new_path="$CYGWIN_ROOT_PATH$input_path" 16819 fi 16820 fi 16821 16822 16823 if test "x$path" != "x$new_path"; then 16824 TOPDIR="$new_path" 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16826 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16827 fi 16828 16829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16830 16831 path="$TOPDIR" 16832 has_colon=`$ECHO $path | $GREP ^.:` 16833 new_path="$path" 16834 if test "x$has_colon" = x; then 16835 # Not in mixed or Windows style, start by that. 16836 new_path=`cmd //c echo $path` 16837 fi 16838 16839 16840 input_path="$new_path" 16841 # Check if we need to convert this using DOS-style short mode. If the path 16842 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16843 # take no chances and rewrite it. 16844 # Note: m4 eats our [], so we need to use [ and ] instead. 16845 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16846 if test "x$has_forbidden_chars" != x; then 16847 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16848 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16849 fi 16850 16851 16852 windows_path="$new_path" 16853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16854 unix_path=`$CYGPATH -u "$windows_path"` 16855 new_path="$unix_path" 16856 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16857 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16858 new_path="$unix_path" 16859 fi 16860 16861 if test "x$path" != "x$new_path"; then 16862 TOPDIR="$new_path" 16863 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16864 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16865 fi 16866 16867 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16868 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16869 16870 else 16871 # We're on a unix platform. Hooray! :) 16872 path="$TOPDIR" 16873 has_space=`$ECHO "$path" | $GREP " "` 16874 if test "x$has_space" != x; then 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16876 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16877 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16878 fi 16879 16880 # Use eval to expand a potential ~ 16881 eval path="$path" 16882 if test ! -f "$path" && test ! -d "$path"; then 16883 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16884 fi 16885 16886 if test -d "$path"; then 16887 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16888 else 16889 dir="`$DIRNAME "$path"`" 16890 base="`$BASENAME "$path"`" 16891 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16892 fi 16893 fi 16894 fi 16895 16896 16897 # Locate the directory of this script. 16898 AUTOCONF_DIR=$TOPDIR/make/autoconf 16899 16900 # Setup username (for use in adhoc version strings etc) 16901 # Outer [ ] to quote m4. 16902 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16903 16904 16905 16906 # Check if it's a pure open build or if custom sources are to be used. 16907 16908 # Check whether --enable-openjdk-only was given. 16909 if test "${enable_openjdk_only+set}" = set; then : 16910 enableval=$enable_openjdk_only; 16911 else 16912 enable_openjdk_only="no" 16913 fi 16914 16915 16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16917 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16919 $as_echo "$enable_openjdk_only" >&6; } 16920 if test "x$enable_openjdk_only" = "xyes"; then 16921 SUPPRESS_CUSTOM_EXTENSIONS="true" 16922 elif test "x$enable_openjdk_only" = "xno"; then 16923 SUPPRESS_CUSTOM_EXTENSIONS="false" 16924 else 16925 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16926 fi 16927 16928 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16929 # the IncludeCustomExtension macro. 16930 16931 16932 # Check whether --with-custom-make-dir was given. 16933 if test "${with_custom_make_dir+set}" = set; then : 16934 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 16935 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16936 fi 16937 16938 16939 16940 16941 # These are needed to be able to create a configuration name (and thus the output directory) 16942 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16944 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16945 16946 # Check whether --with-jdk-variant was given. 16947 if test "${with_jdk_variant+set}" = set; then : 16948 withval=$with_jdk_variant; 16949 fi 16950 16951 16952 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16953 JDK_VARIANT="normal" 16954 else 16955 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16956 fi 16957 16958 16959 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16961 $as_echo "$JDK_VARIANT" >&6; } 16962 16963 16964 DEBUG_LEVEL="release" 16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16966 $as_echo_n "checking which debug level to use... " >&6; } 16967 # Check whether --enable-debug was given. 16968 if test "${enable_debug+set}" = set; then : 16969 enableval=$enable_debug; 16970 ENABLE_DEBUG="${enableval}" 16971 DEBUG_LEVEL="fastdebug" 16972 16973 else 16974 ENABLE_DEBUG="no" 16975 fi 16976 16977 16978 16979 # Check whether --with-debug-level was given. 16980 if test "${with_debug_level+set}" = set; then : 16981 withval=$with_debug_level; 16982 DEBUG_LEVEL="${withval}" 16983 if test "x$ENABLE_DEBUG" = xyes; then 16984 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16985 fi 16986 16987 fi 16988 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16990 $as_echo "$DEBUG_LEVEL" >&6; } 16991 16992 if test "x$DEBUG_LEVEL" != xrelease && \ 16993 test "x$DEBUG_LEVEL" != xoptimized && \ 16994 test "x$DEBUG_LEVEL" != xfastdebug && \ 16995 test "x$DEBUG_LEVEL" != xslowdebug; then 16996 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16997 fi 16998 16999 # Translate DEBUG_LEVEL to debug level used by Hotspot 17000 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 17001 if test "x$DEBUG_LEVEL" = xrelease; then 17002 HOTSPOT_DEBUG_LEVEL="product" 17003 elif test "x$DEBUG_LEVEL" = xslowdebug; then 17004 HOTSPOT_DEBUG_LEVEL="debug" 17005 fi 17006 17007 if test "x$DEBUG_LEVEL" = xoptimized; then 17008 # The debug level 'optimized' is a little special because it is currently only 17009 # applicable to the HotSpot build where it means to build a completely 17010 # optimized version of the VM without any debugging code (like for the 17011 # 'release' debug level which is called 'product' in the HotSpot build) but 17012 # with the exception that it can contain additional code which is otherwise 17013 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 17014 # test new and/or experimental features which are not intended for customer 17015 # shipment. Because these new features need to be tested and benchmarked in 17016 # real world scenarios, we want to build the containing JDK at the 'release' 17017 # debug level. 17018 DEBUG_LEVEL="release" 17019 fi 17020 17021 17022 17023 17024 17025 17026 # Check whether --with-jvm-variants was given. 17027 if test "${with_jvm_variants+set}" = set; then : 17028 withval=$with_jvm_variants; 17029 fi 17030 17031 17032 17033 17034 # Check whether --with-cpu-port was given. 17035 if test "${with_cpu_port+set}" = set; then : 17036 withval=$with_cpu_port; 17037 fi 17038 17039 17040 if test "x$with_cpu_port" != x; then 17041 if test "x$OPENJDK_TARGET_CPU" != xaarch64; then 17042 as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5 17043 fi 17044 if test "x$with_cpu_port" != xarm64 && \ 17045 test "x$with_cpu_port" != xaarch64; then 17046 as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5 17047 fi 17048 HOTSPOT_TARGET_CPU_PORT="$with_cpu_port" 17049 fi 17050 17051 17052 if test "x$with_jvm_variants" = x; then 17053 with_jvm_variants="server" 17054 fi 17055 JVM_VARIANTS_OPT="$with_jvm_variants" 17056 17057 # Has the user listed more than one variant? 17058 # Additional [] needed to keep m4 from mangling shell constructs. 17059 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 17060 BUILDING_MULTIPLE_JVM_VARIANTS=true 17061 else 17062 BUILDING_MULTIPLE_JVM_VARIANTS=false 17063 fi 17064 # Replace the commas with AND for use in the build directory name. 17065 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 17066 17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 17068 $as_echo_n "checking which variants of the JVM to build... " >&6; } 17069 # JVM_VARIANTS is a space-separated list. 17070 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 17071 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 17073 $as_echo "$JVM_VARIANTS" >&6; } 17074 17075 # Check that the selected variants are valid 17076 17077 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 17078 # Notice that the original variant failes on SLES 10 and 11 17079 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 17080 STACK=${JVM_VARIANTS// /$'\n'} 17081 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17082 if test "x$INVALID_VARIANTS" != x; then 17083 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 17084 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 17085 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 17086 fi 17087 17088 # All "special" variants share the same output directory ("server") 17089 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 17090 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 17091 STACK=${JVM_VARIANTS// /$'\n'} 17092 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17093 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 17094 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 17095 fi 17096 17097 # The "main" variant is the one used by other libs to link against during the 17098 # build. 17099 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 17100 MAIN_VARIANT_PRIO_ORDER="server client minimal" 17101 for variant in $MAIN_VARIANT_PRIO_ORDER; do 17102 if [[ " $JVM_VARIANTS " =~ " $variant " ]] ; then 17103 JVM_VARIANT_MAIN="$variant" 17104 break 17105 fi 17106 done 17107 else 17108 JVM_VARIANT_MAIN="$JVM_VARIANTS" 17109 fi 17110 17111 17112 17113 17114 17115 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 17116 # zero behaves as a platform and rewrites these values. This is really weird. :( 17117 # We are guaranteed that we do not build any other variants when building zero. 17118 HOTSPOT_TARGET_CPU=zero 17119 HOTSPOT_TARGET_CPU_ARCH=zero 17120 fi 17121 17122 17123 # With basic setup done, call the custom early hook. 17124 17125 17126 # Check if we have devkits, extra paths or sysroot set. 17127 17128 17129 # Check whether --with-devkit was given. 17130 if test "${with_devkit+set}" = set; then : 17131 withval=$with_devkit; 17132 17133 # Only process if variable expands to non-empty 17134 17135 if test "x$with_devkit" != x; then 17136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17137 17138 # Input might be given as Windows format, start by converting to 17139 # unix format. 17140 path="$with_devkit" 17141 new_path=`$CYGPATH -u "$path"` 17142 17143 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17144 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17145 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17146 # "foo.exe" is OK but "foo" is an error. 17147 # 17148 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17149 # It is also a way to make sure we got the proper file name for the real test later on. 17150 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17151 if test "x$test_shortpath" = x; then 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17153 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17154 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 17155 fi 17156 17157 # Call helper function which possibly converts this using DOS-style short mode. 17158 # If so, the updated path is stored in $new_path. 17159 17160 input_path="$new_path" 17161 # Check if we need to convert this using DOS-style short mode. If the path 17162 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17163 # take no chances and rewrite it. 17164 # Note: m4 eats our [], so we need to use [ and ] instead. 17165 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17166 if test "x$has_forbidden_chars" != x; then 17167 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17168 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17169 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17170 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17171 # Going to short mode and back again did indeed matter. Since short mode is 17172 # case insensitive, let's make it lowercase to improve readability. 17173 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17174 # Now convert it back to Unix-style (cygpath) 17175 input_path=`$CYGPATH -u "$shortmode_path"` 17176 new_path="$input_path" 17177 fi 17178 fi 17179 17180 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17181 if test "x$test_cygdrive_prefix" = x; then 17182 # As a simple fix, exclude /usr/bin since it's not a real path. 17183 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17184 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17185 # a path prefixed by /cygdrive for fixpath to work. 17186 new_path="$CYGWIN_ROOT_PATH$input_path" 17187 fi 17188 fi 17189 17190 17191 if test "x$path" != "x$new_path"; then 17192 with_devkit="$new_path" 17193 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17194 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17195 fi 17196 17197 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17198 17199 path="$with_devkit" 17200 has_colon=`$ECHO $path | $GREP ^.:` 17201 new_path="$path" 17202 if test "x$has_colon" = x; then 17203 # Not in mixed or Windows style, start by that. 17204 new_path=`cmd //c echo $path` 17205 fi 17206 17207 17208 input_path="$new_path" 17209 # Check if we need to convert this using DOS-style short mode. If the path 17210 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17211 # take no chances and rewrite it. 17212 # Note: m4 eats our [], so we need to use [ and ] instead. 17213 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17214 if test "x$has_forbidden_chars" != x; then 17215 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17216 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17217 fi 17218 17219 17220 windows_path="$new_path" 17221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17222 unix_path=`$CYGPATH -u "$windows_path"` 17223 new_path="$unix_path" 17224 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17225 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17226 new_path="$unix_path" 17227 fi 17228 17229 if test "x$path" != "x$new_path"; then 17230 with_devkit="$new_path" 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17232 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17233 fi 17234 17235 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17236 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17237 17238 else 17239 # We're on a unix platform. Hooray! :) 17240 path="$with_devkit" 17241 has_space=`$ECHO "$path" | $GREP " "` 17242 if test "x$has_space" != x; then 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17244 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17245 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17246 fi 17247 17248 # Use eval to expand a potential ~ 17249 eval path="$path" 17250 if test ! -f "$path" && test ! -d "$path"; then 17251 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 17252 fi 17253 17254 if test -d "$path"; then 17255 with_devkit="`cd "$path"; $THEPWDCMD -L`" 17256 else 17257 dir="`$DIRNAME "$path"`" 17258 base="`$BASENAME "$path"`" 17259 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 17260 fi 17261 fi 17262 fi 17263 17264 DEVKIT_ROOT="$with_devkit" 17265 # Check for a meta data info file in the root of the devkit 17266 if test -f "$DEVKIT_ROOT/devkit.info"; then 17267 . $DEVKIT_ROOT/devkit.info 17268 # This potentially sets the following: 17269 # A descriptive name of the devkit 17270 17271 if test "x$DEVKIT_NAME" = x; then 17272 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 17273 fi 17274 17275 # Corresponds to --with-extra-path 17276 17277 if test "x$DEVKIT_EXTRA_PATH" = x; then 17278 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 17279 fi 17280 17281 # Corresponds to --with-toolchain-path 17282 17283 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17284 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 17285 fi 17286 17287 # Corresponds to --with-sysroot 17288 17289 if test "x$DEVKIT_SYSROOT" = x; then 17290 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 17291 fi 17292 17293 17294 # Identifies the Visual Studio version in the devkit 17295 17296 if test "x$DEVKIT_VS_VERSION" = x; then 17297 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 17298 fi 17299 17300 # The Visual Studio include environment variable 17301 17302 if test "x$DEVKIT_VS_INCLUDE" = x; then 17303 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 17304 fi 17305 17306 # The Visual Studio lib environment variable 17307 17308 if test "x$DEVKIT_VS_LIB" = x; then 17309 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17310 fi 17311 17312 # Corresponds to --with-msvcr-dll 17313 17314 if test "x$DEVKIT_MSVCR_DLL" = x; then 17315 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17316 fi 17317 17318 # Corresponds to --with-msvcp-dll 17319 17320 if test "x$DEVKIT_MSVCP_DLL" = x; then 17321 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17322 fi 17323 17324 fi 17325 17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17327 $as_echo_n "checking for devkit... " >&6; } 17328 if test "x$DEVKIT_NAME" != x; then 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17330 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17331 else 17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17333 $as_echo "$DEVKIT_ROOT" >&6; } 17334 fi 17335 17336 17337 if test "x$DEVKIT_EXTRA_PATH" != x; then 17338 if test "x$EXTRA_PATH" = x; then 17339 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17340 else 17341 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17342 fi 17343 fi 17344 17345 17346 # Fallback default of just /bin if DEVKIT_PATH is not defined 17347 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17348 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17349 fi 17350 17351 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17352 if test "x$TOOLCHAIN_PATH" = x; then 17353 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17354 else 17355 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17356 fi 17357 fi 17358 17359 17360 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17361 # places for backwards compatiblity. 17362 if test "x$DEVKIT_SYSROOT" != x; then 17363 SYSROOT="$DEVKIT_SYSROOT" 17364 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17365 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17366 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17367 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17368 fi 17369 17370 if test "x$DEVKIT_ROOT" != x; then 17371 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 17372 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 17373 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 17374 fi 17375 17376 fi 17377 17378 17379 fi 17380 17381 17382 # You can force the sysroot if the sysroot encoded into the compiler tools 17383 # is not correct. 17384 17385 # Check whether --with-sys-root was given. 17386 if test "${with_sys_root+set}" = set; then : 17387 withval=$with_sys_root; SYSROOT=$with_sys_root 17388 17389 fi 17390 17391 17392 17393 # Check whether --with-sysroot was given. 17394 if test "${with_sysroot+set}" = set; then : 17395 withval=$with_sysroot; SYSROOT=$with_sysroot 17396 17397 fi 17398 17399 17400 17401 # Check whether --with-tools-dir was given. 17402 if test "${with_tools_dir+set}" = set; then : 17403 withval=$with_tools_dir; 17404 if test "x$with_tools_dir" != x; then 17405 if test "x$TOOLCHAIN_PATH" = x; then 17406 TOOLCHAIN_PATH="$with_tools_dir" 17407 else 17408 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17409 fi 17410 fi 17411 17412 17413 fi 17414 17415 17416 17417 # Check whether --with-toolchain-path was given. 17418 if test "${with_toolchain_path+set}" = set; then : 17419 withval=$with_toolchain_path; 17420 if test "x$with_toolchain_path" != x; then 17421 if test "x$TOOLCHAIN_PATH" = x; then 17422 TOOLCHAIN_PATH="$with_toolchain_path" 17423 else 17424 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17425 fi 17426 fi 17427 17428 17429 fi 17430 17431 17432 17433 # Check whether --with-extra-path was given. 17434 if test "${with_extra_path+set}" = set; then : 17435 withval=$with_extra_path; 17436 if test "x$with_extra_path" != x; then 17437 if test "x$EXTRA_PATH" = x; then 17438 EXTRA_PATH="$with_extra_path" 17439 else 17440 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17441 fi 17442 fi 17443 17444 17445 fi 17446 17447 17448 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17449 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17450 # If not, detect if Xcode is installed by running xcodebuild -version 17451 # if no Xcode installed, xcodebuild exits with 1 17452 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17453 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17454 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17455 # fall back on the stub binary in /usr/bin/xcodebuild 17456 # Extract the first word of "xcodebuild", so it can be a program name with args. 17457 set dummy xcodebuild; ac_word=$2 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17459 $as_echo_n "checking for $ac_word... " >&6; } 17460 if ${ac_cv_path_XCODEBUILD+:} false; then : 17461 $as_echo_n "(cached) " >&6 17462 else 17463 case $XCODEBUILD in 17464 [\\/]* | ?:[\\/]*) 17465 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17466 ;; 17467 *) 17468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17469 for as_dir in $TOOLCHAIN_PATH 17470 do 17471 IFS=$as_save_IFS 17472 test -z "$as_dir" && as_dir=. 17473 for ac_exec_ext in '' $ac_executable_extensions; do 17474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17475 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17477 break 2 17478 fi 17479 done 17480 done 17481 IFS=$as_save_IFS 17482 17483 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17484 ;; 17485 esac 17486 fi 17487 XCODEBUILD=$ac_cv_path_XCODEBUILD 17488 if test -n "$XCODEBUILD"; then 17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17490 $as_echo "$XCODEBUILD" >&6; } 17491 else 17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17493 $as_echo "no" >&6; } 17494 fi 17495 17496 17497 else 17498 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17499 # when only the command line tools are installed there are no SDKs, so headers 17500 # are copied into the system frameworks 17501 XCODEBUILD= 17502 17503 fi 17504 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17506 $as_echo_n "checking for sdk name... " >&6; } 17507 17508 # Check whether --with-sdk-name was given. 17509 if test "${with_sdk_name+set}" = set; then : 17510 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17511 17512 fi 17513 17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17515 $as_echo "$SDKNAME" >&6; } 17516 17517 # if toolchain path is specified then don't rely on system headers, they may not compile 17518 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17519 test -z "$TOOLCHAIN_PATH" && \ 17520 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17521 17522 if test -z "$SYSROOT"; then 17523 if test -n "$XCODEBUILD"; then 17524 # if we don't have system headers, use default SDK name (last resort) 17525 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17526 SDKNAME=${SDKNAME:-macosx} 17527 fi 17528 17529 if test -n "$SDKNAME"; then 17530 # Call xcodebuild to determine SYSROOT 17531 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17532 fi 17533 else 17534 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17535 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 17536 fi 17537 fi 17538 else 17539 # warn user if --with-sdk-name was also set 17540 if test -n "$with_sdk_name"; then 17541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17542 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17543 fi 17544 fi 17545 17546 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17547 # If no system framework headers, then SYSROOT must be set, or we won't build 17548 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 17549 fi 17550 17551 # Perform a basic sanity test 17552 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17553 if test -z "$SYSROOT"; then 17554 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 17555 else 17556 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17557 fi 17558 fi 17559 17560 # set SDKROOT too, Xcode tools will pick it up 17561 SDKROOT="$SYSROOT" 17562 17563 fi 17564 17565 # Prepend the extra path to the global path 17566 17567 if test "x$EXTRA_PATH" != x; then 17568 if test "x$PATH" = x; then 17569 PATH="$EXTRA_PATH" 17570 else 17571 PATH="$EXTRA_PATH:$PATH" 17572 fi 17573 fi 17574 17575 17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17577 $as_echo_n "checking for sysroot... " >&6; } 17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17579 $as_echo "$SYSROOT" >&6; } 17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17581 $as_echo_n "checking for toolchain path... " >&6; } 17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17583 $as_echo "$TOOLCHAIN_PATH" >&6; } 17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17585 $as_echo_n "checking for extra path... " >&6; } 17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17587 $as_echo "$EXTRA_PATH" >&6; } 17588 17589 17590 # To properly create a configuration name, we need to have the OpenJDK target 17591 # and options (variants and debug level) parsed. 17592 17593 17594 17595 # Check whether --with-conf-name was given. 17596 if test "${with_conf_name+set}" = set; then : 17597 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17598 fi 17599 17600 17601 # Test from where we are running configure, in or outside of src root. 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17603 $as_echo_n "checking where to store configuration... " >&6; } 17604 if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \ 17605 || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \ 17606 || test "x$CURDIR" = "x$TOPDIR/make" ; then 17607 # We are running configure from the src root. 17608 # Create a default ./build/target-variant-debuglevel output root. 17609 if test "x${CONF_NAME}" = x; then 17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17611 $as_echo "in default location" >&6; } 17612 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17613 else 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17615 $as_echo "in build directory with custom name" >&6; } 17616 fi 17617 17618 if test "x$CUSTOM_ROOT" != x; then 17619 OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}" 17620 else 17621 OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}" 17622 fi 17623 $MKDIR -p "$OUTPUTDIR" 17624 if test ! -d "$OUTPUTDIR"; then 17625 as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5 17626 fi 17627 else 17628 # We are running configure from outside of the src dir. 17629 # Then use the current directory as output dir! 17630 # If configuration is situated in normal build directory, just use the build 17631 # directory name as configuration name, otherwise use the complete path. 17632 if test "x${CONF_NAME}" = x; then 17633 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"` 17634 fi 17635 OUTPUTDIR="$CURDIR" 17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17637 $as_echo "in current directory" >&6; } 17638 17639 # WARNING: This might be a bad thing to do. You need to be sure you want to 17640 # have a configuration in this directory. Do some sanity checks! 17641 17642 if test ! -e "$OUTPUTDIR/spec.gmk"; then 17643 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17644 # other files 17645 files_present=`$LS $OUTPUTDIR` 17646 # Configure has already touched config.log and confdefs.h in the current dir when this check 17647 # is performed. 17648 filtered_files=`$ECHO "$files_present" \ 17649 | $SED -e 's/config.log//g' \ 17650 -e 's/configure.log//g' \ 17651 -e 's/confdefs.h//g' \ 17652 -e 's/ //g' \ 17653 | $TR -d '\n'` 17654 if test "x$filtered_files" != x; then 17655 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17656 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17658 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17660 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17662 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17664 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17665 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5 17666 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;} 17667 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17668 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17669 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17670 fi 17671 fi 17672 fi 17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17674 $as_echo_n "checking what configuration name to use... " >&6; } 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17676 $as_echo "$CONF_NAME" >&6; } 17677 17678 17679 # Only process if variable expands to non-empty 17680 17681 if test "x$OUTPUTDIR" != x; then 17682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17683 17684 # Input might be given as Windows format, start by converting to 17685 # unix format. 17686 path="$OUTPUTDIR" 17687 new_path=`$CYGPATH -u "$path"` 17688 17689 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17690 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17691 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17692 # "foo.exe" is OK but "foo" is an error. 17693 # 17694 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17695 # It is also a way to make sure we got the proper file name for the real test later on. 17696 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17697 if test "x$test_shortpath" = x; then 17698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17699 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17700 as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5 17701 fi 17702 17703 # Call helper function which possibly converts this using DOS-style short mode. 17704 # If so, the updated path is stored in $new_path. 17705 17706 input_path="$new_path" 17707 # Check if we need to convert this using DOS-style short mode. If the path 17708 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17709 # take no chances and rewrite it. 17710 # Note: m4 eats our [], so we need to use [ and ] instead. 17711 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17712 if test "x$has_forbidden_chars" != x; then 17713 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17714 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17715 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17716 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17717 # Going to short mode and back again did indeed matter. Since short mode is 17718 # case insensitive, let's make it lowercase to improve readability. 17719 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17720 # Now convert it back to Unix-style (cygpath) 17721 input_path=`$CYGPATH -u "$shortmode_path"` 17722 new_path="$input_path" 17723 fi 17724 fi 17725 17726 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17727 if test "x$test_cygdrive_prefix" = x; then 17728 # As a simple fix, exclude /usr/bin since it's not a real path. 17729 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17730 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17731 # a path prefixed by /cygdrive for fixpath to work. 17732 new_path="$CYGWIN_ROOT_PATH$input_path" 17733 fi 17734 fi 17735 17736 17737 if test "x$path" != "x$new_path"; then 17738 OUTPUTDIR="$new_path" 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17740 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17741 fi 17742 17743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17744 17745 path="$OUTPUTDIR" 17746 has_colon=`$ECHO $path | $GREP ^.:` 17747 new_path="$path" 17748 if test "x$has_colon" = x; then 17749 # Not in mixed or Windows style, start by that. 17750 new_path=`cmd //c echo $path` 17751 fi 17752 17753 17754 input_path="$new_path" 17755 # Check if we need to convert this using DOS-style short mode. If the path 17756 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17757 # take no chances and rewrite it. 17758 # Note: m4 eats our [], so we need to use [ and ] instead. 17759 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17760 if test "x$has_forbidden_chars" != x; then 17761 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17762 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17763 fi 17764 17765 17766 windows_path="$new_path" 17767 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17768 unix_path=`$CYGPATH -u "$windows_path"` 17769 new_path="$unix_path" 17770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17771 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17772 new_path="$unix_path" 17773 fi 17774 17775 if test "x$path" != "x$new_path"; then 17776 OUTPUTDIR="$new_path" 17777 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17778 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17779 fi 17780 17781 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17782 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17783 17784 else 17785 # We're on a unix platform. Hooray! :) 17786 path="$OUTPUTDIR" 17787 has_space=`$ECHO "$path" | $GREP " "` 17788 if test "x$has_space" != x; then 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17790 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17791 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17792 fi 17793 17794 # Use eval to expand a potential ~ 17795 eval path="$path" 17796 if test ! -f "$path" && test ! -d "$path"; then 17797 as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5 17798 fi 17799 17800 if test -d "$path"; then 17801 OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`" 17802 else 17803 dir="`$DIRNAME "$path"`" 17804 base="`$BASENAME "$path"`" 17805 OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 17806 fi 17807 fi 17808 fi 17809 17810 17811 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support" 17812 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17813 17814 SPEC="$OUTPUTDIR/spec.gmk" 17815 17816 17817 17818 17819 17820 # The spec.gmk file contains all variables for the make system. 17821 ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17822 17823 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17824 ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17825 17826 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17827 ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17828 17829 # The compare.sh is used to compare the build output to other builds. 17830 ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17831 17832 # The generated Makefile knows where the spec.gmk is and where the source is. 17833 # You can run make from the OUTPUTDIR, or from the top-level Makefile 17834 # which will look for generated configurations 17835 ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" 17836 17837 17838 17839 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17840 17841 for ac_prog in apt-get yum brew port pkgutil pkgadd 17842 do 17843 # Extract the first word of "$ac_prog", so it can be a program name with args. 17844 set dummy $ac_prog; ac_word=$2 17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17846 $as_echo_n "checking for $ac_word... " >&6; } 17847 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17848 $as_echo_n "(cached) " >&6 17849 else 17850 if test -n "$PKGHANDLER"; then 17851 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17852 else 17853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17854 for as_dir in $PATH 17855 do 17856 IFS=$as_save_IFS 17857 test -z "$as_dir" && as_dir=. 17858 for ac_exec_ext in '' $ac_executable_extensions; do 17859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17860 ac_cv_prog_PKGHANDLER="$ac_prog" 17861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17862 break 2 17863 fi 17864 done 17865 done 17866 IFS=$as_save_IFS 17867 17868 fi 17869 fi 17870 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17871 if test -n "$PKGHANDLER"; then 17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17873 $as_echo "$PKGHANDLER" >&6; } 17874 else 17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17876 $as_echo "no" >&6; } 17877 fi 17878 17879 17880 test -n "$PKGHANDLER" && break 17881 done 17882 17883 17884 17885 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17886 17887 17888 17889 # Publish this variable in the help. 17890 17891 17892 if [ -z "${MAKE+x}" ]; then 17893 # The variable is not set by user, try to locate tool using the code snippet 17894 17895 # Try our hardest to locate a correct version of GNU make 17896 for ac_prog in gmake 17897 do 17898 # Extract the first word of "$ac_prog", so it can be a program name with args. 17899 set dummy $ac_prog; ac_word=$2 17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17901 $as_echo_n "checking for $ac_word... " >&6; } 17902 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17903 $as_echo_n "(cached) " >&6 17904 else 17905 case $CHECK_GMAKE in 17906 [\\/]* | ?:[\\/]*) 17907 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17908 ;; 17909 *) 17910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17911 for as_dir in $PATH 17912 do 17913 IFS=$as_save_IFS 17914 test -z "$as_dir" && as_dir=. 17915 for ac_exec_ext in '' $ac_executable_extensions; do 17916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17917 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17919 break 2 17920 fi 17921 done 17922 done 17923 IFS=$as_save_IFS 17924 17925 ;; 17926 esac 17927 fi 17928 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17929 if test -n "$CHECK_GMAKE"; then 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17931 $as_echo "$CHECK_GMAKE" >&6; } 17932 else 17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17934 $as_echo "no" >&6; } 17935 fi 17936 17937 17938 test -n "$CHECK_GMAKE" && break 17939 done 17940 17941 17942 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17943 DESCRIPTION="gmake in PATH" 17944 17945 # On Cygwin, we require a newer version of make than on other platforms 17946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17947 MAKE_VERSION_EXPR="-e 4\." 17948 MAKE_REQUIRED_VERSION="4.0" 17949 else 17950 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17951 MAKE_REQUIRED_VERSION="3.81" 17952 fi 17953 17954 if test "x$MAKE_CANDIDATE" != x; then 17955 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17956 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17957 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17958 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17959 if test "x$IS_GNU_MAKE" = x; then 17960 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17961 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17962 else 17963 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17964 if test "x$IS_MODERN_MAKE" = x; then 17965 { $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 17966 $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;} 17967 else 17968 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17970 MAKE_EXPECTED_ENV='cygwin' 17971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17972 MAKE_EXPECTED_ENV='msys' 17973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then 17974 MAKE_EXPECTED_ENV='.' 17975 else 17976 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17977 fi 17978 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17979 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17980 else 17981 # Not relevant for non-Windows 17982 IS_MAKE_CORRECT_ENV=true 17983 fi 17984 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17985 { $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 17986 $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;} 17987 else 17988 FOUND_MAKE=$MAKE_CANDIDATE 17989 17990 # Only process if variable expands to non-empty 17991 17992 if test "x$FOUND_MAKE" != x; then 17993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17994 17995 # First separate the path from the arguments. This will split at the first 17996 # space. 17997 complete="$FOUND_MAKE" 17998 path="${complete%% *}" 17999 tmp="$complete EOL" 18000 arguments="${tmp#* }" 18001 18002 # Input might be given as Windows format, start by converting to 18003 # unix format. 18004 new_path=`$CYGPATH -u "$path"` 18005 18006 # Now try to locate executable using which 18007 new_path=`$WHICH "$new_path" 2> /dev/null` 18008 # bat and cmd files are not always considered executable in cygwin causing which 18009 # to not find them 18010 if test "x$new_path" = x \ 18011 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18012 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18013 new_path=`$CYGPATH -u "$path"` 18014 fi 18015 if test "x$new_path" = x; then 18016 # Oops. Which didn't find the executable. 18017 # The splitting of arguments from the executable at a space might have been incorrect, 18018 # since paths with space are more likely in Windows. Give it another try with the whole 18019 # argument. 18020 path="$complete" 18021 arguments="EOL" 18022 new_path=`$CYGPATH -u "$path"` 18023 new_path=`$WHICH "$new_path" 2> /dev/null` 18024 # bat and cmd files are not always considered executable in cygwin causing which 18025 # to not find them 18026 if test "x$new_path" = x \ 18027 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18028 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18029 new_path=`$CYGPATH -u "$path"` 18030 fi 18031 if test "x$new_path" = x; then 18032 # It's still not found. Now this is an unrecoverable error. 18033 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18034 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18035 has_space=`$ECHO "$complete" | $GREP " "` 18036 if test "x$has_space" != x; then 18037 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18038 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18039 fi 18040 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18041 fi 18042 fi 18043 18044 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18045 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18046 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18047 # "foo.exe" is OK but "foo" is an error. 18048 # 18049 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18050 # It is also a way to make sure we got the proper file name for the real test later on. 18051 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18052 if test "x$test_shortpath" = x; then 18053 # Short path failed, file does not exist as specified. 18054 # Try adding .exe or .cmd 18055 if test -f "${new_path}.exe"; then 18056 input_to_shortpath="${new_path}.exe" 18057 elif test -f "${new_path}.cmd"; then 18058 input_to_shortpath="${new_path}.cmd" 18059 else 18060 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18061 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18063 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18064 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18065 fi 18066 else 18067 input_to_shortpath="$new_path" 18068 fi 18069 18070 # Call helper function which possibly converts this using DOS-style short mode. 18071 # If so, the updated path is stored in $new_path. 18072 new_path="$input_to_shortpath" 18073 18074 input_path="$input_to_shortpath" 18075 # Check if we need to convert this using DOS-style short mode. If the path 18076 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18077 # take no chances and rewrite it. 18078 # Note: m4 eats our [], so we need to use [ and ] instead. 18079 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18080 if test "x$has_forbidden_chars" != x; then 18081 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18082 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18083 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18084 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18085 # Going to short mode and back again did indeed matter. Since short mode is 18086 # case insensitive, let's make it lowercase to improve readability. 18087 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18088 # Now convert it back to Unix-style (cygpath) 18089 input_path=`$CYGPATH -u "$shortmode_path"` 18090 new_path="$input_path" 18091 fi 18092 fi 18093 18094 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18095 if test "x$test_cygdrive_prefix" = x; then 18096 # As a simple fix, exclude /usr/bin since it's not a real path. 18097 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18098 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18099 # a path prefixed by /cygdrive for fixpath to work. 18100 new_path="$CYGWIN_ROOT_PATH$input_path" 18101 fi 18102 fi 18103 18104 # remove trailing .exe if any 18105 new_path="${new_path/%.exe/}" 18106 18107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18108 18109 # First separate the path from the arguments. This will split at the first 18110 # space. 18111 complete="$FOUND_MAKE" 18112 path="${complete%% *}" 18113 tmp="$complete EOL" 18114 arguments="${tmp#* }" 18115 18116 # Input might be given as Windows format, start by converting to 18117 # unix format. 18118 new_path="$path" 18119 18120 windows_path="$new_path" 18121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18122 unix_path=`$CYGPATH -u "$windows_path"` 18123 new_path="$unix_path" 18124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18126 new_path="$unix_path" 18127 fi 18128 18129 18130 # Now try to locate executable using which 18131 new_path=`$WHICH "$new_path" 2> /dev/null` 18132 18133 if test "x$new_path" = x; then 18134 # Oops. Which didn't find the executable. 18135 # The splitting of arguments from the executable at a space might have been incorrect, 18136 # since paths with space are more likely in Windows. Give it another try with the whole 18137 # argument. 18138 path="$complete" 18139 arguments="EOL" 18140 new_path="$path" 18141 18142 windows_path="$new_path" 18143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18144 unix_path=`$CYGPATH -u "$windows_path"` 18145 new_path="$unix_path" 18146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18147 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18148 new_path="$unix_path" 18149 fi 18150 18151 18152 new_path=`$WHICH "$new_path" 2> /dev/null` 18153 # bat and cmd files are not always considered executable in MSYS causing which 18154 # to not find them 18155 if test "x$new_path" = x \ 18156 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18157 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18158 new_path="$path" 18159 18160 windows_path="$new_path" 18161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18162 unix_path=`$CYGPATH -u "$windows_path"` 18163 new_path="$unix_path" 18164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18166 new_path="$unix_path" 18167 fi 18168 18169 fi 18170 18171 if test "x$new_path" = x; then 18172 # It's still not found. Now this is an unrecoverable error. 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18174 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18175 has_space=`$ECHO "$complete" | $GREP " "` 18176 if test "x$has_space" != x; then 18177 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18178 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18179 fi 18180 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18181 fi 18182 fi 18183 18184 # Now new_path has a complete unix path to the binary 18185 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18186 # Keep paths in /bin as-is, but remove trailing .exe if any 18187 new_path="${new_path/%.exe/}" 18188 # Do not save /bin paths to all_fixpath_prefixes! 18189 else 18190 # Not in mixed or Windows style, start by that. 18191 new_path=`cmd //c echo $new_path` 18192 18193 input_path="$new_path" 18194 # Check if we need to convert this using DOS-style short mode. If the path 18195 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18196 # take no chances and rewrite it. 18197 # Note: m4 eats our [], so we need to use [ and ] instead. 18198 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18199 if test "x$has_forbidden_chars" != x; then 18200 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18201 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18202 fi 18203 18204 # Output is in $new_path 18205 18206 windows_path="$new_path" 18207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18208 unix_path=`$CYGPATH -u "$windows_path"` 18209 new_path="$unix_path" 18210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18211 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18212 new_path="$unix_path" 18213 fi 18214 18215 # remove trailing .exe if any 18216 new_path="${new_path/%.exe/}" 18217 18218 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18219 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18220 fi 18221 18222 else 18223 # We're on a unix platform. Hooray! :) 18224 # First separate the path from the arguments. This will split at the first 18225 # space. 18226 complete="$FOUND_MAKE" 18227 path="${complete%% *}" 18228 tmp="$complete EOL" 18229 arguments="${tmp#* }" 18230 18231 # Cannot rely on the command "which" here since it doesn't always work. 18232 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18233 if test -z "$is_absolute_path"; then 18234 # Path to executable is not absolute. Find it. 18235 IFS_save="$IFS" 18236 IFS=: 18237 for p in $PATH; do 18238 if test -f "$p/$path" && test -x "$p/$path"; then 18239 new_path="$p/$path" 18240 break 18241 fi 18242 done 18243 IFS="$IFS_save" 18244 else 18245 # This is an absolute path, we can use it without further modifications. 18246 new_path="$path" 18247 fi 18248 18249 if test "x$new_path" = x; then 18250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18251 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18252 has_space=`$ECHO "$complete" | $GREP " "` 18253 if test "x$has_space" != x; then 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18255 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18256 fi 18257 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18258 fi 18259 fi 18260 18261 # Now join together the path and the arguments once again 18262 if test "x$arguments" != xEOL; then 18263 new_complete="$new_path ${arguments% *}" 18264 else 18265 new_complete="$new_path" 18266 fi 18267 18268 if test "x$complete" != "x$new_complete"; then 18269 FOUND_MAKE="$new_complete" 18270 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18271 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18272 fi 18273 fi 18274 18275 fi 18276 fi 18277 fi 18278 fi 18279 18280 18281 if test "x$FOUND_MAKE" = x; then 18282 for ac_prog in make 18283 do 18284 # Extract the first word of "$ac_prog", so it can be a program name with args. 18285 set dummy $ac_prog; ac_word=$2 18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18287 $as_echo_n "checking for $ac_word... " >&6; } 18288 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18289 $as_echo_n "(cached) " >&6 18290 else 18291 case $CHECK_MAKE in 18292 [\\/]* | ?:[\\/]*) 18293 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18294 ;; 18295 *) 18296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18297 for as_dir in $PATH 18298 do 18299 IFS=$as_save_IFS 18300 test -z "$as_dir" && as_dir=. 18301 for ac_exec_ext in '' $ac_executable_extensions; do 18302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18303 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18305 break 2 18306 fi 18307 done 18308 done 18309 IFS=$as_save_IFS 18310 18311 ;; 18312 esac 18313 fi 18314 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18315 if test -n "$CHECK_MAKE"; then 18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18317 $as_echo "$CHECK_MAKE" >&6; } 18318 else 18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18320 $as_echo "no" >&6; } 18321 fi 18322 18323 18324 test -n "$CHECK_MAKE" && break 18325 done 18326 18327 18328 MAKE_CANDIDATE=""$CHECK_MAKE"" 18329 DESCRIPTION="make in PATH" 18330 18331 # On Cygwin, we require a newer version of make than on other platforms 18332 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18333 MAKE_VERSION_EXPR="-e 4\." 18334 MAKE_REQUIRED_VERSION="4.0" 18335 else 18336 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18337 MAKE_REQUIRED_VERSION="3.81" 18338 fi 18339 18340 if test "x$MAKE_CANDIDATE" != x; then 18341 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18342 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18343 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18344 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18345 if test "x$IS_GNU_MAKE" = x; then 18346 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18347 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18348 else 18349 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18350 if test "x$IS_MODERN_MAKE" = x; then 18351 { $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 18352 $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;} 18353 else 18354 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18356 MAKE_EXPECTED_ENV='cygwin' 18357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18358 MAKE_EXPECTED_ENV='msys' 18359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then 18360 MAKE_EXPECTED_ENV='.' 18361 else 18362 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18363 fi 18364 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18365 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18366 else 18367 # Not relevant for non-Windows 18368 IS_MAKE_CORRECT_ENV=true 18369 fi 18370 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18371 { $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 18372 $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;} 18373 else 18374 FOUND_MAKE=$MAKE_CANDIDATE 18375 18376 # Only process if variable expands to non-empty 18377 18378 if test "x$FOUND_MAKE" != x; then 18379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18380 18381 # First separate the path from the arguments. This will split at the first 18382 # space. 18383 complete="$FOUND_MAKE" 18384 path="${complete%% *}" 18385 tmp="$complete EOL" 18386 arguments="${tmp#* }" 18387 18388 # Input might be given as Windows format, start by converting to 18389 # unix format. 18390 new_path=`$CYGPATH -u "$path"` 18391 18392 # Now try to locate executable using which 18393 new_path=`$WHICH "$new_path" 2> /dev/null` 18394 # bat and cmd files are not always considered executable in cygwin causing which 18395 # to not find them 18396 if test "x$new_path" = x \ 18397 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18398 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18399 new_path=`$CYGPATH -u "$path"` 18400 fi 18401 if test "x$new_path" = x; then 18402 # Oops. Which didn't find the executable. 18403 # The splitting of arguments from the executable at a space might have been incorrect, 18404 # since paths with space are more likely in Windows. Give it another try with the whole 18405 # argument. 18406 path="$complete" 18407 arguments="EOL" 18408 new_path=`$CYGPATH -u "$path"` 18409 new_path=`$WHICH "$new_path" 2> /dev/null` 18410 # bat and cmd files are not always considered executable in cygwin causing which 18411 # to not find them 18412 if test "x$new_path" = x \ 18413 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18414 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18415 new_path=`$CYGPATH -u "$path"` 18416 fi 18417 if test "x$new_path" = x; then 18418 # It's still not found. Now this is an unrecoverable error. 18419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18420 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18421 has_space=`$ECHO "$complete" | $GREP " "` 18422 if test "x$has_space" != x; then 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18424 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18425 fi 18426 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18427 fi 18428 fi 18429 18430 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18431 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18432 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18433 # "foo.exe" is OK but "foo" is an error. 18434 # 18435 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18436 # It is also a way to make sure we got the proper file name for the real test later on. 18437 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18438 if test "x$test_shortpath" = x; then 18439 # Short path failed, file does not exist as specified. 18440 # Try adding .exe or .cmd 18441 if test -f "${new_path}.exe"; then 18442 input_to_shortpath="${new_path}.exe" 18443 elif test -f "${new_path}.cmd"; then 18444 input_to_shortpath="${new_path}.cmd" 18445 else 18446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18447 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18448 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18449 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18450 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18451 fi 18452 else 18453 input_to_shortpath="$new_path" 18454 fi 18455 18456 # Call helper function which possibly converts this using DOS-style short mode. 18457 # If so, the updated path is stored in $new_path. 18458 new_path="$input_to_shortpath" 18459 18460 input_path="$input_to_shortpath" 18461 # Check if we need to convert this using DOS-style short mode. If the path 18462 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18463 # take no chances and rewrite it. 18464 # Note: m4 eats our [], so we need to use [ and ] instead. 18465 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18466 if test "x$has_forbidden_chars" != x; then 18467 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18468 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18469 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18470 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18471 # Going to short mode and back again did indeed matter. Since short mode is 18472 # case insensitive, let's make it lowercase to improve readability. 18473 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18474 # Now convert it back to Unix-style (cygpath) 18475 input_path=`$CYGPATH -u "$shortmode_path"` 18476 new_path="$input_path" 18477 fi 18478 fi 18479 18480 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18481 if test "x$test_cygdrive_prefix" = x; then 18482 # As a simple fix, exclude /usr/bin since it's not a real path. 18483 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18484 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18485 # a path prefixed by /cygdrive for fixpath to work. 18486 new_path="$CYGWIN_ROOT_PATH$input_path" 18487 fi 18488 fi 18489 18490 # remove trailing .exe if any 18491 new_path="${new_path/%.exe/}" 18492 18493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18494 18495 # First separate the path from the arguments. This will split at the first 18496 # space. 18497 complete="$FOUND_MAKE" 18498 path="${complete%% *}" 18499 tmp="$complete EOL" 18500 arguments="${tmp#* }" 18501 18502 # Input might be given as Windows format, start by converting to 18503 # unix format. 18504 new_path="$path" 18505 18506 windows_path="$new_path" 18507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18508 unix_path=`$CYGPATH -u "$windows_path"` 18509 new_path="$unix_path" 18510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18512 new_path="$unix_path" 18513 fi 18514 18515 18516 # Now try to locate executable using which 18517 new_path=`$WHICH "$new_path" 2> /dev/null` 18518 18519 if test "x$new_path" = x; then 18520 # Oops. Which didn't find the executable. 18521 # The splitting of arguments from the executable at a space might have been incorrect, 18522 # since paths with space are more likely in Windows. Give it another try with the whole 18523 # argument. 18524 path="$complete" 18525 arguments="EOL" 18526 new_path="$path" 18527 18528 windows_path="$new_path" 18529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18530 unix_path=`$CYGPATH -u "$windows_path"` 18531 new_path="$unix_path" 18532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18534 new_path="$unix_path" 18535 fi 18536 18537 18538 new_path=`$WHICH "$new_path" 2> /dev/null` 18539 # bat and cmd files are not always considered executable in MSYS causing which 18540 # to not find them 18541 if test "x$new_path" = x \ 18542 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18543 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18544 new_path="$path" 18545 18546 windows_path="$new_path" 18547 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18548 unix_path=`$CYGPATH -u "$windows_path"` 18549 new_path="$unix_path" 18550 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18551 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18552 new_path="$unix_path" 18553 fi 18554 18555 fi 18556 18557 if test "x$new_path" = x; then 18558 # It's still not found. Now this is an unrecoverable error. 18559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18560 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18561 has_space=`$ECHO "$complete" | $GREP " "` 18562 if test "x$has_space" != x; then 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18564 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18565 fi 18566 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18567 fi 18568 fi 18569 18570 # Now new_path has a complete unix path to the binary 18571 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18572 # Keep paths in /bin as-is, but remove trailing .exe if any 18573 new_path="${new_path/%.exe/}" 18574 # Do not save /bin paths to all_fixpath_prefixes! 18575 else 18576 # Not in mixed or Windows style, start by that. 18577 new_path=`cmd //c echo $new_path` 18578 18579 input_path="$new_path" 18580 # Check if we need to convert this using DOS-style short mode. If the path 18581 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18582 # take no chances and rewrite it. 18583 # Note: m4 eats our [], so we need to use [ and ] instead. 18584 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18585 if test "x$has_forbidden_chars" != x; then 18586 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18587 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18588 fi 18589 18590 # Output is in $new_path 18591 18592 windows_path="$new_path" 18593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18594 unix_path=`$CYGPATH -u "$windows_path"` 18595 new_path="$unix_path" 18596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18598 new_path="$unix_path" 18599 fi 18600 18601 # remove trailing .exe if any 18602 new_path="${new_path/%.exe/}" 18603 18604 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18605 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18606 fi 18607 18608 else 18609 # We're on a unix platform. Hooray! :) 18610 # First separate the path from the arguments. This will split at the first 18611 # space. 18612 complete="$FOUND_MAKE" 18613 path="${complete%% *}" 18614 tmp="$complete EOL" 18615 arguments="${tmp#* }" 18616 18617 # Cannot rely on the command "which" here since it doesn't always work. 18618 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18619 if test -z "$is_absolute_path"; then 18620 # Path to executable is not absolute. Find it. 18621 IFS_save="$IFS" 18622 IFS=: 18623 for p in $PATH; do 18624 if test -f "$p/$path" && test -x "$p/$path"; then 18625 new_path="$p/$path" 18626 break 18627 fi 18628 done 18629 IFS="$IFS_save" 18630 else 18631 # This is an absolute path, we can use it without further modifications. 18632 new_path="$path" 18633 fi 18634 18635 if test "x$new_path" = x; then 18636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18637 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18638 has_space=`$ECHO "$complete" | $GREP " "` 18639 if test "x$has_space" != x; then 18640 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18641 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18642 fi 18643 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18644 fi 18645 fi 18646 18647 # Now join together the path and the arguments once again 18648 if test "x$arguments" != xEOL; then 18649 new_complete="$new_path ${arguments% *}" 18650 else 18651 new_complete="$new_path" 18652 fi 18653 18654 if test "x$complete" != "x$new_complete"; then 18655 FOUND_MAKE="$new_complete" 18656 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18657 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18658 fi 18659 fi 18660 18661 fi 18662 fi 18663 fi 18664 fi 18665 18666 fi 18667 18668 if test "x$FOUND_MAKE" = x; then 18669 if test "x$TOOLCHAIN_PATH" != x; then 18670 # We have a toolchain path, check that as well before giving up. 18671 OLD_PATH=$PATH 18672 PATH=$TOOLCHAIN_PATH:$PATH 18673 for ac_prog in gmake 18674 do 18675 # Extract the first word of "$ac_prog", so it can be a program name with args. 18676 set dummy $ac_prog; ac_word=$2 18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18678 $as_echo_n "checking for $ac_word... " >&6; } 18679 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18680 $as_echo_n "(cached) " >&6 18681 else 18682 case $CHECK_TOOLSDIR_GMAKE in 18683 [\\/]* | ?:[\\/]*) 18684 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18685 ;; 18686 *) 18687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18688 for as_dir in $PATH 18689 do 18690 IFS=$as_save_IFS 18691 test -z "$as_dir" && as_dir=. 18692 for ac_exec_ext in '' $ac_executable_extensions; do 18693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18694 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18696 break 2 18697 fi 18698 done 18699 done 18700 IFS=$as_save_IFS 18701 18702 ;; 18703 esac 18704 fi 18705 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18706 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18708 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18709 else 18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18711 $as_echo "no" >&6; } 18712 fi 18713 18714 18715 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18716 done 18717 18718 18719 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18720 DESCRIPTION="gmake in tools-dir" 18721 18722 # On Cygwin, we require a newer version of make than on other platforms 18723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18724 MAKE_VERSION_EXPR="-e 4\." 18725 MAKE_REQUIRED_VERSION="4.0" 18726 else 18727 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18728 MAKE_REQUIRED_VERSION="3.81" 18729 fi 18730 18731 if test "x$MAKE_CANDIDATE" != x; then 18732 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18733 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18734 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18735 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18736 if test "x$IS_GNU_MAKE" = x; then 18737 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18738 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18739 else 18740 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18741 if test "x$IS_MODERN_MAKE" = x; then 18742 { $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 18743 $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;} 18744 else 18745 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18747 MAKE_EXPECTED_ENV='cygwin' 18748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18749 MAKE_EXPECTED_ENV='msys' 18750 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then 18751 MAKE_EXPECTED_ENV='.' 18752 else 18753 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18754 fi 18755 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18756 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18757 else 18758 # Not relevant for non-Windows 18759 IS_MAKE_CORRECT_ENV=true 18760 fi 18761 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18762 { $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 18763 $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;} 18764 else 18765 FOUND_MAKE=$MAKE_CANDIDATE 18766 18767 # Only process if variable expands to non-empty 18768 18769 if test "x$FOUND_MAKE" != x; then 18770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18771 18772 # First separate the path from the arguments. This will split at the first 18773 # space. 18774 complete="$FOUND_MAKE" 18775 path="${complete%% *}" 18776 tmp="$complete EOL" 18777 arguments="${tmp#* }" 18778 18779 # Input might be given as Windows format, start by converting to 18780 # unix format. 18781 new_path=`$CYGPATH -u "$path"` 18782 18783 # Now try to locate executable using which 18784 new_path=`$WHICH "$new_path" 2> /dev/null` 18785 # bat and cmd files are not always considered executable in cygwin causing which 18786 # to not find them 18787 if test "x$new_path" = x \ 18788 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18789 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18790 new_path=`$CYGPATH -u "$path"` 18791 fi 18792 if test "x$new_path" = x; then 18793 # Oops. Which didn't find the executable. 18794 # The splitting of arguments from the executable at a space might have been incorrect, 18795 # since paths with space are more likely in Windows. Give it another try with the whole 18796 # argument. 18797 path="$complete" 18798 arguments="EOL" 18799 new_path=`$CYGPATH -u "$path"` 18800 new_path=`$WHICH "$new_path" 2> /dev/null` 18801 # bat and cmd files are not always considered executable in cygwin causing which 18802 # to not find them 18803 if test "x$new_path" = x \ 18804 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18805 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18806 new_path=`$CYGPATH -u "$path"` 18807 fi 18808 if test "x$new_path" = x; then 18809 # It's still not found. Now this is an unrecoverable error. 18810 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18811 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18812 has_space=`$ECHO "$complete" | $GREP " "` 18813 if test "x$has_space" != x; then 18814 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18815 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18816 fi 18817 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18818 fi 18819 fi 18820 18821 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18822 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18823 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18824 # "foo.exe" is OK but "foo" is an error. 18825 # 18826 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18827 # It is also a way to make sure we got the proper file name for the real test later on. 18828 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18829 if test "x$test_shortpath" = x; then 18830 # Short path failed, file does not exist as specified. 18831 # Try adding .exe or .cmd 18832 if test -f "${new_path}.exe"; then 18833 input_to_shortpath="${new_path}.exe" 18834 elif test -f "${new_path}.cmd"; then 18835 input_to_shortpath="${new_path}.cmd" 18836 else 18837 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18838 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18839 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18840 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18841 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18842 fi 18843 else 18844 input_to_shortpath="$new_path" 18845 fi 18846 18847 # Call helper function which possibly converts this using DOS-style short mode. 18848 # If so, the updated path is stored in $new_path. 18849 new_path="$input_to_shortpath" 18850 18851 input_path="$input_to_shortpath" 18852 # Check if we need to convert this using DOS-style short mode. If the path 18853 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18854 # take no chances and rewrite it. 18855 # Note: m4 eats our [], so we need to use [ and ] instead. 18856 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18857 if test "x$has_forbidden_chars" != x; then 18858 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18859 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18860 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18861 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18862 # Going to short mode and back again did indeed matter. Since short mode is 18863 # case insensitive, let's make it lowercase to improve readability. 18864 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18865 # Now convert it back to Unix-style (cygpath) 18866 input_path=`$CYGPATH -u "$shortmode_path"` 18867 new_path="$input_path" 18868 fi 18869 fi 18870 18871 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18872 if test "x$test_cygdrive_prefix" = x; then 18873 # As a simple fix, exclude /usr/bin since it's not a real path. 18874 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18875 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18876 # a path prefixed by /cygdrive for fixpath to work. 18877 new_path="$CYGWIN_ROOT_PATH$input_path" 18878 fi 18879 fi 18880 18881 # remove trailing .exe if any 18882 new_path="${new_path/%.exe/}" 18883 18884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18885 18886 # First separate the path from the arguments. This will split at the first 18887 # space. 18888 complete="$FOUND_MAKE" 18889 path="${complete%% *}" 18890 tmp="$complete EOL" 18891 arguments="${tmp#* }" 18892 18893 # Input might be given as Windows format, start by converting to 18894 # unix format. 18895 new_path="$path" 18896 18897 windows_path="$new_path" 18898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18899 unix_path=`$CYGPATH -u "$windows_path"` 18900 new_path="$unix_path" 18901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18903 new_path="$unix_path" 18904 fi 18905 18906 18907 # Now try to locate executable using which 18908 new_path=`$WHICH "$new_path" 2> /dev/null` 18909 18910 if test "x$new_path" = x; then 18911 # Oops. Which didn't find the executable. 18912 # The splitting of arguments from the executable at a space might have been incorrect, 18913 # since paths with space are more likely in Windows. Give it another try with the whole 18914 # argument. 18915 path="$complete" 18916 arguments="EOL" 18917 new_path="$path" 18918 18919 windows_path="$new_path" 18920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18921 unix_path=`$CYGPATH -u "$windows_path"` 18922 new_path="$unix_path" 18923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18924 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18925 new_path="$unix_path" 18926 fi 18927 18928 18929 new_path=`$WHICH "$new_path" 2> /dev/null` 18930 # bat and cmd files are not always considered executable in MSYS causing which 18931 # to not find them 18932 if test "x$new_path" = x \ 18933 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18934 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18935 new_path="$path" 18936 18937 windows_path="$new_path" 18938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18939 unix_path=`$CYGPATH -u "$windows_path"` 18940 new_path="$unix_path" 18941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18943 new_path="$unix_path" 18944 fi 18945 18946 fi 18947 18948 if test "x$new_path" = x; then 18949 # It's still not found. Now this is an unrecoverable error. 18950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18951 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18952 has_space=`$ECHO "$complete" | $GREP " "` 18953 if test "x$has_space" != x; then 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18955 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18956 fi 18957 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18958 fi 18959 fi 18960 18961 # Now new_path has a complete unix path to the binary 18962 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18963 # Keep paths in /bin as-is, but remove trailing .exe if any 18964 new_path="${new_path/%.exe/}" 18965 # Do not save /bin paths to all_fixpath_prefixes! 18966 else 18967 # Not in mixed or Windows style, start by that. 18968 new_path=`cmd //c echo $new_path` 18969 18970 input_path="$new_path" 18971 # Check if we need to convert this using DOS-style short mode. If the path 18972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18973 # take no chances and rewrite it. 18974 # Note: m4 eats our [], so we need to use [ and ] instead. 18975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18976 if test "x$has_forbidden_chars" != x; then 18977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18978 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18979 fi 18980 18981 # Output is in $new_path 18982 18983 windows_path="$new_path" 18984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18985 unix_path=`$CYGPATH -u "$windows_path"` 18986 new_path="$unix_path" 18987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18988 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18989 new_path="$unix_path" 18990 fi 18991 18992 # remove trailing .exe if any 18993 new_path="${new_path/%.exe/}" 18994 18995 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18996 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18997 fi 18998 18999 else 19000 # We're on a unix platform. Hooray! :) 19001 # First separate the path from the arguments. This will split at the first 19002 # space. 19003 complete="$FOUND_MAKE" 19004 path="${complete%% *}" 19005 tmp="$complete EOL" 19006 arguments="${tmp#* }" 19007 19008 # Cannot rely on the command "which" here since it doesn't always work. 19009 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19010 if test -z "$is_absolute_path"; then 19011 # Path to executable is not absolute. Find it. 19012 IFS_save="$IFS" 19013 IFS=: 19014 for p in $PATH; do 19015 if test -f "$p/$path" && test -x "$p/$path"; then 19016 new_path="$p/$path" 19017 break 19018 fi 19019 done 19020 IFS="$IFS_save" 19021 else 19022 # This is an absolute path, we can use it without further modifications. 19023 new_path="$path" 19024 fi 19025 19026 if test "x$new_path" = x; then 19027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19028 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19029 has_space=`$ECHO "$complete" | $GREP " "` 19030 if test "x$has_space" != x; then 19031 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19032 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19033 fi 19034 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19035 fi 19036 fi 19037 19038 # Now join together the path and the arguments once again 19039 if test "x$arguments" != xEOL; then 19040 new_complete="$new_path ${arguments% *}" 19041 else 19042 new_complete="$new_path" 19043 fi 19044 19045 if test "x$complete" != "x$new_complete"; then 19046 FOUND_MAKE="$new_complete" 19047 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19048 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19049 fi 19050 fi 19051 19052 fi 19053 fi 19054 fi 19055 fi 19056 19057 if test "x$FOUND_MAKE" = x; then 19058 for ac_prog in make 19059 do 19060 # Extract the first word of "$ac_prog", so it can be a program name with args. 19061 set dummy $ac_prog; ac_word=$2 19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19063 $as_echo_n "checking for $ac_word... " >&6; } 19064 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 19065 $as_echo_n "(cached) " >&6 19066 else 19067 case $CHECK_TOOLSDIR_MAKE in 19068 [\\/]* | ?:[\\/]*) 19069 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 19070 ;; 19071 *) 19072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19073 for as_dir in $PATH 19074 do 19075 IFS=$as_save_IFS 19076 test -z "$as_dir" && as_dir=. 19077 for ac_exec_ext in '' $ac_executable_extensions; do 19078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19079 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 19080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19081 break 2 19082 fi 19083 done 19084 done 19085 IFS=$as_save_IFS 19086 19087 ;; 19088 esac 19089 fi 19090 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19091 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19093 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19094 else 19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19096 $as_echo "no" >&6; } 19097 fi 19098 19099 19100 test -n "$CHECK_TOOLSDIR_MAKE" && break 19101 done 19102 19103 19104 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19105 DESCRIPTION="make in tools-dir" 19106 19107 # On Cygwin, we require a newer version of make than on other platforms 19108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19109 MAKE_VERSION_EXPR="-e 4\." 19110 MAKE_REQUIRED_VERSION="4.0" 19111 else 19112 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19113 MAKE_REQUIRED_VERSION="3.81" 19114 fi 19115 19116 if test "x$MAKE_CANDIDATE" != x; then 19117 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19118 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19119 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19120 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19121 if test "x$IS_GNU_MAKE" = x; then 19122 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19123 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19124 else 19125 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19126 if test "x$IS_MODERN_MAKE" = x; then 19127 { $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 19128 $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;} 19129 else 19130 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19132 MAKE_EXPECTED_ENV='cygwin' 19133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19134 MAKE_EXPECTED_ENV='msys' 19135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then 19136 MAKE_EXPECTED_ENV='.' 19137 else 19138 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19139 fi 19140 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19141 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19142 else 19143 # Not relevant for non-Windows 19144 IS_MAKE_CORRECT_ENV=true 19145 fi 19146 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19147 { $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 19148 $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;} 19149 else 19150 FOUND_MAKE=$MAKE_CANDIDATE 19151 19152 # Only process if variable expands to non-empty 19153 19154 if test "x$FOUND_MAKE" != x; then 19155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19156 19157 # First separate the path from the arguments. This will split at the first 19158 # space. 19159 complete="$FOUND_MAKE" 19160 path="${complete%% *}" 19161 tmp="$complete EOL" 19162 arguments="${tmp#* }" 19163 19164 # Input might be given as Windows format, start by converting to 19165 # unix format. 19166 new_path=`$CYGPATH -u "$path"` 19167 19168 # Now try to locate executable using which 19169 new_path=`$WHICH "$new_path" 2> /dev/null` 19170 # bat and cmd files are not always considered executable in cygwin causing which 19171 # to not find them 19172 if test "x$new_path" = x \ 19173 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19174 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19175 new_path=`$CYGPATH -u "$path"` 19176 fi 19177 if test "x$new_path" = x; then 19178 # Oops. Which didn't find the executable. 19179 # The splitting of arguments from the executable at a space might have been incorrect, 19180 # since paths with space are more likely in Windows. Give it another try with the whole 19181 # argument. 19182 path="$complete" 19183 arguments="EOL" 19184 new_path=`$CYGPATH -u "$path"` 19185 new_path=`$WHICH "$new_path" 2> /dev/null` 19186 # bat and cmd files are not always considered executable in cygwin causing which 19187 # to not find them 19188 if test "x$new_path" = x \ 19189 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19190 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19191 new_path=`$CYGPATH -u "$path"` 19192 fi 19193 if test "x$new_path" = x; then 19194 # It's still not found. Now this is an unrecoverable error. 19195 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19196 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19197 has_space=`$ECHO "$complete" | $GREP " "` 19198 if test "x$has_space" != x; then 19199 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19200 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19201 fi 19202 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19203 fi 19204 fi 19205 19206 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19207 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19208 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19209 # "foo.exe" is OK but "foo" is an error. 19210 # 19211 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19212 # It is also a way to make sure we got the proper file name for the real test later on. 19213 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19214 if test "x$test_shortpath" = x; then 19215 # Short path failed, file does not exist as specified. 19216 # Try adding .exe or .cmd 19217 if test -f "${new_path}.exe"; then 19218 input_to_shortpath="${new_path}.exe" 19219 elif test -f "${new_path}.cmd"; then 19220 input_to_shortpath="${new_path}.cmd" 19221 else 19222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19223 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19224 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19225 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19226 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19227 fi 19228 else 19229 input_to_shortpath="$new_path" 19230 fi 19231 19232 # Call helper function which possibly converts this using DOS-style short mode. 19233 # If so, the updated path is stored in $new_path. 19234 new_path="$input_to_shortpath" 19235 19236 input_path="$input_to_shortpath" 19237 # Check if we need to convert this using DOS-style short mode. If the path 19238 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19239 # take no chances and rewrite it. 19240 # Note: m4 eats our [], so we need to use [ and ] instead. 19241 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19242 if test "x$has_forbidden_chars" != x; then 19243 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19244 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19245 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19246 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19247 # Going to short mode and back again did indeed matter. Since short mode is 19248 # case insensitive, let's make it lowercase to improve readability. 19249 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19250 # Now convert it back to Unix-style (cygpath) 19251 input_path=`$CYGPATH -u "$shortmode_path"` 19252 new_path="$input_path" 19253 fi 19254 fi 19255 19256 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19257 if test "x$test_cygdrive_prefix" = x; then 19258 # As a simple fix, exclude /usr/bin since it's not a real path. 19259 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19260 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19261 # a path prefixed by /cygdrive for fixpath to work. 19262 new_path="$CYGWIN_ROOT_PATH$input_path" 19263 fi 19264 fi 19265 19266 # remove trailing .exe if any 19267 new_path="${new_path/%.exe/}" 19268 19269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19270 19271 # First separate the path from the arguments. This will split at the first 19272 # space. 19273 complete="$FOUND_MAKE" 19274 path="${complete%% *}" 19275 tmp="$complete EOL" 19276 arguments="${tmp#* }" 19277 19278 # Input might be given as Windows format, start by converting to 19279 # unix format. 19280 new_path="$path" 19281 19282 windows_path="$new_path" 19283 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19284 unix_path=`$CYGPATH -u "$windows_path"` 19285 new_path="$unix_path" 19286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19287 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19288 new_path="$unix_path" 19289 fi 19290 19291 19292 # Now try to locate executable using which 19293 new_path=`$WHICH "$new_path" 2> /dev/null` 19294 19295 if test "x$new_path" = x; then 19296 # Oops. Which didn't find the executable. 19297 # The splitting of arguments from the executable at a space might have been incorrect, 19298 # since paths with space are more likely in Windows. Give it another try with the whole 19299 # argument. 19300 path="$complete" 19301 arguments="EOL" 19302 new_path="$path" 19303 19304 windows_path="$new_path" 19305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19306 unix_path=`$CYGPATH -u "$windows_path"` 19307 new_path="$unix_path" 19308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19309 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19310 new_path="$unix_path" 19311 fi 19312 19313 19314 new_path=`$WHICH "$new_path" 2> /dev/null` 19315 # bat and cmd files are not always considered executable in MSYS causing which 19316 # to not find them 19317 if test "x$new_path" = x \ 19318 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19319 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19320 new_path="$path" 19321 19322 windows_path="$new_path" 19323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19324 unix_path=`$CYGPATH -u "$windows_path"` 19325 new_path="$unix_path" 19326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19328 new_path="$unix_path" 19329 fi 19330 19331 fi 19332 19333 if test "x$new_path" = x; then 19334 # It's still not found. Now this is an unrecoverable error. 19335 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19336 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19337 has_space=`$ECHO "$complete" | $GREP " "` 19338 if test "x$has_space" != x; then 19339 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19340 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19341 fi 19342 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19343 fi 19344 fi 19345 19346 # Now new_path has a complete unix path to the binary 19347 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19348 # Keep paths in /bin as-is, but remove trailing .exe if any 19349 new_path="${new_path/%.exe/}" 19350 # Do not save /bin paths to all_fixpath_prefixes! 19351 else 19352 # Not in mixed or Windows style, start by that. 19353 new_path=`cmd //c echo $new_path` 19354 19355 input_path="$new_path" 19356 # Check if we need to convert this using DOS-style short mode. If the path 19357 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19358 # take no chances and rewrite it. 19359 # Note: m4 eats our [], so we need to use [ and ] instead. 19360 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19361 if test "x$has_forbidden_chars" != x; then 19362 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19363 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19364 fi 19365 19366 # Output is in $new_path 19367 19368 windows_path="$new_path" 19369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19370 unix_path=`$CYGPATH -u "$windows_path"` 19371 new_path="$unix_path" 19372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19374 new_path="$unix_path" 19375 fi 19376 19377 # remove trailing .exe if any 19378 new_path="${new_path/%.exe/}" 19379 19380 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19381 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19382 fi 19383 19384 else 19385 # We're on a unix platform. Hooray! :) 19386 # First separate the path from the arguments. This will split at the first 19387 # space. 19388 complete="$FOUND_MAKE" 19389 path="${complete%% *}" 19390 tmp="$complete EOL" 19391 arguments="${tmp#* }" 19392 19393 # Cannot rely on the command "which" here since it doesn't always work. 19394 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19395 if test -z "$is_absolute_path"; then 19396 # Path to executable is not absolute. Find it. 19397 IFS_save="$IFS" 19398 IFS=: 19399 for p in $PATH; do 19400 if test -f "$p/$path" && test -x "$p/$path"; then 19401 new_path="$p/$path" 19402 break 19403 fi 19404 done 19405 IFS="$IFS_save" 19406 else 19407 # This is an absolute path, we can use it without further modifications. 19408 new_path="$path" 19409 fi 19410 19411 if test "x$new_path" = x; then 19412 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19413 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19414 has_space=`$ECHO "$complete" | $GREP " "` 19415 if test "x$has_space" != x; then 19416 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19417 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19418 fi 19419 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19420 fi 19421 fi 19422 19423 # Now join together the path and the arguments once again 19424 if test "x$arguments" != xEOL; then 19425 new_complete="$new_path ${arguments% *}" 19426 else 19427 new_complete="$new_path" 19428 fi 19429 19430 if test "x$complete" != "x$new_complete"; then 19431 FOUND_MAKE="$new_complete" 19432 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19433 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19434 fi 19435 fi 19436 19437 fi 19438 fi 19439 fi 19440 fi 19441 19442 fi 19443 PATH=$OLD_PATH 19444 fi 19445 fi 19446 19447 if test "x$FOUND_MAKE" = x; then 19448 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 19449 fi 19450 19451 else 19452 # The variable is set, but is it from the command line or the environment? 19453 19454 # Try to remove the string !MAKE! from our list. 19455 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19456 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19457 # If it failed, the variable was not from the command line. Ignore it, 19458 # but warn the user (except for BASH, which is always set by the calling BASH). 19459 if test "xMAKE" != xBASH; then 19460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19461 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19462 fi 19463 # Try to locate tool using the code snippet 19464 19465 # Try our hardest to locate a correct version of GNU make 19466 for ac_prog in gmake 19467 do 19468 # Extract the first word of "$ac_prog", so it can be a program name with args. 19469 set dummy $ac_prog; ac_word=$2 19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19471 $as_echo_n "checking for $ac_word... " >&6; } 19472 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19473 $as_echo_n "(cached) " >&6 19474 else 19475 case $CHECK_GMAKE in 19476 [\\/]* | ?:[\\/]*) 19477 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19478 ;; 19479 *) 19480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19481 for as_dir in $PATH 19482 do 19483 IFS=$as_save_IFS 19484 test -z "$as_dir" && as_dir=. 19485 for ac_exec_ext in '' $ac_executable_extensions; do 19486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19487 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19489 break 2 19490 fi 19491 done 19492 done 19493 IFS=$as_save_IFS 19494 19495 ;; 19496 esac 19497 fi 19498 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19499 if test -n "$CHECK_GMAKE"; then 19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19501 $as_echo "$CHECK_GMAKE" >&6; } 19502 else 19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19504 $as_echo "no" >&6; } 19505 fi 19506 19507 19508 test -n "$CHECK_GMAKE" && break 19509 done 19510 19511 19512 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19513 DESCRIPTION="gmake in PATH" 19514 19515 # On Cygwin, we require a newer version of make than on other platforms 19516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19517 MAKE_VERSION_EXPR="-e 4\." 19518 MAKE_REQUIRED_VERSION="4.0" 19519 else 19520 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19521 MAKE_REQUIRED_VERSION="3.81" 19522 fi 19523 19524 if test "x$MAKE_CANDIDATE" != x; then 19525 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19526 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19527 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19528 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19529 if test "x$IS_GNU_MAKE" = x; then 19530 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19531 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19532 else 19533 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19534 if test "x$IS_MODERN_MAKE" = x; then 19535 { $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 19536 $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;} 19537 else 19538 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19540 MAKE_EXPECTED_ENV='cygwin' 19541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19542 MAKE_EXPECTED_ENV='msys' 19543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then 19544 MAKE_EXPECTED_ENV='.' 19545 else 19546 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19547 fi 19548 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19549 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19550 else 19551 # Not relevant for non-Windows 19552 IS_MAKE_CORRECT_ENV=true 19553 fi 19554 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19555 { $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 19556 $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;} 19557 else 19558 FOUND_MAKE=$MAKE_CANDIDATE 19559 19560 # Only process if variable expands to non-empty 19561 19562 if test "x$FOUND_MAKE" != x; then 19563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19564 19565 # First separate the path from the arguments. This will split at the first 19566 # space. 19567 complete="$FOUND_MAKE" 19568 path="${complete%% *}" 19569 tmp="$complete EOL" 19570 arguments="${tmp#* }" 19571 19572 # Input might be given as Windows format, start by converting to 19573 # unix format. 19574 new_path=`$CYGPATH -u "$path"` 19575 19576 # Now try to locate executable using which 19577 new_path=`$WHICH "$new_path" 2> /dev/null` 19578 # bat and cmd files are not always considered executable in cygwin causing which 19579 # to not find them 19580 if test "x$new_path" = x \ 19581 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19582 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19583 new_path=`$CYGPATH -u "$path"` 19584 fi 19585 if test "x$new_path" = x; then 19586 # Oops. Which didn't find the executable. 19587 # The splitting of arguments from the executable at a space might have been incorrect, 19588 # since paths with space are more likely in Windows. Give it another try with the whole 19589 # argument. 19590 path="$complete" 19591 arguments="EOL" 19592 new_path=`$CYGPATH -u "$path"` 19593 new_path=`$WHICH "$new_path" 2> /dev/null` 19594 # bat and cmd files are not always considered executable in cygwin causing which 19595 # to not find them 19596 if test "x$new_path" = x \ 19597 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19598 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19599 new_path=`$CYGPATH -u "$path"` 19600 fi 19601 if test "x$new_path" = x; then 19602 # It's still not found. Now this is an unrecoverable error. 19603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19604 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19605 has_space=`$ECHO "$complete" | $GREP " "` 19606 if test "x$has_space" != x; then 19607 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19608 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19609 fi 19610 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19611 fi 19612 fi 19613 19614 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19615 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19616 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19617 # "foo.exe" is OK but "foo" is an error. 19618 # 19619 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19620 # It is also a way to make sure we got the proper file name for the real test later on. 19621 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19622 if test "x$test_shortpath" = x; then 19623 # Short path failed, file does not exist as specified. 19624 # Try adding .exe or .cmd 19625 if test -f "${new_path}.exe"; then 19626 input_to_shortpath="${new_path}.exe" 19627 elif test -f "${new_path}.cmd"; then 19628 input_to_shortpath="${new_path}.cmd" 19629 else 19630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19631 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19632 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19633 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19634 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19635 fi 19636 else 19637 input_to_shortpath="$new_path" 19638 fi 19639 19640 # Call helper function which possibly converts this using DOS-style short mode. 19641 # If so, the updated path is stored in $new_path. 19642 new_path="$input_to_shortpath" 19643 19644 input_path="$input_to_shortpath" 19645 # Check if we need to convert this using DOS-style short mode. If the path 19646 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19647 # take no chances and rewrite it. 19648 # Note: m4 eats our [], so we need to use [ and ] instead. 19649 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19650 if test "x$has_forbidden_chars" != x; then 19651 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19652 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19653 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19654 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19655 # Going to short mode and back again did indeed matter. Since short mode is 19656 # case insensitive, let's make it lowercase to improve readability. 19657 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19658 # Now convert it back to Unix-style (cygpath) 19659 input_path=`$CYGPATH -u "$shortmode_path"` 19660 new_path="$input_path" 19661 fi 19662 fi 19663 19664 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19665 if test "x$test_cygdrive_prefix" = x; then 19666 # As a simple fix, exclude /usr/bin since it's not a real path. 19667 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19668 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19669 # a path prefixed by /cygdrive for fixpath to work. 19670 new_path="$CYGWIN_ROOT_PATH$input_path" 19671 fi 19672 fi 19673 19674 # remove trailing .exe if any 19675 new_path="${new_path/%.exe/}" 19676 19677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19678 19679 # First separate the path from the arguments. This will split at the first 19680 # space. 19681 complete="$FOUND_MAKE" 19682 path="${complete%% *}" 19683 tmp="$complete EOL" 19684 arguments="${tmp#* }" 19685 19686 # Input might be given as Windows format, start by converting to 19687 # unix format. 19688 new_path="$path" 19689 19690 windows_path="$new_path" 19691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19692 unix_path=`$CYGPATH -u "$windows_path"` 19693 new_path="$unix_path" 19694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19696 new_path="$unix_path" 19697 fi 19698 19699 19700 # Now try to locate executable using which 19701 new_path=`$WHICH "$new_path" 2> /dev/null` 19702 19703 if test "x$new_path" = x; then 19704 # Oops. Which didn't find the executable. 19705 # The splitting of arguments from the executable at a space might have been incorrect, 19706 # since paths with space are more likely in Windows. Give it another try with the whole 19707 # argument. 19708 path="$complete" 19709 arguments="EOL" 19710 new_path="$path" 19711 19712 windows_path="$new_path" 19713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19714 unix_path=`$CYGPATH -u "$windows_path"` 19715 new_path="$unix_path" 19716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19718 new_path="$unix_path" 19719 fi 19720 19721 19722 new_path=`$WHICH "$new_path" 2> /dev/null` 19723 # bat and cmd files are not always considered executable in MSYS causing which 19724 # to not find them 19725 if test "x$new_path" = x \ 19726 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19727 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19728 new_path="$path" 19729 19730 windows_path="$new_path" 19731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19732 unix_path=`$CYGPATH -u "$windows_path"` 19733 new_path="$unix_path" 19734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19735 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19736 new_path="$unix_path" 19737 fi 19738 19739 fi 19740 19741 if test "x$new_path" = x; then 19742 # It's still not found. Now this is an unrecoverable error. 19743 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19744 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19745 has_space=`$ECHO "$complete" | $GREP " "` 19746 if test "x$has_space" != x; then 19747 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19748 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19749 fi 19750 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19751 fi 19752 fi 19753 19754 # Now new_path has a complete unix path to the binary 19755 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19756 # Keep paths in /bin as-is, but remove trailing .exe if any 19757 new_path="${new_path/%.exe/}" 19758 # Do not save /bin paths to all_fixpath_prefixes! 19759 else 19760 # Not in mixed or Windows style, start by that. 19761 new_path=`cmd //c echo $new_path` 19762 19763 input_path="$new_path" 19764 # Check if we need to convert this using DOS-style short mode. If the path 19765 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19766 # take no chances and rewrite it. 19767 # Note: m4 eats our [], so we need to use [ and ] instead. 19768 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19769 if test "x$has_forbidden_chars" != x; then 19770 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19771 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19772 fi 19773 19774 # Output is in $new_path 19775 19776 windows_path="$new_path" 19777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19778 unix_path=`$CYGPATH -u "$windows_path"` 19779 new_path="$unix_path" 19780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19781 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19782 new_path="$unix_path" 19783 fi 19784 19785 # remove trailing .exe if any 19786 new_path="${new_path/%.exe/}" 19787 19788 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19789 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19790 fi 19791 19792 else 19793 # We're on a unix platform. Hooray! :) 19794 # First separate the path from the arguments. This will split at the first 19795 # space. 19796 complete="$FOUND_MAKE" 19797 path="${complete%% *}" 19798 tmp="$complete EOL" 19799 arguments="${tmp#* }" 19800 19801 # Cannot rely on the command "which" here since it doesn't always work. 19802 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19803 if test -z "$is_absolute_path"; then 19804 # Path to executable is not absolute. Find it. 19805 IFS_save="$IFS" 19806 IFS=: 19807 for p in $PATH; do 19808 if test -f "$p/$path" && test -x "$p/$path"; then 19809 new_path="$p/$path" 19810 break 19811 fi 19812 done 19813 IFS="$IFS_save" 19814 else 19815 # This is an absolute path, we can use it without further modifications. 19816 new_path="$path" 19817 fi 19818 19819 if test "x$new_path" = x; then 19820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19821 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19822 has_space=`$ECHO "$complete" | $GREP " "` 19823 if test "x$has_space" != x; then 19824 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19825 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19826 fi 19827 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19828 fi 19829 fi 19830 19831 # Now join together the path and the arguments once again 19832 if test "x$arguments" != xEOL; then 19833 new_complete="$new_path ${arguments% *}" 19834 else 19835 new_complete="$new_path" 19836 fi 19837 19838 if test "x$complete" != "x$new_complete"; then 19839 FOUND_MAKE="$new_complete" 19840 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19841 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19842 fi 19843 fi 19844 19845 fi 19846 fi 19847 fi 19848 fi 19849 19850 19851 if test "x$FOUND_MAKE" = x; then 19852 for ac_prog in make 19853 do 19854 # Extract the first word of "$ac_prog", so it can be a program name with args. 19855 set dummy $ac_prog; ac_word=$2 19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19857 $as_echo_n "checking for $ac_word... " >&6; } 19858 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19859 $as_echo_n "(cached) " >&6 19860 else 19861 case $CHECK_MAKE in 19862 [\\/]* | ?:[\\/]*) 19863 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19864 ;; 19865 *) 19866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19867 for as_dir in $PATH 19868 do 19869 IFS=$as_save_IFS 19870 test -z "$as_dir" && as_dir=. 19871 for ac_exec_ext in '' $ac_executable_extensions; do 19872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19873 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19875 break 2 19876 fi 19877 done 19878 done 19879 IFS=$as_save_IFS 19880 19881 ;; 19882 esac 19883 fi 19884 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19885 if test -n "$CHECK_MAKE"; then 19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19887 $as_echo "$CHECK_MAKE" >&6; } 19888 else 19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19890 $as_echo "no" >&6; } 19891 fi 19892 19893 19894 test -n "$CHECK_MAKE" && break 19895 done 19896 19897 19898 MAKE_CANDIDATE=""$CHECK_MAKE"" 19899 DESCRIPTION="make in PATH" 19900 19901 # On Cygwin, we require a newer version of make than on other platforms 19902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19903 MAKE_VERSION_EXPR="-e 4\." 19904 MAKE_REQUIRED_VERSION="4.0" 19905 else 19906 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19907 MAKE_REQUIRED_VERSION="3.81" 19908 fi 19909 19910 if test "x$MAKE_CANDIDATE" != x; then 19911 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19912 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19913 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19914 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19915 if test "x$IS_GNU_MAKE" = x; then 19916 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19917 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19918 else 19919 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19920 if test "x$IS_MODERN_MAKE" = x; then 19921 { $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 19922 $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;} 19923 else 19924 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19926 MAKE_EXPECTED_ENV='cygwin' 19927 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19928 MAKE_EXPECTED_ENV='msys' 19929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then 19930 MAKE_EXPECTED_ENV='.' 19931 else 19932 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19933 fi 19934 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19935 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19936 else 19937 # Not relevant for non-Windows 19938 IS_MAKE_CORRECT_ENV=true 19939 fi 19940 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19941 { $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 19942 $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;} 19943 else 19944 FOUND_MAKE=$MAKE_CANDIDATE 19945 19946 # Only process if variable expands to non-empty 19947 19948 if test "x$FOUND_MAKE" != x; then 19949 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19950 19951 # First separate the path from the arguments. This will split at the first 19952 # space. 19953 complete="$FOUND_MAKE" 19954 path="${complete%% *}" 19955 tmp="$complete EOL" 19956 arguments="${tmp#* }" 19957 19958 # Input might be given as Windows format, start by converting to 19959 # unix format. 19960 new_path=`$CYGPATH -u "$path"` 19961 19962 # Now try to locate executable using which 19963 new_path=`$WHICH "$new_path" 2> /dev/null` 19964 # bat and cmd files are not always considered executable in cygwin causing which 19965 # to not find them 19966 if test "x$new_path" = x \ 19967 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19968 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19969 new_path=`$CYGPATH -u "$path"` 19970 fi 19971 if test "x$new_path" = x; then 19972 # Oops. Which didn't find the executable. 19973 # The splitting of arguments from the executable at a space might have been incorrect, 19974 # since paths with space are more likely in Windows. Give it another try with the whole 19975 # argument. 19976 path="$complete" 19977 arguments="EOL" 19978 new_path=`$CYGPATH -u "$path"` 19979 new_path=`$WHICH "$new_path" 2> /dev/null` 19980 # bat and cmd files are not always considered executable in cygwin causing which 19981 # to not find them 19982 if test "x$new_path" = x \ 19983 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19984 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19985 new_path=`$CYGPATH -u "$path"` 19986 fi 19987 if test "x$new_path" = x; then 19988 # It's still not found. Now this is an unrecoverable error. 19989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19990 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19991 has_space=`$ECHO "$complete" | $GREP " "` 19992 if test "x$has_space" != x; then 19993 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19994 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19995 fi 19996 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19997 fi 19998 fi 19999 20000 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20001 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20002 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20003 # "foo.exe" is OK but "foo" is an error. 20004 # 20005 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20006 # It is also a way to make sure we got the proper file name for the real test later on. 20007 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20008 if test "x$test_shortpath" = x; then 20009 # Short path failed, file does not exist as specified. 20010 # Try adding .exe or .cmd 20011 if test -f "${new_path}.exe"; then 20012 input_to_shortpath="${new_path}.exe" 20013 elif test -f "${new_path}.cmd"; then 20014 input_to_shortpath="${new_path}.cmd" 20015 else 20016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20017 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20018 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20019 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20020 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20021 fi 20022 else 20023 input_to_shortpath="$new_path" 20024 fi 20025 20026 # Call helper function which possibly converts this using DOS-style short mode. 20027 # If so, the updated path is stored in $new_path. 20028 new_path="$input_to_shortpath" 20029 20030 input_path="$input_to_shortpath" 20031 # Check if we need to convert this using DOS-style short mode. If the path 20032 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20033 # take no chances and rewrite it. 20034 # Note: m4 eats our [], so we need to use [ and ] instead. 20035 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20036 if test "x$has_forbidden_chars" != x; then 20037 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20038 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20039 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20040 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20041 # Going to short mode and back again did indeed matter. Since short mode is 20042 # case insensitive, let's make it lowercase to improve readability. 20043 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20044 # Now convert it back to Unix-style (cygpath) 20045 input_path=`$CYGPATH -u "$shortmode_path"` 20046 new_path="$input_path" 20047 fi 20048 fi 20049 20050 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20051 if test "x$test_cygdrive_prefix" = x; then 20052 # As a simple fix, exclude /usr/bin since it's not a real path. 20053 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20054 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20055 # a path prefixed by /cygdrive for fixpath to work. 20056 new_path="$CYGWIN_ROOT_PATH$input_path" 20057 fi 20058 fi 20059 20060 # remove trailing .exe if any 20061 new_path="${new_path/%.exe/}" 20062 20063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20064 20065 # First separate the path from the arguments. This will split at the first 20066 # space. 20067 complete="$FOUND_MAKE" 20068 path="${complete%% *}" 20069 tmp="$complete EOL" 20070 arguments="${tmp#* }" 20071 20072 # Input might be given as Windows format, start by converting to 20073 # unix format. 20074 new_path="$path" 20075 20076 windows_path="$new_path" 20077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20078 unix_path=`$CYGPATH -u "$windows_path"` 20079 new_path="$unix_path" 20080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20081 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20082 new_path="$unix_path" 20083 fi 20084 20085 20086 # Now try to locate executable using which 20087 new_path=`$WHICH "$new_path" 2> /dev/null` 20088 20089 if test "x$new_path" = x; then 20090 # Oops. Which didn't find the executable. 20091 # The splitting of arguments from the executable at a space might have been incorrect, 20092 # since paths with space are more likely in Windows. Give it another try with the whole 20093 # argument. 20094 path="$complete" 20095 arguments="EOL" 20096 new_path="$path" 20097 20098 windows_path="$new_path" 20099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20100 unix_path=`$CYGPATH -u "$windows_path"` 20101 new_path="$unix_path" 20102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20103 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20104 new_path="$unix_path" 20105 fi 20106 20107 20108 new_path=`$WHICH "$new_path" 2> /dev/null` 20109 # bat and cmd files are not always considered executable in MSYS causing which 20110 # to not find them 20111 if test "x$new_path" = x \ 20112 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20113 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20114 new_path="$path" 20115 20116 windows_path="$new_path" 20117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20118 unix_path=`$CYGPATH -u "$windows_path"` 20119 new_path="$unix_path" 20120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20121 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20122 new_path="$unix_path" 20123 fi 20124 20125 fi 20126 20127 if test "x$new_path" = x; then 20128 # It's still not found. Now this is an unrecoverable error. 20129 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20130 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20131 has_space=`$ECHO "$complete" | $GREP " "` 20132 if test "x$has_space" != x; then 20133 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20134 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20135 fi 20136 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20137 fi 20138 fi 20139 20140 # Now new_path has a complete unix path to the binary 20141 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20142 # Keep paths in /bin as-is, but remove trailing .exe if any 20143 new_path="${new_path/%.exe/}" 20144 # Do not save /bin paths to all_fixpath_prefixes! 20145 else 20146 # Not in mixed or Windows style, start by that. 20147 new_path=`cmd //c echo $new_path` 20148 20149 input_path="$new_path" 20150 # Check if we need to convert this using DOS-style short mode. If the path 20151 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20152 # take no chances and rewrite it. 20153 # Note: m4 eats our [], so we need to use [ and ] instead. 20154 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20155 if test "x$has_forbidden_chars" != x; then 20156 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20157 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20158 fi 20159 20160 # Output is in $new_path 20161 20162 windows_path="$new_path" 20163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20164 unix_path=`$CYGPATH -u "$windows_path"` 20165 new_path="$unix_path" 20166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20167 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20168 new_path="$unix_path" 20169 fi 20170 20171 # remove trailing .exe if any 20172 new_path="${new_path/%.exe/}" 20173 20174 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20175 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20176 fi 20177 20178 else 20179 # We're on a unix platform. Hooray! :) 20180 # First separate the path from the arguments. This will split at the first 20181 # space. 20182 complete="$FOUND_MAKE" 20183 path="${complete%% *}" 20184 tmp="$complete EOL" 20185 arguments="${tmp#* }" 20186 20187 # Cannot rely on the command "which" here since it doesn't always work. 20188 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20189 if test -z "$is_absolute_path"; then 20190 # Path to executable is not absolute. Find it. 20191 IFS_save="$IFS" 20192 IFS=: 20193 for p in $PATH; do 20194 if test -f "$p/$path" && test -x "$p/$path"; then 20195 new_path="$p/$path" 20196 break 20197 fi 20198 done 20199 IFS="$IFS_save" 20200 else 20201 # This is an absolute path, we can use it without further modifications. 20202 new_path="$path" 20203 fi 20204 20205 if test "x$new_path" = x; then 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20207 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20208 has_space=`$ECHO "$complete" | $GREP " "` 20209 if test "x$has_space" != x; then 20210 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20211 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20212 fi 20213 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20214 fi 20215 fi 20216 20217 # Now join together the path and the arguments once again 20218 if test "x$arguments" != xEOL; then 20219 new_complete="$new_path ${arguments% *}" 20220 else 20221 new_complete="$new_path" 20222 fi 20223 20224 if test "x$complete" != "x$new_complete"; then 20225 FOUND_MAKE="$new_complete" 20226 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20227 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20228 fi 20229 fi 20230 20231 fi 20232 fi 20233 fi 20234 fi 20235 20236 fi 20237 20238 if test "x$FOUND_MAKE" = x; then 20239 if test "x$TOOLCHAIN_PATH" != x; then 20240 # We have a toolchain path, check that as well before giving up. 20241 OLD_PATH=$PATH 20242 PATH=$TOOLCHAIN_PATH:$PATH 20243 for ac_prog in gmake 20244 do 20245 # Extract the first word of "$ac_prog", so it can be a program name with args. 20246 set dummy $ac_prog; ac_word=$2 20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20248 $as_echo_n "checking for $ac_word... " >&6; } 20249 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 20250 $as_echo_n "(cached) " >&6 20251 else 20252 case $CHECK_TOOLSDIR_GMAKE in 20253 [\\/]* | ?:[\\/]*) 20254 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 20255 ;; 20256 *) 20257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20258 for as_dir in $PATH 20259 do 20260 IFS=$as_save_IFS 20261 test -z "$as_dir" && as_dir=. 20262 for ac_exec_ext in '' $ac_executable_extensions; do 20263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20264 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 20265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20266 break 2 20267 fi 20268 done 20269 done 20270 IFS=$as_save_IFS 20271 20272 ;; 20273 esac 20274 fi 20275 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 20276 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 20278 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 20279 else 20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20281 $as_echo "no" >&6; } 20282 fi 20283 20284 20285 test -n "$CHECK_TOOLSDIR_GMAKE" && break 20286 done 20287 20288 20289 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 20290 DESCRIPTION="gmake in tools-dir" 20291 20292 # On Cygwin, we require a newer version of make than on other platforms 20293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20294 MAKE_VERSION_EXPR="-e 4\." 20295 MAKE_REQUIRED_VERSION="4.0" 20296 else 20297 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20298 MAKE_REQUIRED_VERSION="3.81" 20299 fi 20300 20301 if test "x$MAKE_CANDIDATE" != x; then 20302 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20303 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20304 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20305 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20306 if test "x$IS_GNU_MAKE" = x; then 20307 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20308 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20309 else 20310 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20311 if test "x$IS_MODERN_MAKE" = x; then 20312 { $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 20313 $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;} 20314 else 20315 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20317 MAKE_EXPECTED_ENV='cygwin' 20318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20319 MAKE_EXPECTED_ENV='msys' 20320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then 20321 MAKE_EXPECTED_ENV='.' 20322 else 20323 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20324 fi 20325 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20326 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20327 else 20328 # Not relevant for non-Windows 20329 IS_MAKE_CORRECT_ENV=true 20330 fi 20331 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20332 { $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 20333 $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;} 20334 else 20335 FOUND_MAKE=$MAKE_CANDIDATE 20336 20337 # Only process if variable expands to non-empty 20338 20339 if test "x$FOUND_MAKE" != x; then 20340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20341 20342 # First separate the path from the arguments. This will split at the first 20343 # space. 20344 complete="$FOUND_MAKE" 20345 path="${complete%% *}" 20346 tmp="$complete EOL" 20347 arguments="${tmp#* }" 20348 20349 # Input might be given as Windows format, start by converting to 20350 # unix format. 20351 new_path=`$CYGPATH -u "$path"` 20352 20353 # Now try to locate executable using which 20354 new_path=`$WHICH "$new_path" 2> /dev/null` 20355 # bat and cmd files are not always considered executable in cygwin causing which 20356 # to not find them 20357 if test "x$new_path" = x \ 20358 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20359 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20360 new_path=`$CYGPATH -u "$path"` 20361 fi 20362 if test "x$new_path" = x; then 20363 # Oops. Which didn't find the executable. 20364 # The splitting of arguments from the executable at a space might have been incorrect, 20365 # since paths with space are more likely in Windows. Give it another try with the whole 20366 # argument. 20367 path="$complete" 20368 arguments="EOL" 20369 new_path=`$CYGPATH -u "$path"` 20370 new_path=`$WHICH "$new_path" 2> /dev/null` 20371 # bat and cmd files are not always considered executable in cygwin causing which 20372 # to not find them 20373 if test "x$new_path" = x \ 20374 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20375 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20376 new_path=`$CYGPATH -u "$path"` 20377 fi 20378 if test "x$new_path" = x; then 20379 # It's still not found. Now this is an unrecoverable error. 20380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20381 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20382 has_space=`$ECHO "$complete" | $GREP " "` 20383 if test "x$has_space" != x; then 20384 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20385 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20386 fi 20387 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20388 fi 20389 fi 20390 20391 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20392 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20393 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20394 # "foo.exe" is OK but "foo" is an error. 20395 # 20396 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20397 # It is also a way to make sure we got the proper file name for the real test later on. 20398 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20399 if test "x$test_shortpath" = x; then 20400 # Short path failed, file does not exist as specified. 20401 # Try adding .exe or .cmd 20402 if test -f "${new_path}.exe"; then 20403 input_to_shortpath="${new_path}.exe" 20404 elif test -f "${new_path}.cmd"; then 20405 input_to_shortpath="${new_path}.cmd" 20406 else 20407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20408 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20409 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20410 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20411 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20412 fi 20413 else 20414 input_to_shortpath="$new_path" 20415 fi 20416 20417 # Call helper function which possibly converts this using DOS-style short mode. 20418 # If so, the updated path is stored in $new_path. 20419 new_path="$input_to_shortpath" 20420 20421 input_path="$input_to_shortpath" 20422 # Check if we need to convert this using DOS-style short mode. If the path 20423 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20424 # take no chances and rewrite it. 20425 # Note: m4 eats our [], so we need to use [ and ] instead. 20426 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20427 if test "x$has_forbidden_chars" != x; then 20428 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20429 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20430 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20431 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20432 # Going to short mode and back again did indeed matter. Since short mode is 20433 # case insensitive, let's make it lowercase to improve readability. 20434 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20435 # Now convert it back to Unix-style (cygpath) 20436 input_path=`$CYGPATH -u "$shortmode_path"` 20437 new_path="$input_path" 20438 fi 20439 fi 20440 20441 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20442 if test "x$test_cygdrive_prefix" = x; then 20443 # As a simple fix, exclude /usr/bin since it's not a real path. 20444 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20445 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20446 # a path prefixed by /cygdrive for fixpath to work. 20447 new_path="$CYGWIN_ROOT_PATH$input_path" 20448 fi 20449 fi 20450 20451 # remove trailing .exe if any 20452 new_path="${new_path/%.exe/}" 20453 20454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20455 20456 # First separate the path from the arguments. This will split at the first 20457 # space. 20458 complete="$FOUND_MAKE" 20459 path="${complete%% *}" 20460 tmp="$complete EOL" 20461 arguments="${tmp#* }" 20462 20463 # Input might be given as Windows format, start by converting to 20464 # unix format. 20465 new_path="$path" 20466 20467 windows_path="$new_path" 20468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20469 unix_path=`$CYGPATH -u "$windows_path"` 20470 new_path="$unix_path" 20471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20472 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20473 new_path="$unix_path" 20474 fi 20475 20476 20477 # Now try to locate executable using which 20478 new_path=`$WHICH "$new_path" 2> /dev/null` 20479 20480 if test "x$new_path" = x; then 20481 # Oops. Which didn't find the executable. 20482 # The splitting of arguments from the executable at a space might have been incorrect, 20483 # since paths with space are more likely in Windows. Give it another try with the whole 20484 # argument. 20485 path="$complete" 20486 arguments="EOL" 20487 new_path="$path" 20488 20489 windows_path="$new_path" 20490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20491 unix_path=`$CYGPATH -u "$windows_path"` 20492 new_path="$unix_path" 20493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20494 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20495 new_path="$unix_path" 20496 fi 20497 20498 20499 new_path=`$WHICH "$new_path" 2> /dev/null` 20500 # bat and cmd files are not always considered executable in MSYS causing which 20501 # to not find them 20502 if test "x$new_path" = x \ 20503 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20504 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20505 new_path="$path" 20506 20507 windows_path="$new_path" 20508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20509 unix_path=`$CYGPATH -u "$windows_path"` 20510 new_path="$unix_path" 20511 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20512 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20513 new_path="$unix_path" 20514 fi 20515 20516 fi 20517 20518 if test "x$new_path" = x; then 20519 # It's still not found. Now this is an unrecoverable error. 20520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20521 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20522 has_space=`$ECHO "$complete" | $GREP " "` 20523 if test "x$has_space" != x; then 20524 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20525 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20526 fi 20527 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20528 fi 20529 fi 20530 20531 # Now new_path has a complete unix path to the binary 20532 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20533 # Keep paths in /bin as-is, but remove trailing .exe if any 20534 new_path="${new_path/%.exe/}" 20535 # Do not save /bin paths to all_fixpath_prefixes! 20536 else 20537 # Not in mixed or Windows style, start by that. 20538 new_path=`cmd //c echo $new_path` 20539 20540 input_path="$new_path" 20541 # Check if we need to convert this using DOS-style short mode. If the path 20542 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20543 # take no chances and rewrite it. 20544 # Note: m4 eats our [], so we need to use [ and ] instead. 20545 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20546 if test "x$has_forbidden_chars" != x; then 20547 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20548 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20549 fi 20550 20551 # Output is in $new_path 20552 20553 windows_path="$new_path" 20554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20555 unix_path=`$CYGPATH -u "$windows_path"` 20556 new_path="$unix_path" 20557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20559 new_path="$unix_path" 20560 fi 20561 20562 # remove trailing .exe if any 20563 new_path="${new_path/%.exe/}" 20564 20565 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20566 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20567 fi 20568 20569 else 20570 # We're on a unix platform. Hooray! :) 20571 # First separate the path from the arguments. This will split at the first 20572 # space. 20573 complete="$FOUND_MAKE" 20574 path="${complete%% *}" 20575 tmp="$complete EOL" 20576 arguments="${tmp#* }" 20577 20578 # Cannot rely on the command "which" here since it doesn't always work. 20579 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20580 if test -z "$is_absolute_path"; then 20581 # Path to executable is not absolute. Find it. 20582 IFS_save="$IFS" 20583 IFS=: 20584 for p in $PATH; do 20585 if test -f "$p/$path" && test -x "$p/$path"; then 20586 new_path="$p/$path" 20587 break 20588 fi 20589 done 20590 IFS="$IFS_save" 20591 else 20592 # This is an absolute path, we can use it without further modifications. 20593 new_path="$path" 20594 fi 20595 20596 if test "x$new_path" = x; then 20597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20598 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20599 has_space=`$ECHO "$complete" | $GREP " "` 20600 if test "x$has_space" != x; then 20601 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20602 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20603 fi 20604 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20605 fi 20606 fi 20607 20608 # Now join together the path and the arguments once again 20609 if test "x$arguments" != xEOL; then 20610 new_complete="$new_path ${arguments% *}" 20611 else 20612 new_complete="$new_path" 20613 fi 20614 20615 if test "x$complete" != "x$new_complete"; then 20616 FOUND_MAKE="$new_complete" 20617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20618 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20619 fi 20620 fi 20621 20622 fi 20623 fi 20624 fi 20625 fi 20626 20627 if test "x$FOUND_MAKE" = x; then 20628 for ac_prog in make 20629 do 20630 # Extract the first word of "$ac_prog", so it can be a program name with args. 20631 set dummy $ac_prog; ac_word=$2 20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20633 $as_echo_n "checking for $ac_word... " >&6; } 20634 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20635 $as_echo_n "(cached) " >&6 20636 else 20637 case $CHECK_TOOLSDIR_MAKE in 20638 [\\/]* | ?:[\\/]*) 20639 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20640 ;; 20641 *) 20642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20643 for as_dir in $PATH 20644 do 20645 IFS=$as_save_IFS 20646 test -z "$as_dir" && as_dir=. 20647 for ac_exec_ext in '' $ac_executable_extensions; do 20648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20649 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20651 break 2 20652 fi 20653 done 20654 done 20655 IFS=$as_save_IFS 20656 20657 ;; 20658 esac 20659 fi 20660 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20661 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20663 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20664 else 20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20666 $as_echo "no" >&6; } 20667 fi 20668 20669 20670 test -n "$CHECK_TOOLSDIR_MAKE" && break 20671 done 20672 20673 20674 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20675 DESCRIPTION="make in tools-dir" 20676 20677 # On Cygwin, we require a newer version of make than on other platforms 20678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20679 MAKE_VERSION_EXPR="-e 4\." 20680 MAKE_REQUIRED_VERSION="4.0" 20681 else 20682 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20683 MAKE_REQUIRED_VERSION="3.81" 20684 fi 20685 20686 if test "x$MAKE_CANDIDATE" != x; then 20687 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20688 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20689 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20690 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20691 if test "x$IS_GNU_MAKE" = x; then 20692 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20693 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20694 else 20695 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20696 if test "x$IS_MODERN_MAKE" = x; then 20697 { $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 20698 $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;} 20699 else 20700 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20702 MAKE_EXPECTED_ENV='cygwin' 20703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20704 MAKE_EXPECTED_ENV='msys' 20705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then 20706 MAKE_EXPECTED_ENV='.' 20707 else 20708 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20709 fi 20710 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20711 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20712 else 20713 # Not relevant for non-Windows 20714 IS_MAKE_CORRECT_ENV=true 20715 fi 20716 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20717 { $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 20718 $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;} 20719 else 20720 FOUND_MAKE=$MAKE_CANDIDATE 20721 20722 # Only process if variable expands to non-empty 20723 20724 if test "x$FOUND_MAKE" != x; then 20725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20726 20727 # First separate the path from the arguments. This will split at the first 20728 # space. 20729 complete="$FOUND_MAKE" 20730 path="${complete%% *}" 20731 tmp="$complete EOL" 20732 arguments="${tmp#* }" 20733 20734 # Input might be given as Windows format, start by converting to 20735 # unix format. 20736 new_path=`$CYGPATH -u "$path"` 20737 20738 # Now try to locate executable using which 20739 new_path=`$WHICH "$new_path" 2> /dev/null` 20740 # bat and cmd files are not always considered executable in cygwin causing which 20741 # to not find them 20742 if test "x$new_path" = x \ 20743 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20744 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20745 new_path=`$CYGPATH -u "$path"` 20746 fi 20747 if test "x$new_path" = x; then 20748 # Oops. Which didn't find the executable. 20749 # The splitting of arguments from the executable at a space might have been incorrect, 20750 # since paths with space are more likely in Windows. Give it another try with the whole 20751 # argument. 20752 path="$complete" 20753 arguments="EOL" 20754 new_path=`$CYGPATH -u "$path"` 20755 new_path=`$WHICH "$new_path" 2> /dev/null` 20756 # bat and cmd files are not always considered executable in cygwin causing which 20757 # to not find them 20758 if test "x$new_path" = x \ 20759 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20760 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20761 new_path=`$CYGPATH -u "$path"` 20762 fi 20763 if test "x$new_path" = x; then 20764 # It's still not found. Now this is an unrecoverable error. 20765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20766 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20767 has_space=`$ECHO "$complete" | $GREP " "` 20768 if test "x$has_space" != x; then 20769 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20770 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20771 fi 20772 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20773 fi 20774 fi 20775 20776 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20777 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20778 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20779 # "foo.exe" is OK but "foo" is an error. 20780 # 20781 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20782 # It is also a way to make sure we got the proper file name for the real test later on. 20783 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20784 if test "x$test_shortpath" = x; then 20785 # Short path failed, file does not exist as specified. 20786 # Try adding .exe or .cmd 20787 if test -f "${new_path}.exe"; then 20788 input_to_shortpath="${new_path}.exe" 20789 elif test -f "${new_path}.cmd"; then 20790 input_to_shortpath="${new_path}.cmd" 20791 else 20792 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20793 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20794 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20795 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20796 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20797 fi 20798 else 20799 input_to_shortpath="$new_path" 20800 fi 20801 20802 # Call helper function which possibly converts this using DOS-style short mode. 20803 # If so, the updated path is stored in $new_path. 20804 new_path="$input_to_shortpath" 20805 20806 input_path="$input_to_shortpath" 20807 # Check if we need to convert this using DOS-style short mode. If the path 20808 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20809 # take no chances and rewrite it. 20810 # Note: m4 eats our [], so we need to use [ and ] instead. 20811 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20812 if test "x$has_forbidden_chars" != x; then 20813 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20814 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20815 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20816 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20817 # Going to short mode and back again did indeed matter. Since short mode is 20818 # case insensitive, let's make it lowercase to improve readability. 20819 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20820 # Now convert it back to Unix-style (cygpath) 20821 input_path=`$CYGPATH -u "$shortmode_path"` 20822 new_path="$input_path" 20823 fi 20824 fi 20825 20826 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20827 if test "x$test_cygdrive_prefix" = x; then 20828 # As a simple fix, exclude /usr/bin since it's not a real path. 20829 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20830 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20831 # a path prefixed by /cygdrive for fixpath to work. 20832 new_path="$CYGWIN_ROOT_PATH$input_path" 20833 fi 20834 fi 20835 20836 # remove trailing .exe if any 20837 new_path="${new_path/%.exe/}" 20838 20839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20840 20841 # First separate the path from the arguments. This will split at the first 20842 # space. 20843 complete="$FOUND_MAKE" 20844 path="${complete%% *}" 20845 tmp="$complete EOL" 20846 arguments="${tmp#* }" 20847 20848 # Input might be given as Windows format, start by converting to 20849 # unix format. 20850 new_path="$path" 20851 20852 windows_path="$new_path" 20853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20854 unix_path=`$CYGPATH -u "$windows_path"` 20855 new_path="$unix_path" 20856 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20857 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20858 new_path="$unix_path" 20859 fi 20860 20861 20862 # Now try to locate executable using which 20863 new_path=`$WHICH "$new_path" 2> /dev/null` 20864 20865 if test "x$new_path" = x; then 20866 # Oops. Which didn't find the executable. 20867 # The splitting of arguments from the executable at a space might have been incorrect, 20868 # since paths with space are more likely in Windows. Give it another try with the whole 20869 # argument. 20870 path="$complete" 20871 arguments="EOL" 20872 new_path="$path" 20873 20874 windows_path="$new_path" 20875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20876 unix_path=`$CYGPATH -u "$windows_path"` 20877 new_path="$unix_path" 20878 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20879 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20880 new_path="$unix_path" 20881 fi 20882 20883 20884 new_path=`$WHICH "$new_path" 2> /dev/null` 20885 # bat and cmd files are not always considered executable in MSYS causing which 20886 # to not find them 20887 if test "x$new_path" = x \ 20888 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20889 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20890 new_path="$path" 20891 20892 windows_path="$new_path" 20893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20894 unix_path=`$CYGPATH -u "$windows_path"` 20895 new_path="$unix_path" 20896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20898 new_path="$unix_path" 20899 fi 20900 20901 fi 20902 20903 if test "x$new_path" = x; then 20904 # It's still not found. Now this is an unrecoverable error. 20905 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20906 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20907 has_space=`$ECHO "$complete" | $GREP " "` 20908 if test "x$has_space" != x; then 20909 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20910 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20911 fi 20912 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20913 fi 20914 fi 20915 20916 # Now new_path has a complete unix path to the binary 20917 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20918 # Keep paths in /bin as-is, but remove trailing .exe if any 20919 new_path="${new_path/%.exe/}" 20920 # Do not save /bin paths to all_fixpath_prefixes! 20921 else 20922 # Not in mixed or Windows style, start by that. 20923 new_path=`cmd //c echo $new_path` 20924 20925 input_path="$new_path" 20926 # Check if we need to convert this using DOS-style short mode. If the path 20927 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20928 # take no chances and rewrite it. 20929 # Note: m4 eats our [], so we need to use [ and ] instead. 20930 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20931 if test "x$has_forbidden_chars" != x; then 20932 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20933 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20934 fi 20935 20936 # Output is in $new_path 20937 20938 windows_path="$new_path" 20939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20940 unix_path=`$CYGPATH -u "$windows_path"` 20941 new_path="$unix_path" 20942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20943 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20944 new_path="$unix_path" 20945 fi 20946 20947 # remove trailing .exe if any 20948 new_path="${new_path/%.exe/}" 20949 20950 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20951 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20952 fi 20953 20954 else 20955 # We're on a unix platform. Hooray! :) 20956 # First separate the path from the arguments. This will split at the first 20957 # space. 20958 complete="$FOUND_MAKE" 20959 path="${complete%% *}" 20960 tmp="$complete EOL" 20961 arguments="${tmp#* }" 20962 20963 # Cannot rely on the command "which" here since it doesn't always work. 20964 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20965 if test -z "$is_absolute_path"; then 20966 # Path to executable is not absolute. Find it. 20967 IFS_save="$IFS" 20968 IFS=: 20969 for p in $PATH; do 20970 if test -f "$p/$path" && test -x "$p/$path"; then 20971 new_path="$p/$path" 20972 break 20973 fi 20974 done 20975 IFS="$IFS_save" 20976 else 20977 # This is an absolute path, we can use it without further modifications. 20978 new_path="$path" 20979 fi 20980 20981 if test "x$new_path" = x; then 20982 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20983 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20984 has_space=`$ECHO "$complete" | $GREP " "` 20985 if test "x$has_space" != x; then 20986 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20987 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20988 fi 20989 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20990 fi 20991 fi 20992 20993 # Now join together the path and the arguments once again 20994 if test "x$arguments" != xEOL; then 20995 new_complete="$new_path ${arguments% *}" 20996 else 20997 new_complete="$new_path" 20998 fi 20999 21000 if test "x$complete" != "x$new_complete"; then 21001 FOUND_MAKE="$new_complete" 21002 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21003 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21004 fi 21005 fi 21006 21007 fi 21008 fi 21009 fi 21010 fi 21011 21012 fi 21013 PATH=$OLD_PATH 21014 fi 21015 fi 21016 21017 if test "x$FOUND_MAKE" = x; then 21018 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 21019 fi 21020 21021 else 21022 # If it succeeded, then it was overridden by the user. We will use it 21023 # for the tool. 21024 21025 # First remove it from the list of overridden variables, so we can test 21026 # for unknown variables in the end. 21027 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21028 21029 # Check if we try to supply an empty value 21030 if test "x$MAKE" = x; then 21031 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 21032 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21034 $as_echo_n "checking for MAKE... " >&6; } 21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21036 $as_echo "disabled" >&6; } 21037 else 21038 # Check if the provided tool contains a complete path. 21039 tool_specified="$MAKE" 21040 tool_basename="${tool_specified##*/}" 21041 if test "x$tool_basename" = "x$tool_specified"; then 21042 # A command without a complete path is provided, search $PATH. 21043 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 21044 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 21045 # Extract the first word of "$tool_basename", so it can be a program name with args. 21046 set dummy $tool_basename; ac_word=$2 21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21048 $as_echo_n "checking for $ac_word... " >&6; } 21049 if ${ac_cv_path_MAKE+:} false; then : 21050 $as_echo_n "(cached) " >&6 21051 else 21052 case $MAKE in 21053 [\\/]* | ?:[\\/]*) 21054 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 21055 ;; 21056 *) 21057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21058 for as_dir in $PATH 21059 do 21060 IFS=$as_save_IFS 21061 test -z "$as_dir" && as_dir=. 21062 for ac_exec_ext in '' $ac_executable_extensions; do 21063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21064 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 21065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21066 break 2 21067 fi 21068 done 21069 done 21070 IFS=$as_save_IFS 21071 21072 ;; 21073 esac 21074 fi 21075 MAKE=$ac_cv_path_MAKE 21076 if test -n "$MAKE"; then 21077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 21078 $as_echo "$MAKE" >&6; } 21079 else 21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21081 $as_echo "no" >&6; } 21082 fi 21083 21084 21085 if test "x$MAKE" = x; then 21086 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21087 fi 21088 else 21089 # Otherwise we believe it is a complete path. Use it as it is. 21090 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 21091 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21093 $as_echo_n "checking for MAKE... " >&6; } 21094 if test ! -x "$tool_specified"; then 21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21096 $as_echo "not found" >&6; } 21097 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 21098 fi 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21100 $as_echo "$tool_specified" >&6; } 21101 fi 21102 fi 21103 fi 21104 21105 # If MAKE was set by user, verify the version 21106 21107 MAKE_CANDIDATE=""$MAKE"" 21108 DESCRIPTION="user supplied MAKE=$MAKE" 21109 21110 # On Cygwin, we require a newer version of make than on other platforms 21111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21112 MAKE_VERSION_EXPR="-e 4\." 21113 MAKE_REQUIRED_VERSION="4.0" 21114 else 21115 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 21116 MAKE_REQUIRED_VERSION="3.81" 21117 fi 21118 21119 if test "x$MAKE_CANDIDATE" != x; then 21120 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 21121 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 21122 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 21123 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 21124 if test "x$IS_GNU_MAKE" = x; then 21125 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 21126 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 21127 else 21128 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 21129 if test "x$IS_MODERN_MAKE" = x; then 21130 { $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 21131 $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;} 21132 else 21133 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 21134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21135 MAKE_EXPECTED_ENV='cygwin' 21136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21137 MAKE_EXPECTED_ENV='msys' 21138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then 21139 MAKE_EXPECTED_ENV='.' 21140 else 21141 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 21142 fi 21143 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 21144 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 21145 else 21146 # Not relevant for non-Windows 21147 IS_MAKE_CORRECT_ENV=true 21148 fi 21149 if test "x$IS_MAKE_CORRECT_ENV" = x; then 21150 { $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 21151 $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;} 21152 else 21153 FOUND_MAKE=$MAKE_CANDIDATE 21154 21155 # Only process if variable expands to non-empty 21156 21157 if test "x$FOUND_MAKE" != x; then 21158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21159 21160 # First separate the path from the arguments. This will split at the first 21161 # space. 21162 complete="$FOUND_MAKE" 21163 path="${complete%% *}" 21164 tmp="$complete EOL" 21165 arguments="${tmp#* }" 21166 21167 # Input might be given as Windows format, start by converting to 21168 # unix format. 21169 new_path=`$CYGPATH -u "$path"` 21170 21171 # Now try to locate executable using which 21172 new_path=`$WHICH "$new_path" 2> /dev/null` 21173 # bat and cmd files are not always considered executable in cygwin causing which 21174 # to not find them 21175 if test "x$new_path" = x \ 21176 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21177 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21178 new_path=`$CYGPATH -u "$path"` 21179 fi 21180 if test "x$new_path" = x; then 21181 # Oops. Which didn't find the executable. 21182 # The splitting of arguments from the executable at a space might have been incorrect, 21183 # since paths with space are more likely in Windows. Give it another try with the whole 21184 # argument. 21185 path="$complete" 21186 arguments="EOL" 21187 new_path=`$CYGPATH -u "$path"` 21188 new_path=`$WHICH "$new_path" 2> /dev/null` 21189 # bat and cmd files are not always considered executable in cygwin causing which 21190 # to not find them 21191 if test "x$new_path" = x \ 21192 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21193 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21194 new_path=`$CYGPATH -u "$path"` 21195 fi 21196 if test "x$new_path" = x; then 21197 # It's still not found. Now this is an unrecoverable error. 21198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21199 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21200 has_space=`$ECHO "$complete" | $GREP " "` 21201 if test "x$has_space" != x; then 21202 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21203 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21204 fi 21205 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21206 fi 21207 fi 21208 21209 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21210 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21211 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21212 # "foo.exe" is OK but "foo" is an error. 21213 # 21214 # This test is therefore slightly more accurate than "test -f" to check for file presence. 21215 # It is also a way to make sure we got the proper file name for the real test later on. 21216 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21217 if test "x$test_shortpath" = x; then 21218 # Short path failed, file does not exist as specified. 21219 # Try adding .exe or .cmd 21220 if test -f "${new_path}.exe"; then 21221 input_to_shortpath="${new_path}.exe" 21222 elif test -f "${new_path}.cmd"; then 21223 input_to_shortpath="${new_path}.cmd" 21224 else 21225 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 21226 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 21227 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21228 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21229 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21230 fi 21231 else 21232 input_to_shortpath="$new_path" 21233 fi 21234 21235 # Call helper function which possibly converts this using DOS-style short mode. 21236 # If so, the updated path is stored in $new_path. 21237 new_path="$input_to_shortpath" 21238 21239 input_path="$input_to_shortpath" 21240 # Check if we need to convert this using DOS-style short mode. If the path 21241 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21242 # take no chances and rewrite it. 21243 # Note: m4 eats our [], so we need to use [ and ] instead. 21244 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21245 if test "x$has_forbidden_chars" != x; then 21246 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21247 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21248 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21249 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21250 # Going to short mode and back again did indeed matter. Since short mode is 21251 # case insensitive, let's make it lowercase to improve readability. 21252 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21253 # Now convert it back to Unix-style (cygpath) 21254 input_path=`$CYGPATH -u "$shortmode_path"` 21255 new_path="$input_path" 21256 fi 21257 fi 21258 21259 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21260 if test "x$test_cygdrive_prefix" = x; then 21261 # As a simple fix, exclude /usr/bin since it's not a real path. 21262 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21263 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21264 # a path prefixed by /cygdrive for fixpath to work. 21265 new_path="$CYGWIN_ROOT_PATH$input_path" 21266 fi 21267 fi 21268 21269 # remove trailing .exe if any 21270 new_path="${new_path/%.exe/}" 21271 21272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21273 21274 # First separate the path from the arguments. This will split at the first 21275 # space. 21276 complete="$FOUND_MAKE" 21277 path="${complete%% *}" 21278 tmp="$complete EOL" 21279 arguments="${tmp#* }" 21280 21281 # Input might be given as Windows format, start by converting to 21282 # unix format. 21283 new_path="$path" 21284 21285 windows_path="$new_path" 21286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21287 unix_path=`$CYGPATH -u "$windows_path"` 21288 new_path="$unix_path" 21289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21290 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21291 new_path="$unix_path" 21292 fi 21293 21294 21295 # Now try to locate executable using which 21296 new_path=`$WHICH "$new_path" 2> /dev/null` 21297 21298 if test "x$new_path" = x; then 21299 # Oops. Which didn't find the executable. 21300 # The splitting of arguments from the executable at a space might have been incorrect, 21301 # since paths with space are more likely in Windows. Give it another try with the whole 21302 # argument. 21303 path="$complete" 21304 arguments="EOL" 21305 new_path="$path" 21306 21307 windows_path="$new_path" 21308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21309 unix_path=`$CYGPATH -u "$windows_path"` 21310 new_path="$unix_path" 21311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21313 new_path="$unix_path" 21314 fi 21315 21316 21317 new_path=`$WHICH "$new_path" 2> /dev/null` 21318 # bat and cmd files are not always considered executable in MSYS causing which 21319 # to not find them 21320 if test "x$new_path" = x \ 21321 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21322 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21323 new_path="$path" 21324 21325 windows_path="$new_path" 21326 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21327 unix_path=`$CYGPATH -u "$windows_path"` 21328 new_path="$unix_path" 21329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21330 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21331 new_path="$unix_path" 21332 fi 21333 21334 fi 21335 21336 if test "x$new_path" = x; then 21337 # It's still not found. Now this is an unrecoverable error. 21338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21339 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21340 has_space=`$ECHO "$complete" | $GREP " "` 21341 if test "x$has_space" != x; then 21342 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21343 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21344 fi 21345 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21346 fi 21347 fi 21348 21349 # Now new_path has a complete unix path to the binary 21350 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21351 # Keep paths in /bin as-is, but remove trailing .exe if any 21352 new_path="${new_path/%.exe/}" 21353 # Do not save /bin paths to all_fixpath_prefixes! 21354 else 21355 # Not in mixed or Windows style, start by that. 21356 new_path=`cmd //c echo $new_path` 21357 21358 input_path="$new_path" 21359 # Check if we need to convert this using DOS-style short mode. If the path 21360 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21361 # take no chances and rewrite it. 21362 # Note: m4 eats our [], so we need to use [ and ] instead. 21363 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21364 if test "x$has_forbidden_chars" != x; then 21365 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21366 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21367 fi 21368 21369 # Output is in $new_path 21370 21371 windows_path="$new_path" 21372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21373 unix_path=`$CYGPATH -u "$windows_path"` 21374 new_path="$unix_path" 21375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21376 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21377 new_path="$unix_path" 21378 fi 21379 21380 # remove trailing .exe if any 21381 new_path="${new_path/%.exe/}" 21382 21383 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21384 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21385 fi 21386 21387 else 21388 # We're on a unix platform. Hooray! :) 21389 # First separate the path from the arguments. This will split at the first 21390 # space. 21391 complete="$FOUND_MAKE" 21392 path="${complete%% *}" 21393 tmp="$complete EOL" 21394 arguments="${tmp#* }" 21395 21396 # Cannot rely on the command "which" here since it doesn't always work. 21397 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21398 if test -z "$is_absolute_path"; then 21399 # Path to executable is not absolute. Find it. 21400 IFS_save="$IFS" 21401 IFS=: 21402 for p in $PATH; do 21403 if test -f "$p/$path" && test -x "$p/$path"; then 21404 new_path="$p/$path" 21405 break 21406 fi 21407 done 21408 IFS="$IFS_save" 21409 else 21410 # This is an absolute path, we can use it without further modifications. 21411 new_path="$path" 21412 fi 21413 21414 if test "x$new_path" = x; then 21415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21416 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21417 has_space=`$ECHO "$complete" | $GREP " "` 21418 if test "x$has_space" != x; then 21419 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21420 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21421 fi 21422 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21423 fi 21424 fi 21425 21426 # Now join together the path and the arguments once again 21427 if test "x$arguments" != xEOL; then 21428 new_complete="$new_path ${arguments% *}" 21429 else 21430 new_complete="$new_path" 21431 fi 21432 21433 if test "x$complete" != "x$new_complete"; then 21434 FOUND_MAKE="$new_complete" 21435 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21436 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21437 fi 21438 fi 21439 21440 fi 21441 fi 21442 fi 21443 fi 21444 21445 if test "x$FOUND_MAKE" = x; then 21446 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21447 fi 21448 21449 fi 21450 21451 21452 MAKE=$FOUND_MAKE 21453 21454 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21455 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21456 21457 21458 # Check if make supports the output sync option and if so, setup using it. 21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21460 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21461 if $MAKE --version -O > /dev/null 2>&1; then 21462 OUTPUT_SYNC_SUPPORTED=true 21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21464 $as_echo "yes" >&6; } 21465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21466 $as_echo_n "checking for output-sync value... " >&6; } 21467 21468 # Check whether --with-output-sync was given. 21469 if test "${with_output_sync+set}" = set; then : 21470 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21471 fi 21472 21473 if test "x$OUTPUT_SYNC" = "x"; then 21474 OUTPUT_SYNC=none 21475 fi 21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21477 $as_echo "$OUTPUT_SYNC" >&6; } 21478 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21479 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21480 fi 21481 else 21482 OUTPUT_SYNC_SUPPORTED=false 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21484 $as_echo "no" >&6; } 21485 fi 21486 21487 21488 21489 21490 21491 21492 # Test if find supports -delete 21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21494 $as_echo_n "checking if find supports -delete... " >&6; } 21495 FIND_DELETE="-delete" 21496 21497 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21498 21499 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21500 21501 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21502 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21503 # No, it does not. 21504 $RM $DELETEDIR/TestIfFindSupportsDelete 21505 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21506 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21507 FIND_DELETE="-print | $XARGS $RM" 21508 else 21509 FIND_DELETE="-exec $RM \{\} \+" 21510 fi 21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21512 $as_echo "no" >&6; } 21513 else 21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21515 $as_echo "yes" >&6; } 21516 fi 21517 $RMDIR $DELETEDIR 21518 21519 21520 21521 # Test which kind of tar was found 21522 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21523 TAR_TYPE="gnu" 21524 elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then 21525 TAR_TYPE="bsd" 21526 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21527 TAR_TYPE="bsd" 21528 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21529 TAR_TYPE="solaris" 21530 fi 21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21532 $as_echo_n "checking what type of tar was found... " >&6; } 21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21534 $as_echo "$TAR_TYPE" >&6; } 21535 21536 TAR_CREATE_FILE_PARAM="" 21537 21538 if test "x$TAR_TYPE" = "xgnu"; then 21539 TAR_INCLUDE_PARAM="T" 21540 TAR_SUPPORTS_TRANSFORM="true" 21541 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21542 # When using gnu tar for Solaris targets, need to use compatibility mode 21543 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21544 fi 21545 else 21546 TAR_INCLUDE_PARAM="I" 21547 TAR_SUPPORTS_TRANSFORM="false" 21548 fi 21549 21550 21551 21552 21553 21554 21555 # Test that grep supports -Fx with a list of pattern which includes null pattern. 21556 # This is a problem for the grep resident on AIX. 21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5 21558 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; } 21559 # Multiple subsequent spaces.. 21560 STACK_SPACES='aaa bbb ccc' 21561 # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty 21562 # patterns in it. 21563 STACK_LIST=${STACK_SPACES// /$'\n'} 21564 NEEDLE_SPACES='ccc bbb aaa' 21565 NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'} 21566 RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")" 21567 if test "x$RESULT" == "x"; then 21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21569 $as_echo "yes" >&6; } 21570 else 21571 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21572 ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin." 21573 fi 21574 as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5 21575 fi 21576 21577 21578 # These tools might not be installed by default, 21579 # need hint on how to install them. 21580 21581 21582 21583 # Publish this variable in the help. 21584 21585 21586 if [ -z "${UNZIP+x}" ]; then 21587 # The variable is not set by user, try to locate tool using the code snippet 21588 for ac_prog in unzip 21589 do 21590 # Extract the first word of "$ac_prog", so it can be a program name with args. 21591 set dummy $ac_prog; ac_word=$2 21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21593 $as_echo_n "checking for $ac_word... " >&6; } 21594 if ${ac_cv_path_UNZIP+:} false; then : 21595 $as_echo_n "(cached) " >&6 21596 else 21597 case $UNZIP in 21598 [\\/]* | ?:[\\/]*) 21599 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21600 ;; 21601 *) 21602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21603 for as_dir in $PATH 21604 do 21605 IFS=$as_save_IFS 21606 test -z "$as_dir" && as_dir=. 21607 for ac_exec_ext in '' $ac_executable_extensions; do 21608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21609 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21611 break 2 21612 fi 21613 done 21614 done 21615 IFS=$as_save_IFS 21616 21617 ;; 21618 esac 21619 fi 21620 UNZIP=$ac_cv_path_UNZIP 21621 if test -n "$UNZIP"; then 21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21623 $as_echo "$UNZIP" >&6; } 21624 else 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21626 $as_echo "no" >&6; } 21627 fi 21628 21629 21630 test -n "$UNZIP" && break 21631 done 21632 21633 else 21634 # The variable is set, but is it from the command line or the environment? 21635 21636 # Try to remove the string !UNZIP! from our list. 21637 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21638 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21639 # If it failed, the variable was not from the command line. Ignore it, 21640 # but warn the user (except for BASH, which is always set by the calling BASH). 21641 if test "xUNZIP" != xBASH; then 21642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21643 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21644 fi 21645 # Try to locate tool using the code snippet 21646 for ac_prog in unzip 21647 do 21648 # Extract the first word of "$ac_prog", so it can be a program name with args. 21649 set dummy $ac_prog; ac_word=$2 21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21651 $as_echo_n "checking for $ac_word... " >&6; } 21652 if ${ac_cv_path_UNZIP+:} false; then : 21653 $as_echo_n "(cached) " >&6 21654 else 21655 case $UNZIP in 21656 [\\/]* | ?:[\\/]*) 21657 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21658 ;; 21659 *) 21660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21661 for as_dir in $PATH 21662 do 21663 IFS=$as_save_IFS 21664 test -z "$as_dir" && as_dir=. 21665 for ac_exec_ext in '' $ac_executable_extensions; do 21666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21667 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21669 break 2 21670 fi 21671 done 21672 done 21673 IFS=$as_save_IFS 21674 21675 ;; 21676 esac 21677 fi 21678 UNZIP=$ac_cv_path_UNZIP 21679 if test -n "$UNZIP"; then 21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21681 $as_echo "$UNZIP" >&6; } 21682 else 21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21684 $as_echo "no" >&6; } 21685 fi 21686 21687 21688 test -n "$UNZIP" && break 21689 done 21690 21691 else 21692 # If it succeeded, then it was overridden by the user. We will use it 21693 # for the tool. 21694 21695 # First remove it from the list of overridden variables, so we can test 21696 # for unknown variables in the end. 21697 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21698 21699 # Check if we try to supply an empty value 21700 if test "x$UNZIP" = x; then 21701 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21702 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21704 $as_echo_n "checking for UNZIP... " >&6; } 21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21706 $as_echo "disabled" >&6; } 21707 else 21708 # Check if the provided tool contains a complete path. 21709 tool_specified="$UNZIP" 21710 tool_basename="${tool_specified##*/}" 21711 if test "x$tool_basename" = "x$tool_specified"; then 21712 # A command without a complete path is provided, search $PATH. 21713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21714 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21715 # Extract the first word of "$tool_basename", so it can be a program name with args. 21716 set dummy $tool_basename; ac_word=$2 21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21718 $as_echo_n "checking for $ac_word... " >&6; } 21719 if ${ac_cv_path_UNZIP+:} false; then : 21720 $as_echo_n "(cached) " >&6 21721 else 21722 case $UNZIP in 21723 [\\/]* | ?:[\\/]*) 21724 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21725 ;; 21726 *) 21727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21728 for as_dir in $PATH 21729 do 21730 IFS=$as_save_IFS 21731 test -z "$as_dir" && as_dir=. 21732 for ac_exec_ext in '' $ac_executable_extensions; do 21733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21734 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21736 break 2 21737 fi 21738 done 21739 done 21740 IFS=$as_save_IFS 21741 21742 ;; 21743 esac 21744 fi 21745 UNZIP=$ac_cv_path_UNZIP 21746 if test -n "$UNZIP"; then 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21748 $as_echo "$UNZIP" >&6; } 21749 else 21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21751 $as_echo "no" >&6; } 21752 fi 21753 21754 21755 if test "x$UNZIP" = x; then 21756 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21757 fi 21758 else 21759 # Otherwise we believe it is a complete path. Use it as it is. 21760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21761 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21763 $as_echo_n "checking for UNZIP... " >&6; } 21764 if test ! -x "$tool_specified"; then 21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21766 $as_echo "not found" >&6; } 21767 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21768 fi 21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21770 $as_echo "$tool_specified" >&6; } 21771 fi 21772 fi 21773 fi 21774 21775 fi 21776 21777 21778 21779 if test "x$UNZIP" = x; then 21780 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21781 fi 21782 21783 21784 # Since zip uses "ZIP" as a environment variable for passing options, we need 21785 # to name our variable differently, hence ZIPEXE. 21786 21787 21788 21789 # Publish this variable in the help. 21790 21791 21792 if [ -z "${ZIPEXE+x}" ]; then 21793 # The variable is not set by user, try to locate tool using the code snippet 21794 for ac_prog in zip 21795 do 21796 # Extract the first word of "$ac_prog", so it can be a program name with args. 21797 set dummy $ac_prog; ac_word=$2 21798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21799 $as_echo_n "checking for $ac_word... " >&6; } 21800 if ${ac_cv_path_ZIPEXE+:} false; then : 21801 $as_echo_n "(cached) " >&6 21802 else 21803 case $ZIPEXE in 21804 [\\/]* | ?:[\\/]*) 21805 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21806 ;; 21807 *) 21808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21809 for as_dir in $PATH 21810 do 21811 IFS=$as_save_IFS 21812 test -z "$as_dir" && as_dir=. 21813 for ac_exec_ext in '' $ac_executable_extensions; do 21814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21815 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21817 break 2 21818 fi 21819 done 21820 done 21821 IFS=$as_save_IFS 21822 21823 ;; 21824 esac 21825 fi 21826 ZIPEXE=$ac_cv_path_ZIPEXE 21827 if test -n "$ZIPEXE"; then 21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21829 $as_echo "$ZIPEXE" >&6; } 21830 else 21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21832 $as_echo "no" >&6; } 21833 fi 21834 21835 21836 test -n "$ZIPEXE" && break 21837 done 21838 21839 else 21840 # The variable is set, but is it from the command line or the environment? 21841 21842 # Try to remove the string !ZIPEXE! from our list. 21843 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/} 21844 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21845 # If it failed, the variable was not from the command line. Ignore it, 21846 # but warn the user (except for BASH, which is always set by the calling BASH). 21847 if test "xZIPEXE" != xBASH; then 21848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5 21849 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;} 21850 fi 21851 # Try to locate tool using the code snippet 21852 for ac_prog in zip 21853 do 21854 # Extract the first word of "$ac_prog", so it can be a program name with args. 21855 set dummy $ac_prog; ac_word=$2 21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21857 $as_echo_n "checking for $ac_word... " >&6; } 21858 if ${ac_cv_path_ZIPEXE+:} false; then : 21859 $as_echo_n "(cached) " >&6 21860 else 21861 case $ZIPEXE in 21862 [\\/]* | ?:[\\/]*) 21863 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21864 ;; 21865 *) 21866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21867 for as_dir in $PATH 21868 do 21869 IFS=$as_save_IFS 21870 test -z "$as_dir" && as_dir=. 21871 for ac_exec_ext in '' $ac_executable_extensions; do 21872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21873 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21875 break 2 21876 fi 21877 done 21878 done 21879 IFS=$as_save_IFS 21880 21881 ;; 21882 esac 21883 fi 21884 ZIPEXE=$ac_cv_path_ZIPEXE 21885 if test -n "$ZIPEXE"; then 21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21887 $as_echo "$ZIPEXE" >&6; } 21888 else 21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21890 $as_echo "no" >&6; } 21891 fi 21892 21893 21894 test -n "$ZIPEXE" && break 21895 done 21896 21897 else 21898 # If it succeeded, then it was overridden by the user. We will use it 21899 # for the tool. 21900 21901 # First remove it from the list of overridden variables, so we can test 21902 # for unknown variables in the end. 21903 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21904 21905 # Check if we try to supply an empty value 21906 if test "x$ZIPEXE" = x; then 21907 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5 21908 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;} 21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21910 $as_echo_n "checking for ZIPEXE... " >&6; } 21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21912 $as_echo "disabled" >&6; } 21913 else 21914 # Check if the provided tool contains a complete path. 21915 tool_specified="$ZIPEXE" 21916 tool_basename="${tool_specified##*/}" 21917 if test "x$tool_basename" = "x$tool_specified"; then 21918 # A command without a complete path is provided, search $PATH. 21919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5 21920 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;} 21921 # Extract the first word of "$tool_basename", so it can be a program name with args. 21922 set dummy $tool_basename; ac_word=$2 21923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21924 $as_echo_n "checking for $ac_word... " >&6; } 21925 if ${ac_cv_path_ZIPEXE+:} false; then : 21926 $as_echo_n "(cached) " >&6 21927 else 21928 case $ZIPEXE in 21929 [\\/]* | ?:[\\/]*) 21930 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21931 ;; 21932 *) 21933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21934 for as_dir in $PATH 21935 do 21936 IFS=$as_save_IFS 21937 test -z "$as_dir" && as_dir=. 21938 for ac_exec_ext in '' $ac_executable_extensions; do 21939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21940 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21942 break 2 21943 fi 21944 done 21945 done 21946 IFS=$as_save_IFS 21947 21948 ;; 21949 esac 21950 fi 21951 ZIPEXE=$ac_cv_path_ZIPEXE 21952 if test -n "$ZIPEXE"; then 21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21954 $as_echo "$ZIPEXE" >&6; } 21955 else 21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21957 $as_echo "no" >&6; } 21958 fi 21959 21960 21961 if test "x$ZIPEXE" = x; then 21962 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21963 fi 21964 else 21965 # Otherwise we believe it is a complete path. Use it as it is. 21966 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5 21967 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;} 21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21969 $as_echo_n "checking for ZIPEXE... " >&6; } 21970 if test ! -x "$tool_specified"; then 21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21972 $as_echo "not found" >&6; } 21973 as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 21974 fi 21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21976 $as_echo "$tool_specified" >&6; } 21977 fi 21978 fi 21979 fi 21980 21981 fi 21982 21983 21984 21985 if test "x$ZIPEXE" = x; then 21986 as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5 21987 fi 21988 21989 21990 21991 # Non-required basic tools 21992 21993 21994 21995 # Publish this variable in the help. 21996 21997 21998 if [ -z "${LDD+x}" ]; then 21999 # The variable is not set by user, try to locate tool using the code snippet 22000 for ac_prog in ldd 22001 do 22002 # Extract the first word of "$ac_prog", so it can be a program name with args. 22003 set dummy $ac_prog; ac_word=$2 22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22005 $as_echo_n "checking for $ac_word... " >&6; } 22006 if ${ac_cv_path_LDD+:} false; then : 22007 $as_echo_n "(cached) " >&6 22008 else 22009 case $LDD in 22010 [\\/]* | ?:[\\/]*) 22011 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22012 ;; 22013 *) 22014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22015 for as_dir in $PATH 22016 do 22017 IFS=$as_save_IFS 22018 test -z "$as_dir" && as_dir=. 22019 for ac_exec_ext in '' $ac_executable_extensions; do 22020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22021 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22023 break 2 22024 fi 22025 done 22026 done 22027 IFS=$as_save_IFS 22028 22029 ;; 22030 esac 22031 fi 22032 LDD=$ac_cv_path_LDD 22033 if test -n "$LDD"; then 22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22035 $as_echo "$LDD" >&6; } 22036 else 22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22038 $as_echo "no" >&6; } 22039 fi 22040 22041 22042 test -n "$LDD" && break 22043 done 22044 22045 else 22046 # The variable is set, but is it from the command line or the environment? 22047 22048 # Try to remove the string !LDD! from our list. 22049 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 22050 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22051 # If it failed, the variable was not from the command line. Ignore it, 22052 # but warn the user (except for BASH, which is always set by the calling BASH). 22053 if test "xLDD" != xBASH; then 22054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 22055 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 22056 fi 22057 # Try to locate tool using the code snippet 22058 for ac_prog in ldd 22059 do 22060 # Extract the first word of "$ac_prog", so it can be a program name with args. 22061 set dummy $ac_prog; ac_word=$2 22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22063 $as_echo_n "checking for $ac_word... " >&6; } 22064 if ${ac_cv_path_LDD+:} false; then : 22065 $as_echo_n "(cached) " >&6 22066 else 22067 case $LDD in 22068 [\\/]* | ?:[\\/]*) 22069 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22070 ;; 22071 *) 22072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22073 for as_dir in $PATH 22074 do 22075 IFS=$as_save_IFS 22076 test -z "$as_dir" && as_dir=. 22077 for ac_exec_ext in '' $ac_executable_extensions; do 22078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22079 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22081 break 2 22082 fi 22083 done 22084 done 22085 IFS=$as_save_IFS 22086 22087 ;; 22088 esac 22089 fi 22090 LDD=$ac_cv_path_LDD 22091 if test -n "$LDD"; then 22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22093 $as_echo "$LDD" >&6; } 22094 else 22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22096 $as_echo "no" >&6; } 22097 fi 22098 22099 22100 test -n "$LDD" && break 22101 done 22102 22103 else 22104 # If it succeeded, then it was overridden by the user. We will use it 22105 # for the tool. 22106 22107 # First remove it from the list of overridden variables, so we can test 22108 # for unknown variables in the end. 22109 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22110 22111 # Check if we try to supply an empty value 22112 if test "x$LDD" = x; then 22113 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 22114 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22116 $as_echo_n "checking for LDD... " >&6; } 22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22118 $as_echo "disabled" >&6; } 22119 else 22120 # Check if the provided tool contains a complete path. 22121 tool_specified="$LDD" 22122 tool_basename="${tool_specified##*/}" 22123 if test "x$tool_basename" = "x$tool_specified"; then 22124 # A command without a complete path is provided, search $PATH. 22125 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 22126 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 22127 # Extract the first word of "$tool_basename", so it can be a program name with args. 22128 set dummy $tool_basename; ac_word=$2 22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22130 $as_echo_n "checking for $ac_word... " >&6; } 22131 if ${ac_cv_path_LDD+:} false; then : 22132 $as_echo_n "(cached) " >&6 22133 else 22134 case $LDD in 22135 [\\/]* | ?:[\\/]*) 22136 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22137 ;; 22138 *) 22139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22140 for as_dir in $PATH 22141 do 22142 IFS=$as_save_IFS 22143 test -z "$as_dir" && as_dir=. 22144 for ac_exec_ext in '' $ac_executable_extensions; do 22145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22146 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22148 break 2 22149 fi 22150 done 22151 done 22152 IFS=$as_save_IFS 22153 22154 ;; 22155 esac 22156 fi 22157 LDD=$ac_cv_path_LDD 22158 if test -n "$LDD"; then 22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22160 $as_echo "$LDD" >&6; } 22161 else 22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22163 $as_echo "no" >&6; } 22164 fi 22165 22166 22167 if test "x$LDD" = x; then 22168 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22169 fi 22170 else 22171 # Otherwise we believe it is a complete path. Use it as it is. 22172 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 22173 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22175 $as_echo_n "checking for LDD... " >&6; } 22176 if test ! -x "$tool_specified"; then 22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22178 $as_echo "not found" >&6; } 22179 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 22180 fi 22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22182 $as_echo "$tool_specified" >&6; } 22183 fi 22184 fi 22185 fi 22186 22187 fi 22188 22189 22190 if test "x$LDD" = "x"; then 22191 # List shared lib dependencies is used for 22192 # debug output and checking for forbidden dependencies. 22193 # We can build without it. 22194 LDD="true" 22195 fi 22196 22197 22198 # Publish this variable in the help. 22199 22200 22201 if [ -z "${READELF+x}" ]; then 22202 # The variable is not set by user, try to locate tool using the code snippet 22203 for ac_prog in greadelf readelf 22204 do 22205 # Extract the first word of "$ac_prog", so it can be a program name with args. 22206 set dummy $ac_prog; ac_word=$2 22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22208 $as_echo_n "checking for $ac_word... " >&6; } 22209 if ${ac_cv_path_READELF+:} false; then : 22210 $as_echo_n "(cached) " >&6 22211 else 22212 case $READELF in 22213 [\\/]* | ?:[\\/]*) 22214 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22215 ;; 22216 *) 22217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22218 for as_dir in $PATH 22219 do 22220 IFS=$as_save_IFS 22221 test -z "$as_dir" && as_dir=. 22222 for ac_exec_ext in '' $ac_executable_extensions; do 22223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22224 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22226 break 2 22227 fi 22228 done 22229 done 22230 IFS=$as_save_IFS 22231 22232 ;; 22233 esac 22234 fi 22235 READELF=$ac_cv_path_READELF 22236 if test -n "$READELF"; then 22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22238 $as_echo "$READELF" >&6; } 22239 else 22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22241 $as_echo "no" >&6; } 22242 fi 22243 22244 22245 test -n "$READELF" && break 22246 done 22247 22248 else 22249 # The variable is set, but is it from the command line or the environment? 22250 22251 # Try to remove the string !READELF! from our list. 22252 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22253 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22254 # If it failed, the variable was not from the command line. Ignore it, 22255 # but warn the user (except for BASH, which is always set by the calling BASH). 22256 if test "xREADELF" != xBASH; then 22257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22258 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22259 fi 22260 # Try to locate tool using the code snippet 22261 for ac_prog in greadelf readelf 22262 do 22263 # Extract the first word of "$ac_prog", so it can be a program name with args. 22264 set dummy $ac_prog; ac_word=$2 22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22266 $as_echo_n "checking for $ac_word... " >&6; } 22267 if ${ac_cv_path_READELF+:} false; then : 22268 $as_echo_n "(cached) " >&6 22269 else 22270 case $READELF in 22271 [\\/]* | ?:[\\/]*) 22272 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22273 ;; 22274 *) 22275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22276 for as_dir in $PATH 22277 do 22278 IFS=$as_save_IFS 22279 test -z "$as_dir" && as_dir=. 22280 for ac_exec_ext in '' $ac_executable_extensions; do 22281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22282 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22284 break 2 22285 fi 22286 done 22287 done 22288 IFS=$as_save_IFS 22289 22290 ;; 22291 esac 22292 fi 22293 READELF=$ac_cv_path_READELF 22294 if test -n "$READELF"; then 22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22296 $as_echo "$READELF" >&6; } 22297 else 22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22299 $as_echo "no" >&6; } 22300 fi 22301 22302 22303 test -n "$READELF" && break 22304 done 22305 22306 else 22307 # If it succeeded, then it was overridden by the user. We will use it 22308 # for the tool. 22309 22310 # First remove it from the list of overridden variables, so we can test 22311 # for unknown variables in the end. 22312 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22313 22314 # Check if we try to supply an empty value 22315 if test "x$READELF" = x; then 22316 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22317 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22319 $as_echo_n "checking for READELF... " >&6; } 22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22321 $as_echo "disabled" >&6; } 22322 else 22323 # Check if the provided tool contains a complete path. 22324 tool_specified="$READELF" 22325 tool_basename="${tool_specified##*/}" 22326 if test "x$tool_basename" = "x$tool_specified"; then 22327 # A command without a complete path is provided, search $PATH. 22328 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22329 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22330 # Extract the first word of "$tool_basename", so it can be a program name with args. 22331 set dummy $tool_basename; ac_word=$2 22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22333 $as_echo_n "checking for $ac_word... " >&6; } 22334 if ${ac_cv_path_READELF+:} false; then : 22335 $as_echo_n "(cached) " >&6 22336 else 22337 case $READELF in 22338 [\\/]* | ?:[\\/]*) 22339 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22340 ;; 22341 *) 22342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22343 for as_dir in $PATH 22344 do 22345 IFS=$as_save_IFS 22346 test -z "$as_dir" && as_dir=. 22347 for ac_exec_ext in '' $ac_executable_extensions; do 22348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22349 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22351 break 2 22352 fi 22353 done 22354 done 22355 IFS=$as_save_IFS 22356 22357 ;; 22358 esac 22359 fi 22360 READELF=$ac_cv_path_READELF 22361 if test -n "$READELF"; then 22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22363 $as_echo "$READELF" >&6; } 22364 else 22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22366 $as_echo "no" >&6; } 22367 fi 22368 22369 22370 if test "x$READELF" = x; then 22371 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22372 fi 22373 else 22374 # Otherwise we believe it is a complete path. Use it as it is. 22375 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22376 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22378 $as_echo_n "checking for READELF... " >&6; } 22379 if test ! -x "$tool_specified"; then 22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22381 $as_echo "not found" >&6; } 22382 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22383 fi 22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22385 $as_echo "$tool_specified" >&6; } 22386 fi 22387 fi 22388 fi 22389 22390 fi 22391 22392 22393 22394 22395 # Publish this variable in the help. 22396 22397 22398 if [ -z "${DOT+x}" ]; then 22399 # The variable is not set by user, try to locate tool using the code snippet 22400 for ac_prog in dot 22401 do 22402 # Extract the first word of "$ac_prog", so it can be a program name with args. 22403 set dummy $ac_prog; ac_word=$2 22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22405 $as_echo_n "checking for $ac_word... " >&6; } 22406 if ${ac_cv_path_DOT+:} false; then : 22407 $as_echo_n "(cached) " >&6 22408 else 22409 case $DOT in 22410 [\\/]* | ?:[\\/]*) 22411 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22412 ;; 22413 *) 22414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22415 for as_dir in $PATH 22416 do 22417 IFS=$as_save_IFS 22418 test -z "$as_dir" && as_dir=. 22419 for ac_exec_ext in '' $ac_executable_extensions; do 22420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22421 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22423 break 2 22424 fi 22425 done 22426 done 22427 IFS=$as_save_IFS 22428 22429 ;; 22430 esac 22431 fi 22432 DOT=$ac_cv_path_DOT 22433 if test -n "$DOT"; then 22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22435 $as_echo "$DOT" >&6; } 22436 else 22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22438 $as_echo "no" >&6; } 22439 fi 22440 22441 22442 test -n "$DOT" && break 22443 done 22444 22445 else 22446 # The variable is set, but is it from the command line or the environment? 22447 22448 # Try to remove the string !DOT! from our list. 22449 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/} 22450 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22451 # If it failed, the variable was not from the command line. Ignore it, 22452 # but warn the user (except for BASH, which is always set by the calling BASH). 22453 if test "xDOT" != xBASH; then 22454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5 22455 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;} 22456 fi 22457 # Try to locate tool using the code snippet 22458 for ac_prog in dot 22459 do 22460 # Extract the first word of "$ac_prog", so it can be a program name with args. 22461 set dummy $ac_prog; ac_word=$2 22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22463 $as_echo_n "checking for $ac_word... " >&6; } 22464 if ${ac_cv_path_DOT+:} false; then : 22465 $as_echo_n "(cached) " >&6 22466 else 22467 case $DOT in 22468 [\\/]* | ?:[\\/]*) 22469 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22470 ;; 22471 *) 22472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22473 for as_dir in $PATH 22474 do 22475 IFS=$as_save_IFS 22476 test -z "$as_dir" && as_dir=. 22477 for ac_exec_ext in '' $ac_executable_extensions; do 22478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22479 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22481 break 2 22482 fi 22483 done 22484 done 22485 IFS=$as_save_IFS 22486 22487 ;; 22488 esac 22489 fi 22490 DOT=$ac_cv_path_DOT 22491 if test -n "$DOT"; then 22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22493 $as_echo "$DOT" >&6; } 22494 else 22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22496 $as_echo "no" >&6; } 22497 fi 22498 22499 22500 test -n "$DOT" && break 22501 done 22502 22503 else 22504 # If it succeeded, then it was overridden by the user. We will use it 22505 # for the tool. 22506 22507 # First remove it from the list of overridden variables, so we can test 22508 # for unknown variables in the end. 22509 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22510 22511 # Check if we try to supply an empty value 22512 if test "x$DOT" = x; then 22513 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5 22514 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;} 22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22516 $as_echo_n "checking for DOT... " >&6; } 22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22518 $as_echo "disabled" >&6; } 22519 else 22520 # Check if the provided tool contains a complete path. 22521 tool_specified="$DOT" 22522 tool_basename="${tool_specified##*/}" 22523 if test "x$tool_basename" = "x$tool_specified"; then 22524 # A command without a complete path is provided, search $PATH. 22525 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5 22526 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;} 22527 # Extract the first word of "$tool_basename", so it can be a program name with args. 22528 set dummy $tool_basename; ac_word=$2 22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22530 $as_echo_n "checking for $ac_word... " >&6; } 22531 if ${ac_cv_path_DOT+:} false; then : 22532 $as_echo_n "(cached) " >&6 22533 else 22534 case $DOT in 22535 [\\/]* | ?:[\\/]*) 22536 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22537 ;; 22538 *) 22539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22540 for as_dir in $PATH 22541 do 22542 IFS=$as_save_IFS 22543 test -z "$as_dir" && as_dir=. 22544 for ac_exec_ext in '' $ac_executable_extensions; do 22545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22546 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22548 break 2 22549 fi 22550 done 22551 done 22552 IFS=$as_save_IFS 22553 22554 ;; 22555 esac 22556 fi 22557 DOT=$ac_cv_path_DOT 22558 if test -n "$DOT"; then 22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22560 $as_echo "$DOT" >&6; } 22561 else 22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22563 $as_echo "no" >&6; } 22564 fi 22565 22566 22567 if test "x$DOT" = x; then 22568 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22569 fi 22570 else 22571 # Otherwise we believe it is a complete path. Use it as it is. 22572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5 22573 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;} 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22575 $as_echo_n "checking for DOT... " >&6; } 22576 if test ! -x "$tool_specified"; then 22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22578 $as_echo "not found" >&6; } 22579 as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5 22580 fi 22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22582 $as_echo "$tool_specified" >&6; } 22583 fi 22584 fi 22585 fi 22586 22587 fi 22588 22589 22590 22591 22592 # Publish this variable in the help. 22593 22594 22595 if [ -z "${HG+x}" ]; then 22596 # The variable is not set by user, try to locate tool using the code snippet 22597 for ac_prog in hg 22598 do 22599 # Extract the first word of "$ac_prog", so it can be a program name with args. 22600 set dummy $ac_prog; ac_word=$2 22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22602 $as_echo_n "checking for $ac_word... " >&6; } 22603 if ${ac_cv_path_HG+:} false; then : 22604 $as_echo_n "(cached) " >&6 22605 else 22606 case $HG in 22607 [\\/]* | ?:[\\/]*) 22608 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22609 ;; 22610 *) 22611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22612 for as_dir in $PATH 22613 do 22614 IFS=$as_save_IFS 22615 test -z "$as_dir" && as_dir=. 22616 for ac_exec_ext in '' $ac_executable_extensions; do 22617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22618 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22620 break 2 22621 fi 22622 done 22623 done 22624 IFS=$as_save_IFS 22625 22626 ;; 22627 esac 22628 fi 22629 HG=$ac_cv_path_HG 22630 if test -n "$HG"; then 22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22632 $as_echo "$HG" >&6; } 22633 else 22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22635 $as_echo "no" >&6; } 22636 fi 22637 22638 22639 test -n "$HG" && break 22640 done 22641 22642 else 22643 # The variable is set, but is it from the command line or the environment? 22644 22645 # Try to remove the string !HG! from our list. 22646 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22647 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22648 # If it failed, the variable was not from the command line. Ignore it, 22649 # but warn the user (except for BASH, which is always set by the calling BASH). 22650 if test "xHG" != xBASH; then 22651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22652 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22653 fi 22654 # Try to locate tool using the code snippet 22655 for ac_prog in hg 22656 do 22657 # Extract the first word of "$ac_prog", so it can be a program name with args. 22658 set dummy $ac_prog; ac_word=$2 22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22660 $as_echo_n "checking for $ac_word... " >&6; } 22661 if ${ac_cv_path_HG+:} false; then : 22662 $as_echo_n "(cached) " >&6 22663 else 22664 case $HG in 22665 [\\/]* | ?:[\\/]*) 22666 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22667 ;; 22668 *) 22669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22670 for as_dir in $PATH 22671 do 22672 IFS=$as_save_IFS 22673 test -z "$as_dir" && as_dir=. 22674 for ac_exec_ext in '' $ac_executable_extensions; do 22675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22676 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22678 break 2 22679 fi 22680 done 22681 done 22682 IFS=$as_save_IFS 22683 22684 ;; 22685 esac 22686 fi 22687 HG=$ac_cv_path_HG 22688 if test -n "$HG"; then 22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22690 $as_echo "$HG" >&6; } 22691 else 22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22693 $as_echo "no" >&6; } 22694 fi 22695 22696 22697 test -n "$HG" && break 22698 done 22699 22700 else 22701 # If it succeeded, then it was overridden by the user. We will use it 22702 # for the tool. 22703 22704 # First remove it from the list of overridden variables, so we can test 22705 # for unknown variables in the end. 22706 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22707 22708 # Check if we try to supply an empty value 22709 if test "x$HG" = x; then 22710 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22711 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22713 $as_echo_n "checking for HG... " >&6; } 22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22715 $as_echo "disabled" >&6; } 22716 else 22717 # Check if the provided tool contains a complete path. 22718 tool_specified="$HG" 22719 tool_basename="${tool_specified##*/}" 22720 if test "x$tool_basename" = "x$tool_specified"; then 22721 # A command without a complete path is provided, search $PATH. 22722 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22723 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22724 # Extract the first word of "$tool_basename", so it can be a program name with args. 22725 set dummy $tool_basename; ac_word=$2 22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22727 $as_echo_n "checking for $ac_word... " >&6; } 22728 if ${ac_cv_path_HG+:} false; then : 22729 $as_echo_n "(cached) " >&6 22730 else 22731 case $HG in 22732 [\\/]* | ?:[\\/]*) 22733 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22734 ;; 22735 *) 22736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22737 for as_dir in $PATH 22738 do 22739 IFS=$as_save_IFS 22740 test -z "$as_dir" && as_dir=. 22741 for ac_exec_ext in '' $ac_executable_extensions; do 22742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22743 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22745 break 2 22746 fi 22747 done 22748 done 22749 IFS=$as_save_IFS 22750 22751 ;; 22752 esac 22753 fi 22754 HG=$ac_cv_path_HG 22755 if test -n "$HG"; then 22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22757 $as_echo "$HG" >&6; } 22758 else 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22760 $as_echo "no" >&6; } 22761 fi 22762 22763 22764 if test "x$HG" = x; then 22765 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22766 fi 22767 else 22768 # Otherwise we believe it is a complete path. Use it as it is. 22769 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22770 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22772 $as_echo_n "checking for HG... " >&6; } 22773 if test ! -x "$tool_specified"; then 22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22775 $as_echo "not found" >&6; } 22776 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22777 fi 22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22779 $as_echo "$tool_specified" >&6; } 22780 fi 22781 fi 22782 fi 22783 22784 fi 22785 22786 22787 22788 22789 # Publish this variable in the help. 22790 22791 22792 if [ -z "${STAT+x}" ]; then 22793 # The variable is not set by user, try to locate tool using the code snippet 22794 for ac_prog in stat 22795 do 22796 # Extract the first word of "$ac_prog", so it can be a program name with args. 22797 set dummy $ac_prog; ac_word=$2 22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22799 $as_echo_n "checking for $ac_word... " >&6; } 22800 if ${ac_cv_path_STAT+:} false; then : 22801 $as_echo_n "(cached) " >&6 22802 else 22803 case $STAT in 22804 [\\/]* | ?:[\\/]*) 22805 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22806 ;; 22807 *) 22808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22809 for as_dir in $PATH 22810 do 22811 IFS=$as_save_IFS 22812 test -z "$as_dir" && as_dir=. 22813 for ac_exec_ext in '' $ac_executable_extensions; do 22814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22815 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22817 break 2 22818 fi 22819 done 22820 done 22821 IFS=$as_save_IFS 22822 22823 ;; 22824 esac 22825 fi 22826 STAT=$ac_cv_path_STAT 22827 if test -n "$STAT"; then 22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22829 $as_echo "$STAT" >&6; } 22830 else 22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22832 $as_echo "no" >&6; } 22833 fi 22834 22835 22836 test -n "$STAT" && break 22837 done 22838 22839 else 22840 # The variable is set, but is it from the command line or the environment? 22841 22842 # Try to remove the string !STAT! from our list. 22843 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22844 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22845 # If it failed, the variable was not from the command line. Ignore it, 22846 # but warn the user (except for BASH, which is always set by the calling BASH). 22847 if test "xSTAT" != xBASH; then 22848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22849 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22850 fi 22851 # Try to locate tool using the code snippet 22852 for ac_prog in stat 22853 do 22854 # Extract the first word of "$ac_prog", so it can be a program name with args. 22855 set dummy $ac_prog; ac_word=$2 22856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22857 $as_echo_n "checking for $ac_word... " >&6; } 22858 if ${ac_cv_path_STAT+:} false; then : 22859 $as_echo_n "(cached) " >&6 22860 else 22861 case $STAT in 22862 [\\/]* | ?:[\\/]*) 22863 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22864 ;; 22865 *) 22866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22867 for as_dir in $PATH 22868 do 22869 IFS=$as_save_IFS 22870 test -z "$as_dir" && as_dir=. 22871 for ac_exec_ext in '' $ac_executable_extensions; do 22872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22873 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22875 break 2 22876 fi 22877 done 22878 done 22879 IFS=$as_save_IFS 22880 22881 ;; 22882 esac 22883 fi 22884 STAT=$ac_cv_path_STAT 22885 if test -n "$STAT"; then 22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22887 $as_echo "$STAT" >&6; } 22888 else 22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22890 $as_echo "no" >&6; } 22891 fi 22892 22893 22894 test -n "$STAT" && break 22895 done 22896 22897 else 22898 # If it succeeded, then it was overridden by the user. We will use it 22899 # for the tool. 22900 22901 # First remove it from the list of overridden variables, so we can test 22902 # for unknown variables in the end. 22903 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22904 22905 # Check if we try to supply an empty value 22906 if test "x$STAT" = x; then 22907 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 22908 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22910 $as_echo_n "checking for STAT... " >&6; } 22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22912 $as_echo "disabled" >&6; } 22913 else 22914 # Check if the provided tool contains a complete path. 22915 tool_specified="$STAT" 22916 tool_basename="${tool_specified##*/}" 22917 if test "x$tool_basename" = "x$tool_specified"; then 22918 # A command without a complete path is provided, search $PATH. 22919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 22920 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 22921 # Extract the first word of "$tool_basename", so it can be a program name with args. 22922 set dummy $tool_basename; ac_word=$2 22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22924 $as_echo_n "checking for $ac_word... " >&6; } 22925 if ${ac_cv_path_STAT+:} false; then : 22926 $as_echo_n "(cached) " >&6 22927 else 22928 case $STAT in 22929 [\\/]* | ?:[\\/]*) 22930 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22931 ;; 22932 *) 22933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22934 for as_dir in $PATH 22935 do 22936 IFS=$as_save_IFS 22937 test -z "$as_dir" && as_dir=. 22938 for ac_exec_ext in '' $ac_executable_extensions; do 22939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22940 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22942 break 2 22943 fi 22944 done 22945 done 22946 IFS=$as_save_IFS 22947 22948 ;; 22949 esac 22950 fi 22951 STAT=$ac_cv_path_STAT 22952 if test -n "$STAT"; then 22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22954 $as_echo "$STAT" >&6; } 22955 else 22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22957 $as_echo "no" >&6; } 22958 fi 22959 22960 22961 if test "x$STAT" = x; then 22962 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22963 fi 22964 else 22965 # Otherwise we believe it is a complete path. Use it as it is. 22966 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 22967 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 22968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22969 $as_echo_n "checking for STAT... " >&6; } 22970 if test ! -x "$tool_specified"; then 22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22972 $as_echo "not found" >&6; } 22973 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 22974 fi 22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22976 $as_echo "$tool_specified" >&6; } 22977 fi 22978 fi 22979 fi 22980 22981 fi 22982 22983 22984 22985 22986 # Publish this variable in the help. 22987 22988 22989 if [ -z "${TIME+x}" ]; then 22990 # The variable is not set by user, try to locate tool using the code snippet 22991 for ac_prog in time 22992 do 22993 # Extract the first word of "$ac_prog", so it can be a program name with args. 22994 set dummy $ac_prog; ac_word=$2 22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22996 $as_echo_n "checking for $ac_word... " >&6; } 22997 if ${ac_cv_path_TIME+:} false; then : 22998 $as_echo_n "(cached) " >&6 22999 else 23000 case $TIME in 23001 [\\/]* | ?:[\\/]*) 23002 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23003 ;; 23004 *) 23005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23006 for as_dir in $PATH 23007 do 23008 IFS=$as_save_IFS 23009 test -z "$as_dir" && as_dir=. 23010 for ac_exec_ext in '' $ac_executable_extensions; do 23011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23012 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23014 break 2 23015 fi 23016 done 23017 done 23018 IFS=$as_save_IFS 23019 23020 ;; 23021 esac 23022 fi 23023 TIME=$ac_cv_path_TIME 23024 if test -n "$TIME"; then 23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23026 $as_echo "$TIME" >&6; } 23027 else 23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23029 $as_echo "no" >&6; } 23030 fi 23031 23032 23033 test -n "$TIME" && break 23034 done 23035 23036 else 23037 # The variable is set, but is it from the command line or the environment? 23038 23039 # Try to remove the string !TIME! from our list. 23040 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 23041 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23042 # If it failed, the variable was not from the command line. Ignore it, 23043 # but warn the user (except for BASH, which is always set by the calling BASH). 23044 if test "xTIME" != xBASH; then 23045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 23046 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 23047 fi 23048 # Try to locate tool using the code snippet 23049 for ac_prog in time 23050 do 23051 # Extract the first word of "$ac_prog", so it can be a program name with args. 23052 set dummy $ac_prog; ac_word=$2 23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23054 $as_echo_n "checking for $ac_word... " >&6; } 23055 if ${ac_cv_path_TIME+:} false; then : 23056 $as_echo_n "(cached) " >&6 23057 else 23058 case $TIME in 23059 [\\/]* | ?:[\\/]*) 23060 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23061 ;; 23062 *) 23063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23064 for as_dir in $PATH 23065 do 23066 IFS=$as_save_IFS 23067 test -z "$as_dir" && as_dir=. 23068 for ac_exec_ext in '' $ac_executable_extensions; do 23069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23070 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23072 break 2 23073 fi 23074 done 23075 done 23076 IFS=$as_save_IFS 23077 23078 ;; 23079 esac 23080 fi 23081 TIME=$ac_cv_path_TIME 23082 if test -n "$TIME"; then 23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23084 $as_echo "$TIME" >&6; } 23085 else 23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23087 $as_echo "no" >&6; } 23088 fi 23089 23090 23091 test -n "$TIME" && break 23092 done 23093 23094 else 23095 # If it succeeded, then it was overridden by the user. We will use it 23096 # for the tool. 23097 23098 # First remove it from the list of overridden variables, so we can test 23099 # for unknown variables in the end. 23100 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23101 23102 # Check if we try to supply an empty value 23103 if test "x$TIME" = x; then 23104 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 23105 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23107 $as_echo_n "checking for TIME... " >&6; } 23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23109 $as_echo "disabled" >&6; } 23110 else 23111 # Check if the provided tool contains a complete path. 23112 tool_specified="$TIME" 23113 tool_basename="${tool_specified##*/}" 23114 if test "x$tool_basename" = "x$tool_specified"; then 23115 # A command without a complete path is provided, search $PATH. 23116 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 23117 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 23118 # Extract the first word of "$tool_basename", so it can be a program name with args. 23119 set dummy $tool_basename; ac_word=$2 23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23121 $as_echo_n "checking for $ac_word... " >&6; } 23122 if ${ac_cv_path_TIME+:} false; then : 23123 $as_echo_n "(cached) " >&6 23124 else 23125 case $TIME in 23126 [\\/]* | ?:[\\/]*) 23127 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23128 ;; 23129 *) 23130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23131 for as_dir in $PATH 23132 do 23133 IFS=$as_save_IFS 23134 test -z "$as_dir" && as_dir=. 23135 for ac_exec_ext in '' $ac_executable_extensions; do 23136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23137 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23139 break 2 23140 fi 23141 done 23142 done 23143 IFS=$as_save_IFS 23144 23145 ;; 23146 esac 23147 fi 23148 TIME=$ac_cv_path_TIME 23149 if test -n "$TIME"; then 23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23151 $as_echo "$TIME" >&6; } 23152 else 23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23154 $as_echo "no" >&6; } 23155 fi 23156 23157 23158 if test "x$TIME" = x; then 23159 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23160 fi 23161 else 23162 # Otherwise we believe it is a complete path. Use it as it is. 23163 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 23164 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 23165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23166 $as_echo_n "checking for TIME... " >&6; } 23167 if test ! -x "$tool_specified"; then 23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23169 $as_echo "not found" >&6; } 23170 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 23171 fi 23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23173 $as_echo "$tool_specified" >&6; } 23174 fi 23175 fi 23176 fi 23177 23178 fi 23179 23180 23181 23182 23183 # Publish this variable in the help. 23184 23185 23186 if [ -z "${FLOCK+x}" ]; then 23187 # The variable is not set by user, try to locate tool using the code snippet 23188 for ac_prog in flock 23189 do 23190 # Extract the first word of "$ac_prog", so it can be a program name with args. 23191 set dummy $ac_prog; ac_word=$2 23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23193 $as_echo_n "checking for $ac_word... " >&6; } 23194 if ${ac_cv_path_FLOCK+:} false; then : 23195 $as_echo_n "(cached) " >&6 23196 else 23197 case $FLOCK in 23198 [\\/]* | ?:[\\/]*) 23199 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23200 ;; 23201 *) 23202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23203 for as_dir in $PATH 23204 do 23205 IFS=$as_save_IFS 23206 test -z "$as_dir" && as_dir=. 23207 for ac_exec_ext in '' $ac_executable_extensions; do 23208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23209 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23211 break 2 23212 fi 23213 done 23214 done 23215 IFS=$as_save_IFS 23216 23217 ;; 23218 esac 23219 fi 23220 FLOCK=$ac_cv_path_FLOCK 23221 if test -n "$FLOCK"; then 23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23223 $as_echo "$FLOCK" >&6; } 23224 else 23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23226 $as_echo "no" >&6; } 23227 fi 23228 23229 23230 test -n "$FLOCK" && break 23231 done 23232 23233 else 23234 # The variable is set, but is it from the command line or the environment? 23235 23236 # Try to remove the string !FLOCK! from our list. 23237 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/} 23238 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23239 # If it failed, the variable was not from the command line. Ignore it, 23240 # but warn the user (except for BASH, which is always set by the calling BASH). 23241 if test "xFLOCK" != xBASH; then 23242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5 23243 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;} 23244 fi 23245 # Try to locate tool using the code snippet 23246 for ac_prog in flock 23247 do 23248 # Extract the first word of "$ac_prog", so it can be a program name with args. 23249 set dummy $ac_prog; ac_word=$2 23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23251 $as_echo_n "checking for $ac_word... " >&6; } 23252 if ${ac_cv_path_FLOCK+:} false; then : 23253 $as_echo_n "(cached) " >&6 23254 else 23255 case $FLOCK in 23256 [\\/]* | ?:[\\/]*) 23257 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23258 ;; 23259 *) 23260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23261 for as_dir in $PATH 23262 do 23263 IFS=$as_save_IFS 23264 test -z "$as_dir" && as_dir=. 23265 for ac_exec_ext in '' $ac_executable_extensions; do 23266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23267 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23269 break 2 23270 fi 23271 done 23272 done 23273 IFS=$as_save_IFS 23274 23275 ;; 23276 esac 23277 fi 23278 FLOCK=$ac_cv_path_FLOCK 23279 if test -n "$FLOCK"; then 23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23281 $as_echo "$FLOCK" >&6; } 23282 else 23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23284 $as_echo "no" >&6; } 23285 fi 23286 23287 23288 test -n "$FLOCK" && break 23289 done 23290 23291 else 23292 # If it succeeded, then it was overridden by the user. We will use it 23293 # for the tool. 23294 23295 # First remove it from the list of overridden variables, so we can test 23296 # for unknown variables in the end. 23297 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23298 23299 # Check if we try to supply an empty value 23300 if test "x$FLOCK" = x; then 23301 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5 23302 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;} 23303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23304 $as_echo_n "checking for FLOCK... " >&6; } 23305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23306 $as_echo "disabled" >&6; } 23307 else 23308 # Check if the provided tool contains a complete path. 23309 tool_specified="$FLOCK" 23310 tool_basename="${tool_specified##*/}" 23311 if test "x$tool_basename" = "x$tool_specified"; then 23312 # A command without a complete path is provided, search $PATH. 23313 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5 23314 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;} 23315 # Extract the first word of "$tool_basename", so it can be a program name with args. 23316 set dummy $tool_basename; ac_word=$2 23317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23318 $as_echo_n "checking for $ac_word... " >&6; } 23319 if ${ac_cv_path_FLOCK+:} false; then : 23320 $as_echo_n "(cached) " >&6 23321 else 23322 case $FLOCK in 23323 [\\/]* | ?:[\\/]*) 23324 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23325 ;; 23326 *) 23327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23328 for as_dir in $PATH 23329 do 23330 IFS=$as_save_IFS 23331 test -z "$as_dir" && as_dir=. 23332 for ac_exec_ext in '' $ac_executable_extensions; do 23333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23334 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23336 break 2 23337 fi 23338 done 23339 done 23340 IFS=$as_save_IFS 23341 23342 ;; 23343 esac 23344 fi 23345 FLOCK=$ac_cv_path_FLOCK 23346 if test -n "$FLOCK"; then 23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23348 $as_echo "$FLOCK" >&6; } 23349 else 23350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23351 $as_echo "no" >&6; } 23352 fi 23353 23354 23355 if test "x$FLOCK" = x; then 23356 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23357 fi 23358 else 23359 # Otherwise we believe it is a complete path. Use it as it is. 23360 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5 23361 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;} 23362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23363 $as_echo_n "checking for FLOCK... " >&6; } 23364 if test ! -x "$tool_specified"; then 23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23366 $as_echo "not found" >&6; } 23367 as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5 23368 fi 23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23370 $as_echo "$tool_specified" >&6; } 23371 fi 23372 fi 23373 fi 23374 23375 fi 23376 23377 23378 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 23379 # be in the user path. 23380 23381 23382 # Publish this variable in the help. 23383 23384 23385 if [ -z "${DTRACE+x}" ]; then 23386 # The variable is not set by user, try to locate tool using the code snippet 23387 for ac_prog in dtrace 23388 do 23389 # Extract the first word of "$ac_prog", so it can be a program name with args. 23390 set dummy $ac_prog; ac_word=$2 23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23392 $as_echo_n "checking for $ac_word... " >&6; } 23393 if ${ac_cv_path_DTRACE+:} false; then : 23394 $as_echo_n "(cached) " >&6 23395 else 23396 case $DTRACE in 23397 [\\/]* | ?:[\\/]*) 23398 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23399 ;; 23400 *) 23401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23402 as_dummy="$PATH:/usr/sbin" 23403 for as_dir in $as_dummy 23404 do 23405 IFS=$as_save_IFS 23406 test -z "$as_dir" && as_dir=. 23407 for ac_exec_ext in '' $ac_executable_extensions; do 23408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23409 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23411 break 2 23412 fi 23413 done 23414 done 23415 IFS=$as_save_IFS 23416 23417 ;; 23418 esac 23419 fi 23420 DTRACE=$ac_cv_path_DTRACE 23421 if test -n "$DTRACE"; then 23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23423 $as_echo "$DTRACE" >&6; } 23424 else 23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23426 $as_echo "no" >&6; } 23427 fi 23428 23429 23430 test -n "$DTRACE" && break 23431 done 23432 23433 else 23434 # The variable is set, but is it from the command line or the environment? 23435 23436 # Try to remove the string !DTRACE! from our list. 23437 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 23438 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23439 # If it failed, the variable was not from the command line. Ignore it, 23440 # but warn the user (except for BASH, which is always set by the calling BASH). 23441 if test "xDTRACE" != xBASH; then 23442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 23443 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 23444 fi 23445 # Try to locate tool using the code snippet 23446 for ac_prog in dtrace 23447 do 23448 # Extract the first word of "$ac_prog", so it can be a program name with args. 23449 set dummy $ac_prog; ac_word=$2 23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23451 $as_echo_n "checking for $ac_word... " >&6; } 23452 if ${ac_cv_path_DTRACE+:} false; then : 23453 $as_echo_n "(cached) " >&6 23454 else 23455 case $DTRACE in 23456 [\\/]* | ?:[\\/]*) 23457 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23458 ;; 23459 *) 23460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23461 as_dummy="$PATH:/usr/sbin" 23462 for as_dir in $as_dummy 23463 do 23464 IFS=$as_save_IFS 23465 test -z "$as_dir" && as_dir=. 23466 for ac_exec_ext in '' $ac_executable_extensions; do 23467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23468 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23470 break 2 23471 fi 23472 done 23473 done 23474 IFS=$as_save_IFS 23475 23476 ;; 23477 esac 23478 fi 23479 DTRACE=$ac_cv_path_DTRACE 23480 if test -n "$DTRACE"; then 23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23482 $as_echo "$DTRACE" >&6; } 23483 else 23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23485 $as_echo "no" >&6; } 23486 fi 23487 23488 23489 test -n "$DTRACE" && break 23490 done 23491 23492 else 23493 # If it succeeded, then it was overridden by the user. We will use it 23494 # for the tool. 23495 23496 # First remove it from the list of overridden variables, so we can test 23497 # for unknown variables in the end. 23498 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23499 23500 # Check if we try to supply an empty value 23501 if test "x$DTRACE" = x; then 23502 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 23503 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23505 $as_echo_n "checking for DTRACE... " >&6; } 23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23507 $as_echo "disabled" >&6; } 23508 else 23509 # Check if the provided tool contains a complete path. 23510 tool_specified="$DTRACE" 23511 tool_basename="${tool_specified##*/}" 23512 if test "x$tool_basename" = "x$tool_specified"; then 23513 # A command without a complete path is provided, search $PATH. 23514 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 23515 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 23516 # Extract the first word of "$tool_basename", so it can be a program name with args. 23517 set dummy $tool_basename; ac_word=$2 23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23519 $as_echo_n "checking for $ac_word... " >&6; } 23520 if ${ac_cv_path_DTRACE+:} false; then : 23521 $as_echo_n "(cached) " >&6 23522 else 23523 case $DTRACE in 23524 [\\/]* | ?:[\\/]*) 23525 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23526 ;; 23527 *) 23528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23529 for as_dir in $PATH 23530 do 23531 IFS=$as_save_IFS 23532 test -z "$as_dir" && as_dir=. 23533 for ac_exec_ext in '' $ac_executable_extensions; do 23534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23535 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23537 break 2 23538 fi 23539 done 23540 done 23541 IFS=$as_save_IFS 23542 23543 ;; 23544 esac 23545 fi 23546 DTRACE=$ac_cv_path_DTRACE 23547 if test -n "$DTRACE"; then 23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23549 $as_echo "$DTRACE" >&6; } 23550 else 23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23552 $as_echo "no" >&6; } 23553 fi 23554 23555 23556 if test "x$DTRACE" = x; then 23557 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23558 fi 23559 else 23560 # Otherwise we believe it is a complete path. Use it as it is. 23561 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23562 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23564 $as_echo_n "checking for DTRACE... " >&6; } 23565 if test ! -x "$tool_specified"; then 23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23567 $as_echo "not found" >&6; } 23568 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23569 fi 23570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23571 $as_echo "$tool_specified" >&6; } 23572 fi 23573 fi 23574 fi 23575 23576 fi 23577 23578 23579 23580 23581 # Publish this variable in the help. 23582 23583 23584 if [ -z "${PATCH+x}" ]; then 23585 # The variable is not set by user, try to locate tool using the code snippet 23586 for ac_prog in gpatch patch 23587 do 23588 # Extract the first word of "$ac_prog", so it can be a program name with args. 23589 set dummy $ac_prog; ac_word=$2 23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23591 $as_echo_n "checking for $ac_word... " >&6; } 23592 if ${ac_cv_path_PATCH+:} false; then : 23593 $as_echo_n "(cached) " >&6 23594 else 23595 case $PATCH in 23596 [\\/]* | ?:[\\/]*) 23597 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23598 ;; 23599 *) 23600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23601 for as_dir in $PATH 23602 do 23603 IFS=$as_save_IFS 23604 test -z "$as_dir" && as_dir=. 23605 for ac_exec_ext in '' $ac_executable_extensions; do 23606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23607 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23609 break 2 23610 fi 23611 done 23612 done 23613 IFS=$as_save_IFS 23614 23615 ;; 23616 esac 23617 fi 23618 PATCH=$ac_cv_path_PATCH 23619 if test -n "$PATCH"; then 23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23621 $as_echo "$PATCH" >&6; } 23622 else 23623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23624 $as_echo "no" >&6; } 23625 fi 23626 23627 23628 test -n "$PATCH" && break 23629 done 23630 23631 else 23632 # The variable is set, but is it from the command line or the environment? 23633 23634 # Try to remove the string !PATCH! from our list. 23635 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23636 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23637 # If it failed, the variable was not from the command line. Ignore it, 23638 # but warn the user (except for BASH, which is always set by the calling BASH). 23639 if test "xPATCH" != xBASH; then 23640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23641 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23642 fi 23643 # Try to locate tool using the code snippet 23644 for ac_prog in gpatch patch 23645 do 23646 # Extract the first word of "$ac_prog", so it can be a program name with args. 23647 set dummy $ac_prog; ac_word=$2 23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23649 $as_echo_n "checking for $ac_word... " >&6; } 23650 if ${ac_cv_path_PATCH+:} false; then : 23651 $as_echo_n "(cached) " >&6 23652 else 23653 case $PATCH in 23654 [\\/]* | ?:[\\/]*) 23655 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23656 ;; 23657 *) 23658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23659 for as_dir in $PATH 23660 do 23661 IFS=$as_save_IFS 23662 test -z "$as_dir" && as_dir=. 23663 for ac_exec_ext in '' $ac_executable_extensions; do 23664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23665 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23667 break 2 23668 fi 23669 done 23670 done 23671 IFS=$as_save_IFS 23672 23673 ;; 23674 esac 23675 fi 23676 PATCH=$ac_cv_path_PATCH 23677 if test -n "$PATCH"; then 23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23679 $as_echo "$PATCH" >&6; } 23680 else 23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23682 $as_echo "no" >&6; } 23683 fi 23684 23685 23686 test -n "$PATCH" && break 23687 done 23688 23689 else 23690 # If it succeeded, then it was overridden by the user. We will use it 23691 # for the tool. 23692 23693 # First remove it from the list of overridden variables, so we can test 23694 # for unknown variables in the end. 23695 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23696 23697 # Check if we try to supply an empty value 23698 if test "x$PATCH" = x; then 23699 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23700 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23702 $as_echo_n "checking for PATCH... " >&6; } 23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23704 $as_echo "disabled" >&6; } 23705 else 23706 # Check if the provided tool contains a complete path. 23707 tool_specified="$PATCH" 23708 tool_basename="${tool_specified##*/}" 23709 if test "x$tool_basename" = "x$tool_specified"; then 23710 # A command without a complete path is provided, search $PATH. 23711 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23712 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23713 # Extract the first word of "$tool_basename", so it can be a program name with args. 23714 set dummy $tool_basename; ac_word=$2 23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23716 $as_echo_n "checking for $ac_word... " >&6; } 23717 if ${ac_cv_path_PATCH+:} false; then : 23718 $as_echo_n "(cached) " >&6 23719 else 23720 case $PATCH in 23721 [\\/]* | ?:[\\/]*) 23722 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23723 ;; 23724 *) 23725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23726 for as_dir in $PATH 23727 do 23728 IFS=$as_save_IFS 23729 test -z "$as_dir" && as_dir=. 23730 for ac_exec_ext in '' $ac_executable_extensions; do 23731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23732 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23734 break 2 23735 fi 23736 done 23737 done 23738 IFS=$as_save_IFS 23739 23740 ;; 23741 esac 23742 fi 23743 PATCH=$ac_cv_path_PATCH 23744 if test -n "$PATCH"; then 23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23746 $as_echo "$PATCH" >&6; } 23747 else 23748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23749 $as_echo "no" >&6; } 23750 fi 23751 23752 23753 if test "x$PATCH" = x; then 23754 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23755 fi 23756 else 23757 # Otherwise we believe it is a complete path. Use it as it is. 23758 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23759 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23761 $as_echo_n "checking for PATCH... " >&6; } 23762 if test ! -x "$tool_specified"; then 23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23764 $as_echo "not found" >&6; } 23765 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23766 fi 23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23768 $as_echo "$tool_specified" >&6; } 23769 fi 23770 fi 23771 fi 23772 23773 fi 23774 23775 23776 # Check if it's GNU time 23777 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23778 if test "x$IS_GNU_TIME" != x; then 23779 IS_GNU_TIME=yes 23780 else 23781 IS_GNU_TIME=no 23782 fi 23783 23784 23785 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23786 23787 23788 23789 # Publish this variable in the help. 23790 23791 23792 if [ -z "${DSYMUTIL+x}" ]; then 23793 # The variable is not set by user, try to locate tool using the code snippet 23794 for ac_prog in dsymutil 23795 do 23796 # Extract the first word of "$ac_prog", so it can be a program name with args. 23797 set dummy $ac_prog; ac_word=$2 23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23799 $as_echo_n "checking for $ac_word... " >&6; } 23800 if ${ac_cv_path_DSYMUTIL+:} false; then : 23801 $as_echo_n "(cached) " >&6 23802 else 23803 case $DSYMUTIL in 23804 [\\/]* | ?:[\\/]*) 23805 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23806 ;; 23807 *) 23808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23809 for as_dir in $PATH 23810 do 23811 IFS=$as_save_IFS 23812 test -z "$as_dir" && as_dir=. 23813 for ac_exec_ext in '' $ac_executable_extensions; do 23814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23815 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23817 break 2 23818 fi 23819 done 23820 done 23821 IFS=$as_save_IFS 23822 23823 ;; 23824 esac 23825 fi 23826 DSYMUTIL=$ac_cv_path_DSYMUTIL 23827 if test -n "$DSYMUTIL"; then 23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23829 $as_echo "$DSYMUTIL" >&6; } 23830 else 23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23832 $as_echo "no" >&6; } 23833 fi 23834 23835 23836 test -n "$DSYMUTIL" && break 23837 done 23838 23839 else 23840 # The variable is set, but is it from the command line or the environment? 23841 23842 # Try to remove the string !DSYMUTIL! from our list. 23843 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23844 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23845 # If it failed, the variable was not from the command line. Ignore it, 23846 # but warn the user (except for BASH, which is always set by the calling BASH). 23847 if test "xDSYMUTIL" != xBASH; then 23848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23849 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23850 fi 23851 # Try to locate tool using the code snippet 23852 for ac_prog in dsymutil 23853 do 23854 # Extract the first word of "$ac_prog", so it can be a program name with args. 23855 set dummy $ac_prog; ac_word=$2 23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23857 $as_echo_n "checking for $ac_word... " >&6; } 23858 if ${ac_cv_path_DSYMUTIL+:} false; then : 23859 $as_echo_n "(cached) " >&6 23860 else 23861 case $DSYMUTIL in 23862 [\\/]* | ?:[\\/]*) 23863 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23864 ;; 23865 *) 23866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23867 for as_dir in $PATH 23868 do 23869 IFS=$as_save_IFS 23870 test -z "$as_dir" && as_dir=. 23871 for ac_exec_ext in '' $ac_executable_extensions; do 23872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23873 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23875 break 2 23876 fi 23877 done 23878 done 23879 IFS=$as_save_IFS 23880 23881 ;; 23882 esac 23883 fi 23884 DSYMUTIL=$ac_cv_path_DSYMUTIL 23885 if test -n "$DSYMUTIL"; then 23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23887 $as_echo "$DSYMUTIL" >&6; } 23888 else 23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23890 $as_echo "no" >&6; } 23891 fi 23892 23893 23894 test -n "$DSYMUTIL" && break 23895 done 23896 23897 else 23898 # If it succeeded, then it was overridden by the user. We will use it 23899 # for the tool. 23900 23901 # First remove it from the list of overridden variables, so we can test 23902 # for unknown variables in the end. 23903 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23904 23905 # Check if we try to supply an empty value 23906 if test "x$DSYMUTIL" = x; then 23907 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 23908 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23910 $as_echo_n "checking for DSYMUTIL... " >&6; } 23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23912 $as_echo "disabled" >&6; } 23913 else 23914 # Check if the provided tool contains a complete path. 23915 tool_specified="$DSYMUTIL" 23916 tool_basename="${tool_specified##*/}" 23917 if test "x$tool_basename" = "x$tool_specified"; then 23918 # A command without a complete path is provided, search $PATH. 23919 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 23920 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 23921 # Extract the first word of "$tool_basename", so it can be a program name with args. 23922 set dummy $tool_basename; ac_word=$2 23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23924 $as_echo_n "checking for $ac_word... " >&6; } 23925 if ${ac_cv_path_DSYMUTIL+:} false; then : 23926 $as_echo_n "(cached) " >&6 23927 else 23928 case $DSYMUTIL in 23929 [\\/]* | ?:[\\/]*) 23930 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23931 ;; 23932 *) 23933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23934 for as_dir in $PATH 23935 do 23936 IFS=$as_save_IFS 23937 test -z "$as_dir" && as_dir=. 23938 for ac_exec_ext in '' $ac_executable_extensions; do 23939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23940 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23942 break 2 23943 fi 23944 done 23945 done 23946 IFS=$as_save_IFS 23947 23948 ;; 23949 esac 23950 fi 23951 DSYMUTIL=$ac_cv_path_DSYMUTIL 23952 if test -n "$DSYMUTIL"; then 23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23954 $as_echo "$DSYMUTIL" >&6; } 23955 else 23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23957 $as_echo "no" >&6; } 23958 fi 23959 23960 23961 if test "x$DSYMUTIL" = x; then 23962 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23963 fi 23964 else 23965 # Otherwise we believe it is a complete path. Use it as it is. 23966 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 23967 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23969 $as_echo_n "checking for DSYMUTIL... " >&6; } 23970 if test ! -x "$tool_specified"; then 23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23972 $as_echo "not found" >&6; } 23973 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 23974 fi 23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23976 $as_echo "$tool_specified" >&6; } 23977 fi 23978 fi 23979 fi 23980 23981 fi 23982 23983 23984 23985 if test "x$DSYMUTIL" = x; then 23986 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 23987 fi 23988 23989 23990 23991 23992 23993 # Publish this variable in the help. 23994 23995 23996 if [ -z "${XATTR+x}" ]; then 23997 # The variable is not set by user, try to locate tool using the code snippet 23998 for ac_prog in xattr 23999 do 24000 # Extract the first word of "$ac_prog", so it can be a program name with args. 24001 set dummy $ac_prog; ac_word=$2 24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24003 $as_echo_n "checking for $ac_word... " >&6; } 24004 if ${ac_cv_path_XATTR+:} false; then : 24005 $as_echo_n "(cached) " >&6 24006 else 24007 case $XATTR in 24008 [\\/]* | ?:[\\/]*) 24009 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24010 ;; 24011 *) 24012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24013 for as_dir in $PATH 24014 do 24015 IFS=$as_save_IFS 24016 test -z "$as_dir" && as_dir=. 24017 for ac_exec_ext in '' $ac_executable_extensions; do 24018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24019 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24021 break 2 24022 fi 24023 done 24024 done 24025 IFS=$as_save_IFS 24026 24027 ;; 24028 esac 24029 fi 24030 XATTR=$ac_cv_path_XATTR 24031 if test -n "$XATTR"; then 24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24033 $as_echo "$XATTR" >&6; } 24034 else 24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24036 $as_echo "no" >&6; } 24037 fi 24038 24039 24040 test -n "$XATTR" && break 24041 done 24042 24043 else 24044 # The variable is set, but is it from the command line or the environment? 24045 24046 # Try to remove the string !XATTR! from our list. 24047 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 24048 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24049 # If it failed, the variable was not from the command line. Ignore it, 24050 # but warn the user (except for BASH, which is always set by the calling BASH). 24051 if test "xXATTR" != xBASH; then 24052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 24053 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 24054 fi 24055 # Try to locate tool using the code snippet 24056 for ac_prog in xattr 24057 do 24058 # Extract the first word of "$ac_prog", so it can be a program name with args. 24059 set dummy $ac_prog; ac_word=$2 24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24061 $as_echo_n "checking for $ac_word... " >&6; } 24062 if ${ac_cv_path_XATTR+:} false; then : 24063 $as_echo_n "(cached) " >&6 24064 else 24065 case $XATTR in 24066 [\\/]* | ?:[\\/]*) 24067 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24068 ;; 24069 *) 24070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24071 for as_dir in $PATH 24072 do 24073 IFS=$as_save_IFS 24074 test -z "$as_dir" && as_dir=. 24075 for ac_exec_ext in '' $ac_executable_extensions; do 24076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24077 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24079 break 2 24080 fi 24081 done 24082 done 24083 IFS=$as_save_IFS 24084 24085 ;; 24086 esac 24087 fi 24088 XATTR=$ac_cv_path_XATTR 24089 if test -n "$XATTR"; then 24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24091 $as_echo "$XATTR" >&6; } 24092 else 24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24094 $as_echo "no" >&6; } 24095 fi 24096 24097 24098 test -n "$XATTR" && break 24099 done 24100 24101 else 24102 # If it succeeded, then it was overridden by the user. We will use it 24103 # for the tool. 24104 24105 # First remove it from the list of overridden variables, so we can test 24106 # for unknown variables in the end. 24107 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24108 24109 # Check if we try to supply an empty value 24110 if test "x$XATTR" = x; then 24111 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 24112 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24114 $as_echo_n "checking for XATTR... " >&6; } 24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24116 $as_echo "disabled" >&6; } 24117 else 24118 # Check if the provided tool contains a complete path. 24119 tool_specified="$XATTR" 24120 tool_basename="${tool_specified##*/}" 24121 if test "x$tool_basename" = "x$tool_specified"; then 24122 # A command without a complete path is provided, search $PATH. 24123 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 24124 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 24125 # Extract the first word of "$tool_basename", so it can be a program name with args. 24126 set dummy $tool_basename; ac_word=$2 24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24128 $as_echo_n "checking for $ac_word... " >&6; } 24129 if ${ac_cv_path_XATTR+:} false; then : 24130 $as_echo_n "(cached) " >&6 24131 else 24132 case $XATTR in 24133 [\\/]* | ?:[\\/]*) 24134 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24135 ;; 24136 *) 24137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24138 for as_dir in $PATH 24139 do 24140 IFS=$as_save_IFS 24141 test -z "$as_dir" && as_dir=. 24142 for ac_exec_ext in '' $ac_executable_extensions; do 24143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24144 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24146 break 2 24147 fi 24148 done 24149 done 24150 IFS=$as_save_IFS 24151 24152 ;; 24153 esac 24154 fi 24155 XATTR=$ac_cv_path_XATTR 24156 if test -n "$XATTR"; then 24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24158 $as_echo "$XATTR" >&6; } 24159 else 24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24161 $as_echo "no" >&6; } 24162 fi 24163 24164 24165 if test "x$XATTR" = x; then 24166 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24167 fi 24168 else 24169 # Otherwise we believe it is a complete path. Use it as it is. 24170 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 24171 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24173 $as_echo_n "checking for XATTR... " >&6; } 24174 if test ! -x "$tool_specified"; then 24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24176 $as_echo "not found" >&6; } 24177 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 24178 fi 24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24180 $as_echo "$tool_specified" >&6; } 24181 fi 24182 fi 24183 fi 24184 24185 fi 24186 24187 24188 24189 if test "x$XATTR" = x; then 24190 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 24191 fi 24192 24193 24194 24195 24196 # Publish this variable in the help. 24197 24198 24199 if [ -z "${CODESIGN+x}" ]; then 24200 # The variable is not set by user, try to locate tool using the code snippet 24201 for ac_prog in codesign 24202 do 24203 # Extract the first word of "$ac_prog", so it can be a program name with args. 24204 set dummy $ac_prog; ac_word=$2 24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24206 $as_echo_n "checking for $ac_word... " >&6; } 24207 if ${ac_cv_path_CODESIGN+:} false; then : 24208 $as_echo_n "(cached) " >&6 24209 else 24210 case $CODESIGN in 24211 [\\/]* | ?:[\\/]*) 24212 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24213 ;; 24214 *) 24215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24216 for as_dir in $PATH 24217 do 24218 IFS=$as_save_IFS 24219 test -z "$as_dir" && as_dir=. 24220 for ac_exec_ext in '' $ac_executable_extensions; do 24221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24222 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24224 break 2 24225 fi 24226 done 24227 done 24228 IFS=$as_save_IFS 24229 24230 ;; 24231 esac 24232 fi 24233 CODESIGN=$ac_cv_path_CODESIGN 24234 if test -n "$CODESIGN"; then 24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24236 $as_echo "$CODESIGN" >&6; } 24237 else 24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24239 $as_echo "no" >&6; } 24240 fi 24241 24242 24243 test -n "$CODESIGN" && break 24244 done 24245 24246 else 24247 # The variable is set, but is it from the command line or the environment? 24248 24249 # Try to remove the string !CODESIGN! from our list. 24250 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 24251 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24252 # If it failed, the variable was not from the command line. Ignore it, 24253 # but warn the user (except for BASH, which is always set by the calling BASH). 24254 if test "xCODESIGN" != xBASH; then 24255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 24256 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 24257 fi 24258 # Try to locate tool using the code snippet 24259 for ac_prog in codesign 24260 do 24261 # Extract the first word of "$ac_prog", so it can be a program name with args. 24262 set dummy $ac_prog; ac_word=$2 24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24264 $as_echo_n "checking for $ac_word... " >&6; } 24265 if ${ac_cv_path_CODESIGN+:} false; then : 24266 $as_echo_n "(cached) " >&6 24267 else 24268 case $CODESIGN in 24269 [\\/]* | ?:[\\/]*) 24270 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24271 ;; 24272 *) 24273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24274 for as_dir in $PATH 24275 do 24276 IFS=$as_save_IFS 24277 test -z "$as_dir" && as_dir=. 24278 for ac_exec_ext in '' $ac_executable_extensions; do 24279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24280 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24282 break 2 24283 fi 24284 done 24285 done 24286 IFS=$as_save_IFS 24287 24288 ;; 24289 esac 24290 fi 24291 CODESIGN=$ac_cv_path_CODESIGN 24292 if test -n "$CODESIGN"; then 24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24294 $as_echo "$CODESIGN" >&6; } 24295 else 24296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24297 $as_echo "no" >&6; } 24298 fi 24299 24300 24301 test -n "$CODESIGN" && break 24302 done 24303 24304 else 24305 # If it succeeded, then it was overridden by the user. We will use it 24306 # for the tool. 24307 24308 # First remove it from the list of overridden variables, so we can test 24309 # for unknown variables in the end. 24310 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24311 24312 # Check if we try to supply an empty value 24313 if test "x$CODESIGN" = x; then 24314 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 24315 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 24316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24317 $as_echo_n "checking for CODESIGN... " >&6; } 24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24319 $as_echo "disabled" >&6; } 24320 else 24321 # Check if the provided tool contains a complete path. 24322 tool_specified="$CODESIGN" 24323 tool_basename="${tool_specified##*/}" 24324 if test "x$tool_basename" = "x$tool_specified"; then 24325 # A command without a complete path is provided, search $PATH. 24326 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 24327 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 24328 # Extract the first word of "$tool_basename", so it can be a program name with args. 24329 set dummy $tool_basename; ac_word=$2 24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24331 $as_echo_n "checking for $ac_word... " >&6; } 24332 if ${ac_cv_path_CODESIGN+:} false; then : 24333 $as_echo_n "(cached) " >&6 24334 else 24335 case $CODESIGN in 24336 [\\/]* | ?:[\\/]*) 24337 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24338 ;; 24339 *) 24340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24341 for as_dir in $PATH 24342 do 24343 IFS=$as_save_IFS 24344 test -z "$as_dir" && as_dir=. 24345 for ac_exec_ext in '' $ac_executable_extensions; do 24346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24347 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24349 break 2 24350 fi 24351 done 24352 done 24353 IFS=$as_save_IFS 24354 24355 ;; 24356 esac 24357 fi 24358 CODESIGN=$ac_cv_path_CODESIGN 24359 if test -n "$CODESIGN"; then 24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24361 $as_echo "$CODESIGN" >&6; } 24362 else 24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24364 $as_echo "no" >&6; } 24365 fi 24366 24367 24368 if test "x$CODESIGN" = x; then 24369 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24370 fi 24371 else 24372 # Otherwise we believe it is a complete path. Use it as it is. 24373 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 24374 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 24375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24376 $as_echo_n "checking for CODESIGN... " >&6; } 24377 if test ! -x "$tool_specified"; then 24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24379 $as_echo "not found" >&6; } 24380 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 24381 fi 24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24383 $as_echo "$tool_specified" >&6; } 24384 fi 24385 fi 24386 fi 24387 24388 fi 24389 24390 24391 if test "x$CODESIGN" != "x"; then 24392 # Verify that the openjdk_codesign certificate is present 24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 24394 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 24395 $RM codesign-testfile 24396 $TOUCH codesign-testfile 24397 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 24398 $RM codesign-testfile 24399 if test "x$CODESIGN" = x; then 24400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24401 $as_echo "no" >&6; } 24402 else 24403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24404 $as_echo "yes" >&6; } 24405 fi 24406 fi 24407 24408 24409 24410 # Publish this variable in the help. 24411 24412 24413 if [ -z "${SETFILE+x}" ]; then 24414 # The variable is not set by user, try to locate tool using the code snippet 24415 for ac_prog in SetFile 24416 do 24417 # Extract the first word of "$ac_prog", so it can be a program name with args. 24418 set dummy $ac_prog; ac_word=$2 24419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24420 $as_echo_n "checking for $ac_word... " >&6; } 24421 if ${ac_cv_path_SETFILE+:} false; then : 24422 $as_echo_n "(cached) " >&6 24423 else 24424 case $SETFILE in 24425 [\\/]* | ?:[\\/]*) 24426 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24427 ;; 24428 *) 24429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24430 for as_dir in $PATH 24431 do 24432 IFS=$as_save_IFS 24433 test -z "$as_dir" && as_dir=. 24434 for ac_exec_ext in '' $ac_executable_extensions; do 24435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24436 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24438 break 2 24439 fi 24440 done 24441 done 24442 IFS=$as_save_IFS 24443 24444 ;; 24445 esac 24446 fi 24447 SETFILE=$ac_cv_path_SETFILE 24448 if test -n "$SETFILE"; then 24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24450 $as_echo "$SETFILE" >&6; } 24451 else 24452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24453 $as_echo "no" >&6; } 24454 fi 24455 24456 24457 test -n "$SETFILE" && break 24458 done 24459 24460 else 24461 # The variable is set, but is it from the command line or the environment? 24462 24463 # Try to remove the string !SETFILE! from our list. 24464 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 24465 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24466 # If it failed, the variable was not from the command line. Ignore it, 24467 # but warn the user (except for BASH, which is always set by the calling BASH). 24468 if test "xSETFILE" != xBASH; then 24469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 24470 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 24471 fi 24472 # Try to locate tool using the code snippet 24473 for ac_prog in SetFile 24474 do 24475 # Extract the first word of "$ac_prog", so it can be a program name with args. 24476 set dummy $ac_prog; ac_word=$2 24477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24478 $as_echo_n "checking for $ac_word... " >&6; } 24479 if ${ac_cv_path_SETFILE+:} false; then : 24480 $as_echo_n "(cached) " >&6 24481 else 24482 case $SETFILE in 24483 [\\/]* | ?:[\\/]*) 24484 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24485 ;; 24486 *) 24487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24488 for as_dir in $PATH 24489 do 24490 IFS=$as_save_IFS 24491 test -z "$as_dir" && as_dir=. 24492 for ac_exec_ext in '' $ac_executable_extensions; do 24493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24494 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24496 break 2 24497 fi 24498 done 24499 done 24500 IFS=$as_save_IFS 24501 24502 ;; 24503 esac 24504 fi 24505 SETFILE=$ac_cv_path_SETFILE 24506 if test -n "$SETFILE"; then 24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24508 $as_echo "$SETFILE" >&6; } 24509 else 24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24511 $as_echo "no" >&6; } 24512 fi 24513 24514 24515 test -n "$SETFILE" && break 24516 done 24517 24518 else 24519 # If it succeeded, then it was overridden by the user. We will use it 24520 # for the tool. 24521 24522 # First remove it from the list of overridden variables, so we can test 24523 # for unknown variables in the end. 24524 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24525 24526 # Check if we try to supply an empty value 24527 if test "x$SETFILE" = x; then 24528 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 24529 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 24530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24531 $as_echo_n "checking for SETFILE... " >&6; } 24532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24533 $as_echo "disabled" >&6; } 24534 else 24535 # Check if the provided tool contains a complete path. 24536 tool_specified="$SETFILE" 24537 tool_basename="${tool_specified##*/}" 24538 if test "x$tool_basename" = "x$tool_specified"; then 24539 # A command without a complete path is provided, search $PATH. 24540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 24541 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 24542 # Extract the first word of "$tool_basename", so it can be a program name with args. 24543 set dummy $tool_basename; ac_word=$2 24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24545 $as_echo_n "checking for $ac_word... " >&6; } 24546 if ${ac_cv_path_SETFILE+:} false; then : 24547 $as_echo_n "(cached) " >&6 24548 else 24549 case $SETFILE in 24550 [\\/]* | ?:[\\/]*) 24551 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24552 ;; 24553 *) 24554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24555 for as_dir in $PATH 24556 do 24557 IFS=$as_save_IFS 24558 test -z "$as_dir" && as_dir=. 24559 for ac_exec_ext in '' $ac_executable_extensions; do 24560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24561 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24563 break 2 24564 fi 24565 done 24566 done 24567 IFS=$as_save_IFS 24568 24569 ;; 24570 esac 24571 fi 24572 SETFILE=$ac_cv_path_SETFILE 24573 if test -n "$SETFILE"; then 24574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24575 $as_echo "$SETFILE" >&6; } 24576 else 24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24578 $as_echo "no" >&6; } 24579 fi 24580 24581 24582 if test "x$SETFILE" = x; then 24583 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24584 fi 24585 else 24586 # Otherwise we believe it is a complete path. Use it as it is. 24587 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24588 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24590 $as_echo_n "checking for SETFILE... " >&6; } 24591 if test ! -x "$tool_specified"; then 24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24593 $as_echo "not found" >&6; } 24594 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24595 fi 24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24597 $as_echo "$tool_specified" >&6; } 24598 fi 24599 fi 24600 fi 24601 24602 fi 24603 24604 24605 24606 if test "x$SETFILE" = x; then 24607 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24608 fi 24609 24610 24611 fi 24612 24613 24614 # Check bash version 24615 # Extra [ ] to stop m4 mangling 24616 BASH_VER=`$BASH --version | $SED -n -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'` 24617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5 24618 $as_echo_n "checking bash version... " >&6; } 24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5 24620 $as_echo "$BASH_VER" >&6; } 24621 24622 BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1` 24623 BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2` 24624 if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then 24625 as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5 24626 fi 24627 24628 # Test if bash supports pipefail. 24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24630 $as_echo_n "checking if bash supports pipefail... " >&6; } 24631 if ${BASH} -c 'set -o pipefail'; then 24632 BASH_ARGS="$BASH_ARGS -o pipefail" 24633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24634 $as_echo "yes" >&6; } 24635 else 24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24637 $as_echo "no" >&6; } 24638 fi 24639 24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24641 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24642 if ${BASH} -e -c 'true'; then 24643 BASH_ARGS="$BASH_ARGS -e" 24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24645 $as_echo "yes" >&6; } 24646 else 24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24648 $as_echo "no" >&6; } 24649 fi 24650 24651 24652 24653 24654 # Check if pkg-config is available. 24655 24656 24657 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24658 if test -n "$ac_tool_prefix"; then 24659 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24660 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24662 $as_echo_n "checking for $ac_word... " >&6; } 24663 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24664 $as_echo_n "(cached) " >&6 24665 else 24666 case $PKG_CONFIG in 24667 [\\/]* | ?:[\\/]*) 24668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24669 ;; 24670 *) 24671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24672 for as_dir in $PATH 24673 do 24674 IFS=$as_save_IFS 24675 test -z "$as_dir" && as_dir=. 24676 for ac_exec_ext in '' $ac_executable_extensions; do 24677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24680 break 2 24681 fi 24682 done 24683 done 24684 IFS=$as_save_IFS 24685 24686 ;; 24687 esac 24688 fi 24689 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24690 if test -n "$PKG_CONFIG"; then 24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24692 $as_echo "$PKG_CONFIG" >&6; } 24693 else 24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24695 $as_echo "no" >&6; } 24696 fi 24697 24698 24699 fi 24700 if test -z "$ac_cv_path_PKG_CONFIG"; then 24701 ac_pt_PKG_CONFIG=$PKG_CONFIG 24702 # Extract the first word of "pkg-config", so it can be a program name with args. 24703 set dummy pkg-config; ac_word=$2 24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24705 $as_echo_n "checking for $ac_word... " >&6; } 24706 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24707 $as_echo_n "(cached) " >&6 24708 else 24709 case $ac_pt_PKG_CONFIG in 24710 [\\/]* | ?:[\\/]*) 24711 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24712 ;; 24713 *) 24714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24715 for as_dir in $PATH 24716 do 24717 IFS=$as_save_IFS 24718 test -z "$as_dir" && as_dir=. 24719 for ac_exec_ext in '' $ac_executable_extensions; do 24720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24721 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24723 break 2 24724 fi 24725 done 24726 done 24727 IFS=$as_save_IFS 24728 24729 ;; 24730 esac 24731 fi 24732 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24733 if test -n "$ac_pt_PKG_CONFIG"; then 24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24735 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24736 else 24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24738 $as_echo "no" >&6; } 24739 fi 24740 24741 if test "x$ac_pt_PKG_CONFIG" = x; then 24742 PKG_CONFIG="" 24743 else 24744 case $cross_compiling:$ac_tool_warned in 24745 yes:) 24746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24748 ac_tool_warned=yes ;; 24749 esac 24750 PKG_CONFIG=$ac_pt_PKG_CONFIG 24751 fi 24752 else 24753 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24754 fi 24755 24756 fi 24757 if test -n "$PKG_CONFIG"; then 24758 _pkg_min_version=0.9.0 24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24760 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24761 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24763 $as_echo "yes" >&6; } 24764 else 24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24766 $as_echo "no" >&6; } 24767 PKG_CONFIG="" 24768 fi 24769 24770 fi 24771 24772 # After basic tools have been setup, we can check build os specific details. 24773 24774 ############################################################################### 24775 24776 # Note that this is the build platform OS version! 24777 24778 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24779 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24780 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24781 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24782 24783 24784 24785 24786 24787 # Misc basic settings 24788 24789 24790 # Check whether --with-default-make-target was given. 24791 if test "${with_default_make_target+set}" = set; then : 24792 withval=$with_default_make_target; 24793 fi 24794 24795 if test "x$with_default_make_target" = "x" \ 24796 || test "x$with_default_make_target" = "xyes"; then 24797 DEFAULT_MAKE_TARGET="exploded-image" 24798 elif test "x$with_default_make_target" = "xno"; then 24799 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24800 else 24801 DEFAULT_MAKE_TARGET="$with_default_make_target" 24802 fi 24803 24804 24805 24806 24807 ############################################################################### 24808 # 24809 # Determine OpenJDK variants, options and version numbers. 24810 # 24811 ############################################################################### 24812 24813 # We need build & target for this. 24814 24815 # Should we build a JDK without a graphical UI? 24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 24817 $as_echo_n "checking headless only... " >&6; } 24818 # Check whether --enable-headless-only was given. 24819 if test "${enable_headless_only+set}" = set; then : 24820 enableval=$enable_headless_only; 24821 fi 24822 24823 24824 if test "x$enable_headless_only" = "xyes"; then 24825 ENABLE_HEADLESS_ONLY="true" 24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24827 $as_echo "yes" >&6; } 24828 elif test "x$enable_headless_only" = "xno"; then 24829 ENABLE_HEADLESS_ONLY="false" 24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24831 $as_echo "no" >&6; } 24832 elif test "x$enable_headless_only" = "x"; then 24833 ENABLE_HEADLESS_ONLY="false" 24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24835 $as_echo "no" >&6; } 24836 else 24837 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 24838 fi 24839 24840 24841 24842 # Should we build the complete docs, or just a lightweight version? 24843 # Check whether --enable-full-docs was given. 24844 if test "${enable_full_docs+set}" = set; then : 24845 enableval=$enable_full_docs; 24846 fi 24847 24848 24849 # Verify dependencies 24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5 24851 $as_echo_n "checking for graphviz dot... " >&6; } 24852 if test "x$DOT" != "x"; then 24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24854 $as_echo "yes" >&6; } 24855 else 24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24857 $as_echo "no, cannot generate full docs" >&6; } 24858 FULL_DOCS_DEP_MISSING=true 24859 fi 24860 24861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5 24862 $as_echo_n "checking for pandoc... " >&6; } 24863 if test "x$PANDOC" != "x"; then 24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24865 $as_echo "yes" >&6; } 24866 else 24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24868 $as_echo "no, cannot generate full docs" >&6; } 24869 FULL_DOCS_DEP_MISSING=true 24870 fi 24871 24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5 24873 $as_echo_n "checking full docs... " >&6; } 24874 if test "x$enable_full_docs" = xyes; then 24875 if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then 24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 24877 $as_echo "no, missing dependencies" >&6; } 24878 24879 # Print a helpful message on how to acquire the necessary build dependency. 24880 # dot is the help tag: freetype, cups, alsa etc 24881 MISSING_DEPENDENCY=dot 24882 24883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24884 cygwin_help $MISSING_DEPENDENCY 24885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24886 msys_help $MISSING_DEPENDENCY 24887 else 24888 PKGHANDLER_COMMAND= 24889 24890 case $PKGHANDLER in 24891 apt-get) 24892 apt_help $MISSING_DEPENDENCY ;; 24893 yum) 24894 yum_help $MISSING_DEPENDENCY ;; 24895 brew) 24896 brew_help $MISSING_DEPENDENCY ;; 24897 port) 24898 port_help $MISSING_DEPENDENCY ;; 24899 pkgutil) 24900 pkgutil_help $MISSING_DEPENDENCY ;; 24901 pkgadd) 24902 pkgadd_help $MISSING_DEPENDENCY ;; 24903 esac 24904 24905 if test "x$PKGHANDLER_COMMAND" != x; then 24906 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24907 fi 24908 fi 24909 24910 as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 24911 else 24912 ENABLE_FULL_DOCS=true 24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 24914 $as_echo "yes, forced" >&6; } 24915 fi 24916 elif test "x$enable_full_docs" = xno; then 24917 ENABLE_FULL_DOCS=false 24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 24919 $as_echo "no, forced" >&6; } 24920 elif test "x$enable_full_docs" = x; then 24921 # Check for prerequisites 24922 if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then 24923 ENABLE_FULL_DOCS=false 24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 24925 $as_echo "no, missing dependencies" >&6; } 24926 else 24927 ENABLE_FULL_DOCS=true 24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 24929 $as_echo "yes, dependencies present" >&6; } 24930 fi 24931 else 24932 as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5 24933 fi 24934 24935 24936 24937 # Choose cacerts source file 24938 24939 # Check whether --with-cacerts-file was given. 24940 if test "${with_cacerts_file+set}" = set; then : 24941 withval=$with_cacerts_file; 24942 fi 24943 24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5 24945 $as_echo_n "checking for cacerts file... " >&6; } 24946 if test "x$with_cacerts_file" == x; then 24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 24948 $as_echo "default" >&6; } 24949 else 24950 CACERTS_FILE=$with_cacerts_file 24951 if test ! -f "$CACERTS_FILE"; then 24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5 24953 $as_echo "fail" >&6; } 24954 as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5 24955 fi 24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5 24957 $as_echo "$CACERTS_FILE" >&6; } 24958 fi 24959 24960 24961 # Enable or disable unlimited crypto 24962 # Check whether --enable-unlimited-crypto was given. 24963 if test "${enable_unlimited_crypto+set}" = set; then : 24964 enableval=$enable_unlimited_crypto; 24965 else 24966 enable_unlimited_crypto=yes 24967 fi 24968 24969 if test "x$enable_unlimited_crypto" = "xyes"; then 24970 UNLIMITED_CRYPTO=true 24971 else 24972 UNLIMITED_CRYPTO=false 24973 fi 24974 24975 24976 # Should we build the serviceability agent (SA)? 24977 INCLUDE_SA=true 24978 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 24979 INCLUDE_SA=false 24980 fi 24981 if test "x$OPENJDK_TARGET_OS" = xaix ; then 24982 INCLUDE_SA=false 24983 fi 24984 24985 24986 # Compress jars 24987 COMPRESS_JARS=false 24988 24989 24990 24991 # Setup default copyright year. Mostly overridden when building close to a new year. 24992 24993 # Check whether --with-copyright-year was given. 24994 if test "${with_copyright_year+set}" = set; then : 24995 withval=$with_copyright_year; 24996 fi 24997 24998 if test "x$with_copyright_year" = xyes; then 24999 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 25000 elif test "x$with_copyright_year" != x; then 25001 COPYRIGHT_YEAR="$with_copyright_year" 25002 else 25003 COPYRIGHT_YEAR=`$DATE +'%Y'` 25004 fi 25005 25006 25007 25008 # Check whether --enable-keep-packaged-modules was given. 25009 if test "${enable_keep_packaged_modules+set}" = set; then : 25010 enableval=$enable_keep_packaged_modules; 25011 fi 25012 25013 25014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 25015 $as_echo_n "checking if packaged modules are kept... " >&6; } 25016 if test "x$enable_keep_packaged_modules" = "xyes"; then 25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25018 $as_echo "yes" >&6; } 25019 JLINK_KEEP_PACKAGED_MODULES=true 25020 elif test "x$enable_keep_packaged_modules" = "xno"; then 25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25022 $as_echo "no" >&6; } 25023 JLINK_KEEP_PACKAGED_MODULES=false 25024 elif test "x$enable_keep_packaged_modules" = "x"; then 25025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 25026 $as_echo "yes (default)" >&6; } 25027 JLINK_KEEP_PACKAGED_MODULES=true 25028 else 25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 25030 $as_echo "error" >&6; } 25031 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 25032 fi 25033 25034 25035 25036 25037 # Warn user that old version arguments are deprecated. 25038 25039 25040 # Check whether --with-milestone was given. 25041 if test "${with_milestone+set}" = set; then : 25042 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 25043 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 25044 fi 25045 25046 25047 25048 25049 # Check whether --with-update-version was given. 25050 if test "${with_update_version+set}" = set; then : 25051 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 25052 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 25053 fi 25054 25055 25056 25057 25058 # Check whether --with-user-release-suffix was given. 25059 if test "${with_user_release_suffix+set}" = set; then : 25060 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 25061 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 25062 fi 25063 25064 25065 25066 25067 # Check whether --with-build-number was given. 25068 if test "${with_build_number+set}" = set; then : 25069 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 25070 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 25071 fi 25072 25073 25074 25075 25076 # Check whether --with-version-major was given. 25077 if test "${with_version_major+set}" = set; then : 25078 withval=$with_version_major; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-major is deprecated and will be ignored." >&5 25079 $as_echo "$as_me: WARNING: Option --with-version-major is deprecated and will be ignored." >&2;} 25080 fi 25081 25082 25083 25084 25085 # Check whether --with-version-minor was given. 25086 if test "${with_version_minor+set}" = set; then : 25087 withval=$with_version_minor; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-minor is deprecated and will be ignored." >&5 25088 $as_echo "$as_me: WARNING: Option --with-version-minor is deprecated and will be ignored." >&2;} 25089 fi 25090 25091 25092 25093 25094 # Check whether --with-version-security was given. 25095 if test "${with_version_security+set}" = set; then : 25096 withval=$with_version_security; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-security is deprecated and will be ignored." >&5 25097 $as_echo "$as_me: WARNING: Option --with-version-security is deprecated and will be ignored." >&2;} 25098 fi 25099 25100 25101 25102 # Source the version numbers file 25103 . $AUTOCONF_DIR/version-numbers 25104 25105 # Some non-version number information is set in that file 25106 25107 25108 25109 25110 25111 25112 25113 25114 # The vendor name, if any 25115 25116 # Check whether --with-vendor-name was given. 25117 if test "${with_vendor_name+set}" = set; then : 25118 withval=$with_vendor_name; 25119 fi 25120 25121 if test "x$with_vendor_name" = xyes; then 25122 as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5 25123 elif ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then 25124 as_fn_error $? "--with--vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5 25125 else 25126 COMPANY_NAME="$with_vendor_name" 25127 fi 25128 25129 25130 # Override version from arguments 25131 25132 # If --with-version-string is set, process it first. It is possible to 25133 # override parts with more specific flags, since these are processed later. 25134 25135 # Check whether --with-version-string was given. 25136 if test "${with_version_string+set}" = set; then : 25137 withval=$with_version_string; 25138 fi 25139 25140 if test "x$with_version_string" = xyes; then 25141 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 25142 elif test "x$with_version_string" != x; then 25143 # Additional [] needed to keep m4 from mangling shell constructs. 25144 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 25145 VERSION_FEATURE=${BASH_REMATCH[1]} 25146 VERSION_INTERIM=${BASH_REMATCH[3]} 25147 VERSION_UPDATE=${BASH_REMATCH[5]} 25148 VERSION_PATCH=${BASH_REMATCH[7]} 25149 VERSION_PRE=${BASH_REMATCH[9]} 25150 version_plus_separator=${BASH_REMATCH[11]} 25151 VERSION_BUILD=${BASH_REMATCH[12]} 25152 VERSION_OPT=${BASH_REMATCH[14]} 25153 # Unspecified numerical fields are interpreted as 0. 25154 if test "x$VERSION_INTERIM" = x; then 25155 VERSION_INTERIM=0 25156 fi 25157 if test "x$VERSION_UPDATE" = x; then 25158 VERSION_UPDATE=0 25159 fi 25160 if test "x$VERSION_PATCH" = x; then 25161 VERSION_PATCH=0 25162 fi 25163 if test "x$version_plus_separator" != x \ 25164 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 25165 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 25166 fi 25167 # Stop the version part process from setting default values. 25168 # We still allow them to explicitly override though. 25169 NO_DEFAULT_VERSION_PARTS=true 25170 else 25171 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 25172 fi 25173 fi 25174 25175 25176 # Check whether --with-version-pre was given. 25177 if test "${with_version_pre+set}" = set; then : 25178 withval=$with_version_pre; with_version_pre_present=true 25179 else 25180 with_version_pre_present=false 25181 fi 25182 25183 25184 if test "x$with_version_pre_present" = xtrue; then 25185 if test "x$with_version_pre" = xyes; then 25186 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 25187 elif test "x$with_version_pre" = xno; then 25188 # Interpret --without-* as empty string instead of the literal "no" 25189 VERSION_PRE= 25190 else 25191 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 25192 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 25193 if test "x$VERSION_PRE" != "x$with_version_pre"; then 25194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 25195 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 25196 fi 25197 fi 25198 else 25199 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25200 # Default is to use "internal" as pre 25201 VERSION_PRE="internal" 25202 fi 25203 fi 25204 25205 25206 # Check whether --with-version-opt was given. 25207 if test "${with_version_opt+set}" = set; then : 25208 withval=$with_version_opt; with_version_opt_present=true 25209 else 25210 with_version_opt_present=false 25211 fi 25212 25213 25214 if test "x$with_version_opt_present" = xtrue; then 25215 if test "x$with_version_opt" = xyes; then 25216 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 25217 elif test "x$with_version_opt" = xno; then 25218 # Interpret --without-* as empty string instead of the literal "no" 25219 VERSION_OPT= 25220 else 25221 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 25222 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 25223 if test "x$VERSION_OPT" != "x$with_version_opt"; then 25224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 25225 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 25226 fi 25227 fi 25228 else 25229 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25230 # Default is to calculate a string like this 'adhoc.<username>.<base dir name>' 25231 # Outer [ ] to quote m4. 25232 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 25233 VERSION_OPT="adhoc.$USERNAME.$basedirname" 25234 fi 25235 fi 25236 25237 25238 # Check whether --with-version-build was given. 25239 if test "${with_version_build+set}" = set; then : 25240 withval=$with_version_build; with_version_build_present=true 25241 else 25242 with_version_build_present=false 25243 fi 25244 25245 25246 if test "x$with_version_build_present" = xtrue; then 25247 if test "x$with_version_build" = xyes; then 25248 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 25249 elif test "x$with_version_build" = xno; then 25250 # Interpret --without-* as empty string instead of the literal "no" 25251 VERSION_BUILD= 25252 elif test "x$with_version_build" = x; then 25253 VERSION_BUILD= 25254 else 25255 25256 # Additional [] needed to keep m4 from mangling shell constructs. 25257 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25258 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 25259 fi 25260 # Extract the version number without leading zeros. 25261 cleaned_value=${BASH_REMATCH[1]} 25262 if test "x$cleaned_value" = x; then 25263 # Special case for zero 25264 cleaned_value=${BASH_REMATCH[2]} 25265 fi 25266 25267 if test $cleaned_value -gt 255; then 25268 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 25269 fi 25270 if test "x$cleaned_value" != "x$with_version_build"; then 25271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 25272 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 25273 fi 25274 VERSION_BUILD=$cleaned_value 25275 25276 fi 25277 else 25278 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25279 # Default is to not have a build number. 25280 VERSION_BUILD="" 25281 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 25282 VERSION_BUILD=0 25283 fi 25284 fi 25285 25286 25287 # Check whether --with-version-feature was given. 25288 if test "${with_version_feature+set}" = set; then : 25289 withval=$with_version_feature; with_version_feature_present=true 25290 else 25291 with_version_feature_present=false 25292 fi 25293 25294 25295 if test "x$with_version_feature_present" = xtrue; then 25296 if test "x$with_version_feature" = xyes; then 25297 as_fn_error $? "--with-version-feature must have a value" "$LINENO" 5 25298 else 25299 25300 # Additional [] needed to keep m4 from mangling shell constructs. 25301 if ! [[ "$with_version_feature" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25302 as_fn_error $? "\"$with_version_feature\" is not a valid numerical value for VERSION_FEATURE" "$LINENO" 5 25303 fi 25304 # Extract the version number without leading zeros. 25305 cleaned_value=${BASH_REMATCH[1]} 25306 if test "x$cleaned_value" = x; then 25307 # Special case for zero 25308 cleaned_value=${BASH_REMATCH[2]} 25309 fi 25310 25311 if test $cleaned_value -gt 255; then 25312 as_fn_error $? "VERSION_FEATURE is given as $with_version_feature. This is greater than 255 which is not allowed." "$LINENO" 5 25313 fi 25314 if test "x$cleaned_value" != "x$with_version_feature"; then 25315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&5 25316 $as_echo "$as_me: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&2;} 25317 fi 25318 VERSION_FEATURE=$cleaned_value 25319 25320 fi 25321 else 25322 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25323 # Default is to get value from version-numbers 25324 VERSION_FEATURE="$DEFAULT_VERSION_FEATURE" 25325 fi 25326 fi 25327 25328 25329 # Check whether --with-version-interim was given. 25330 if test "${with_version_interim+set}" = set; then : 25331 withval=$with_version_interim; with_version_interim_present=true 25332 else 25333 with_version_interim_present=false 25334 fi 25335 25336 25337 if test "x$with_version_interim_present" = xtrue; then 25338 if test "x$with_version_interim" = xyes; then 25339 as_fn_error $? "--with-version-interim must have a value" "$LINENO" 5 25340 elif test "x$with_version_interim" = xno; then 25341 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25342 VERSION_INTERIM=0 25343 elif test "x$with_version_interim" = x; then 25344 VERSION_INTERIM=0 25345 else 25346 25347 # Additional [] needed to keep m4 from mangling shell constructs. 25348 if ! [[ "$with_version_interim" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25349 as_fn_error $? "\"$with_version_interim\" is not a valid numerical value for VERSION_INTERIM" "$LINENO" 5 25350 fi 25351 # Extract the version number without leading zeros. 25352 cleaned_value=${BASH_REMATCH[1]} 25353 if test "x$cleaned_value" = x; then 25354 # Special case for zero 25355 cleaned_value=${BASH_REMATCH[2]} 25356 fi 25357 25358 if test $cleaned_value -gt 255; then 25359 as_fn_error $? "VERSION_INTERIM is given as $with_version_interim. This is greater than 255 which is not allowed." "$LINENO" 5 25360 fi 25361 if test "x$cleaned_value" != "x$with_version_interim"; then 25362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&5 25363 $as_echo "$as_me: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&2;} 25364 fi 25365 VERSION_INTERIM=$cleaned_value 25366 25367 fi 25368 else 25369 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25370 # Default is 0, if unspecified 25371 VERSION_INTERIM=$DEFAULT_VERSION_INTERIM 25372 fi 25373 fi 25374 25375 25376 # Check whether --with-version-update was given. 25377 if test "${with_version_update+set}" = set; then : 25378 withval=$with_version_update; with_version_update_present=true 25379 else 25380 with_version_update_present=false 25381 fi 25382 25383 25384 if test "x$with_version_update_present" = xtrue; then 25385 if test "x$with_version_update" = xyes; then 25386 as_fn_error $? "--with-version-update must have a value" "$LINENO" 5 25387 elif test "x$with_version_update" = xno; then 25388 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25389 VERSION_UPDATE=0 25390 elif test "x$with_version_update" = x; then 25391 VERSION_UPDATE=0 25392 else 25393 25394 # Additional [] needed to keep m4 from mangling shell constructs. 25395 if ! [[ "$with_version_update" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25396 as_fn_error $? "\"$with_version_update\" is not a valid numerical value for VERSION_UPDATE" "$LINENO" 5 25397 fi 25398 # Extract the version number without leading zeros. 25399 cleaned_value=${BASH_REMATCH[1]} 25400 if test "x$cleaned_value" = x; then 25401 # Special case for zero 25402 cleaned_value=${BASH_REMATCH[2]} 25403 fi 25404 25405 if test $cleaned_value -gt 255; then 25406 as_fn_error $? "VERSION_UPDATE is given as $with_version_update. This is greater than 255 which is not allowed." "$LINENO" 5 25407 fi 25408 if test "x$cleaned_value" != "x$with_version_update"; then 25409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&5 25410 $as_echo "$as_me: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&2;} 25411 fi 25412 VERSION_UPDATE=$cleaned_value 25413 25414 fi 25415 else 25416 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25417 # Default is 0, if unspecified 25418 VERSION_UPDATE=$DEFAULT_VERSION_UPDATE 25419 fi 25420 fi 25421 25422 25423 # Check whether --with-version-patch was given. 25424 if test "${with_version_patch+set}" = set; then : 25425 withval=$with_version_patch; with_version_patch_present=true 25426 else 25427 with_version_patch_present=false 25428 fi 25429 25430 25431 if test "x$with_version_patch_present" = xtrue; then 25432 if test "x$with_version_patch" = xyes; then 25433 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 25434 elif test "x$with_version_patch" = xno; then 25435 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25436 VERSION_PATCH=0 25437 elif test "x$with_version_patch" = x; then 25438 VERSION_PATCH=0 25439 else 25440 25441 # Additional [] needed to keep m4 from mangling shell constructs. 25442 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25443 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 25444 fi 25445 # Extract the version number without leading zeros. 25446 cleaned_value=${BASH_REMATCH[1]} 25447 if test "x$cleaned_value" = x; then 25448 # Special case for zero 25449 cleaned_value=${BASH_REMATCH[2]} 25450 fi 25451 25452 if test $cleaned_value -gt 255; then 25453 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 25454 fi 25455 if test "x$cleaned_value" != "x$with_version_patch"; then 25456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 25457 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 25458 fi 25459 VERSION_PATCH=$cleaned_value 25460 25461 fi 25462 else 25463 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25464 # Default is 0, if unspecified 25465 VERSION_PATCH=$DEFAULT_VERSION_PATCH 25466 fi 25467 fi 25468 25469 # Calculate derived version properties 25470 25471 # Set VERSION_IS_GA based on if VERSION_PRE has a value 25472 if test "x$VERSION_PRE" = x; then 25473 VERSION_IS_GA=true 25474 else 25475 VERSION_IS_GA=false 25476 fi 25477 25478 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 25479 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH 25480 25481 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 25482 # Strip trailing zeroes from stripped_version_number 25483 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 25484 VERSION_NUMBER=$stripped_version_number 25485 25486 # The complete version string, with additional build information 25487 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 25488 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25489 else 25490 # If either build or opt is set, we need a + separator 25491 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 25492 fi 25493 25494 # The short version string, just VERSION_NUMBER and PRE, if present. 25495 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25496 25497 # The version date 25498 25499 # Check whether --with-version-date was given. 25500 if test "${with_version_date+set}" = set; then : 25501 withval=$with_version_date; 25502 fi 25503 25504 if test "x$with_version_date" = xyes; then 25505 as_fn_error $? "--with-version-date must have a value" "$LINENO" 5 25506 elif test "x$with_version_date" != x; then 25507 if ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ; then 25508 as_fn_error $? "\"$with_version_date\" is not a valid version date" "$LINENO" 5 25509 else 25510 VERSION_DATE="$with_version_date" 25511 fi 25512 else 25513 VERSION_DATE="$DEFAULT_VERSION_DATE" 25514 fi 25515 25516 # The vendor version string, if any 25517 25518 # Check whether --with-vendor-version-string was given. 25519 if test "${with_vendor_version_string+set}" = set; then : 25520 withval=$with_vendor_version_string; 25521 fi 25522 25523 if test "x$with_vendor_version_string" = xyes; then 25524 as_fn_error $? "--with-vendor-version-string must have a value" "$LINENO" 5 25525 elif ! [[ $with_vendor_version_string =~ ^[[:graph:]]*$ ]] ; then 25526 as_fn_error $? "--with--vendor-version-string contains non-graphical characters: $with_vendor_version_string" "$LINENO" 5 25527 else 25528 VENDOR_VERSION_STRING="$with_vendor_version_string" 25529 fi 25530 25531 # We could define --with flags for these, if really needed 25532 VERSION_CLASSFILE_MAJOR="$DEFAULT_VERSION_CLASSFILE_MAJOR" 25533 VERSION_CLASSFILE_MINOR="$DEFAULT_VERSION_CLASSFILE_MINOR" 25534 25535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 25536 $as_echo_n "checking for version string... " >&6; } 25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 25538 $as_echo "$VERSION_STRING" >&6; } 25539 25540 25541 25542 25543 25544 25545 25546 25547 25548 25549 25550 25551 25552 25553 25554 25555 25556 25557 25558 25559 ############################################################################### 25560 # 25561 # Setup BootJDK, used to bootstrap the build. 25562 # 25563 ############################################################################### 25564 25565 25566 BOOT_JDK_FOUND=no 25567 25568 # Check whether --with-boot-jdk was given. 25569 if test "${with_boot_jdk+set}" = set; then : 25570 withval=$with_boot_jdk; 25571 fi 25572 25573 25574 # We look for the Boot JDK through various means, going from more certain to 25575 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 25576 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 25577 # must check if this is indeed valid; otherwise we'll continue looking. 25578 25579 # Test: Is bootjdk explicitly set by command line arguments? 25580 25581 if test "x$BOOT_JDK_FOUND" = xno; then 25582 # Now execute the test 25583 25584 if test "x$with_boot_jdk" != x; then 25585 BOOT_JDK=$with_boot_jdk 25586 BOOT_JDK_FOUND=maybe 25587 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 25588 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 25589 fi 25590 25591 25592 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25593 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25594 # Do we have a bin/java? 25595 if test ! -x "$BOOT_JDK/bin/java"; then 25596 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25597 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25598 BOOT_JDK_FOUND=no 25599 else 25600 # Do we have a bin/javac? 25601 if test ! -x "$BOOT_JDK/bin/javac"; then 25602 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25603 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25604 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25605 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25606 BOOT_JDK_FOUND=no 25607 else 25608 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25609 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25610 25611 # Extra M4 quote needed to protect [] in grep expression. 25612 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25613 if test "x$FOUND_CORRECT_VERSION" = x; then 25614 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25615 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25616 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25617 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25618 BOOT_JDK_FOUND=no 25619 else 25620 # We're done! :-) 25621 BOOT_JDK_FOUND=yes 25622 25623 # Only process if variable expands to non-empty 25624 25625 if test "x$BOOT_JDK" != x; then 25626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25627 25628 # Input might be given as Windows format, start by converting to 25629 # unix format. 25630 path="$BOOT_JDK" 25631 new_path=`$CYGPATH -u "$path"` 25632 25633 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25634 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25635 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25636 # "foo.exe" is OK but "foo" is an error. 25637 # 25638 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25639 # It is also a way to make sure we got the proper file name for the real test later on. 25640 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25641 if test "x$test_shortpath" = x; then 25642 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25643 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25644 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25645 fi 25646 25647 # Call helper function which possibly converts this using DOS-style short mode. 25648 # If so, the updated path is stored in $new_path. 25649 25650 input_path="$new_path" 25651 # Check if we need to convert this using DOS-style short mode. If the path 25652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25653 # take no chances and rewrite it. 25654 # Note: m4 eats our [], so we need to use [ and ] instead. 25655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25656 if test "x$has_forbidden_chars" != x; then 25657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25658 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25659 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25660 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25661 # Going to short mode and back again did indeed matter. Since short mode is 25662 # case insensitive, let's make it lowercase to improve readability. 25663 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25664 # Now convert it back to Unix-style (cygpath) 25665 input_path=`$CYGPATH -u "$shortmode_path"` 25666 new_path="$input_path" 25667 fi 25668 fi 25669 25670 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25671 if test "x$test_cygdrive_prefix" = x; then 25672 # As a simple fix, exclude /usr/bin since it's not a real path. 25673 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25674 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25675 # a path prefixed by /cygdrive for fixpath to work. 25676 new_path="$CYGWIN_ROOT_PATH$input_path" 25677 fi 25678 fi 25679 25680 25681 if test "x$path" != "x$new_path"; then 25682 BOOT_JDK="$new_path" 25683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25684 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25685 fi 25686 25687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25688 25689 path="$BOOT_JDK" 25690 has_colon=`$ECHO $path | $GREP ^.:` 25691 new_path="$path" 25692 if test "x$has_colon" = x; then 25693 # Not in mixed or Windows style, start by that. 25694 new_path=`cmd //c echo $path` 25695 fi 25696 25697 25698 input_path="$new_path" 25699 # Check if we need to convert this using DOS-style short mode. If the path 25700 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25701 # take no chances and rewrite it. 25702 # Note: m4 eats our [], so we need to use [ and ] instead. 25703 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25704 if test "x$has_forbidden_chars" != x; then 25705 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25706 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25707 fi 25708 25709 25710 windows_path="$new_path" 25711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25712 unix_path=`$CYGPATH -u "$windows_path"` 25713 new_path="$unix_path" 25714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25715 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25716 new_path="$unix_path" 25717 fi 25718 25719 if test "x$path" != "x$new_path"; then 25720 BOOT_JDK="$new_path" 25721 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25722 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25723 fi 25724 25725 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25726 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25727 25728 else 25729 # We're on a unix platform. Hooray! :) 25730 path="$BOOT_JDK" 25731 has_space=`$ECHO "$path" | $GREP " "` 25732 if test "x$has_space" != x; then 25733 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25734 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25735 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25736 fi 25737 25738 # Use eval to expand a potential ~ 25739 eval path="$path" 25740 if test ! -f "$path" && test ! -d "$path"; then 25741 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25742 fi 25743 25744 if test -d "$path"; then 25745 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25746 else 25747 dir="`$DIRNAME "$path"`" 25748 base="`$BASENAME "$path"`" 25749 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25750 fi 25751 fi 25752 fi 25753 25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25755 $as_echo_n "checking for Boot JDK... " >&6; } 25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25757 $as_echo "$BOOT_JDK" >&6; } 25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25759 $as_echo_n "checking Boot JDK version... " >&6; } 25760 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25762 $as_echo "$BOOT_JDK_VERSION" >&6; } 25763 fi # end check jdk version 25764 fi # end check javac 25765 fi # end check java 25766 fi # end check boot jdk found 25767 fi 25768 25769 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25770 # Having specified an argument which is incorrect will produce an instant failure; 25771 # we should not go on looking 25772 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25773 fi 25774 25775 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25776 25777 if test "x$BOOT_JDK_FOUND" = xno; then 25778 # Now execute the test 25779 25780 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25781 # First check at user selected default 25782 25783 if test "x$BOOT_JDK_FOUND" = xno; then 25784 # Now execute the test 25785 25786 if test -x /usr/libexec/java_home; then 25787 BOOT_JDK=`/usr/libexec/java_home ` 25788 BOOT_JDK_FOUND=maybe 25789 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25790 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25791 fi 25792 25793 25794 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25795 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25796 # Do we have a bin/java? 25797 if test ! -x "$BOOT_JDK/bin/java"; then 25798 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25799 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25800 BOOT_JDK_FOUND=no 25801 else 25802 # Do we have a bin/javac? 25803 if test ! -x "$BOOT_JDK/bin/javac"; then 25804 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25805 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25806 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25807 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25808 BOOT_JDK_FOUND=no 25809 else 25810 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25811 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25812 25813 # Extra M4 quote needed to protect [] in grep expression. 25814 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25815 if test "x$FOUND_CORRECT_VERSION" = x; then 25816 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25817 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25818 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25819 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25820 BOOT_JDK_FOUND=no 25821 else 25822 # We're done! :-) 25823 BOOT_JDK_FOUND=yes 25824 25825 # Only process if variable expands to non-empty 25826 25827 if test "x$BOOT_JDK" != x; then 25828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25829 25830 # Input might be given as Windows format, start by converting to 25831 # unix format. 25832 path="$BOOT_JDK" 25833 new_path=`$CYGPATH -u "$path"` 25834 25835 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25836 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25837 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25838 # "foo.exe" is OK but "foo" is an error. 25839 # 25840 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25841 # It is also a way to make sure we got the proper file name for the real test later on. 25842 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25843 if test "x$test_shortpath" = x; then 25844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25845 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25846 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25847 fi 25848 25849 # Call helper function which possibly converts this using DOS-style short mode. 25850 # If so, the updated path is stored in $new_path. 25851 25852 input_path="$new_path" 25853 # Check if we need to convert this using DOS-style short mode. If the path 25854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25855 # take no chances and rewrite it. 25856 # Note: m4 eats our [], so we need to use [ and ] instead. 25857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25858 if test "x$has_forbidden_chars" != x; then 25859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25860 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25861 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25862 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25863 # Going to short mode and back again did indeed matter. Since short mode is 25864 # case insensitive, let's make it lowercase to improve readability. 25865 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25866 # Now convert it back to Unix-style (cygpath) 25867 input_path=`$CYGPATH -u "$shortmode_path"` 25868 new_path="$input_path" 25869 fi 25870 fi 25871 25872 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25873 if test "x$test_cygdrive_prefix" = x; then 25874 # As a simple fix, exclude /usr/bin since it's not a real path. 25875 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25876 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25877 # a path prefixed by /cygdrive for fixpath to work. 25878 new_path="$CYGWIN_ROOT_PATH$input_path" 25879 fi 25880 fi 25881 25882 25883 if test "x$path" != "x$new_path"; then 25884 BOOT_JDK="$new_path" 25885 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25886 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25887 fi 25888 25889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25890 25891 path="$BOOT_JDK" 25892 has_colon=`$ECHO $path | $GREP ^.:` 25893 new_path="$path" 25894 if test "x$has_colon" = x; then 25895 # Not in mixed or Windows style, start by that. 25896 new_path=`cmd //c echo $path` 25897 fi 25898 25899 25900 input_path="$new_path" 25901 # Check if we need to convert this using DOS-style short mode. If the path 25902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25903 # take no chances and rewrite it. 25904 # Note: m4 eats our [], so we need to use [ and ] instead. 25905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25906 if test "x$has_forbidden_chars" != x; then 25907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25908 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25909 fi 25910 25911 25912 windows_path="$new_path" 25913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25914 unix_path=`$CYGPATH -u "$windows_path"` 25915 new_path="$unix_path" 25916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25917 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25918 new_path="$unix_path" 25919 fi 25920 25921 if test "x$path" != "x$new_path"; then 25922 BOOT_JDK="$new_path" 25923 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25924 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25925 fi 25926 25927 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25928 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25929 25930 else 25931 # We're on a unix platform. Hooray! :) 25932 path="$BOOT_JDK" 25933 has_space=`$ECHO "$path" | $GREP " "` 25934 if test "x$has_space" != x; then 25935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25936 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25937 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25938 fi 25939 25940 # Use eval to expand a potential ~ 25941 eval path="$path" 25942 if test ! -f "$path" && test ! -d "$path"; then 25943 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25944 fi 25945 25946 if test -d "$path"; then 25947 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25948 else 25949 dir="`$DIRNAME "$path"`" 25950 base="`$BASENAME "$path"`" 25951 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25952 fi 25953 fi 25954 fi 25955 25956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25957 $as_echo_n "checking for Boot JDK... " >&6; } 25958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25959 $as_echo "$BOOT_JDK" >&6; } 25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25961 $as_echo_n "checking Boot JDK version... " >&6; } 25962 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25964 $as_echo "$BOOT_JDK_VERSION" >&6; } 25965 fi # end check jdk version 25966 fi # end check javac 25967 fi # end check java 25968 fi # end check boot jdk found 25969 fi 25970 25971 # If that did not work out (e.g. too old), try explicit versions instead 25972 25973 if test "x$BOOT_JDK_FOUND" = xno; then 25974 # Now execute the test 25975 25976 if test -x /usr/libexec/java_home; then 25977 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 25978 BOOT_JDK_FOUND=maybe 25979 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 25980 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 25981 fi 25982 25983 25984 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25985 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25986 # Do we have a bin/java? 25987 if test ! -x "$BOOT_JDK/bin/java"; then 25988 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25989 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25990 BOOT_JDK_FOUND=no 25991 else 25992 # Do we have a bin/javac? 25993 if test ! -x "$BOOT_JDK/bin/javac"; then 25994 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25995 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25996 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25997 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25998 BOOT_JDK_FOUND=no 25999 else 26000 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26001 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26002 26003 # Extra M4 quote needed to protect [] in grep expression. 26004 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26005 if test "x$FOUND_CORRECT_VERSION" = x; then 26006 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26007 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26008 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26009 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26010 BOOT_JDK_FOUND=no 26011 else 26012 # We're done! :-) 26013 BOOT_JDK_FOUND=yes 26014 26015 # Only process if variable expands to non-empty 26016 26017 if test "x$BOOT_JDK" != x; then 26018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26019 26020 # Input might be given as Windows format, start by converting to 26021 # unix format. 26022 path="$BOOT_JDK" 26023 new_path=`$CYGPATH -u "$path"` 26024 26025 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26026 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26027 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26028 # "foo.exe" is OK but "foo" is an error. 26029 # 26030 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26031 # It is also a way to make sure we got the proper file name for the real test later on. 26032 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26033 if test "x$test_shortpath" = x; then 26034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26035 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26036 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26037 fi 26038 26039 # Call helper function which possibly converts this using DOS-style short mode. 26040 # If so, the updated path is stored in $new_path. 26041 26042 input_path="$new_path" 26043 # Check if we need to convert this using DOS-style short mode. If the path 26044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26045 # take no chances and rewrite it. 26046 # Note: m4 eats our [], so we need to use [ and ] instead. 26047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26048 if test "x$has_forbidden_chars" != x; then 26049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26050 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26051 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26052 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26053 # Going to short mode and back again did indeed matter. Since short mode is 26054 # case insensitive, let's make it lowercase to improve readability. 26055 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26056 # Now convert it back to Unix-style (cygpath) 26057 input_path=`$CYGPATH -u "$shortmode_path"` 26058 new_path="$input_path" 26059 fi 26060 fi 26061 26062 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26063 if test "x$test_cygdrive_prefix" = x; then 26064 # As a simple fix, exclude /usr/bin since it's not a real path. 26065 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26066 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26067 # a path prefixed by /cygdrive for fixpath to work. 26068 new_path="$CYGWIN_ROOT_PATH$input_path" 26069 fi 26070 fi 26071 26072 26073 if test "x$path" != "x$new_path"; then 26074 BOOT_JDK="$new_path" 26075 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26076 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26077 fi 26078 26079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26080 26081 path="$BOOT_JDK" 26082 has_colon=`$ECHO $path | $GREP ^.:` 26083 new_path="$path" 26084 if test "x$has_colon" = x; then 26085 # Not in mixed or Windows style, start by that. 26086 new_path=`cmd //c echo $path` 26087 fi 26088 26089 26090 input_path="$new_path" 26091 # Check if we need to convert this using DOS-style short mode. If the path 26092 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26093 # take no chances and rewrite it. 26094 # Note: m4 eats our [], so we need to use [ and ] instead. 26095 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26096 if test "x$has_forbidden_chars" != x; then 26097 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26098 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26099 fi 26100 26101 26102 windows_path="$new_path" 26103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26104 unix_path=`$CYGPATH -u "$windows_path"` 26105 new_path="$unix_path" 26106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26108 new_path="$unix_path" 26109 fi 26110 26111 if test "x$path" != "x$new_path"; then 26112 BOOT_JDK="$new_path" 26113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26114 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26115 fi 26116 26117 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26118 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26119 26120 else 26121 # We're on a unix platform. Hooray! :) 26122 path="$BOOT_JDK" 26123 has_space=`$ECHO "$path" | $GREP " "` 26124 if test "x$has_space" != x; then 26125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26126 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26127 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26128 fi 26129 26130 # Use eval to expand a potential ~ 26131 eval path="$path" 26132 if test ! -f "$path" && test ! -d "$path"; then 26133 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26134 fi 26135 26136 if test -d "$path"; then 26137 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26138 else 26139 dir="`$DIRNAME "$path"`" 26140 base="`$BASENAME "$path"`" 26141 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26142 fi 26143 fi 26144 fi 26145 26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26147 $as_echo_n "checking for Boot JDK... " >&6; } 26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26149 $as_echo "$BOOT_JDK" >&6; } 26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26151 $as_echo_n "checking Boot JDK version... " >&6; } 26152 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26154 $as_echo "$BOOT_JDK_VERSION" >&6; } 26155 fi # end check jdk version 26156 fi # end check javac 26157 fi # end check java 26158 fi # end check boot jdk found 26159 fi 26160 26161 26162 if test "x$BOOT_JDK_FOUND" = xno; then 26163 # Now execute the test 26164 26165 if test -x /usr/libexec/java_home; then 26166 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 26167 BOOT_JDK_FOUND=maybe 26168 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 26169 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 26170 fi 26171 26172 26173 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26174 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26175 # Do we have a bin/java? 26176 if test ! -x "$BOOT_JDK/bin/java"; then 26177 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26178 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26179 BOOT_JDK_FOUND=no 26180 else 26181 # Do we have a bin/javac? 26182 if test ! -x "$BOOT_JDK/bin/javac"; then 26183 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26184 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26185 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26186 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26187 BOOT_JDK_FOUND=no 26188 else 26189 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26190 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26191 26192 # Extra M4 quote needed to protect [] in grep expression. 26193 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26194 if test "x$FOUND_CORRECT_VERSION" = x; then 26195 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26196 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26197 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26198 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26199 BOOT_JDK_FOUND=no 26200 else 26201 # We're done! :-) 26202 BOOT_JDK_FOUND=yes 26203 26204 # Only process if variable expands to non-empty 26205 26206 if test "x$BOOT_JDK" != x; then 26207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26208 26209 # Input might be given as Windows format, start by converting to 26210 # unix format. 26211 path="$BOOT_JDK" 26212 new_path=`$CYGPATH -u "$path"` 26213 26214 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26215 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26216 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26217 # "foo.exe" is OK but "foo" is an error. 26218 # 26219 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26220 # It is also a way to make sure we got the proper file name for the real test later on. 26221 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26222 if test "x$test_shortpath" = x; then 26223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26224 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26225 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26226 fi 26227 26228 # Call helper function which possibly converts this using DOS-style short mode. 26229 # If so, the updated path is stored in $new_path. 26230 26231 input_path="$new_path" 26232 # Check if we need to convert this using DOS-style short mode. If the path 26233 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26234 # take no chances and rewrite it. 26235 # Note: m4 eats our [], so we need to use [ and ] instead. 26236 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26237 if test "x$has_forbidden_chars" != x; then 26238 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26239 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26240 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26241 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26242 # Going to short mode and back again did indeed matter. Since short mode is 26243 # case insensitive, let's make it lowercase to improve readability. 26244 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26245 # Now convert it back to Unix-style (cygpath) 26246 input_path=`$CYGPATH -u "$shortmode_path"` 26247 new_path="$input_path" 26248 fi 26249 fi 26250 26251 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26252 if test "x$test_cygdrive_prefix" = x; then 26253 # As a simple fix, exclude /usr/bin since it's not a real path. 26254 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26255 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26256 # a path prefixed by /cygdrive for fixpath to work. 26257 new_path="$CYGWIN_ROOT_PATH$input_path" 26258 fi 26259 fi 26260 26261 26262 if test "x$path" != "x$new_path"; then 26263 BOOT_JDK="$new_path" 26264 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26265 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26266 fi 26267 26268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26269 26270 path="$BOOT_JDK" 26271 has_colon=`$ECHO $path | $GREP ^.:` 26272 new_path="$path" 26273 if test "x$has_colon" = x; then 26274 # Not in mixed or Windows style, start by that. 26275 new_path=`cmd //c echo $path` 26276 fi 26277 26278 26279 input_path="$new_path" 26280 # Check if we need to convert this using DOS-style short mode. If the path 26281 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26282 # take no chances and rewrite it. 26283 # Note: m4 eats our [], so we need to use [ and ] instead. 26284 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26285 if test "x$has_forbidden_chars" != x; then 26286 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26287 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26288 fi 26289 26290 26291 windows_path="$new_path" 26292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26293 unix_path=`$CYGPATH -u "$windows_path"` 26294 new_path="$unix_path" 26295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26296 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26297 new_path="$unix_path" 26298 fi 26299 26300 if test "x$path" != "x$new_path"; then 26301 BOOT_JDK="$new_path" 26302 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26303 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26304 fi 26305 26306 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26307 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26308 26309 else 26310 # We're on a unix platform. Hooray! :) 26311 path="$BOOT_JDK" 26312 has_space=`$ECHO "$path" | $GREP " "` 26313 if test "x$has_space" != x; then 26314 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26315 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26316 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26317 fi 26318 26319 # Use eval to expand a potential ~ 26320 eval path="$path" 26321 if test ! -f "$path" && test ! -d "$path"; then 26322 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26323 fi 26324 26325 if test -d "$path"; then 26326 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26327 else 26328 dir="`$DIRNAME "$path"`" 26329 base="`$BASENAME "$path"`" 26330 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26331 fi 26332 fi 26333 fi 26334 26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26336 $as_echo_n "checking for Boot JDK... " >&6; } 26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26338 $as_echo "$BOOT_JDK" >&6; } 26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26340 $as_echo_n "checking Boot JDK version... " >&6; } 26341 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26343 $as_echo "$BOOT_JDK_VERSION" >&6; } 26344 fi # end check jdk version 26345 fi # end check javac 26346 fi # end check java 26347 fi # end check boot jdk found 26348 fi 26349 26350 26351 if test "x$BOOT_JDK_FOUND" = xno; then 26352 # Now execute the test 26353 26354 if test -x /usr/libexec/java_home; then 26355 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 26356 BOOT_JDK_FOUND=maybe 26357 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 26358 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 26359 fi 26360 26361 26362 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26363 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26364 # Do we have a bin/java? 26365 if test ! -x "$BOOT_JDK/bin/java"; then 26366 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26367 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26368 BOOT_JDK_FOUND=no 26369 else 26370 # Do we have a bin/javac? 26371 if test ! -x "$BOOT_JDK/bin/javac"; then 26372 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26373 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26374 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26375 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26376 BOOT_JDK_FOUND=no 26377 else 26378 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26379 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26380 26381 # Extra M4 quote needed to protect [] in grep expression. 26382 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26383 if test "x$FOUND_CORRECT_VERSION" = x; then 26384 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26385 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26386 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26387 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26388 BOOT_JDK_FOUND=no 26389 else 26390 # We're done! :-) 26391 BOOT_JDK_FOUND=yes 26392 26393 # Only process if variable expands to non-empty 26394 26395 if test "x$BOOT_JDK" != x; then 26396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26397 26398 # Input might be given as Windows format, start by converting to 26399 # unix format. 26400 path="$BOOT_JDK" 26401 new_path=`$CYGPATH -u "$path"` 26402 26403 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26404 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26405 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26406 # "foo.exe" is OK but "foo" is an error. 26407 # 26408 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26409 # It is also a way to make sure we got the proper file name for the real test later on. 26410 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26411 if test "x$test_shortpath" = x; then 26412 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26413 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26414 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26415 fi 26416 26417 # Call helper function which possibly converts this using DOS-style short mode. 26418 # If so, the updated path is stored in $new_path. 26419 26420 input_path="$new_path" 26421 # Check if we need to convert this using DOS-style short mode. If the path 26422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26423 # take no chances and rewrite it. 26424 # Note: m4 eats our [], so we need to use [ and ] instead. 26425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26426 if test "x$has_forbidden_chars" != x; then 26427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26428 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26429 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26430 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26431 # Going to short mode and back again did indeed matter. Since short mode is 26432 # case insensitive, let's make it lowercase to improve readability. 26433 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26434 # Now convert it back to Unix-style (cygpath) 26435 input_path=`$CYGPATH -u "$shortmode_path"` 26436 new_path="$input_path" 26437 fi 26438 fi 26439 26440 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26441 if test "x$test_cygdrive_prefix" = x; then 26442 # As a simple fix, exclude /usr/bin since it's not a real path. 26443 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26444 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26445 # a path prefixed by /cygdrive for fixpath to work. 26446 new_path="$CYGWIN_ROOT_PATH$input_path" 26447 fi 26448 fi 26449 26450 26451 if test "x$path" != "x$new_path"; then 26452 BOOT_JDK="$new_path" 26453 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26454 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26455 fi 26456 26457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26458 26459 path="$BOOT_JDK" 26460 has_colon=`$ECHO $path | $GREP ^.:` 26461 new_path="$path" 26462 if test "x$has_colon" = x; then 26463 # Not in mixed or Windows style, start by that. 26464 new_path=`cmd //c echo $path` 26465 fi 26466 26467 26468 input_path="$new_path" 26469 # Check if we need to convert this using DOS-style short mode. If the path 26470 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26471 # take no chances and rewrite it. 26472 # Note: m4 eats our [], so we need to use [ and ] instead. 26473 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26474 if test "x$has_forbidden_chars" != x; then 26475 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26476 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26477 fi 26478 26479 26480 windows_path="$new_path" 26481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26482 unix_path=`$CYGPATH -u "$windows_path"` 26483 new_path="$unix_path" 26484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26485 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26486 new_path="$unix_path" 26487 fi 26488 26489 if test "x$path" != "x$new_path"; then 26490 BOOT_JDK="$new_path" 26491 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26492 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26493 fi 26494 26495 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26496 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26497 26498 else 26499 # We're on a unix platform. Hooray! :) 26500 path="$BOOT_JDK" 26501 has_space=`$ECHO "$path" | $GREP " "` 26502 if test "x$has_space" != x; then 26503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26504 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26505 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26506 fi 26507 26508 # Use eval to expand a potential ~ 26509 eval path="$path" 26510 if test ! -f "$path" && test ! -d "$path"; then 26511 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26512 fi 26513 26514 if test -d "$path"; then 26515 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26516 else 26517 dir="`$DIRNAME "$path"`" 26518 base="`$BASENAME "$path"`" 26519 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26520 fi 26521 fi 26522 fi 26523 26524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26525 $as_echo_n "checking for Boot JDK... " >&6; } 26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26527 $as_echo "$BOOT_JDK" >&6; } 26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26529 $as_echo_n "checking Boot JDK version... " >&6; } 26530 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26532 $as_echo "$BOOT_JDK_VERSION" >&6; } 26533 fi # end check jdk version 26534 fi # end check javac 26535 fi # end check java 26536 fi # end check boot jdk found 26537 fi 26538 26539 fi 26540 26541 26542 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26543 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26544 # Do we have a bin/java? 26545 if test ! -x "$BOOT_JDK/bin/java"; then 26546 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26547 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26548 BOOT_JDK_FOUND=no 26549 else 26550 # Do we have a bin/javac? 26551 if test ! -x "$BOOT_JDK/bin/javac"; then 26552 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26553 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26554 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26555 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26556 BOOT_JDK_FOUND=no 26557 else 26558 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26559 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26560 26561 # Extra M4 quote needed to protect [] in grep expression. 26562 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26563 if test "x$FOUND_CORRECT_VERSION" = x; then 26564 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26565 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26566 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26567 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26568 BOOT_JDK_FOUND=no 26569 else 26570 # We're done! :-) 26571 BOOT_JDK_FOUND=yes 26572 26573 # Only process if variable expands to non-empty 26574 26575 if test "x$BOOT_JDK" != x; then 26576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26577 26578 # Input might be given as Windows format, start by converting to 26579 # unix format. 26580 path="$BOOT_JDK" 26581 new_path=`$CYGPATH -u "$path"` 26582 26583 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26584 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26585 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26586 # "foo.exe" is OK but "foo" is an error. 26587 # 26588 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26589 # It is also a way to make sure we got the proper file name for the real test later on. 26590 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26591 if test "x$test_shortpath" = x; then 26592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26593 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26594 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26595 fi 26596 26597 # Call helper function which possibly converts this using DOS-style short mode. 26598 # If so, the updated path is stored in $new_path. 26599 26600 input_path="$new_path" 26601 # Check if we need to convert this using DOS-style short mode. If the path 26602 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26603 # take no chances and rewrite it. 26604 # Note: m4 eats our [], so we need to use [ and ] instead. 26605 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26606 if test "x$has_forbidden_chars" != x; then 26607 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26608 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26609 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26610 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26611 # Going to short mode and back again did indeed matter. Since short mode is 26612 # case insensitive, let's make it lowercase to improve readability. 26613 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26614 # Now convert it back to Unix-style (cygpath) 26615 input_path=`$CYGPATH -u "$shortmode_path"` 26616 new_path="$input_path" 26617 fi 26618 fi 26619 26620 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26621 if test "x$test_cygdrive_prefix" = x; then 26622 # As a simple fix, exclude /usr/bin since it's not a real path. 26623 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26624 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26625 # a path prefixed by /cygdrive for fixpath to work. 26626 new_path="$CYGWIN_ROOT_PATH$input_path" 26627 fi 26628 fi 26629 26630 26631 if test "x$path" != "x$new_path"; then 26632 BOOT_JDK="$new_path" 26633 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26634 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26635 fi 26636 26637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26638 26639 path="$BOOT_JDK" 26640 has_colon=`$ECHO $path | $GREP ^.:` 26641 new_path="$path" 26642 if test "x$has_colon" = x; then 26643 # Not in mixed or Windows style, start by that. 26644 new_path=`cmd //c echo $path` 26645 fi 26646 26647 26648 input_path="$new_path" 26649 # Check if we need to convert this using DOS-style short mode. If the path 26650 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26651 # take no chances and rewrite it. 26652 # Note: m4 eats our [], so we need to use [ and ] instead. 26653 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26654 if test "x$has_forbidden_chars" != x; then 26655 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26656 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26657 fi 26658 26659 26660 windows_path="$new_path" 26661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26662 unix_path=`$CYGPATH -u "$windows_path"` 26663 new_path="$unix_path" 26664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26666 new_path="$unix_path" 26667 fi 26668 26669 if test "x$path" != "x$new_path"; then 26670 BOOT_JDK="$new_path" 26671 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26672 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26673 fi 26674 26675 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26676 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26677 26678 else 26679 # We're on a unix platform. Hooray! :) 26680 path="$BOOT_JDK" 26681 has_space=`$ECHO "$path" | $GREP " "` 26682 if test "x$has_space" != x; then 26683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26684 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26685 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26686 fi 26687 26688 # Use eval to expand a potential ~ 26689 eval path="$path" 26690 if test ! -f "$path" && test ! -d "$path"; then 26691 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26692 fi 26693 26694 if test -d "$path"; then 26695 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26696 else 26697 dir="`$DIRNAME "$path"`" 26698 base="`$BASENAME "$path"`" 26699 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26700 fi 26701 fi 26702 fi 26703 26704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26705 $as_echo_n "checking for Boot JDK... " >&6; } 26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26707 $as_echo "$BOOT_JDK" >&6; } 26708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26709 $as_echo_n "checking Boot JDK version... " >&6; } 26710 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26712 $as_echo "$BOOT_JDK_VERSION" >&6; } 26713 fi # end check jdk version 26714 fi # end check javac 26715 fi # end check java 26716 fi # end check boot jdk found 26717 fi 26718 26719 26720 # Test: Is $JAVA_HOME set? 26721 26722 if test "x$BOOT_JDK_FOUND" = xno; then 26723 # Now execute the test 26724 26725 if test "x$JAVA_HOME" != x; then 26726 JAVA_HOME_PROCESSED="$JAVA_HOME" 26727 26728 # Only process if variable expands to non-empty 26729 26730 if test "x$JAVA_HOME_PROCESSED" != x; then 26731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26732 26733 # Input might be given as Windows format, start by converting to 26734 # unix format. 26735 path="$JAVA_HOME_PROCESSED" 26736 new_path=`$CYGPATH -u "$path"` 26737 26738 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26739 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26740 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26741 # "foo.exe" is OK but "foo" is an error. 26742 # 26743 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26744 # It is also a way to make sure we got the proper file name for the real test later on. 26745 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26746 if test "x$test_shortpath" = x; then 26747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26748 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26749 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26750 fi 26751 26752 # Call helper function which possibly converts this using DOS-style short mode. 26753 # If so, the updated path is stored in $new_path. 26754 26755 input_path="$new_path" 26756 # Check if we need to convert this using DOS-style short mode. If the path 26757 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26758 # take no chances and rewrite it. 26759 # Note: m4 eats our [], so we need to use [ and ] instead. 26760 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26761 if test "x$has_forbidden_chars" != x; then 26762 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26763 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26764 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26765 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26766 # Going to short mode and back again did indeed matter. Since short mode is 26767 # case insensitive, let's make it lowercase to improve readability. 26768 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26769 # Now convert it back to Unix-style (cygpath) 26770 input_path=`$CYGPATH -u "$shortmode_path"` 26771 new_path="$input_path" 26772 fi 26773 fi 26774 26775 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26776 if test "x$test_cygdrive_prefix" = x; then 26777 # As a simple fix, exclude /usr/bin since it's not a real path. 26778 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26779 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26780 # a path prefixed by /cygdrive for fixpath to work. 26781 new_path="$CYGWIN_ROOT_PATH$input_path" 26782 fi 26783 fi 26784 26785 26786 if test "x$path" != "x$new_path"; then 26787 JAVA_HOME_PROCESSED="$new_path" 26788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26789 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26790 fi 26791 26792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26793 26794 path="$JAVA_HOME_PROCESSED" 26795 has_colon=`$ECHO $path | $GREP ^.:` 26796 new_path="$path" 26797 if test "x$has_colon" = x; then 26798 # Not in mixed or Windows style, start by that. 26799 new_path=`cmd //c echo $path` 26800 fi 26801 26802 26803 input_path="$new_path" 26804 # Check if we need to convert this using DOS-style short mode. If the path 26805 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26806 # take no chances and rewrite it. 26807 # Note: m4 eats our [], so we need to use [ and ] instead. 26808 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26809 if test "x$has_forbidden_chars" != x; then 26810 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26811 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26812 fi 26813 26814 26815 windows_path="$new_path" 26816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26817 unix_path=`$CYGPATH -u "$windows_path"` 26818 new_path="$unix_path" 26819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26821 new_path="$unix_path" 26822 fi 26823 26824 if test "x$path" != "x$new_path"; then 26825 JAVA_HOME_PROCESSED="$new_path" 26826 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26827 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26828 fi 26829 26830 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26831 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26832 26833 else 26834 # We're on a unix platform. Hooray! :) 26835 path="$JAVA_HOME_PROCESSED" 26836 has_space=`$ECHO "$path" | $GREP " "` 26837 if test "x$has_space" != x; then 26838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26839 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26840 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26841 fi 26842 26843 # Use eval to expand a potential ~ 26844 eval path="$path" 26845 if test ! -f "$path" && test ! -d "$path"; then 26846 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26847 fi 26848 26849 if test -d "$path"; then 26850 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26851 else 26852 dir="`$DIRNAME "$path"`" 26853 base="`$BASENAME "$path"`" 26854 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26855 fi 26856 fi 26857 fi 26858 26859 if test ! -d "$JAVA_HOME_PROCESSED"; then 26860 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26861 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26862 else 26863 # Aha, the user has set a JAVA_HOME 26864 # let us use that as the Boot JDK. 26865 BOOT_JDK="$JAVA_HOME_PROCESSED" 26866 BOOT_JDK_FOUND=maybe 26867 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26868 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26869 fi 26870 fi 26871 26872 26873 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26874 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26875 # Do we have a bin/java? 26876 if test ! -x "$BOOT_JDK/bin/java"; then 26877 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26878 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26879 BOOT_JDK_FOUND=no 26880 else 26881 # Do we have a bin/javac? 26882 if test ! -x "$BOOT_JDK/bin/javac"; then 26883 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26884 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26885 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26886 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26887 BOOT_JDK_FOUND=no 26888 else 26889 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26890 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26891 26892 # Extra M4 quote needed to protect [] in grep expression. 26893 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26894 if test "x$FOUND_CORRECT_VERSION" = x; then 26895 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26896 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26897 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26898 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26899 BOOT_JDK_FOUND=no 26900 else 26901 # We're done! :-) 26902 BOOT_JDK_FOUND=yes 26903 26904 # Only process if variable expands to non-empty 26905 26906 if test "x$BOOT_JDK" != x; then 26907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26908 26909 # Input might be given as Windows format, start by converting to 26910 # unix format. 26911 path="$BOOT_JDK" 26912 new_path=`$CYGPATH -u "$path"` 26913 26914 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26915 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26916 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26917 # "foo.exe" is OK but "foo" is an error. 26918 # 26919 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26920 # It is also a way to make sure we got the proper file name for the real test later on. 26921 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26922 if test "x$test_shortpath" = x; then 26923 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26924 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26925 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26926 fi 26927 26928 # Call helper function which possibly converts this using DOS-style short mode. 26929 # If so, the updated path is stored in $new_path. 26930 26931 input_path="$new_path" 26932 # Check if we need to convert this using DOS-style short mode. If the path 26933 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26934 # take no chances and rewrite it. 26935 # Note: m4 eats our [], so we need to use [ and ] instead. 26936 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26937 if test "x$has_forbidden_chars" != x; then 26938 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26939 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26940 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26941 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26942 # Going to short mode and back again did indeed matter. Since short mode is 26943 # case insensitive, let's make it lowercase to improve readability. 26944 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26945 # Now convert it back to Unix-style (cygpath) 26946 input_path=`$CYGPATH -u "$shortmode_path"` 26947 new_path="$input_path" 26948 fi 26949 fi 26950 26951 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26952 if test "x$test_cygdrive_prefix" = x; then 26953 # As a simple fix, exclude /usr/bin since it's not a real path. 26954 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26955 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26956 # a path prefixed by /cygdrive for fixpath to work. 26957 new_path="$CYGWIN_ROOT_PATH$input_path" 26958 fi 26959 fi 26960 26961 26962 if test "x$path" != "x$new_path"; then 26963 BOOT_JDK="$new_path" 26964 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26965 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26966 fi 26967 26968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26969 26970 path="$BOOT_JDK" 26971 has_colon=`$ECHO $path | $GREP ^.:` 26972 new_path="$path" 26973 if test "x$has_colon" = x; then 26974 # Not in mixed or Windows style, start by that. 26975 new_path=`cmd //c echo $path` 26976 fi 26977 26978 26979 input_path="$new_path" 26980 # Check if we need to convert this using DOS-style short mode. If the path 26981 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26982 # take no chances and rewrite it. 26983 # Note: m4 eats our [], so we need to use [ and ] instead. 26984 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26985 if test "x$has_forbidden_chars" != x; then 26986 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26987 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26988 fi 26989 26990 26991 windows_path="$new_path" 26992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26993 unix_path=`$CYGPATH -u "$windows_path"` 26994 new_path="$unix_path" 26995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26997 new_path="$unix_path" 26998 fi 26999 27000 if test "x$path" != "x$new_path"; then 27001 BOOT_JDK="$new_path" 27002 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27003 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27004 fi 27005 27006 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27007 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27008 27009 else 27010 # We're on a unix platform. Hooray! :) 27011 path="$BOOT_JDK" 27012 has_space=`$ECHO "$path" | $GREP " "` 27013 if test "x$has_space" != x; then 27014 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27015 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27016 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27017 fi 27018 27019 # Use eval to expand a potential ~ 27020 eval path="$path" 27021 if test ! -f "$path" && test ! -d "$path"; then 27022 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27023 fi 27024 27025 if test -d "$path"; then 27026 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27027 else 27028 dir="`$DIRNAME "$path"`" 27029 base="`$BASENAME "$path"`" 27030 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27031 fi 27032 fi 27033 fi 27034 27035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27036 $as_echo_n "checking for Boot JDK... " >&6; } 27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27038 $as_echo "$BOOT_JDK" >&6; } 27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27040 $as_echo_n "checking Boot JDK version... " >&6; } 27041 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27043 $as_echo "$BOOT_JDK_VERSION" >&6; } 27044 fi # end check jdk version 27045 fi # end check javac 27046 fi # end check java 27047 fi # end check boot jdk found 27048 fi 27049 27050 27051 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 27052 27053 if test "x$BOOT_JDK_FOUND" = xno; then 27054 # Now execute the test 27055 27056 # Extract the first word of "javac", so it can be a program name with args. 27057 set dummy javac; ac_word=$2 27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27059 $as_echo_n "checking for $ac_word... " >&6; } 27060 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 27061 $as_echo_n "(cached) " >&6 27062 else 27063 case $JAVAC_CHECK in 27064 [\\/]* | ?:[\\/]*) 27065 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 27066 ;; 27067 *) 27068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27069 for as_dir in $PATH 27070 do 27071 IFS=$as_save_IFS 27072 test -z "$as_dir" && as_dir=. 27073 for ac_exec_ext in '' $ac_executable_extensions; do 27074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27075 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 27076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27077 break 2 27078 fi 27079 done 27080 done 27081 IFS=$as_save_IFS 27082 27083 ;; 27084 esac 27085 fi 27086 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 27087 if test -n "$JAVAC_CHECK"; then 27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 27089 $as_echo "$JAVAC_CHECK" >&6; } 27090 else 27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27092 $as_echo "no" >&6; } 27093 fi 27094 27095 27096 # Extract the first word of "java", so it can be a program name with args. 27097 set dummy java; ac_word=$2 27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27099 $as_echo_n "checking for $ac_word... " >&6; } 27100 if ${ac_cv_path_JAVA_CHECK+:} false; then : 27101 $as_echo_n "(cached) " >&6 27102 else 27103 case $JAVA_CHECK in 27104 [\\/]* | ?:[\\/]*) 27105 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 27106 ;; 27107 *) 27108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27109 for as_dir in $PATH 27110 do 27111 IFS=$as_save_IFS 27112 test -z "$as_dir" && as_dir=. 27113 for ac_exec_ext in '' $ac_executable_extensions; do 27114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27115 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 27116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27117 break 2 27118 fi 27119 done 27120 done 27121 IFS=$as_save_IFS 27122 27123 ;; 27124 esac 27125 fi 27126 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 27127 if test -n "$JAVA_CHECK"; then 27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 27129 $as_echo "$JAVA_CHECK" >&6; } 27130 else 27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27132 $as_echo "no" >&6; } 27133 fi 27134 27135 27136 BINARY="$JAVAC_CHECK" 27137 if test "x$JAVAC_CHECK" = x; then 27138 BINARY="$JAVA_CHECK" 27139 fi 27140 if test "x$BINARY" != x; then 27141 # So there is a java(c) binary, it might be part of a JDK. 27142 # Lets find the JDK/JRE directory by following symbolic links. 27143 # Linux/GNU systems often have links from /usr/bin/java to 27144 # /etc/alternatives/java to the real JDK binary. 27145 27146 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27147 # Follow a chain of symbolic links. Use readlink 27148 # where it exists, else fall back to horribly 27149 # complicated shell code. 27150 if test "x$READLINK_TESTED" != yes; then 27151 # On MacOSX there is a readlink tool with a different 27152 # purpose than the GNU readlink tool. Check the found readlink. 27153 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27154 if test "x$ISGNU" = x; then 27155 # A readlink that we do not know how to use. 27156 # Are there other non-GNU readlinks out there? 27157 READLINK_TESTED=yes 27158 READLINK= 27159 fi 27160 fi 27161 27162 if test "x$READLINK" != x; then 27163 BINARY=`$READLINK -f $BINARY` 27164 else 27165 # Save the current directory for restoring afterwards 27166 STARTDIR=$PWD 27167 COUNTER=0 27168 sym_link_dir=`$DIRNAME $BINARY` 27169 sym_link_file=`$BASENAME $BINARY` 27170 cd $sym_link_dir 27171 # Use -P flag to resolve symlinks in directories. 27172 cd `$THEPWDCMD -P` 27173 sym_link_dir=`$THEPWDCMD -P` 27174 # Resolve file symlinks 27175 while test $COUNTER -lt 20; do 27176 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27177 if test "x$ISLINK" == x; then 27178 # This is not a symbolic link! We are done! 27179 break 27180 fi 27181 # Again resolve directory symlinks since the target of the just found 27182 # link could be in a different directory 27183 cd `$DIRNAME $ISLINK` 27184 sym_link_dir=`$THEPWDCMD -P` 27185 sym_link_file=`$BASENAME $ISLINK` 27186 let COUNTER=COUNTER+1 27187 done 27188 cd $STARTDIR 27189 BINARY=$sym_link_dir/$sym_link_file 27190 fi 27191 fi 27192 27193 BOOT_JDK=`dirname "$BINARY"` 27194 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 27195 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 27196 # Looks like we found ourselves an JDK 27197 BOOT_JDK_FOUND=maybe 27198 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 27199 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 27200 fi 27201 fi 27202 27203 27204 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27205 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27206 # Do we have a bin/java? 27207 if test ! -x "$BOOT_JDK/bin/java"; then 27208 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27209 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27210 BOOT_JDK_FOUND=no 27211 else 27212 # Do we have a bin/javac? 27213 if test ! -x "$BOOT_JDK/bin/javac"; then 27214 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27215 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27216 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27217 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27218 BOOT_JDK_FOUND=no 27219 else 27220 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27221 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27222 27223 # Extra M4 quote needed to protect [] in grep expression. 27224 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27225 if test "x$FOUND_CORRECT_VERSION" = x; then 27226 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27227 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27228 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27229 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27230 BOOT_JDK_FOUND=no 27231 else 27232 # We're done! :-) 27233 BOOT_JDK_FOUND=yes 27234 27235 # Only process if variable expands to non-empty 27236 27237 if test "x$BOOT_JDK" != x; then 27238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27239 27240 # Input might be given as Windows format, start by converting to 27241 # unix format. 27242 path="$BOOT_JDK" 27243 new_path=`$CYGPATH -u "$path"` 27244 27245 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27246 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27247 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27248 # "foo.exe" is OK but "foo" is an error. 27249 # 27250 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27251 # It is also a way to make sure we got the proper file name for the real test later on. 27252 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27253 if test "x$test_shortpath" = x; then 27254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27255 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27256 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27257 fi 27258 27259 # Call helper function which possibly converts this using DOS-style short mode. 27260 # If so, the updated path is stored in $new_path. 27261 27262 input_path="$new_path" 27263 # Check if we need to convert this using DOS-style short mode. If the path 27264 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27265 # take no chances and rewrite it. 27266 # Note: m4 eats our [], so we need to use [ and ] instead. 27267 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27268 if test "x$has_forbidden_chars" != x; then 27269 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27270 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27271 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27272 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27273 # Going to short mode and back again did indeed matter. Since short mode is 27274 # case insensitive, let's make it lowercase to improve readability. 27275 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27276 # Now convert it back to Unix-style (cygpath) 27277 input_path=`$CYGPATH -u "$shortmode_path"` 27278 new_path="$input_path" 27279 fi 27280 fi 27281 27282 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27283 if test "x$test_cygdrive_prefix" = x; then 27284 # As a simple fix, exclude /usr/bin since it's not a real path. 27285 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27286 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27287 # a path prefixed by /cygdrive for fixpath to work. 27288 new_path="$CYGWIN_ROOT_PATH$input_path" 27289 fi 27290 fi 27291 27292 27293 if test "x$path" != "x$new_path"; then 27294 BOOT_JDK="$new_path" 27295 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27296 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27297 fi 27298 27299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27300 27301 path="$BOOT_JDK" 27302 has_colon=`$ECHO $path | $GREP ^.:` 27303 new_path="$path" 27304 if test "x$has_colon" = x; then 27305 # Not in mixed or Windows style, start by that. 27306 new_path=`cmd //c echo $path` 27307 fi 27308 27309 27310 input_path="$new_path" 27311 # Check if we need to convert this using DOS-style short mode. If the path 27312 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27313 # take no chances and rewrite it. 27314 # Note: m4 eats our [], so we need to use [ and ] instead. 27315 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27316 if test "x$has_forbidden_chars" != x; then 27317 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27318 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27319 fi 27320 27321 27322 windows_path="$new_path" 27323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27324 unix_path=`$CYGPATH -u "$windows_path"` 27325 new_path="$unix_path" 27326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27328 new_path="$unix_path" 27329 fi 27330 27331 if test "x$path" != "x$new_path"; then 27332 BOOT_JDK="$new_path" 27333 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27334 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27335 fi 27336 27337 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27338 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27339 27340 else 27341 # We're on a unix platform. Hooray! :) 27342 path="$BOOT_JDK" 27343 has_space=`$ECHO "$path" | $GREP " "` 27344 if test "x$has_space" != x; then 27345 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27346 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27347 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27348 fi 27349 27350 # Use eval to expand a potential ~ 27351 eval path="$path" 27352 if test ! -f "$path" && test ! -d "$path"; then 27353 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27354 fi 27355 27356 if test -d "$path"; then 27357 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27358 else 27359 dir="`$DIRNAME "$path"`" 27360 base="`$BASENAME "$path"`" 27361 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27362 fi 27363 fi 27364 fi 27365 27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27367 $as_echo_n "checking for Boot JDK... " >&6; } 27368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27369 $as_echo "$BOOT_JDK" >&6; } 27370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27371 $as_echo_n "checking Boot JDK version... " >&6; } 27372 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27374 $as_echo "$BOOT_JDK_VERSION" >&6; } 27375 fi # end check jdk version 27376 fi # end check javac 27377 fi # end check java 27378 fi # end check boot jdk found 27379 fi 27380 27381 27382 # Test: Is there a JDK installed in default, well-known locations? 27383 27384 if test "x$BOOT_JDK_FOUND" = xno; then 27385 # Now execute the test 27386 27387 if test "x$OPENJDK_TARGET_OS" = xwindows; then 27388 27389 if test "x$BOOT_JDK_FOUND" = xno; then 27390 # Now execute the test 27391 27392 if test "x$ProgramW6432" != x; then 27393 VIRTUAL_DIR="$ProgramW6432/Java" 27394 27395 windows_path="$VIRTUAL_DIR" 27396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27397 unix_path=`$CYGPATH -u "$windows_path"` 27398 VIRTUAL_DIR="$unix_path" 27399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27400 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27401 VIRTUAL_DIR="$unix_path" 27402 fi 27403 27404 27405 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27406 BOOT_JDK_SUFFIX="" 27407 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27408 if test "x$ALL_JDKS_FOUND" != x; then 27409 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27410 27411 if test "x$BOOT_JDK_FOUND" = xno; then 27412 # Now execute the test 27413 27414 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27415 if test -d "$BOOT_JDK"; then 27416 BOOT_JDK_FOUND=maybe 27417 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27418 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27419 fi 27420 27421 27422 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27423 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27424 # Do we have a bin/java? 27425 if test ! -x "$BOOT_JDK/bin/java"; then 27426 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27428 BOOT_JDK_FOUND=no 27429 else 27430 # Do we have a bin/javac? 27431 if test ! -x "$BOOT_JDK/bin/javac"; then 27432 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27434 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27435 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27436 BOOT_JDK_FOUND=no 27437 else 27438 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27439 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27440 27441 # Extra M4 quote needed to protect [] in grep expression. 27442 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27443 if test "x$FOUND_CORRECT_VERSION" = x; then 27444 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27445 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27446 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27447 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27448 BOOT_JDK_FOUND=no 27449 else 27450 # We're done! :-) 27451 BOOT_JDK_FOUND=yes 27452 27453 # Only process if variable expands to non-empty 27454 27455 if test "x$BOOT_JDK" != x; then 27456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27457 27458 # Input might be given as Windows format, start by converting to 27459 # unix format. 27460 path="$BOOT_JDK" 27461 new_path=`$CYGPATH -u "$path"` 27462 27463 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27464 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27465 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27466 # "foo.exe" is OK but "foo" is an error. 27467 # 27468 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27469 # It is also a way to make sure we got the proper file name for the real test later on. 27470 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27471 if test "x$test_shortpath" = x; then 27472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27473 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27474 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27475 fi 27476 27477 # Call helper function which possibly converts this using DOS-style short mode. 27478 # If so, the updated path is stored in $new_path. 27479 27480 input_path="$new_path" 27481 # Check if we need to convert this using DOS-style short mode. If the path 27482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27483 # take no chances and rewrite it. 27484 # Note: m4 eats our [], so we need to use [ and ] instead. 27485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27486 if test "x$has_forbidden_chars" != x; then 27487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27488 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27489 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27490 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27491 # Going to short mode and back again did indeed matter. Since short mode is 27492 # case insensitive, let's make it lowercase to improve readability. 27493 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27494 # Now convert it back to Unix-style (cygpath) 27495 input_path=`$CYGPATH -u "$shortmode_path"` 27496 new_path="$input_path" 27497 fi 27498 fi 27499 27500 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27501 if test "x$test_cygdrive_prefix" = x; then 27502 # As a simple fix, exclude /usr/bin since it's not a real path. 27503 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27504 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27505 # a path prefixed by /cygdrive for fixpath to work. 27506 new_path="$CYGWIN_ROOT_PATH$input_path" 27507 fi 27508 fi 27509 27510 27511 if test "x$path" != "x$new_path"; then 27512 BOOT_JDK="$new_path" 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27514 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27515 fi 27516 27517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27518 27519 path="$BOOT_JDK" 27520 has_colon=`$ECHO $path | $GREP ^.:` 27521 new_path="$path" 27522 if test "x$has_colon" = x; then 27523 # Not in mixed or Windows style, start by that. 27524 new_path=`cmd //c echo $path` 27525 fi 27526 27527 27528 input_path="$new_path" 27529 # Check if we need to convert this using DOS-style short mode. If the path 27530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27531 # take no chances and rewrite it. 27532 # Note: m4 eats our [], so we need to use [ and ] instead. 27533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27534 if test "x$has_forbidden_chars" != x; then 27535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27536 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27537 fi 27538 27539 27540 windows_path="$new_path" 27541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27542 unix_path=`$CYGPATH -u "$windows_path"` 27543 new_path="$unix_path" 27544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27545 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27546 new_path="$unix_path" 27547 fi 27548 27549 if test "x$path" != "x$new_path"; then 27550 BOOT_JDK="$new_path" 27551 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27552 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27553 fi 27554 27555 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27556 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27557 27558 else 27559 # We're on a unix platform. Hooray! :) 27560 path="$BOOT_JDK" 27561 has_space=`$ECHO "$path" | $GREP " "` 27562 if test "x$has_space" != x; then 27563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27564 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27565 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27566 fi 27567 27568 # Use eval to expand a potential ~ 27569 eval path="$path" 27570 if test ! -f "$path" && test ! -d "$path"; then 27571 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27572 fi 27573 27574 if test -d "$path"; then 27575 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27576 else 27577 dir="`$DIRNAME "$path"`" 27578 base="`$BASENAME "$path"`" 27579 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27580 fi 27581 fi 27582 fi 27583 27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27585 $as_echo_n "checking for Boot JDK... " >&6; } 27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27587 $as_echo "$BOOT_JDK" >&6; } 27588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27589 $as_echo_n "checking Boot JDK version... " >&6; } 27590 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27592 $as_echo "$BOOT_JDK_VERSION" >&6; } 27593 fi # end check jdk version 27594 fi # end check javac 27595 fi # end check java 27596 fi # end check boot jdk found 27597 fi 27598 27599 done 27600 fi 27601 27602 fi 27603 27604 27605 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27606 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27607 # Do we have a bin/java? 27608 if test ! -x "$BOOT_JDK/bin/java"; then 27609 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27610 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27611 BOOT_JDK_FOUND=no 27612 else 27613 # Do we have a bin/javac? 27614 if test ! -x "$BOOT_JDK/bin/javac"; then 27615 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27616 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27617 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27618 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27619 BOOT_JDK_FOUND=no 27620 else 27621 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27622 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27623 27624 # Extra M4 quote needed to protect [] in grep expression. 27625 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27626 if test "x$FOUND_CORRECT_VERSION" = x; then 27627 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27628 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27629 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27630 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27631 BOOT_JDK_FOUND=no 27632 else 27633 # We're done! :-) 27634 BOOT_JDK_FOUND=yes 27635 27636 # Only process if variable expands to non-empty 27637 27638 if test "x$BOOT_JDK" != x; then 27639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27640 27641 # Input might be given as Windows format, start by converting to 27642 # unix format. 27643 path="$BOOT_JDK" 27644 new_path=`$CYGPATH -u "$path"` 27645 27646 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27647 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27648 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27649 # "foo.exe" is OK but "foo" is an error. 27650 # 27651 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27652 # It is also a way to make sure we got the proper file name for the real test later on. 27653 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27654 if test "x$test_shortpath" = x; then 27655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27656 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27657 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27658 fi 27659 27660 # Call helper function which possibly converts this using DOS-style short mode. 27661 # If so, the updated path is stored in $new_path. 27662 27663 input_path="$new_path" 27664 # Check if we need to convert this using DOS-style short mode. If the path 27665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27666 # take no chances and rewrite it. 27667 # Note: m4 eats our [], so we need to use [ and ] instead. 27668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27669 if test "x$has_forbidden_chars" != x; then 27670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27671 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27672 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27673 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27674 # Going to short mode and back again did indeed matter. Since short mode is 27675 # case insensitive, let's make it lowercase to improve readability. 27676 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27677 # Now convert it back to Unix-style (cygpath) 27678 input_path=`$CYGPATH -u "$shortmode_path"` 27679 new_path="$input_path" 27680 fi 27681 fi 27682 27683 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27684 if test "x$test_cygdrive_prefix" = x; then 27685 # As a simple fix, exclude /usr/bin since it's not a real path. 27686 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27687 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27688 # a path prefixed by /cygdrive for fixpath to work. 27689 new_path="$CYGWIN_ROOT_PATH$input_path" 27690 fi 27691 fi 27692 27693 27694 if test "x$path" != "x$new_path"; then 27695 BOOT_JDK="$new_path" 27696 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27697 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27698 fi 27699 27700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27701 27702 path="$BOOT_JDK" 27703 has_colon=`$ECHO $path | $GREP ^.:` 27704 new_path="$path" 27705 if test "x$has_colon" = x; then 27706 # Not in mixed or Windows style, start by that. 27707 new_path=`cmd //c echo $path` 27708 fi 27709 27710 27711 input_path="$new_path" 27712 # Check if we need to convert this using DOS-style short mode. If the path 27713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27714 # take no chances and rewrite it. 27715 # Note: m4 eats our [], so we need to use [ and ] instead. 27716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27717 if test "x$has_forbidden_chars" != x; then 27718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27719 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27720 fi 27721 27722 27723 windows_path="$new_path" 27724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27725 unix_path=`$CYGPATH -u "$windows_path"` 27726 new_path="$unix_path" 27727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27729 new_path="$unix_path" 27730 fi 27731 27732 if test "x$path" != "x$new_path"; then 27733 BOOT_JDK="$new_path" 27734 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27735 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27736 fi 27737 27738 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27739 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27740 27741 else 27742 # We're on a unix platform. Hooray! :) 27743 path="$BOOT_JDK" 27744 has_space=`$ECHO "$path" | $GREP " "` 27745 if test "x$has_space" != x; then 27746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27747 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27748 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27749 fi 27750 27751 # Use eval to expand a potential ~ 27752 eval path="$path" 27753 if test ! -f "$path" && test ! -d "$path"; then 27754 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27755 fi 27756 27757 if test -d "$path"; then 27758 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27759 else 27760 dir="`$DIRNAME "$path"`" 27761 base="`$BASENAME "$path"`" 27762 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27763 fi 27764 fi 27765 fi 27766 27767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27768 $as_echo_n "checking for Boot JDK... " >&6; } 27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27770 $as_echo "$BOOT_JDK" >&6; } 27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27772 $as_echo_n "checking Boot JDK version... " >&6; } 27773 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27775 $as_echo "$BOOT_JDK_VERSION" >&6; } 27776 fi # end check jdk version 27777 fi # end check javac 27778 fi # end check java 27779 fi # end check boot jdk found 27780 fi 27781 27782 27783 if test "x$BOOT_JDK_FOUND" = xno; then 27784 # Now execute the test 27785 27786 if test "x$PROGRAMW6432" != x; then 27787 VIRTUAL_DIR="$PROGRAMW6432/Java" 27788 27789 windows_path="$VIRTUAL_DIR" 27790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27791 unix_path=`$CYGPATH -u "$windows_path"` 27792 VIRTUAL_DIR="$unix_path" 27793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27794 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27795 VIRTUAL_DIR="$unix_path" 27796 fi 27797 27798 27799 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27800 BOOT_JDK_SUFFIX="" 27801 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27802 if test "x$ALL_JDKS_FOUND" != x; then 27803 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27804 27805 if test "x$BOOT_JDK_FOUND" = xno; then 27806 # Now execute the test 27807 27808 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27809 if test -d "$BOOT_JDK"; then 27810 BOOT_JDK_FOUND=maybe 27811 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27812 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27813 fi 27814 27815 27816 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27817 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27818 # Do we have a bin/java? 27819 if test ! -x "$BOOT_JDK/bin/java"; then 27820 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27822 BOOT_JDK_FOUND=no 27823 else 27824 # Do we have a bin/javac? 27825 if test ! -x "$BOOT_JDK/bin/javac"; then 27826 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27827 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27828 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27829 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27830 BOOT_JDK_FOUND=no 27831 else 27832 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27833 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27834 27835 # Extra M4 quote needed to protect [] in grep expression. 27836 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27837 if test "x$FOUND_CORRECT_VERSION" = x; then 27838 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27839 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27840 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27841 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27842 BOOT_JDK_FOUND=no 27843 else 27844 # We're done! :-) 27845 BOOT_JDK_FOUND=yes 27846 27847 # Only process if variable expands to non-empty 27848 27849 if test "x$BOOT_JDK" != x; then 27850 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27851 27852 # Input might be given as Windows format, start by converting to 27853 # unix format. 27854 path="$BOOT_JDK" 27855 new_path=`$CYGPATH -u "$path"` 27856 27857 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27858 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27859 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27860 # "foo.exe" is OK but "foo" is an error. 27861 # 27862 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27863 # It is also a way to make sure we got the proper file name for the real test later on. 27864 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27865 if test "x$test_shortpath" = x; then 27866 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27867 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27868 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27869 fi 27870 27871 # Call helper function which possibly converts this using DOS-style short mode. 27872 # If so, the updated path is stored in $new_path. 27873 27874 input_path="$new_path" 27875 # Check if we need to convert this using DOS-style short mode. If the path 27876 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27877 # take no chances and rewrite it. 27878 # Note: m4 eats our [], so we need to use [ and ] instead. 27879 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27880 if test "x$has_forbidden_chars" != x; then 27881 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27882 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27883 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27884 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27885 # Going to short mode and back again did indeed matter. Since short mode is 27886 # case insensitive, let's make it lowercase to improve readability. 27887 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27888 # Now convert it back to Unix-style (cygpath) 27889 input_path=`$CYGPATH -u "$shortmode_path"` 27890 new_path="$input_path" 27891 fi 27892 fi 27893 27894 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27895 if test "x$test_cygdrive_prefix" = x; then 27896 # As a simple fix, exclude /usr/bin since it's not a real path. 27897 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27898 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27899 # a path prefixed by /cygdrive for fixpath to work. 27900 new_path="$CYGWIN_ROOT_PATH$input_path" 27901 fi 27902 fi 27903 27904 27905 if test "x$path" != "x$new_path"; then 27906 BOOT_JDK="$new_path" 27907 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27908 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27909 fi 27910 27911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27912 27913 path="$BOOT_JDK" 27914 has_colon=`$ECHO $path | $GREP ^.:` 27915 new_path="$path" 27916 if test "x$has_colon" = x; then 27917 # Not in mixed or Windows style, start by that. 27918 new_path=`cmd //c echo $path` 27919 fi 27920 27921 27922 input_path="$new_path" 27923 # Check if we need to convert this using DOS-style short mode. If the path 27924 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27925 # take no chances and rewrite it. 27926 # Note: m4 eats our [], so we need to use [ and ] instead. 27927 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27928 if test "x$has_forbidden_chars" != x; then 27929 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27930 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27931 fi 27932 27933 27934 windows_path="$new_path" 27935 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27936 unix_path=`$CYGPATH -u "$windows_path"` 27937 new_path="$unix_path" 27938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27939 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27940 new_path="$unix_path" 27941 fi 27942 27943 if test "x$path" != "x$new_path"; then 27944 BOOT_JDK="$new_path" 27945 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27946 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27947 fi 27948 27949 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27950 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27951 27952 else 27953 # We're on a unix platform. Hooray! :) 27954 path="$BOOT_JDK" 27955 has_space=`$ECHO "$path" | $GREP " "` 27956 if test "x$has_space" != x; then 27957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27958 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27959 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27960 fi 27961 27962 # Use eval to expand a potential ~ 27963 eval path="$path" 27964 if test ! -f "$path" && test ! -d "$path"; then 27965 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27966 fi 27967 27968 if test -d "$path"; then 27969 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27970 else 27971 dir="`$DIRNAME "$path"`" 27972 base="`$BASENAME "$path"`" 27973 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27974 fi 27975 fi 27976 fi 27977 27978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27979 $as_echo_n "checking for Boot JDK... " >&6; } 27980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27981 $as_echo "$BOOT_JDK" >&6; } 27982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27983 $as_echo_n "checking Boot JDK version... " >&6; } 27984 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27986 $as_echo "$BOOT_JDK_VERSION" >&6; } 27987 fi # end check jdk version 27988 fi # end check javac 27989 fi # end check java 27990 fi # end check boot jdk found 27991 fi 27992 27993 done 27994 fi 27995 27996 fi 27997 27998 27999 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28000 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28001 # Do we have a bin/java? 28002 if test ! -x "$BOOT_JDK/bin/java"; then 28003 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28004 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28005 BOOT_JDK_FOUND=no 28006 else 28007 # Do we have a bin/javac? 28008 if test ! -x "$BOOT_JDK/bin/javac"; then 28009 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28010 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28011 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28012 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28013 BOOT_JDK_FOUND=no 28014 else 28015 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28016 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28017 28018 # Extra M4 quote needed to protect [] in grep expression. 28019 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28020 if test "x$FOUND_CORRECT_VERSION" = x; then 28021 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28022 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28023 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28024 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28025 BOOT_JDK_FOUND=no 28026 else 28027 # We're done! :-) 28028 BOOT_JDK_FOUND=yes 28029 28030 # Only process if variable expands to non-empty 28031 28032 if test "x$BOOT_JDK" != x; then 28033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28034 28035 # Input might be given as Windows format, start by converting to 28036 # unix format. 28037 path="$BOOT_JDK" 28038 new_path=`$CYGPATH -u "$path"` 28039 28040 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28041 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28042 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28043 # "foo.exe" is OK but "foo" is an error. 28044 # 28045 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28046 # It is also a way to make sure we got the proper file name for the real test later on. 28047 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28048 if test "x$test_shortpath" = x; then 28049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28050 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28051 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28052 fi 28053 28054 # Call helper function which possibly converts this using DOS-style short mode. 28055 # If so, the updated path is stored in $new_path. 28056 28057 input_path="$new_path" 28058 # Check if we need to convert this using DOS-style short mode. If the path 28059 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28060 # take no chances and rewrite it. 28061 # Note: m4 eats our [], so we need to use [ and ] instead. 28062 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28063 if test "x$has_forbidden_chars" != x; then 28064 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28065 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28066 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28067 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28068 # Going to short mode and back again did indeed matter. Since short mode is 28069 # case insensitive, let's make it lowercase to improve readability. 28070 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28071 # Now convert it back to Unix-style (cygpath) 28072 input_path=`$CYGPATH -u "$shortmode_path"` 28073 new_path="$input_path" 28074 fi 28075 fi 28076 28077 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28078 if test "x$test_cygdrive_prefix" = x; then 28079 # As a simple fix, exclude /usr/bin since it's not a real path. 28080 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28081 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28082 # a path prefixed by /cygdrive for fixpath to work. 28083 new_path="$CYGWIN_ROOT_PATH$input_path" 28084 fi 28085 fi 28086 28087 28088 if test "x$path" != "x$new_path"; then 28089 BOOT_JDK="$new_path" 28090 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28091 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28092 fi 28093 28094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28095 28096 path="$BOOT_JDK" 28097 has_colon=`$ECHO $path | $GREP ^.:` 28098 new_path="$path" 28099 if test "x$has_colon" = x; then 28100 # Not in mixed or Windows style, start by that. 28101 new_path=`cmd //c echo $path` 28102 fi 28103 28104 28105 input_path="$new_path" 28106 # Check if we need to convert this using DOS-style short mode. If the path 28107 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28108 # take no chances and rewrite it. 28109 # Note: m4 eats our [], so we need to use [ and ] instead. 28110 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28111 if test "x$has_forbidden_chars" != x; then 28112 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28113 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28114 fi 28115 28116 28117 windows_path="$new_path" 28118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28119 unix_path=`$CYGPATH -u "$windows_path"` 28120 new_path="$unix_path" 28121 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28122 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28123 new_path="$unix_path" 28124 fi 28125 28126 if test "x$path" != "x$new_path"; then 28127 BOOT_JDK="$new_path" 28128 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28129 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28130 fi 28131 28132 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28133 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28134 28135 else 28136 # We're on a unix platform. Hooray! :) 28137 path="$BOOT_JDK" 28138 has_space=`$ECHO "$path" | $GREP " "` 28139 if test "x$has_space" != x; then 28140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28141 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28142 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28143 fi 28144 28145 # Use eval to expand a potential ~ 28146 eval path="$path" 28147 if test ! -f "$path" && test ! -d "$path"; then 28148 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28149 fi 28150 28151 if test -d "$path"; then 28152 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28153 else 28154 dir="`$DIRNAME "$path"`" 28155 base="`$BASENAME "$path"`" 28156 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28157 fi 28158 fi 28159 fi 28160 28161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28162 $as_echo_n "checking for Boot JDK... " >&6; } 28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28164 $as_echo "$BOOT_JDK" >&6; } 28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28166 $as_echo_n "checking Boot JDK version... " >&6; } 28167 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28169 $as_echo "$BOOT_JDK_VERSION" >&6; } 28170 fi # end check jdk version 28171 fi # end check javac 28172 fi # end check java 28173 fi # end check boot jdk found 28174 fi 28175 28176 28177 if test "x$BOOT_JDK_FOUND" = xno; then 28178 # Now execute the test 28179 28180 if test "x$PROGRAMFILES" != x; then 28181 VIRTUAL_DIR="$PROGRAMFILES/Java" 28182 28183 windows_path="$VIRTUAL_DIR" 28184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28185 unix_path=`$CYGPATH -u "$windows_path"` 28186 VIRTUAL_DIR="$unix_path" 28187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28188 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28189 VIRTUAL_DIR="$unix_path" 28190 fi 28191 28192 28193 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28194 BOOT_JDK_SUFFIX="" 28195 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28196 if test "x$ALL_JDKS_FOUND" != x; then 28197 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28198 28199 if test "x$BOOT_JDK_FOUND" = xno; then 28200 # Now execute the test 28201 28202 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28203 if test -d "$BOOT_JDK"; then 28204 BOOT_JDK_FOUND=maybe 28205 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28206 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28207 fi 28208 28209 28210 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28211 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28212 # Do we have a bin/java? 28213 if test ! -x "$BOOT_JDK/bin/java"; then 28214 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28215 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28216 BOOT_JDK_FOUND=no 28217 else 28218 # Do we have a bin/javac? 28219 if test ! -x "$BOOT_JDK/bin/javac"; then 28220 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28221 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28222 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28223 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28224 BOOT_JDK_FOUND=no 28225 else 28226 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28227 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28228 28229 # Extra M4 quote needed to protect [] in grep expression. 28230 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28231 if test "x$FOUND_CORRECT_VERSION" = x; then 28232 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28233 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28234 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28235 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28236 BOOT_JDK_FOUND=no 28237 else 28238 # We're done! :-) 28239 BOOT_JDK_FOUND=yes 28240 28241 # Only process if variable expands to non-empty 28242 28243 if test "x$BOOT_JDK" != x; then 28244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28245 28246 # Input might be given as Windows format, start by converting to 28247 # unix format. 28248 path="$BOOT_JDK" 28249 new_path=`$CYGPATH -u "$path"` 28250 28251 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28252 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28253 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28254 # "foo.exe" is OK but "foo" is an error. 28255 # 28256 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28257 # It is also a way to make sure we got the proper file name for the real test later on. 28258 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28259 if test "x$test_shortpath" = x; then 28260 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28261 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28262 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28263 fi 28264 28265 # Call helper function which possibly converts this using DOS-style short mode. 28266 # If so, the updated path is stored in $new_path. 28267 28268 input_path="$new_path" 28269 # Check if we need to convert this using DOS-style short mode. If the path 28270 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28271 # take no chances and rewrite it. 28272 # Note: m4 eats our [], so we need to use [ and ] instead. 28273 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28274 if test "x$has_forbidden_chars" != x; then 28275 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28276 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28277 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28278 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28279 # Going to short mode and back again did indeed matter. Since short mode is 28280 # case insensitive, let's make it lowercase to improve readability. 28281 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28282 # Now convert it back to Unix-style (cygpath) 28283 input_path=`$CYGPATH -u "$shortmode_path"` 28284 new_path="$input_path" 28285 fi 28286 fi 28287 28288 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28289 if test "x$test_cygdrive_prefix" = x; then 28290 # As a simple fix, exclude /usr/bin since it's not a real path. 28291 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28292 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28293 # a path prefixed by /cygdrive for fixpath to work. 28294 new_path="$CYGWIN_ROOT_PATH$input_path" 28295 fi 28296 fi 28297 28298 28299 if test "x$path" != "x$new_path"; then 28300 BOOT_JDK="$new_path" 28301 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28302 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28303 fi 28304 28305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28306 28307 path="$BOOT_JDK" 28308 has_colon=`$ECHO $path | $GREP ^.:` 28309 new_path="$path" 28310 if test "x$has_colon" = x; then 28311 # Not in mixed or Windows style, start by that. 28312 new_path=`cmd //c echo $path` 28313 fi 28314 28315 28316 input_path="$new_path" 28317 # Check if we need to convert this using DOS-style short mode. If the path 28318 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28319 # take no chances and rewrite it. 28320 # Note: m4 eats our [], so we need to use [ and ] instead. 28321 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28322 if test "x$has_forbidden_chars" != x; then 28323 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28324 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28325 fi 28326 28327 28328 windows_path="$new_path" 28329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28330 unix_path=`$CYGPATH -u "$windows_path"` 28331 new_path="$unix_path" 28332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28333 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28334 new_path="$unix_path" 28335 fi 28336 28337 if test "x$path" != "x$new_path"; then 28338 BOOT_JDK="$new_path" 28339 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28340 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28341 fi 28342 28343 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28344 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28345 28346 else 28347 # We're on a unix platform. Hooray! :) 28348 path="$BOOT_JDK" 28349 has_space=`$ECHO "$path" | $GREP " "` 28350 if test "x$has_space" != x; then 28351 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28352 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28353 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28354 fi 28355 28356 # Use eval to expand a potential ~ 28357 eval path="$path" 28358 if test ! -f "$path" && test ! -d "$path"; then 28359 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28360 fi 28361 28362 if test -d "$path"; then 28363 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28364 else 28365 dir="`$DIRNAME "$path"`" 28366 base="`$BASENAME "$path"`" 28367 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28368 fi 28369 fi 28370 fi 28371 28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28373 $as_echo_n "checking for Boot JDK... " >&6; } 28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28375 $as_echo "$BOOT_JDK" >&6; } 28376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28377 $as_echo_n "checking Boot JDK version... " >&6; } 28378 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28380 $as_echo "$BOOT_JDK_VERSION" >&6; } 28381 fi # end check jdk version 28382 fi # end check javac 28383 fi # end check java 28384 fi # end check boot jdk found 28385 fi 28386 28387 done 28388 fi 28389 28390 fi 28391 28392 28393 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28394 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28395 # Do we have a bin/java? 28396 if test ! -x "$BOOT_JDK/bin/java"; then 28397 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28398 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28399 BOOT_JDK_FOUND=no 28400 else 28401 # Do we have a bin/javac? 28402 if test ! -x "$BOOT_JDK/bin/javac"; then 28403 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28404 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28405 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28406 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28407 BOOT_JDK_FOUND=no 28408 else 28409 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28410 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28411 28412 # Extra M4 quote needed to protect [] in grep expression. 28413 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28414 if test "x$FOUND_CORRECT_VERSION" = x; then 28415 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28416 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28417 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28418 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28419 BOOT_JDK_FOUND=no 28420 else 28421 # We're done! :-) 28422 BOOT_JDK_FOUND=yes 28423 28424 # Only process if variable expands to non-empty 28425 28426 if test "x$BOOT_JDK" != x; then 28427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28428 28429 # Input might be given as Windows format, start by converting to 28430 # unix format. 28431 path="$BOOT_JDK" 28432 new_path=`$CYGPATH -u "$path"` 28433 28434 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28435 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28436 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28437 # "foo.exe" is OK but "foo" is an error. 28438 # 28439 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28440 # It is also a way to make sure we got the proper file name for the real test later on. 28441 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28442 if test "x$test_shortpath" = x; then 28443 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28444 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28445 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28446 fi 28447 28448 # Call helper function which possibly converts this using DOS-style short mode. 28449 # If so, the updated path is stored in $new_path. 28450 28451 input_path="$new_path" 28452 # Check if we need to convert this using DOS-style short mode. If the path 28453 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28454 # take no chances and rewrite it. 28455 # Note: m4 eats our [], so we need to use [ and ] instead. 28456 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28457 if test "x$has_forbidden_chars" != x; then 28458 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28459 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28460 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28461 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28462 # Going to short mode and back again did indeed matter. Since short mode is 28463 # case insensitive, let's make it lowercase to improve readability. 28464 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28465 # Now convert it back to Unix-style (cygpath) 28466 input_path=`$CYGPATH -u "$shortmode_path"` 28467 new_path="$input_path" 28468 fi 28469 fi 28470 28471 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28472 if test "x$test_cygdrive_prefix" = x; then 28473 # As a simple fix, exclude /usr/bin since it's not a real path. 28474 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28475 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28476 # a path prefixed by /cygdrive for fixpath to work. 28477 new_path="$CYGWIN_ROOT_PATH$input_path" 28478 fi 28479 fi 28480 28481 28482 if test "x$path" != "x$new_path"; then 28483 BOOT_JDK="$new_path" 28484 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28485 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28486 fi 28487 28488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28489 28490 path="$BOOT_JDK" 28491 has_colon=`$ECHO $path | $GREP ^.:` 28492 new_path="$path" 28493 if test "x$has_colon" = x; then 28494 # Not in mixed or Windows style, start by that. 28495 new_path=`cmd //c echo $path` 28496 fi 28497 28498 28499 input_path="$new_path" 28500 # Check if we need to convert this using DOS-style short mode. If the path 28501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28502 # take no chances and rewrite it. 28503 # Note: m4 eats our [], so we need to use [ and ] instead. 28504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28505 if test "x$has_forbidden_chars" != x; then 28506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28507 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28508 fi 28509 28510 28511 windows_path="$new_path" 28512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28513 unix_path=`$CYGPATH -u "$windows_path"` 28514 new_path="$unix_path" 28515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28517 new_path="$unix_path" 28518 fi 28519 28520 if test "x$path" != "x$new_path"; then 28521 BOOT_JDK="$new_path" 28522 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28523 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28524 fi 28525 28526 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28527 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28528 28529 else 28530 # We're on a unix platform. Hooray! :) 28531 path="$BOOT_JDK" 28532 has_space=`$ECHO "$path" | $GREP " "` 28533 if test "x$has_space" != x; then 28534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28535 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28536 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28537 fi 28538 28539 # Use eval to expand a potential ~ 28540 eval path="$path" 28541 if test ! -f "$path" && test ! -d "$path"; then 28542 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28543 fi 28544 28545 if test -d "$path"; then 28546 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28547 else 28548 dir="`$DIRNAME "$path"`" 28549 base="`$BASENAME "$path"`" 28550 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28551 fi 28552 fi 28553 fi 28554 28555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28556 $as_echo_n "checking for Boot JDK... " >&6; } 28557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28558 $as_echo "$BOOT_JDK" >&6; } 28559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28560 $as_echo_n "checking Boot JDK version... " >&6; } 28561 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28563 $as_echo "$BOOT_JDK_VERSION" >&6; } 28564 fi # end check jdk version 28565 fi # end check javac 28566 fi # end check java 28567 fi # end check boot jdk found 28568 fi 28569 28570 28571 if test "x$BOOT_JDK_FOUND" = xno; then 28572 # Now execute the test 28573 28574 if test "x$ProgramFiles" != x; then 28575 VIRTUAL_DIR="$ProgramFiles/Java" 28576 28577 windows_path="$VIRTUAL_DIR" 28578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28579 unix_path=`$CYGPATH -u "$windows_path"` 28580 VIRTUAL_DIR="$unix_path" 28581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28582 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28583 VIRTUAL_DIR="$unix_path" 28584 fi 28585 28586 28587 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28588 BOOT_JDK_SUFFIX="" 28589 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28590 if test "x$ALL_JDKS_FOUND" != x; then 28591 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28592 28593 if test "x$BOOT_JDK_FOUND" = xno; then 28594 # Now execute the test 28595 28596 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28597 if test -d "$BOOT_JDK"; then 28598 BOOT_JDK_FOUND=maybe 28599 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28600 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28601 fi 28602 28603 28604 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28605 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28606 # Do we have a bin/java? 28607 if test ! -x "$BOOT_JDK/bin/java"; then 28608 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28609 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28610 BOOT_JDK_FOUND=no 28611 else 28612 # Do we have a bin/javac? 28613 if test ! -x "$BOOT_JDK/bin/javac"; then 28614 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28615 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28616 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28617 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28618 BOOT_JDK_FOUND=no 28619 else 28620 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28621 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28622 28623 # Extra M4 quote needed to protect [] in grep expression. 28624 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28625 if test "x$FOUND_CORRECT_VERSION" = x; then 28626 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28627 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28628 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28629 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28630 BOOT_JDK_FOUND=no 28631 else 28632 # We're done! :-) 28633 BOOT_JDK_FOUND=yes 28634 28635 # Only process if variable expands to non-empty 28636 28637 if test "x$BOOT_JDK" != x; then 28638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28639 28640 # Input might be given as Windows format, start by converting to 28641 # unix format. 28642 path="$BOOT_JDK" 28643 new_path=`$CYGPATH -u "$path"` 28644 28645 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28646 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28647 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28648 # "foo.exe" is OK but "foo" is an error. 28649 # 28650 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28651 # It is also a way to make sure we got the proper file name for the real test later on. 28652 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28653 if test "x$test_shortpath" = x; then 28654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28655 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28656 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28657 fi 28658 28659 # Call helper function which possibly converts this using DOS-style short mode. 28660 # If so, the updated path is stored in $new_path. 28661 28662 input_path="$new_path" 28663 # Check if we need to convert this using DOS-style short mode. If the path 28664 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28665 # take no chances and rewrite it. 28666 # Note: m4 eats our [], so we need to use [ and ] instead. 28667 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28668 if test "x$has_forbidden_chars" != x; then 28669 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28670 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28671 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28672 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28673 # Going to short mode and back again did indeed matter. Since short mode is 28674 # case insensitive, let's make it lowercase to improve readability. 28675 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28676 # Now convert it back to Unix-style (cygpath) 28677 input_path=`$CYGPATH -u "$shortmode_path"` 28678 new_path="$input_path" 28679 fi 28680 fi 28681 28682 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28683 if test "x$test_cygdrive_prefix" = x; then 28684 # As a simple fix, exclude /usr/bin since it's not a real path. 28685 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28686 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28687 # a path prefixed by /cygdrive for fixpath to work. 28688 new_path="$CYGWIN_ROOT_PATH$input_path" 28689 fi 28690 fi 28691 28692 28693 if test "x$path" != "x$new_path"; then 28694 BOOT_JDK="$new_path" 28695 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28696 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28697 fi 28698 28699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28700 28701 path="$BOOT_JDK" 28702 has_colon=`$ECHO $path | $GREP ^.:` 28703 new_path="$path" 28704 if test "x$has_colon" = x; then 28705 # Not in mixed or Windows style, start by that. 28706 new_path=`cmd //c echo $path` 28707 fi 28708 28709 28710 input_path="$new_path" 28711 # Check if we need to convert this using DOS-style short mode. If the path 28712 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28713 # take no chances and rewrite it. 28714 # Note: m4 eats our [], so we need to use [ and ] instead. 28715 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28716 if test "x$has_forbidden_chars" != x; then 28717 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28718 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28719 fi 28720 28721 28722 windows_path="$new_path" 28723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28724 unix_path=`$CYGPATH -u "$windows_path"` 28725 new_path="$unix_path" 28726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28727 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28728 new_path="$unix_path" 28729 fi 28730 28731 if test "x$path" != "x$new_path"; then 28732 BOOT_JDK="$new_path" 28733 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28734 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28735 fi 28736 28737 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28738 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28739 28740 else 28741 # We're on a unix platform. Hooray! :) 28742 path="$BOOT_JDK" 28743 has_space=`$ECHO "$path" | $GREP " "` 28744 if test "x$has_space" != x; then 28745 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28746 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28747 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28748 fi 28749 28750 # Use eval to expand a potential ~ 28751 eval path="$path" 28752 if test ! -f "$path" && test ! -d "$path"; then 28753 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28754 fi 28755 28756 if test -d "$path"; then 28757 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28758 else 28759 dir="`$DIRNAME "$path"`" 28760 base="`$BASENAME "$path"`" 28761 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28762 fi 28763 fi 28764 fi 28765 28766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28767 $as_echo_n "checking for Boot JDK... " >&6; } 28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28769 $as_echo "$BOOT_JDK" >&6; } 28770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28771 $as_echo_n "checking Boot JDK version... " >&6; } 28772 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28774 $as_echo "$BOOT_JDK_VERSION" >&6; } 28775 fi # end check jdk version 28776 fi # end check javac 28777 fi # end check java 28778 fi # end check boot jdk found 28779 fi 28780 28781 done 28782 fi 28783 28784 fi 28785 28786 28787 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28788 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28789 # Do we have a bin/java? 28790 if test ! -x "$BOOT_JDK/bin/java"; then 28791 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28792 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28793 BOOT_JDK_FOUND=no 28794 else 28795 # Do we have a bin/javac? 28796 if test ! -x "$BOOT_JDK/bin/javac"; then 28797 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28798 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28799 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28800 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28801 BOOT_JDK_FOUND=no 28802 else 28803 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28804 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28805 28806 # Extra M4 quote needed to protect [] in grep expression. 28807 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28808 if test "x$FOUND_CORRECT_VERSION" = x; then 28809 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28810 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28811 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28812 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28813 BOOT_JDK_FOUND=no 28814 else 28815 # We're done! :-) 28816 BOOT_JDK_FOUND=yes 28817 28818 # Only process if variable expands to non-empty 28819 28820 if test "x$BOOT_JDK" != x; then 28821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28822 28823 # Input might be given as Windows format, start by converting to 28824 # unix format. 28825 path="$BOOT_JDK" 28826 new_path=`$CYGPATH -u "$path"` 28827 28828 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28829 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28830 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28831 # "foo.exe" is OK but "foo" is an error. 28832 # 28833 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28834 # It is also a way to make sure we got the proper file name for the real test later on. 28835 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28836 if test "x$test_shortpath" = x; then 28837 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28838 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28839 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28840 fi 28841 28842 # Call helper function which possibly converts this using DOS-style short mode. 28843 # If so, the updated path is stored in $new_path. 28844 28845 input_path="$new_path" 28846 # Check if we need to convert this using DOS-style short mode. If the path 28847 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28848 # take no chances and rewrite it. 28849 # Note: m4 eats our [], so we need to use [ and ] instead. 28850 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28851 if test "x$has_forbidden_chars" != x; then 28852 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28853 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28854 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28855 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28856 # Going to short mode and back again did indeed matter. Since short mode is 28857 # case insensitive, let's make it lowercase to improve readability. 28858 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28859 # Now convert it back to Unix-style (cygpath) 28860 input_path=`$CYGPATH -u "$shortmode_path"` 28861 new_path="$input_path" 28862 fi 28863 fi 28864 28865 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28866 if test "x$test_cygdrive_prefix" = x; then 28867 # As a simple fix, exclude /usr/bin since it's not a real path. 28868 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28869 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28870 # a path prefixed by /cygdrive for fixpath to work. 28871 new_path="$CYGWIN_ROOT_PATH$input_path" 28872 fi 28873 fi 28874 28875 28876 if test "x$path" != "x$new_path"; then 28877 BOOT_JDK="$new_path" 28878 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28879 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28880 fi 28881 28882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28883 28884 path="$BOOT_JDK" 28885 has_colon=`$ECHO $path | $GREP ^.:` 28886 new_path="$path" 28887 if test "x$has_colon" = x; then 28888 # Not in mixed or Windows style, start by that. 28889 new_path=`cmd //c echo $path` 28890 fi 28891 28892 28893 input_path="$new_path" 28894 # Check if we need to convert this using DOS-style short mode. If the path 28895 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28896 # take no chances and rewrite it. 28897 # Note: m4 eats our [], so we need to use [ and ] instead. 28898 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28899 if test "x$has_forbidden_chars" != x; then 28900 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28901 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28902 fi 28903 28904 28905 windows_path="$new_path" 28906 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28907 unix_path=`$CYGPATH -u "$windows_path"` 28908 new_path="$unix_path" 28909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28910 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28911 new_path="$unix_path" 28912 fi 28913 28914 if test "x$path" != "x$new_path"; then 28915 BOOT_JDK="$new_path" 28916 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28917 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28918 fi 28919 28920 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28921 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28922 28923 else 28924 # We're on a unix platform. Hooray! :) 28925 path="$BOOT_JDK" 28926 has_space=`$ECHO "$path" | $GREP " "` 28927 if test "x$has_space" != x; then 28928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28929 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28930 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28931 fi 28932 28933 # Use eval to expand a potential ~ 28934 eval path="$path" 28935 if test ! -f "$path" && test ! -d "$path"; then 28936 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28937 fi 28938 28939 if test -d "$path"; then 28940 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28941 else 28942 dir="`$DIRNAME "$path"`" 28943 base="`$BASENAME "$path"`" 28944 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28945 fi 28946 fi 28947 fi 28948 28949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28950 $as_echo_n "checking for Boot JDK... " >&6; } 28951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28952 $as_echo "$BOOT_JDK" >&6; } 28953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28954 $as_echo_n "checking Boot JDK version... " >&6; } 28955 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28957 $as_echo "$BOOT_JDK_VERSION" >&6; } 28958 fi # end check jdk version 28959 fi # end check javac 28960 fi # end check java 28961 fi # end check boot jdk found 28962 fi 28963 28964 28965 if test "x$BOOT_JDK_FOUND" = xno; then 28966 # Now execute the test 28967 28968 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 28969 BOOT_JDK_SUFFIX="" 28970 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28971 if test "x$ALL_JDKS_FOUND" != x; then 28972 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28973 28974 if test "x$BOOT_JDK_FOUND" = xno; then 28975 # Now execute the test 28976 28977 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28978 if test -d "$BOOT_JDK"; then 28979 BOOT_JDK_FOUND=maybe 28980 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28981 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28982 fi 28983 28984 28985 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28986 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28987 # Do we have a bin/java? 28988 if test ! -x "$BOOT_JDK/bin/java"; then 28989 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28990 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28991 BOOT_JDK_FOUND=no 28992 else 28993 # Do we have a bin/javac? 28994 if test ! -x "$BOOT_JDK/bin/javac"; then 28995 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28996 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28997 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28998 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28999 BOOT_JDK_FOUND=no 29000 else 29001 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29002 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29003 29004 # Extra M4 quote needed to protect [] in grep expression. 29005 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29006 if test "x$FOUND_CORRECT_VERSION" = x; then 29007 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29009 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29010 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29011 BOOT_JDK_FOUND=no 29012 else 29013 # We're done! :-) 29014 BOOT_JDK_FOUND=yes 29015 29016 # Only process if variable expands to non-empty 29017 29018 if test "x$BOOT_JDK" != x; then 29019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29020 29021 # Input might be given as Windows format, start by converting to 29022 # unix format. 29023 path="$BOOT_JDK" 29024 new_path=`$CYGPATH -u "$path"` 29025 29026 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29027 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29028 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29029 # "foo.exe" is OK but "foo" is an error. 29030 # 29031 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29032 # It is also a way to make sure we got the proper file name for the real test later on. 29033 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29034 if test "x$test_shortpath" = x; then 29035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29036 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29037 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29038 fi 29039 29040 # Call helper function which possibly converts this using DOS-style short mode. 29041 # If so, the updated path is stored in $new_path. 29042 29043 input_path="$new_path" 29044 # Check if we need to convert this using DOS-style short mode. If the path 29045 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29046 # take no chances and rewrite it. 29047 # Note: m4 eats our [], so we need to use [ and ] instead. 29048 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29049 if test "x$has_forbidden_chars" != x; then 29050 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29051 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29052 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29053 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29054 # Going to short mode and back again did indeed matter. Since short mode is 29055 # case insensitive, let's make it lowercase to improve readability. 29056 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29057 # Now convert it back to Unix-style (cygpath) 29058 input_path=`$CYGPATH -u "$shortmode_path"` 29059 new_path="$input_path" 29060 fi 29061 fi 29062 29063 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29064 if test "x$test_cygdrive_prefix" = x; then 29065 # As a simple fix, exclude /usr/bin since it's not a real path. 29066 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29067 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29068 # a path prefixed by /cygdrive for fixpath to work. 29069 new_path="$CYGWIN_ROOT_PATH$input_path" 29070 fi 29071 fi 29072 29073 29074 if test "x$path" != "x$new_path"; then 29075 BOOT_JDK="$new_path" 29076 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29077 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29078 fi 29079 29080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29081 29082 path="$BOOT_JDK" 29083 has_colon=`$ECHO $path | $GREP ^.:` 29084 new_path="$path" 29085 if test "x$has_colon" = x; then 29086 # Not in mixed or Windows style, start by that. 29087 new_path=`cmd //c echo $path` 29088 fi 29089 29090 29091 input_path="$new_path" 29092 # Check if we need to convert this using DOS-style short mode. If the path 29093 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29094 # take no chances and rewrite it. 29095 # Note: m4 eats our [], so we need to use [ and ] instead. 29096 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29097 if test "x$has_forbidden_chars" != x; then 29098 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29099 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29100 fi 29101 29102 29103 windows_path="$new_path" 29104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29105 unix_path=`$CYGPATH -u "$windows_path"` 29106 new_path="$unix_path" 29107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29108 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29109 new_path="$unix_path" 29110 fi 29111 29112 if test "x$path" != "x$new_path"; then 29113 BOOT_JDK="$new_path" 29114 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29115 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29116 fi 29117 29118 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29119 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29120 29121 else 29122 # We're on a unix platform. Hooray! :) 29123 path="$BOOT_JDK" 29124 has_space=`$ECHO "$path" | $GREP " "` 29125 if test "x$has_space" != x; then 29126 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29127 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29128 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29129 fi 29130 29131 # Use eval to expand a potential ~ 29132 eval path="$path" 29133 if test ! -f "$path" && test ! -d "$path"; then 29134 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29135 fi 29136 29137 if test -d "$path"; then 29138 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29139 else 29140 dir="`$DIRNAME "$path"`" 29141 base="`$BASENAME "$path"`" 29142 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29143 fi 29144 fi 29145 fi 29146 29147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29148 $as_echo_n "checking for Boot JDK... " >&6; } 29149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29150 $as_echo "$BOOT_JDK" >&6; } 29151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29152 $as_echo_n "checking Boot JDK version... " >&6; } 29153 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29155 $as_echo "$BOOT_JDK_VERSION" >&6; } 29156 fi # end check jdk version 29157 fi # end check javac 29158 fi # end check java 29159 fi # end check boot jdk found 29160 fi 29161 29162 done 29163 fi 29164 29165 29166 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29167 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29168 # Do we have a bin/java? 29169 if test ! -x "$BOOT_JDK/bin/java"; then 29170 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29171 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29172 BOOT_JDK_FOUND=no 29173 else 29174 # Do we have a bin/javac? 29175 if test ! -x "$BOOT_JDK/bin/javac"; then 29176 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29177 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29178 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29179 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29180 BOOT_JDK_FOUND=no 29181 else 29182 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29183 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29184 29185 # Extra M4 quote needed to protect [] in grep expression. 29186 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29187 if test "x$FOUND_CORRECT_VERSION" = x; then 29188 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29189 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29190 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29191 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29192 BOOT_JDK_FOUND=no 29193 else 29194 # We're done! :-) 29195 BOOT_JDK_FOUND=yes 29196 29197 # Only process if variable expands to non-empty 29198 29199 if test "x$BOOT_JDK" != x; then 29200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29201 29202 # Input might be given as Windows format, start by converting to 29203 # unix format. 29204 path="$BOOT_JDK" 29205 new_path=`$CYGPATH -u "$path"` 29206 29207 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29208 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29209 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29210 # "foo.exe" is OK but "foo" is an error. 29211 # 29212 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29213 # It is also a way to make sure we got the proper file name for the real test later on. 29214 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29215 if test "x$test_shortpath" = x; then 29216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29217 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29218 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29219 fi 29220 29221 # Call helper function which possibly converts this using DOS-style short mode. 29222 # If so, the updated path is stored in $new_path. 29223 29224 input_path="$new_path" 29225 # Check if we need to convert this using DOS-style short mode. If the path 29226 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29227 # take no chances and rewrite it. 29228 # Note: m4 eats our [], so we need to use [ and ] instead. 29229 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29230 if test "x$has_forbidden_chars" != x; then 29231 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29232 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29233 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29234 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29235 # Going to short mode and back again did indeed matter. Since short mode is 29236 # case insensitive, let's make it lowercase to improve readability. 29237 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29238 # Now convert it back to Unix-style (cygpath) 29239 input_path=`$CYGPATH -u "$shortmode_path"` 29240 new_path="$input_path" 29241 fi 29242 fi 29243 29244 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29245 if test "x$test_cygdrive_prefix" = x; then 29246 # As a simple fix, exclude /usr/bin since it's not a real path. 29247 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29248 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29249 # a path prefixed by /cygdrive for fixpath to work. 29250 new_path="$CYGWIN_ROOT_PATH$input_path" 29251 fi 29252 fi 29253 29254 29255 if test "x$path" != "x$new_path"; then 29256 BOOT_JDK="$new_path" 29257 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29258 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29259 fi 29260 29261 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29262 29263 path="$BOOT_JDK" 29264 has_colon=`$ECHO $path | $GREP ^.:` 29265 new_path="$path" 29266 if test "x$has_colon" = x; then 29267 # Not in mixed or Windows style, start by that. 29268 new_path=`cmd //c echo $path` 29269 fi 29270 29271 29272 input_path="$new_path" 29273 # Check if we need to convert this using DOS-style short mode. If the path 29274 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29275 # take no chances and rewrite it. 29276 # Note: m4 eats our [], so we need to use [ and ] instead. 29277 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29278 if test "x$has_forbidden_chars" != x; then 29279 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29280 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29281 fi 29282 29283 29284 windows_path="$new_path" 29285 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29286 unix_path=`$CYGPATH -u "$windows_path"` 29287 new_path="$unix_path" 29288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29289 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29290 new_path="$unix_path" 29291 fi 29292 29293 if test "x$path" != "x$new_path"; then 29294 BOOT_JDK="$new_path" 29295 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29296 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29297 fi 29298 29299 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29300 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29301 29302 else 29303 # We're on a unix platform. Hooray! :) 29304 path="$BOOT_JDK" 29305 has_space=`$ECHO "$path" | $GREP " "` 29306 if test "x$has_space" != x; then 29307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29308 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29309 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29310 fi 29311 29312 # Use eval to expand a potential ~ 29313 eval path="$path" 29314 if test ! -f "$path" && test ! -d "$path"; then 29315 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29316 fi 29317 29318 if test -d "$path"; then 29319 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29320 else 29321 dir="`$DIRNAME "$path"`" 29322 base="`$BASENAME "$path"`" 29323 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29324 fi 29325 fi 29326 fi 29327 29328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29329 $as_echo_n "checking for Boot JDK... " >&6; } 29330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29331 $as_echo "$BOOT_JDK" >&6; } 29332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29333 $as_echo_n "checking Boot JDK version... " >&6; } 29334 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29336 $as_echo "$BOOT_JDK_VERSION" >&6; } 29337 fi # end check jdk version 29338 fi # end check javac 29339 fi # end check java 29340 fi # end check boot jdk found 29341 fi 29342 29343 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 29344 29345 if test "x$BOOT_JDK_FOUND" = xno; then 29346 # Now execute the test 29347 29348 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 29349 BOOT_JDK_SUFFIX="/Contents/Home" 29350 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29351 if test "x$ALL_JDKS_FOUND" != x; then 29352 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29353 29354 if test "x$BOOT_JDK_FOUND" = xno; then 29355 # Now execute the test 29356 29357 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29358 if test -d "$BOOT_JDK"; then 29359 BOOT_JDK_FOUND=maybe 29360 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29361 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29362 fi 29363 29364 29365 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29366 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29367 # Do we have a bin/java? 29368 if test ! -x "$BOOT_JDK/bin/java"; then 29369 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29370 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29371 BOOT_JDK_FOUND=no 29372 else 29373 # Do we have a bin/javac? 29374 if test ! -x "$BOOT_JDK/bin/javac"; then 29375 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29376 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29377 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29378 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29379 BOOT_JDK_FOUND=no 29380 else 29381 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29382 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29383 29384 # Extra M4 quote needed to protect [] in grep expression. 29385 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29386 if test "x$FOUND_CORRECT_VERSION" = x; then 29387 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29388 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29389 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29390 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29391 BOOT_JDK_FOUND=no 29392 else 29393 # We're done! :-) 29394 BOOT_JDK_FOUND=yes 29395 29396 # Only process if variable expands to non-empty 29397 29398 if test "x$BOOT_JDK" != x; then 29399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29400 29401 # Input might be given as Windows format, start by converting to 29402 # unix format. 29403 path="$BOOT_JDK" 29404 new_path=`$CYGPATH -u "$path"` 29405 29406 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29407 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29408 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29409 # "foo.exe" is OK but "foo" is an error. 29410 # 29411 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29412 # It is also a way to make sure we got the proper file name for the real test later on. 29413 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29414 if test "x$test_shortpath" = x; then 29415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29416 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29417 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29418 fi 29419 29420 # Call helper function which possibly converts this using DOS-style short mode. 29421 # If so, the updated path is stored in $new_path. 29422 29423 input_path="$new_path" 29424 # Check if we need to convert this using DOS-style short mode. If the path 29425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29426 # take no chances and rewrite it. 29427 # Note: m4 eats our [], so we need to use [ and ] instead. 29428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29429 if test "x$has_forbidden_chars" != x; then 29430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29431 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29432 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29433 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29434 # Going to short mode and back again did indeed matter. Since short mode is 29435 # case insensitive, let's make it lowercase to improve readability. 29436 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29437 # Now convert it back to Unix-style (cygpath) 29438 input_path=`$CYGPATH -u "$shortmode_path"` 29439 new_path="$input_path" 29440 fi 29441 fi 29442 29443 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29444 if test "x$test_cygdrive_prefix" = x; then 29445 # As a simple fix, exclude /usr/bin since it's not a real path. 29446 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29447 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29448 # a path prefixed by /cygdrive for fixpath to work. 29449 new_path="$CYGWIN_ROOT_PATH$input_path" 29450 fi 29451 fi 29452 29453 29454 if test "x$path" != "x$new_path"; then 29455 BOOT_JDK="$new_path" 29456 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29457 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29458 fi 29459 29460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29461 29462 path="$BOOT_JDK" 29463 has_colon=`$ECHO $path | $GREP ^.:` 29464 new_path="$path" 29465 if test "x$has_colon" = x; then 29466 # Not in mixed or Windows style, start by that. 29467 new_path=`cmd //c echo $path` 29468 fi 29469 29470 29471 input_path="$new_path" 29472 # Check if we need to convert this using DOS-style short mode. If the path 29473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29474 # take no chances and rewrite it. 29475 # Note: m4 eats our [], so we need to use [ and ] instead. 29476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29477 if test "x$has_forbidden_chars" != x; then 29478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29479 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29480 fi 29481 29482 29483 windows_path="$new_path" 29484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29485 unix_path=`$CYGPATH -u "$windows_path"` 29486 new_path="$unix_path" 29487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29489 new_path="$unix_path" 29490 fi 29491 29492 if test "x$path" != "x$new_path"; then 29493 BOOT_JDK="$new_path" 29494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29495 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29496 fi 29497 29498 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29499 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29500 29501 else 29502 # We're on a unix platform. Hooray! :) 29503 path="$BOOT_JDK" 29504 has_space=`$ECHO "$path" | $GREP " "` 29505 if test "x$has_space" != x; then 29506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29507 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29508 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29509 fi 29510 29511 # Use eval to expand a potential ~ 29512 eval path="$path" 29513 if test ! -f "$path" && test ! -d "$path"; then 29514 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29515 fi 29516 29517 if test -d "$path"; then 29518 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29519 else 29520 dir="`$DIRNAME "$path"`" 29521 base="`$BASENAME "$path"`" 29522 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29523 fi 29524 fi 29525 fi 29526 29527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29528 $as_echo_n "checking for Boot JDK... " >&6; } 29529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29530 $as_echo "$BOOT_JDK" >&6; } 29531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29532 $as_echo_n "checking Boot JDK version... " >&6; } 29533 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29535 $as_echo "$BOOT_JDK_VERSION" >&6; } 29536 fi # end check jdk version 29537 fi # end check javac 29538 fi # end check java 29539 fi # end check boot jdk found 29540 fi 29541 29542 done 29543 fi 29544 29545 29546 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29547 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29548 # Do we have a bin/java? 29549 if test ! -x "$BOOT_JDK/bin/java"; then 29550 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29551 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29552 BOOT_JDK_FOUND=no 29553 else 29554 # Do we have a bin/javac? 29555 if test ! -x "$BOOT_JDK/bin/javac"; then 29556 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29557 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29558 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29559 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29560 BOOT_JDK_FOUND=no 29561 else 29562 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29563 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29564 29565 # Extra M4 quote needed to protect [] in grep expression. 29566 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29567 if test "x$FOUND_CORRECT_VERSION" = x; then 29568 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29569 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29570 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29571 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29572 BOOT_JDK_FOUND=no 29573 else 29574 # We're done! :-) 29575 BOOT_JDK_FOUND=yes 29576 29577 # Only process if variable expands to non-empty 29578 29579 if test "x$BOOT_JDK" != x; then 29580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29581 29582 # Input might be given as Windows format, start by converting to 29583 # unix format. 29584 path="$BOOT_JDK" 29585 new_path=`$CYGPATH -u "$path"` 29586 29587 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29588 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29589 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29590 # "foo.exe" is OK but "foo" is an error. 29591 # 29592 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29593 # It is also a way to make sure we got the proper file name for the real test later on. 29594 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29595 if test "x$test_shortpath" = x; then 29596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29597 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29598 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29599 fi 29600 29601 # Call helper function which possibly converts this using DOS-style short mode. 29602 # If so, the updated path is stored in $new_path. 29603 29604 input_path="$new_path" 29605 # Check if we need to convert this using DOS-style short mode. If the path 29606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29607 # take no chances and rewrite it. 29608 # Note: m4 eats our [], so we need to use [ and ] instead. 29609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29610 if test "x$has_forbidden_chars" != x; then 29611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29612 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29613 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29614 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29615 # Going to short mode and back again did indeed matter. Since short mode is 29616 # case insensitive, let's make it lowercase to improve readability. 29617 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29618 # Now convert it back to Unix-style (cygpath) 29619 input_path=`$CYGPATH -u "$shortmode_path"` 29620 new_path="$input_path" 29621 fi 29622 fi 29623 29624 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29625 if test "x$test_cygdrive_prefix" = x; then 29626 # As a simple fix, exclude /usr/bin since it's not a real path. 29627 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29628 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29629 # a path prefixed by /cygdrive for fixpath to work. 29630 new_path="$CYGWIN_ROOT_PATH$input_path" 29631 fi 29632 fi 29633 29634 29635 if test "x$path" != "x$new_path"; then 29636 BOOT_JDK="$new_path" 29637 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29638 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29639 fi 29640 29641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29642 29643 path="$BOOT_JDK" 29644 has_colon=`$ECHO $path | $GREP ^.:` 29645 new_path="$path" 29646 if test "x$has_colon" = x; then 29647 # Not in mixed or Windows style, start by that. 29648 new_path=`cmd //c echo $path` 29649 fi 29650 29651 29652 input_path="$new_path" 29653 # Check if we need to convert this using DOS-style short mode. If the path 29654 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29655 # take no chances and rewrite it. 29656 # Note: m4 eats our [], so we need to use [ and ] instead. 29657 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29658 if test "x$has_forbidden_chars" != x; then 29659 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29660 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29661 fi 29662 29663 29664 windows_path="$new_path" 29665 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29666 unix_path=`$CYGPATH -u "$windows_path"` 29667 new_path="$unix_path" 29668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29669 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29670 new_path="$unix_path" 29671 fi 29672 29673 if test "x$path" != "x$new_path"; then 29674 BOOT_JDK="$new_path" 29675 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29676 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29677 fi 29678 29679 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29680 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29681 29682 else 29683 # We're on a unix platform. Hooray! :) 29684 path="$BOOT_JDK" 29685 has_space=`$ECHO "$path" | $GREP " "` 29686 if test "x$has_space" != x; then 29687 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29688 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29689 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29690 fi 29691 29692 # Use eval to expand a potential ~ 29693 eval path="$path" 29694 if test ! -f "$path" && test ! -d "$path"; then 29695 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29696 fi 29697 29698 if test -d "$path"; then 29699 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29700 else 29701 dir="`$DIRNAME "$path"`" 29702 base="`$BASENAME "$path"`" 29703 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29704 fi 29705 fi 29706 fi 29707 29708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29709 $as_echo_n "checking for Boot JDK... " >&6; } 29710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29711 $as_echo "$BOOT_JDK" >&6; } 29712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29713 $as_echo_n "checking Boot JDK version... " >&6; } 29714 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29716 $as_echo "$BOOT_JDK_VERSION" >&6; } 29717 fi # end check jdk version 29718 fi # end check javac 29719 fi # end check java 29720 fi # end check boot jdk found 29721 fi 29722 29723 29724 if test "x$BOOT_JDK_FOUND" = xno; then 29725 # Now execute the test 29726 29727 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 29728 BOOT_JDK_SUFFIX="/Contents/Home" 29729 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29730 if test "x$ALL_JDKS_FOUND" != x; then 29731 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29732 29733 if test "x$BOOT_JDK_FOUND" = xno; then 29734 # Now execute the test 29735 29736 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29737 if test -d "$BOOT_JDK"; then 29738 BOOT_JDK_FOUND=maybe 29739 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29740 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29741 fi 29742 29743 29744 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29745 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29746 # Do we have a bin/java? 29747 if test ! -x "$BOOT_JDK/bin/java"; then 29748 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29749 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29750 BOOT_JDK_FOUND=no 29751 else 29752 # Do we have a bin/javac? 29753 if test ! -x "$BOOT_JDK/bin/javac"; then 29754 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29755 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29756 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29757 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29758 BOOT_JDK_FOUND=no 29759 else 29760 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29761 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29762 29763 # Extra M4 quote needed to protect [] in grep expression. 29764 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29765 if test "x$FOUND_CORRECT_VERSION" = x; then 29766 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29767 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29768 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29769 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29770 BOOT_JDK_FOUND=no 29771 else 29772 # We're done! :-) 29773 BOOT_JDK_FOUND=yes 29774 29775 # Only process if variable expands to non-empty 29776 29777 if test "x$BOOT_JDK" != x; then 29778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29779 29780 # Input might be given as Windows format, start by converting to 29781 # unix format. 29782 path="$BOOT_JDK" 29783 new_path=`$CYGPATH -u "$path"` 29784 29785 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29786 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29787 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29788 # "foo.exe" is OK but "foo" is an error. 29789 # 29790 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29791 # It is also a way to make sure we got the proper file name for the real test later on. 29792 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29793 if test "x$test_shortpath" = x; then 29794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29795 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29796 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29797 fi 29798 29799 # Call helper function which possibly converts this using DOS-style short mode. 29800 # If so, the updated path is stored in $new_path. 29801 29802 input_path="$new_path" 29803 # Check if we need to convert this using DOS-style short mode. If the path 29804 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29805 # take no chances and rewrite it. 29806 # Note: m4 eats our [], so we need to use [ and ] instead. 29807 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29808 if test "x$has_forbidden_chars" != x; then 29809 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29810 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29811 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29812 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29813 # Going to short mode and back again did indeed matter. Since short mode is 29814 # case insensitive, let's make it lowercase to improve readability. 29815 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29816 # Now convert it back to Unix-style (cygpath) 29817 input_path=`$CYGPATH -u "$shortmode_path"` 29818 new_path="$input_path" 29819 fi 29820 fi 29821 29822 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29823 if test "x$test_cygdrive_prefix" = x; then 29824 # As a simple fix, exclude /usr/bin since it's not a real path. 29825 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29826 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29827 # a path prefixed by /cygdrive for fixpath to work. 29828 new_path="$CYGWIN_ROOT_PATH$input_path" 29829 fi 29830 fi 29831 29832 29833 if test "x$path" != "x$new_path"; then 29834 BOOT_JDK="$new_path" 29835 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29836 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29837 fi 29838 29839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29840 29841 path="$BOOT_JDK" 29842 has_colon=`$ECHO $path | $GREP ^.:` 29843 new_path="$path" 29844 if test "x$has_colon" = x; then 29845 # Not in mixed or Windows style, start by that. 29846 new_path=`cmd //c echo $path` 29847 fi 29848 29849 29850 input_path="$new_path" 29851 # Check if we need to convert this using DOS-style short mode. If the path 29852 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29853 # take no chances and rewrite it. 29854 # Note: m4 eats our [], so we need to use [ and ] instead. 29855 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29856 if test "x$has_forbidden_chars" != x; then 29857 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29858 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29859 fi 29860 29861 29862 windows_path="$new_path" 29863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29864 unix_path=`$CYGPATH -u "$windows_path"` 29865 new_path="$unix_path" 29866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29867 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29868 new_path="$unix_path" 29869 fi 29870 29871 if test "x$path" != "x$new_path"; then 29872 BOOT_JDK="$new_path" 29873 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29874 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29875 fi 29876 29877 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29878 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29879 29880 else 29881 # We're on a unix platform. Hooray! :) 29882 path="$BOOT_JDK" 29883 has_space=`$ECHO "$path" | $GREP " "` 29884 if test "x$has_space" != x; then 29885 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29886 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29887 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29888 fi 29889 29890 # Use eval to expand a potential ~ 29891 eval path="$path" 29892 if test ! -f "$path" && test ! -d "$path"; then 29893 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29894 fi 29895 29896 if test -d "$path"; then 29897 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29898 else 29899 dir="`$DIRNAME "$path"`" 29900 base="`$BASENAME "$path"`" 29901 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29902 fi 29903 fi 29904 fi 29905 29906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29907 $as_echo_n "checking for Boot JDK... " >&6; } 29908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29909 $as_echo "$BOOT_JDK" >&6; } 29910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29911 $as_echo_n "checking Boot JDK version... " >&6; } 29912 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29914 $as_echo "$BOOT_JDK_VERSION" >&6; } 29915 fi # end check jdk version 29916 fi # end check javac 29917 fi # end check java 29918 fi # end check boot jdk found 29919 fi 29920 29921 done 29922 fi 29923 29924 29925 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29926 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29927 # Do we have a bin/java? 29928 if test ! -x "$BOOT_JDK/bin/java"; then 29929 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29930 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29931 BOOT_JDK_FOUND=no 29932 else 29933 # Do we have a bin/javac? 29934 if test ! -x "$BOOT_JDK/bin/javac"; then 29935 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29936 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29937 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29938 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29939 BOOT_JDK_FOUND=no 29940 else 29941 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29942 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29943 29944 # Extra M4 quote needed to protect [] in grep expression. 29945 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29946 if test "x$FOUND_CORRECT_VERSION" = x; then 29947 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29948 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29949 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29950 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29951 BOOT_JDK_FOUND=no 29952 else 29953 # We're done! :-) 29954 BOOT_JDK_FOUND=yes 29955 29956 # Only process if variable expands to non-empty 29957 29958 if test "x$BOOT_JDK" != x; then 29959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29960 29961 # Input might be given as Windows format, start by converting to 29962 # unix format. 29963 path="$BOOT_JDK" 29964 new_path=`$CYGPATH -u "$path"` 29965 29966 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29967 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29968 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29969 # "foo.exe" is OK but "foo" is an error. 29970 # 29971 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29972 # It is also a way to make sure we got the proper file name for the real test later on. 29973 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29974 if test "x$test_shortpath" = x; then 29975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29976 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29977 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29978 fi 29979 29980 # Call helper function which possibly converts this using DOS-style short mode. 29981 # If so, the updated path is stored in $new_path. 29982 29983 input_path="$new_path" 29984 # Check if we need to convert this using DOS-style short mode. If the path 29985 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29986 # take no chances and rewrite it. 29987 # Note: m4 eats our [], so we need to use [ and ] instead. 29988 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29989 if test "x$has_forbidden_chars" != x; then 29990 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29991 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29992 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29993 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29994 # Going to short mode and back again did indeed matter. Since short mode is 29995 # case insensitive, let's make it lowercase to improve readability. 29996 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29997 # Now convert it back to Unix-style (cygpath) 29998 input_path=`$CYGPATH -u "$shortmode_path"` 29999 new_path="$input_path" 30000 fi 30001 fi 30002 30003 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30004 if test "x$test_cygdrive_prefix" = x; then 30005 # As a simple fix, exclude /usr/bin since it's not a real path. 30006 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30007 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30008 # a path prefixed by /cygdrive for fixpath to work. 30009 new_path="$CYGWIN_ROOT_PATH$input_path" 30010 fi 30011 fi 30012 30013 30014 if test "x$path" != "x$new_path"; then 30015 BOOT_JDK="$new_path" 30016 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30017 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30018 fi 30019 30020 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30021 30022 path="$BOOT_JDK" 30023 has_colon=`$ECHO $path | $GREP ^.:` 30024 new_path="$path" 30025 if test "x$has_colon" = x; then 30026 # Not in mixed or Windows style, start by that. 30027 new_path=`cmd //c echo $path` 30028 fi 30029 30030 30031 input_path="$new_path" 30032 # Check if we need to convert this using DOS-style short mode. If the path 30033 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30034 # take no chances and rewrite it. 30035 # Note: m4 eats our [], so we need to use [ and ] instead. 30036 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30037 if test "x$has_forbidden_chars" != x; then 30038 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30039 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30040 fi 30041 30042 30043 windows_path="$new_path" 30044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30045 unix_path=`$CYGPATH -u "$windows_path"` 30046 new_path="$unix_path" 30047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30048 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30049 new_path="$unix_path" 30050 fi 30051 30052 if test "x$path" != "x$new_path"; then 30053 BOOT_JDK="$new_path" 30054 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30055 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30056 fi 30057 30058 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30059 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30060 30061 else 30062 # We're on a unix platform. Hooray! :) 30063 path="$BOOT_JDK" 30064 has_space=`$ECHO "$path" | $GREP " "` 30065 if test "x$has_space" != x; then 30066 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30067 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30068 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30069 fi 30070 30071 # Use eval to expand a potential ~ 30072 eval path="$path" 30073 if test ! -f "$path" && test ! -d "$path"; then 30074 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30075 fi 30076 30077 if test -d "$path"; then 30078 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30079 else 30080 dir="`$DIRNAME "$path"`" 30081 base="`$BASENAME "$path"`" 30082 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30083 fi 30084 fi 30085 fi 30086 30087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30088 $as_echo_n "checking for Boot JDK... " >&6; } 30089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30090 $as_echo "$BOOT_JDK" >&6; } 30091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30092 $as_echo_n "checking Boot JDK version... " >&6; } 30093 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30095 $as_echo "$BOOT_JDK_VERSION" >&6; } 30096 fi # end check jdk version 30097 fi # end check javac 30098 fi # end check java 30099 fi # end check boot jdk found 30100 fi 30101 30102 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 30103 30104 if test "x$BOOT_JDK_FOUND" = xno; then 30105 # Now execute the test 30106 30107 BOOT_JDK_PREFIX="/usr/lib/jvm" 30108 BOOT_JDK_SUFFIX="" 30109 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 30110 if test "x$ALL_JDKS_FOUND" != x; then 30111 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 30112 30113 if test "x$BOOT_JDK_FOUND" = xno; then 30114 # Now execute the test 30115 30116 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 30117 if test -d "$BOOT_JDK"; then 30118 BOOT_JDK_FOUND=maybe 30119 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 30120 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 30121 fi 30122 30123 30124 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30125 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30126 # Do we have a bin/java? 30127 if test ! -x "$BOOT_JDK/bin/java"; then 30128 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30129 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30130 BOOT_JDK_FOUND=no 30131 else 30132 # Do we have a bin/javac? 30133 if test ! -x "$BOOT_JDK/bin/javac"; then 30134 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30135 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30136 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30137 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30138 BOOT_JDK_FOUND=no 30139 else 30140 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30141 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30142 30143 # Extra M4 quote needed to protect [] in grep expression. 30144 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30145 if test "x$FOUND_CORRECT_VERSION" = x; then 30146 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30147 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30148 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30149 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30150 BOOT_JDK_FOUND=no 30151 else 30152 # We're done! :-) 30153 BOOT_JDK_FOUND=yes 30154 30155 # Only process if variable expands to non-empty 30156 30157 if test "x$BOOT_JDK" != x; then 30158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30159 30160 # Input might be given as Windows format, start by converting to 30161 # unix format. 30162 path="$BOOT_JDK" 30163 new_path=`$CYGPATH -u "$path"` 30164 30165 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30166 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30167 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30168 # "foo.exe" is OK but "foo" is an error. 30169 # 30170 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30171 # It is also a way to make sure we got the proper file name for the real test later on. 30172 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30173 if test "x$test_shortpath" = x; then 30174 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30175 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30176 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30177 fi 30178 30179 # Call helper function which possibly converts this using DOS-style short mode. 30180 # If so, the updated path is stored in $new_path. 30181 30182 input_path="$new_path" 30183 # Check if we need to convert this using DOS-style short mode. If the path 30184 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30185 # take no chances and rewrite it. 30186 # Note: m4 eats our [], so we need to use [ and ] instead. 30187 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30188 if test "x$has_forbidden_chars" != x; then 30189 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30190 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30191 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30192 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30193 # Going to short mode and back again did indeed matter. Since short mode is 30194 # case insensitive, let's make it lowercase to improve readability. 30195 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30196 # Now convert it back to Unix-style (cygpath) 30197 input_path=`$CYGPATH -u "$shortmode_path"` 30198 new_path="$input_path" 30199 fi 30200 fi 30201 30202 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30203 if test "x$test_cygdrive_prefix" = x; then 30204 # As a simple fix, exclude /usr/bin since it's not a real path. 30205 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30206 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30207 # a path prefixed by /cygdrive for fixpath to work. 30208 new_path="$CYGWIN_ROOT_PATH$input_path" 30209 fi 30210 fi 30211 30212 30213 if test "x$path" != "x$new_path"; then 30214 BOOT_JDK="$new_path" 30215 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30216 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30217 fi 30218 30219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30220 30221 path="$BOOT_JDK" 30222 has_colon=`$ECHO $path | $GREP ^.:` 30223 new_path="$path" 30224 if test "x$has_colon" = x; then 30225 # Not in mixed or Windows style, start by that. 30226 new_path=`cmd //c echo $path` 30227 fi 30228 30229 30230 input_path="$new_path" 30231 # Check if we need to convert this using DOS-style short mode. If the path 30232 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30233 # take no chances and rewrite it. 30234 # Note: m4 eats our [], so we need to use [ and ] instead. 30235 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30236 if test "x$has_forbidden_chars" != x; then 30237 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30238 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30239 fi 30240 30241 30242 windows_path="$new_path" 30243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30244 unix_path=`$CYGPATH -u "$windows_path"` 30245 new_path="$unix_path" 30246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30247 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30248 new_path="$unix_path" 30249 fi 30250 30251 if test "x$path" != "x$new_path"; then 30252 BOOT_JDK="$new_path" 30253 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30254 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30255 fi 30256 30257 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30258 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30259 30260 else 30261 # We're on a unix platform. Hooray! :) 30262 path="$BOOT_JDK" 30263 has_space=`$ECHO "$path" | $GREP " "` 30264 if test "x$has_space" != x; then 30265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30266 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30267 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30268 fi 30269 30270 # Use eval to expand a potential ~ 30271 eval path="$path" 30272 if test ! -f "$path" && test ! -d "$path"; then 30273 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30274 fi 30275 30276 if test -d "$path"; then 30277 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30278 else 30279 dir="`$DIRNAME "$path"`" 30280 base="`$BASENAME "$path"`" 30281 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30282 fi 30283 fi 30284 fi 30285 30286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30287 $as_echo_n "checking for Boot JDK... " >&6; } 30288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30289 $as_echo "$BOOT_JDK" >&6; } 30290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30291 $as_echo_n "checking Boot JDK version... " >&6; } 30292 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30294 $as_echo "$BOOT_JDK_VERSION" >&6; } 30295 fi # end check jdk version 30296 fi # end check javac 30297 fi # end check java 30298 fi # end check boot jdk found 30299 fi 30300 30301 done 30302 fi 30303 30304 30305 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30306 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30307 # Do we have a bin/java? 30308 if test ! -x "$BOOT_JDK/bin/java"; then 30309 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30310 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30311 BOOT_JDK_FOUND=no 30312 else 30313 # Do we have a bin/javac? 30314 if test ! -x "$BOOT_JDK/bin/javac"; then 30315 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30316 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30317 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30318 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30319 BOOT_JDK_FOUND=no 30320 else 30321 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30322 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30323 30324 # Extra M4 quote needed to protect [] in grep expression. 30325 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30326 if test "x$FOUND_CORRECT_VERSION" = x; then 30327 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30328 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30329 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30330 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30331 BOOT_JDK_FOUND=no 30332 else 30333 # We're done! :-) 30334 BOOT_JDK_FOUND=yes 30335 30336 # Only process if variable expands to non-empty 30337 30338 if test "x$BOOT_JDK" != x; then 30339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30340 30341 # Input might be given as Windows format, start by converting to 30342 # unix format. 30343 path="$BOOT_JDK" 30344 new_path=`$CYGPATH -u "$path"` 30345 30346 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30347 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30348 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30349 # "foo.exe" is OK but "foo" is an error. 30350 # 30351 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30352 # It is also a way to make sure we got the proper file name for the real test later on. 30353 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30354 if test "x$test_shortpath" = x; then 30355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30356 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30357 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30358 fi 30359 30360 # Call helper function which possibly converts this using DOS-style short mode. 30361 # If so, the updated path is stored in $new_path. 30362 30363 input_path="$new_path" 30364 # Check if we need to convert this using DOS-style short mode. If the path 30365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30366 # take no chances and rewrite it. 30367 # Note: m4 eats our [], so we need to use [ and ] instead. 30368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30369 if test "x$has_forbidden_chars" != x; then 30370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30371 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30372 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30373 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30374 # Going to short mode and back again did indeed matter. Since short mode is 30375 # case insensitive, let's make it lowercase to improve readability. 30376 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30377 # Now convert it back to Unix-style (cygpath) 30378 input_path=`$CYGPATH -u "$shortmode_path"` 30379 new_path="$input_path" 30380 fi 30381 fi 30382 30383 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30384 if test "x$test_cygdrive_prefix" = x; then 30385 # As a simple fix, exclude /usr/bin since it's not a real path. 30386 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30387 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30388 # a path prefixed by /cygdrive for fixpath to work. 30389 new_path="$CYGWIN_ROOT_PATH$input_path" 30390 fi 30391 fi 30392 30393 30394 if test "x$path" != "x$new_path"; then 30395 BOOT_JDK="$new_path" 30396 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30397 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30398 fi 30399 30400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30401 30402 path="$BOOT_JDK" 30403 has_colon=`$ECHO $path | $GREP ^.:` 30404 new_path="$path" 30405 if test "x$has_colon" = x; then 30406 # Not in mixed or Windows style, start by that. 30407 new_path=`cmd //c echo $path` 30408 fi 30409 30410 30411 input_path="$new_path" 30412 # Check if we need to convert this using DOS-style short mode. If the path 30413 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30414 # take no chances and rewrite it. 30415 # Note: m4 eats our [], so we need to use [ and ] instead. 30416 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30417 if test "x$has_forbidden_chars" != x; then 30418 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30419 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30420 fi 30421 30422 30423 windows_path="$new_path" 30424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30425 unix_path=`$CYGPATH -u "$windows_path"` 30426 new_path="$unix_path" 30427 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30428 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30429 new_path="$unix_path" 30430 fi 30431 30432 if test "x$path" != "x$new_path"; then 30433 BOOT_JDK="$new_path" 30434 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30435 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30436 fi 30437 30438 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30439 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30440 30441 else 30442 # We're on a unix platform. Hooray! :) 30443 path="$BOOT_JDK" 30444 has_space=`$ECHO "$path" | $GREP " "` 30445 if test "x$has_space" != x; then 30446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30447 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30448 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30449 fi 30450 30451 # Use eval to expand a potential ~ 30452 eval path="$path" 30453 if test ! -f "$path" && test ! -d "$path"; then 30454 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30455 fi 30456 30457 if test -d "$path"; then 30458 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30459 else 30460 dir="`$DIRNAME "$path"`" 30461 base="`$BASENAME "$path"`" 30462 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30463 fi 30464 fi 30465 fi 30466 30467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30468 $as_echo_n "checking for Boot JDK... " >&6; } 30469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30470 $as_echo "$BOOT_JDK" >&6; } 30471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30472 $as_echo_n "checking Boot JDK version... " >&6; } 30473 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30475 $as_echo "$BOOT_JDK_VERSION" >&6; } 30476 fi # end check jdk version 30477 fi # end check javac 30478 fi # end check java 30479 fi # end check boot jdk found 30480 fi 30481 30482 fi 30483 30484 30485 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30486 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30487 # Do we have a bin/java? 30488 if test ! -x "$BOOT_JDK/bin/java"; then 30489 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30490 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30491 BOOT_JDK_FOUND=no 30492 else 30493 # Do we have a bin/javac? 30494 if test ! -x "$BOOT_JDK/bin/javac"; then 30495 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30496 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30497 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30498 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30499 BOOT_JDK_FOUND=no 30500 else 30501 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30502 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30503 30504 # Extra M4 quote needed to protect [] in grep expression. 30505 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30506 if test "x$FOUND_CORRECT_VERSION" = x; then 30507 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30508 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30509 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30510 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30511 BOOT_JDK_FOUND=no 30512 else 30513 # We're done! :-) 30514 BOOT_JDK_FOUND=yes 30515 30516 # Only process if variable expands to non-empty 30517 30518 if test "x$BOOT_JDK" != x; then 30519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30520 30521 # Input might be given as Windows format, start by converting to 30522 # unix format. 30523 path="$BOOT_JDK" 30524 new_path=`$CYGPATH -u "$path"` 30525 30526 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30527 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30528 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30529 # "foo.exe" is OK but "foo" is an error. 30530 # 30531 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30532 # It is also a way to make sure we got the proper file name for the real test later on. 30533 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30534 if test "x$test_shortpath" = x; then 30535 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30536 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30537 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30538 fi 30539 30540 # Call helper function which possibly converts this using DOS-style short mode. 30541 # If so, the updated path is stored in $new_path. 30542 30543 input_path="$new_path" 30544 # Check if we need to convert this using DOS-style short mode. If the path 30545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30546 # take no chances and rewrite it. 30547 # Note: m4 eats our [], so we need to use [ and ] instead. 30548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30549 if test "x$has_forbidden_chars" != x; then 30550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30551 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30552 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30553 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30554 # Going to short mode and back again did indeed matter. Since short mode is 30555 # case insensitive, let's make it lowercase to improve readability. 30556 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30557 # Now convert it back to Unix-style (cygpath) 30558 input_path=`$CYGPATH -u "$shortmode_path"` 30559 new_path="$input_path" 30560 fi 30561 fi 30562 30563 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30564 if test "x$test_cygdrive_prefix" = x; then 30565 # As a simple fix, exclude /usr/bin since it's not a real path. 30566 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30567 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30568 # a path prefixed by /cygdrive for fixpath to work. 30569 new_path="$CYGWIN_ROOT_PATH$input_path" 30570 fi 30571 fi 30572 30573 30574 if test "x$path" != "x$new_path"; then 30575 BOOT_JDK="$new_path" 30576 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30577 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30578 fi 30579 30580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30581 30582 path="$BOOT_JDK" 30583 has_colon=`$ECHO $path | $GREP ^.:` 30584 new_path="$path" 30585 if test "x$has_colon" = x; then 30586 # Not in mixed or Windows style, start by that. 30587 new_path=`cmd //c echo $path` 30588 fi 30589 30590 30591 input_path="$new_path" 30592 # Check if we need to convert this using DOS-style short mode. If the path 30593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30594 # take no chances and rewrite it. 30595 # Note: m4 eats our [], so we need to use [ and ] instead. 30596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30597 if test "x$has_forbidden_chars" != x; then 30598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30599 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30600 fi 30601 30602 30603 windows_path="$new_path" 30604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30605 unix_path=`$CYGPATH -u "$windows_path"` 30606 new_path="$unix_path" 30607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30608 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30609 new_path="$unix_path" 30610 fi 30611 30612 if test "x$path" != "x$new_path"; then 30613 BOOT_JDK="$new_path" 30614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30615 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30616 fi 30617 30618 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30619 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30620 30621 else 30622 # We're on a unix platform. Hooray! :) 30623 path="$BOOT_JDK" 30624 has_space=`$ECHO "$path" | $GREP " "` 30625 if test "x$has_space" != x; then 30626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30627 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30628 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30629 fi 30630 30631 # Use eval to expand a potential ~ 30632 eval path="$path" 30633 if test ! -f "$path" && test ! -d "$path"; then 30634 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30635 fi 30636 30637 if test -d "$path"; then 30638 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30639 else 30640 dir="`$DIRNAME "$path"`" 30641 base="`$BASENAME "$path"`" 30642 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30643 fi 30644 fi 30645 fi 30646 30647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30648 $as_echo_n "checking for Boot JDK... " >&6; } 30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30650 $as_echo "$BOOT_JDK" >&6; } 30651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30652 $as_echo_n "checking Boot JDK version... " >&6; } 30653 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30655 $as_echo "$BOOT_JDK_VERSION" >&6; } 30656 fi # end check jdk version 30657 fi # end check javac 30658 fi # end check java 30659 fi # end check boot jdk found 30660 fi 30661 30662 30663 # If we haven't found anything yet, we've truly lost. Give up. 30664 if test "x$BOOT_JDK_FOUND" = xno; then 30665 30666 # Print a helpful message on how to acquire the necessary build dependency. 30667 # openjdk is the help tag: freetype, cups, alsa etc 30668 MISSING_DEPENDENCY=openjdk 30669 30670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30671 cygwin_help $MISSING_DEPENDENCY 30672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30673 msys_help $MISSING_DEPENDENCY 30674 else 30675 PKGHANDLER_COMMAND= 30676 30677 case $PKGHANDLER in 30678 apt-get) 30679 apt_help $MISSING_DEPENDENCY ;; 30680 yum) 30681 yum_help $MISSING_DEPENDENCY ;; 30682 brew) 30683 brew_help $MISSING_DEPENDENCY ;; 30684 port) 30685 port_help $MISSING_DEPENDENCY ;; 30686 pkgutil) 30687 pkgutil_help $MISSING_DEPENDENCY ;; 30688 pkgadd) 30689 pkgadd_help $MISSING_DEPENDENCY ;; 30690 esac 30691 30692 if test "x$PKGHANDLER_COMMAND" != x; then 30693 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30694 fi 30695 fi 30696 30697 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 30698 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 30699 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitly setting --with-boot-jdk" >&5 30700 $as_echo "$as_me: This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30701 as_fn_error $? "Cannot continue" "$LINENO" 5 30702 fi 30703 30704 30705 30706 # Setup tools from the Boot JDK. 30707 30708 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30709 30710 # Publish this variable in the help. 30711 30712 30713 if [ -z "${JAVA+x}" ]; then 30714 # The variable is not set by user, try to locate tool using the code snippet 30715 30716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30717 $as_echo_n "checking for java in Boot JDK... " >&6; } 30718 JAVA=$BOOT_JDK/bin/java 30719 if test ! -x $JAVA; then 30720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30721 $as_echo "not found" >&6; } 30722 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30723 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30724 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30725 fi 30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30727 $as_echo "ok" >&6; } 30728 30729 30730 else 30731 # The variable is set, but is it from the command line or the environment? 30732 30733 # Try to remove the string !JAVA! from our list. 30734 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 30735 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30736 # If it failed, the variable was not from the command line. Ignore it, 30737 # but warn the user (except for BASH, which is always set by the calling BASH). 30738 if test "xJAVA" != xBASH; then 30739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 30740 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 30741 fi 30742 # Try to locate tool using the code snippet 30743 30744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30745 $as_echo_n "checking for java in Boot JDK... " >&6; } 30746 JAVA=$BOOT_JDK/bin/java 30747 if test ! -x $JAVA; then 30748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30749 $as_echo "not found" >&6; } 30750 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30751 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30752 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30753 fi 30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30755 $as_echo "ok" >&6; } 30756 30757 30758 else 30759 # If it succeeded, then it was overridden by the user. We will use it 30760 # for the tool. 30761 30762 # First remove it from the list of overridden variables, so we can test 30763 # for unknown variables in the end. 30764 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30765 30766 # Check if we try to supply an empty value 30767 if test "x$JAVA" = x; then 30768 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30769 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30771 $as_echo_n "checking for JAVA... " >&6; } 30772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30773 $as_echo "disabled" >&6; } 30774 else 30775 # Check if the provided tool contains a complete path. 30776 tool_specified="$JAVA" 30777 tool_basename="${tool_specified##*/}" 30778 if test "x$tool_basename" = "x$tool_specified"; then 30779 # A command without a complete path is provided, search $PATH. 30780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30781 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30782 # Extract the first word of "$tool_basename", so it can be a program name with args. 30783 set dummy $tool_basename; ac_word=$2 30784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30785 $as_echo_n "checking for $ac_word... " >&6; } 30786 if ${ac_cv_path_JAVA+:} false; then : 30787 $as_echo_n "(cached) " >&6 30788 else 30789 case $JAVA in 30790 [\\/]* | ?:[\\/]*) 30791 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30792 ;; 30793 *) 30794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30795 for as_dir in $PATH 30796 do 30797 IFS=$as_save_IFS 30798 test -z "$as_dir" && as_dir=. 30799 for ac_exec_ext in '' $ac_executable_extensions; do 30800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30801 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30803 break 2 30804 fi 30805 done 30806 done 30807 IFS=$as_save_IFS 30808 30809 ;; 30810 esac 30811 fi 30812 JAVA=$ac_cv_path_JAVA 30813 if test -n "$JAVA"; then 30814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30815 $as_echo "$JAVA" >&6; } 30816 else 30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30818 $as_echo "no" >&6; } 30819 fi 30820 30821 30822 if test "x$JAVA" = x; then 30823 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30824 fi 30825 else 30826 # Otherwise we believe it is a complete path. Use it as it is. 30827 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30828 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30830 $as_echo_n "checking for JAVA... " >&6; } 30831 if test ! -x "$tool_specified"; then 30832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30833 $as_echo "not found" >&6; } 30834 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30835 fi 30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30837 $as_echo "$tool_specified" >&6; } 30838 fi 30839 fi 30840 fi 30841 30842 fi 30843 30844 30845 30846 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30847 30848 # Publish this variable in the help. 30849 30850 30851 if [ -z "${JAVAC+x}" ]; then 30852 # The variable is not set by user, try to locate tool using the code snippet 30853 30854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30855 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30856 JAVAC=$BOOT_JDK/bin/javac 30857 if test ! -x $JAVAC; then 30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30859 $as_echo "not found" >&6; } 30860 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30861 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30862 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30863 fi 30864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30865 $as_echo "ok" >&6; } 30866 30867 30868 else 30869 # The variable is set, but is it from the command line or the environment? 30870 30871 # Try to remove the string !JAVAC! from our list. 30872 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30873 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30874 # If it failed, the variable was not from the command line. Ignore it, 30875 # but warn the user (except for BASH, which is always set by the calling BASH). 30876 if test "xJAVAC" != xBASH; then 30877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30878 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30879 fi 30880 # Try to locate tool using the code snippet 30881 30882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30883 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30884 JAVAC=$BOOT_JDK/bin/javac 30885 if test ! -x $JAVAC; then 30886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30887 $as_echo "not found" >&6; } 30888 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30889 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30890 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30891 fi 30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30893 $as_echo "ok" >&6; } 30894 30895 30896 else 30897 # If it succeeded, then it was overridden by the user. We will use it 30898 # for the tool. 30899 30900 # First remove it from the list of overridden variables, so we can test 30901 # for unknown variables in the end. 30902 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30903 30904 # Check if we try to supply an empty value 30905 if test "x$JAVAC" = x; then 30906 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30907 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30909 $as_echo_n "checking for JAVAC... " >&6; } 30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30911 $as_echo "disabled" >&6; } 30912 else 30913 # Check if the provided tool contains a complete path. 30914 tool_specified="$JAVAC" 30915 tool_basename="${tool_specified##*/}" 30916 if test "x$tool_basename" = "x$tool_specified"; then 30917 # A command without a complete path is provided, search $PATH. 30918 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30919 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30920 # Extract the first word of "$tool_basename", so it can be a program name with args. 30921 set dummy $tool_basename; ac_word=$2 30922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30923 $as_echo_n "checking for $ac_word... " >&6; } 30924 if ${ac_cv_path_JAVAC+:} false; then : 30925 $as_echo_n "(cached) " >&6 30926 else 30927 case $JAVAC in 30928 [\\/]* | ?:[\\/]*) 30929 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30930 ;; 30931 *) 30932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30933 for as_dir in $PATH 30934 do 30935 IFS=$as_save_IFS 30936 test -z "$as_dir" && as_dir=. 30937 for ac_exec_ext in '' $ac_executable_extensions; do 30938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30939 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30941 break 2 30942 fi 30943 done 30944 done 30945 IFS=$as_save_IFS 30946 30947 ;; 30948 esac 30949 fi 30950 JAVAC=$ac_cv_path_JAVAC 30951 if test -n "$JAVAC"; then 30952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30953 $as_echo "$JAVAC" >&6; } 30954 else 30955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30956 $as_echo "no" >&6; } 30957 fi 30958 30959 30960 if test "x$JAVAC" = x; then 30961 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30962 fi 30963 else 30964 # Otherwise we believe it is a complete path. Use it as it is. 30965 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 30966 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 30967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30968 $as_echo_n "checking for JAVAC... " >&6; } 30969 if test ! -x "$tool_specified"; then 30970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30971 $as_echo "not found" >&6; } 30972 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 30973 fi 30974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30975 $as_echo "$tool_specified" >&6; } 30976 fi 30977 fi 30978 fi 30979 30980 fi 30981 30982 30983 30984 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30985 30986 # Publish this variable in the help. 30987 30988 30989 if [ -z "${JAVADOC+x}" ]; then 30990 # The variable is not set by user, try to locate tool using the code snippet 30991 30992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javadoc in Boot JDK" >&5 30993 $as_echo_n "checking for javadoc in Boot JDK... " >&6; } 30994 JAVADOC=$BOOT_JDK/bin/javadoc 30995 if test ! -x $JAVADOC; then 30996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30997 $as_echo "not found" >&6; } 30998 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30999 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31000 as_fn_error $? "Could not find javadoc in the Boot JDK" "$LINENO" 5 31001 fi 31002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31003 $as_echo "ok" >&6; } 31004 31005 31006 else 31007 # The variable is set, but is it from the command line or the environment? 31008 31009 # Try to remove the string !JAVADOC! from our list. 31010 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVADOC!/} 31011 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31012 # If it failed, the variable was not from the command line. Ignore it, 31013 # but warn the user (except for BASH, which is always set by the calling BASH). 31014 if test "xJAVADOC" != xBASH; then 31015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVADOC from the environment. Use command line variables instead." >&5 31016 $as_echo "$as_me: WARNING: Ignoring value of JAVADOC from the environment. Use command line variables instead." >&2;} 31017 fi 31018 # Try to locate tool using the code snippet 31019 31020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javadoc in Boot JDK" >&5 31021 $as_echo_n "checking for javadoc in Boot JDK... " >&6; } 31022 JAVADOC=$BOOT_JDK/bin/javadoc 31023 if test ! -x $JAVADOC; then 31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31025 $as_echo "not found" >&6; } 31026 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31027 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31028 as_fn_error $? "Could not find javadoc in the Boot JDK" "$LINENO" 5 31029 fi 31030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31031 $as_echo "ok" >&6; } 31032 31033 31034 else 31035 # If it succeeded, then it was overridden by the user. We will use it 31036 # for the tool. 31037 31038 # First remove it from the list of overridden variables, so we can test 31039 # for unknown variables in the end. 31040 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31041 31042 # Check if we try to supply an empty value 31043 if test "x$JAVADOC" = x; then 31044 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVADOC= (no value)" >&5 31045 $as_echo "$as_me: Setting user supplied tool JAVADOC= (no value)" >&6;} 31046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVADOC" >&5 31047 $as_echo_n "checking for JAVADOC... " >&6; } 31048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31049 $as_echo "disabled" >&6; } 31050 else 31051 # Check if the provided tool contains a complete path. 31052 tool_specified="$JAVADOC" 31053 tool_basename="${tool_specified##*/}" 31054 if test "x$tool_basename" = "x$tool_specified"; then 31055 # A command without a complete path is provided, search $PATH. 31056 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVADOC=$tool_basename" >&5 31057 $as_echo "$as_me: Will search for user supplied tool JAVADOC=$tool_basename" >&6;} 31058 # Extract the first word of "$tool_basename", so it can be a program name with args. 31059 set dummy $tool_basename; ac_word=$2 31060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31061 $as_echo_n "checking for $ac_word... " >&6; } 31062 if ${ac_cv_path_JAVADOC+:} false; then : 31063 $as_echo_n "(cached) " >&6 31064 else 31065 case $JAVADOC in 31066 [\\/]* | ?:[\\/]*) 31067 ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path. 31068 ;; 31069 *) 31070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31071 for as_dir in $PATH 31072 do 31073 IFS=$as_save_IFS 31074 test -z "$as_dir" && as_dir=. 31075 for ac_exec_ext in '' $ac_executable_extensions; do 31076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31077 ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext" 31078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31079 break 2 31080 fi 31081 done 31082 done 31083 IFS=$as_save_IFS 31084 31085 ;; 31086 esac 31087 fi 31088 JAVADOC=$ac_cv_path_JAVADOC 31089 if test -n "$JAVADOC"; then 31090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 31091 $as_echo "$JAVADOC" >&6; } 31092 else 31093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31094 $as_echo "no" >&6; } 31095 fi 31096 31097 31098 if test "x$JAVADOC" = x; then 31099 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31100 fi 31101 else 31102 # Otherwise we believe it is a complete path. Use it as it is. 31103 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVADOC=$tool_specified" >&5 31104 $as_echo "$as_me: Will use user supplied tool JAVADOC=$tool_specified" >&6;} 31105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVADOC" >&5 31106 $as_echo_n "checking for JAVADOC... " >&6; } 31107 if test ! -x "$tool_specified"; then 31108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31109 $as_echo "not found" >&6; } 31110 as_fn_error $? "User supplied tool JAVADOC=$tool_specified does not exist or is not executable" "$LINENO" 5 31111 fi 31112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31113 $as_echo "$tool_specified" >&6; } 31114 fi 31115 fi 31116 fi 31117 31118 fi 31119 31120 31121 31122 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31123 31124 # Publish this variable in the help. 31125 31126 31127 if [ -z "${JAR+x}" ]; then 31128 # The variable is not set by user, try to locate tool using the code snippet 31129 31130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31131 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31132 JAR=$BOOT_JDK/bin/jar 31133 if test ! -x $JAR; then 31134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31135 $as_echo "not found" >&6; } 31136 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31137 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31138 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31139 fi 31140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31141 $as_echo "ok" >&6; } 31142 31143 31144 else 31145 # The variable is set, but is it from the command line or the environment? 31146 31147 # Try to remove the string !JAR! from our list. 31148 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 31149 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31150 # If it failed, the variable was not from the command line. Ignore it, 31151 # but warn the user (except for BASH, which is always set by the calling BASH). 31152 if test "xJAR" != xBASH; then 31153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 31154 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 31155 fi 31156 # Try to locate tool using the code snippet 31157 31158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31159 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31160 JAR=$BOOT_JDK/bin/jar 31161 if test ! -x $JAR; then 31162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31163 $as_echo "not found" >&6; } 31164 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31165 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31166 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31167 fi 31168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31169 $as_echo "ok" >&6; } 31170 31171 31172 else 31173 # If it succeeded, then it was overridden by the user. We will use it 31174 # for the tool. 31175 31176 # First remove it from the list of overridden variables, so we can test 31177 # for unknown variables in the end. 31178 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31179 31180 # Check if we try to supply an empty value 31181 if test "x$JAR" = x; then 31182 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 31183 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 31184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31185 $as_echo_n "checking for JAR... " >&6; } 31186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31187 $as_echo "disabled" >&6; } 31188 else 31189 # Check if the provided tool contains a complete path. 31190 tool_specified="$JAR" 31191 tool_basename="${tool_specified##*/}" 31192 if test "x$tool_basename" = "x$tool_specified"; then 31193 # A command without a complete path is provided, search $PATH. 31194 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 31195 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 31196 # Extract the first word of "$tool_basename", so it can be a program name with args. 31197 set dummy $tool_basename; ac_word=$2 31198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31199 $as_echo_n "checking for $ac_word... " >&6; } 31200 if ${ac_cv_path_JAR+:} false; then : 31201 $as_echo_n "(cached) " >&6 31202 else 31203 case $JAR in 31204 [\\/]* | ?:[\\/]*) 31205 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 31206 ;; 31207 *) 31208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31209 for as_dir in $PATH 31210 do 31211 IFS=$as_save_IFS 31212 test -z "$as_dir" && as_dir=. 31213 for ac_exec_ext in '' $ac_executable_extensions; do 31214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31215 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 31216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31217 break 2 31218 fi 31219 done 31220 done 31221 IFS=$as_save_IFS 31222 31223 ;; 31224 esac 31225 fi 31226 JAR=$ac_cv_path_JAR 31227 if test -n "$JAR"; then 31228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 31229 $as_echo "$JAR" >&6; } 31230 else 31231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31232 $as_echo "no" >&6; } 31233 fi 31234 31235 31236 if test "x$JAR" = x; then 31237 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31238 fi 31239 else 31240 # Otherwise we believe it is a complete path. Use it as it is. 31241 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 31242 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 31243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31244 $as_echo_n "checking for JAR... " >&6; } 31245 if test ! -x "$tool_specified"; then 31246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31247 $as_echo "not found" >&6; } 31248 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 31249 fi 31250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31251 $as_echo "$tool_specified" >&6; } 31252 fi 31253 fi 31254 fi 31255 31256 fi 31257 31258 31259 31260 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31261 31262 # Publish this variable in the help. 31263 31264 31265 if [ -z "${JARSIGNER+x}" ]; then 31266 # The variable is not set by user, try to locate tool using the code snippet 31267 31268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31269 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31270 JARSIGNER=$BOOT_JDK/bin/jarsigner 31271 if test ! -x $JARSIGNER; then 31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31273 $as_echo "not found" >&6; } 31274 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31275 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31276 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31277 fi 31278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31279 $as_echo "ok" >&6; } 31280 31281 31282 else 31283 # The variable is set, but is it from the command line or the environment? 31284 31285 # Try to remove the string !JARSIGNER! from our list. 31286 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 31287 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31288 # If it failed, the variable was not from the command line. Ignore it, 31289 # but warn the user (except for BASH, which is always set by the calling BASH). 31290 if test "xJARSIGNER" != xBASH; then 31291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 31292 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 31293 fi 31294 # Try to locate tool using the code snippet 31295 31296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31297 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31298 JARSIGNER=$BOOT_JDK/bin/jarsigner 31299 if test ! -x $JARSIGNER; then 31300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31301 $as_echo "not found" >&6; } 31302 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31303 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31304 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31305 fi 31306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31307 $as_echo "ok" >&6; } 31308 31309 31310 else 31311 # If it succeeded, then it was overridden by the user. We will use it 31312 # for the tool. 31313 31314 # First remove it from the list of overridden variables, so we can test 31315 # for unknown variables in the end. 31316 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31317 31318 # Check if we try to supply an empty value 31319 if test "x$JARSIGNER" = x; then 31320 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 31321 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 31322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31323 $as_echo_n "checking for JARSIGNER... " >&6; } 31324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31325 $as_echo "disabled" >&6; } 31326 else 31327 # Check if the provided tool contains a complete path. 31328 tool_specified="$JARSIGNER" 31329 tool_basename="${tool_specified##*/}" 31330 if test "x$tool_basename" = "x$tool_specified"; then 31331 # A command without a complete path is provided, search $PATH. 31332 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 31333 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 31334 # Extract the first word of "$tool_basename", so it can be a program name with args. 31335 set dummy $tool_basename; ac_word=$2 31336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31337 $as_echo_n "checking for $ac_word... " >&6; } 31338 if ${ac_cv_path_JARSIGNER+:} false; then : 31339 $as_echo_n "(cached) " >&6 31340 else 31341 case $JARSIGNER in 31342 [\\/]* | ?:[\\/]*) 31343 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 31344 ;; 31345 *) 31346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31347 for as_dir in $PATH 31348 do 31349 IFS=$as_save_IFS 31350 test -z "$as_dir" && as_dir=. 31351 for ac_exec_ext in '' $ac_executable_extensions; do 31352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31353 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 31354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31355 break 2 31356 fi 31357 done 31358 done 31359 IFS=$as_save_IFS 31360 31361 ;; 31362 esac 31363 fi 31364 JARSIGNER=$ac_cv_path_JARSIGNER 31365 if test -n "$JARSIGNER"; then 31366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 31367 $as_echo "$JARSIGNER" >&6; } 31368 else 31369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31370 $as_echo "no" >&6; } 31371 fi 31372 31373 31374 if test "x$JARSIGNER" = x; then 31375 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31376 fi 31377 else 31378 # Otherwise we believe it is a complete path. Use it as it is. 31379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 31380 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 31381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31382 $as_echo_n "checking for JARSIGNER... " >&6; } 31383 if test ! -x "$tool_specified"; then 31384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31385 $as_echo "not found" >&6; } 31386 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 31387 fi 31388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31389 $as_echo "$tool_specified" >&6; } 31390 fi 31391 fi 31392 fi 31393 31394 fi 31395 31396 31397 31398 # Finally, set some other options... 31399 31400 # When compiling code to be executed by the Boot JDK, force compatibility with the 31401 # oldest supported bootjdk. 31402 BOOT_JDK_SOURCETARGET="-source 9 -target 9" 31403 31404 31405 31406 31407 # Check if the boot jdk is 32 or 64 bit 31408 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 31409 BOOT_JDK_BITS="64" 31410 else 31411 BOOT_JDK_BITS="32" 31412 fi 31413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 31414 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 31415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 31416 $as_echo "$BOOT_JDK_BITS" >&6; } 31417 31418 # Try to enable CDS 31419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local Boot JDK Class Data Sharing (CDS)" >&5 31420 $as_echo_n "checking for local Boot JDK Class Data Sharing (CDS)... " >&6; } 31421 BOOT_JDK_CDS_ARCHIVE=$CONFIGURESUPPORT_OUTPUTDIR/classes.jsa 31422 31423 $ECHO "Check if jvm arg is ok: -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" >&5 31424 $ECHO "Command: $JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version" >&5 31425 OUTPUT=`$JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version 2>&1` 31426 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 31427 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 31428 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 31429 boot_jdk_cds_args="$boot_jdk_cds_args -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" 31430 JVM_ARG_OK=true 31431 else 31432 $ECHO "Arg failed:" >&5 31433 $ECHO "$OUTPUT" >&5 31434 JVM_ARG_OK=false 31435 fi 31436 31437 31438 if test "x$boot_jdk_cds_args" != x; then 31439 # Try creating a CDS archive 31440 "$JAVA" $boot_jdk_cds_args -Xshare:dump > /dev/null 2>&1 31441 if test $? -eq 0; then 31442 BOOTJDK_USE_LOCAL_CDS=true 31443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, created" >&5 31444 $as_echo "yes, created" >&6; } 31445 else 31446 # Generation failed, don't use CDS. 31447 BOOTJDK_USE_LOCAL_CDS=false 31448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, creation failed" >&5 31449 $as_echo "no, creation failed" >&6; } 31450 fi 31451 else 31452 BOOTJDK_USE_LOCAL_CDS=false 31453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, -XX:SharedArchiveFile not supported" >&5 31454 $as_echo "no, -XX:SharedArchiveFile not supported" >&6; } 31455 fi 31456 31457 31458 31459 # Check whether --with-build-jdk was given. 31460 if test "${with_build_jdk+set}" = set; then : 31461 withval=$with_build_jdk; 31462 fi 31463 31464 31465 CREATE_BUILDJDK=false 31466 EXTERNAL_BUILDJDK=false 31467 BUILD_JDK_FOUND="no" 31468 if test "x$with_build_jdk" != "x"; then 31469 31470 if test "x$BUILD_JDK_FOUND" = xno; then 31471 # Execute the test 31472 31473 if test "x$with_build_jdk" != x; then 31474 BUILD_JDK=$with_build_jdk 31475 BUILD_JDK_FOUND=maybe 31476 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 31477 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 31478 fi 31479 31480 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 31481 if test "x$BUILD_JDK_FOUND" = xmaybe; then 31482 # Do we have a bin/java? 31483 if test ! -x "$BUILD_JDK/bin/java"; then 31484 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 31485 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 31486 BUILD_JDK_FOUND=no 31487 elif test ! -x "$BUILD_JDK/bin/jlink"; then 31488 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 31489 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 31490 BUILD_JDK_FOUND=no 31491 elif test ! -x "$BUILD_JDK/bin/jmod"; then 31492 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 31493 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 31494 BUILD_JDK_FOUND=no 31495 elif test ! -x "$BUILD_JDK/bin/javac"; then 31496 # Do we have a bin/javac? 31497 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 31498 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 31499 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 31500 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 31501 BUILD_JDK_FOUND=no 31502 else 31503 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 31504 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 31505 31506 # Extra M4 quote needed to protect [] in grep expression. 31507 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"'` 31508 if test "x$FOUND_CORRECT_VERSION" = x; then 31509 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 31510 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 31511 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 10)" >&5 31512 $as_echo "$as_me: (Your Build JDK must be version 10)" >&6;} 31513 BUILD_JDK_FOUND=no 31514 else 31515 # We're done! 31516 BUILD_JDK_FOUND=yes 31517 31518 # Only process if variable expands to non-empty 31519 31520 if test "x$BUILD_JDK" != x; then 31521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31522 31523 # Input might be given as Windows format, start by converting to 31524 # unix format. 31525 path="$BUILD_JDK" 31526 new_path=`$CYGPATH -u "$path"` 31527 31528 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31529 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31530 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31531 # "foo.exe" is OK but "foo" is an error. 31532 # 31533 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31534 # It is also a way to make sure we got the proper file name for the real test later on. 31535 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31536 if test "x$test_shortpath" = x; then 31537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31538 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31539 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 31540 fi 31541 31542 # Call helper function which possibly converts this using DOS-style short mode. 31543 # If so, the updated path is stored in $new_path. 31544 31545 input_path="$new_path" 31546 # Check if we need to convert this using DOS-style short mode. If the path 31547 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31548 # take no chances and rewrite it. 31549 # Note: m4 eats our [], so we need to use [ and ] instead. 31550 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31551 if test "x$has_forbidden_chars" != x; then 31552 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31553 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31554 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31555 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31556 # Going to short mode and back again did indeed matter. Since short mode is 31557 # case insensitive, let's make it lowercase to improve readability. 31558 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31559 # Now convert it back to Unix-style (cygpath) 31560 input_path=`$CYGPATH -u "$shortmode_path"` 31561 new_path="$input_path" 31562 fi 31563 fi 31564 31565 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31566 if test "x$test_cygdrive_prefix" = x; then 31567 # As a simple fix, exclude /usr/bin since it's not a real path. 31568 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31569 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31570 # a path prefixed by /cygdrive for fixpath to work. 31571 new_path="$CYGWIN_ROOT_PATH$input_path" 31572 fi 31573 fi 31574 31575 31576 if test "x$path" != "x$new_path"; then 31577 BUILD_JDK="$new_path" 31578 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31579 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31580 fi 31581 31582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31583 31584 path="$BUILD_JDK" 31585 has_colon=`$ECHO $path | $GREP ^.:` 31586 new_path="$path" 31587 if test "x$has_colon" = x; then 31588 # Not in mixed or Windows style, start by that. 31589 new_path=`cmd //c echo $path` 31590 fi 31591 31592 31593 input_path="$new_path" 31594 # Check if we need to convert this using DOS-style short mode. If the path 31595 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31596 # take no chances and rewrite it. 31597 # Note: m4 eats our [], so we need to use [ and ] instead. 31598 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31599 if test "x$has_forbidden_chars" != x; then 31600 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31601 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31602 fi 31603 31604 31605 windows_path="$new_path" 31606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31607 unix_path=`$CYGPATH -u "$windows_path"` 31608 new_path="$unix_path" 31609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31610 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31611 new_path="$unix_path" 31612 fi 31613 31614 if test "x$path" != "x$new_path"; then 31615 BUILD_JDK="$new_path" 31616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31617 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31618 fi 31619 31620 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31621 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31622 31623 else 31624 # We're on a unix platform. Hooray! :) 31625 path="$BUILD_JDK" 31626 has_space=`$ECHO "$path" | $GREP " "` 31627 if test "x$has_space" != x; then 31628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31629 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31630 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31631 fi 31632 31633 # Use eval to expand a potential ~ 31634 eval path="$path" 31635 if test ! -f "$path" && test ! -d "$path"; then 31636 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 31637 fi 31638 31639 if test -d "$path"; then 31640 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 31641 else 31642 dir="`$DIRNAME "$path"`" 31643 base="`$BASENAME "$path"`" 31644 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 31645 fi 31646 fi 31647 fi 31648 31649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31650 $as_echo_n "checking for Build JDK... " >&6; } 31651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 31652 $as_echo "$BUILD_JDK" >&6; } 31653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 31654 $as_echo_n "checking Build JDK version... " >&6; } 31655 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 31656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 31657 $as_echo "$BUILD_JDK_VERSION" >&6; } 31658 fi # end check jdk version 31659 fi # end check java 31660 fi # end check build jdk found 31661 fi 31662 31663 EXTERNAL_BUILDJDK=true 31664 else 31665 if test "x$COMPILE_TYPE" = "xcross"; then 31666 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 31667 BUILD_JDK_FOUND=yes 31668 CREATE_BUILDJDK=true 31669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31670 $as_echo_n "checking for Build JDK... " >&6; } 31671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 31672 $as_echo "yes, will build it for the host platform" >&6; } 31673 else 31674 BUILD_JDK="\$(JDK_OUTPUTDIR)" 31675 BUILD_JDK_FOUND=yes 31676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31677 $as_echo_n "checking for Build JDK... " >&6; } 31678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 31679 $as_echo "yes, will use output dir" >&6; } 31680 fi 31681 fi 31682 31683 JMOD="$BUILD_JDK/bin/jmod" 31684 JLINK="$BUILD_JDK/bin/jlink" 31685 31686 31687 31688 if test "x$BUILD_JDK_FOUND" != "xyes"; then 31689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31690 $as_echo_n "checking for Build JDK... " >&6; } 31691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31692 $as_echo "no" >&6; } 31693 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 31694 fi 31695 31696 31697 31698 31699 31700 31701 ############################################################################### 31702 # 31703 # Configure the sources to use. We can add or override individual directories. 31704 # 31705 ############################################################################### 31706 31707 31708 OUTPUTDIR="$OUTPUTDIR" 31709 31710 JDK_OUTPUTDIR="$OUTPUTDIR/jdk" 31711 31712 # Where are the sources. 31713 31714 31715 31716 31717 # Check whether --with-import-modules was given. 31718 if test "${with_import_modules+set}" = set; then : 31719 withval=$with_import_modules; 31720 fi 31721 31722 31723 if test "x$with_import_modules" != x \ 31724 && test "x$with_import_modules" != "xno"; then 31725 if test -d "$with_import_modules"; then 31726 IMPORT_MODULES_TOPDIR="$with_import_modules" 31727 31728 # Only process if variable expands to non-empty 31729 31730 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31732 31733 # Input might be given as Windows format, start by converting to 31734 # unix format. 31735 path="$IMPORT_MODULES_TOPDIR" 31736 new_path=`$CYGPATH -u "$path"` 31737 31738 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31739 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31740 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31741 # "foo.exe" is OK but "foo" is an error. 31742 # 31743 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31744 # It is also a way to make sure we got the proper file name for the real test later on. 31745 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31746 if test "x$test_shortpath" = x; then 31747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31748 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31749 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31750 fi 31751 31752 # Call helper function which possibly converts this using DOS-style short mode. 31753 # If so, the updated path is stored in $new_path. 31754 31755 input_path="$new_path" 31756 # Check if we need to convert this using DOS-style short mode. If the path 31757 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31758 # take no chances and rewrite it. 31759 # Note: m4 eats our [], so we need to use [ and ] instead. 31760 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31761 if test "x$has_forbidden_chars" != x; then 31762 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31763 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31764 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31765 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31766 # Going to short mode and back again did indeed matter. Since short mode is 31767 # case insensitive, let's make it lowercase to improve readability. 31768 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31769 # Now convert it back to Unix-style (cygpath) 31770 input_path=`$CYGPATH -u "$shortmode_path"` 31771 new_path="$input_path" 31772 fi 31773 fi 31774 31775 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31776 if test "x$test_cygdrive_prefix" = x; then 31777 # As a simple fix, exclude /usr/bin since it's not a real path. 31778 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31779 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31780 # a path prefixed by /cygdrive for fixpath to work. 31781 new_path="$CYGWIN_ROOT_PATH$input_path" 31782 fi 31783 fi 31784 31785 31786 if test "x$path" != "x$new_path"; then 31787 IMPORT_MODULES_TOPDIR="$new_path" 31788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31789 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31790 fi 31791 31792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31793 31794 path="$IMPORT_MODULES_TOPDIR" 31795 has_colon=`$ECHO $path | $GREP ^.:` 31796 new_path="$path" 31797 if test "x$has_colon" = x; then 31798 # Not in mixed or Windows style, start by that. 31799 new_path=`cmd //c echo $path` 31800 fi 31801 31802 31803 input_path="$new_path" 31804 # Check if we need to convert this using DOS-style short mode. If the path 31805 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31806 # take no chances and rewrite it. 31807 # Note: m4 eats our [], so we need to use [ and ] instead. 31808 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31809 if test "x$has_forbidden_chars" != x; then 31810 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31811 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31812 fi 31813 31814 31815 windows_path="$new_path" 31816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31817 unix_path=`$CYGPATH -u "$windows_path"` 31818 new_path="$unix_path" 31819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31821 new_path="$unix_path" 31822 fi 31823 31824 if test "x$path" != "x$new_path"; then 31825 IMPORT_MODULES_TOPDIR="$new_path" 31826 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31827 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31828 fi 31829 31830 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31831 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31832 31833 else 31834 # We're on a unix platform. Hooray! :) 31835 path="$IMPORT_MODULES_TOPDIR" 31836 has_space=`$ECHO "$path" | $GREP " "` 31837 if test "x$has_space" != x; then 31838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31839 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31840 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31841 fi 31842 31843 # Use eval to expand a potential ~ 31844 eval path="$path" 31845 if test ! -f "$path" && test ! -d "$path"; then 31846 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31847 fi 31848 31849 if test -d "$path"; then 31850 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 31851 else 31852 dir="`$DIRNAME "$path"`" 31853 base="`$BASENAME "$path"`" 31854 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 31855 fi 31856 fi 31857 fi 31858 31859 elif test -e "$with_import_modules"; then 31860 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 31861 $RM -rf "$IMPORT_MODULES_TOPDIR" 31862 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 31863 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 31864 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31865 fi 31866 else 31867 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31868 fi 31869 fi 31870 31871 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 31872 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 31873 fi 31874 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 31875 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 31876 fi 31877 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 31878 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 31879 fi 31880 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 31881 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 31882 fi 31883 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then 31884 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal" 31885 fi 31886 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then 31887 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man" 31888 fi 31889 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 31890 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31891 fi 31892 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31893 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31894 fi 31895 31896 31897 31898 31899 31900 31901 31902 31903 31904 31905 31906 ############################################################################### 31907 # 31908 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31909 # native code. 31910 # 31911 ############################################################################### 31912 31913 # See if we are doing a complete static build or not 31914 31915 # Check whether --enable-static-build was given. 31916 if test "${enable_static_build+set}" = set; then : 31917 enableval=$enable_static_build; 31918 fi 31919 31920 STATIC_BUILD=false 31921 if test "x$enable_static_build" = "xyes"; then 31922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31923 $as_echo_n "checking if static build is enabled... " >&6; } 31924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31925 $as_echo "yes" >&6; } 31926 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 31927 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 31928 fi 31929 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31930 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31931 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31932 STATIC_BUILD=true 31933 elif test "x$enable_static_build" = "xno"; then 31934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31935 $as_echo_n "checking if static build is enabled... " >&6; } 31936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31937 $as_echo "no" >&6; } 31938 elif test "x$enable_static_build" != "x"; then 31939 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 31940 fi 31941 31942 31943 31944 31945 # First determine the toolchain type (compiler family) 31946 31947 31948 # Check whether --with-toolchain-type was given. 31949 if test "${with_toolchain_type+set}" = set; then : 31950 withval=$with_toolchain_type; 31951 fi 31952 31953 31954 # Use indirect variable referencing 31955 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 31956 VALID_TOOLCHAINS=${!toolchain_var_name} 31957 31958 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31959 if test -n "$XCODEBUILD"; then 31960 # On Mac OS X, default toolchain to clang after Xcode 5 31961 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 31962 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 31963 if test $? -ne 0; then 31964 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 31965 fi 31966 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 31967 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 31968 $CUT -f 1 -d .` 31969 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 31970 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 31971 if test $XCODE_MAJOR_VERSION -ge 5; then 31972 DEFAULT_TOOLCHAIN="clang" 31973 else 31974 DEFAULT_TOOLCHAIN="gcc" 31975 fi 31976 else 31977 # If Xcode is not installed, but the command line tools are 31978 # then we can't run xcodebuild. On these systems we should 31979 # default to clang 31980 DEFAULT_TOOLCHAIN="clang" 31981 fi 31982 else 31983 # First toolchain type in the list is the default 31984 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 31985 fi 31986 31987 if test "x$with_toolchain_type" = xlist; then 31988 # List all toolchains 31989 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 31990 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 31991 for toolchain in $VALID_TOOLCHAINS; do 31992 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 31993 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31994 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 31995 done 31996 31997 exit 0 31998 elif test "x$with_toolchain_type" != x; then 31999 # User override; check that it is valid 32000 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 32001 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 32002 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 32003 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 32004 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 32005 as_fn_error $? "Cannot continue." "$LINENO" 5 32006 fi 32007 TOOLCHAIN_TYPE=$with_toolchain_type 32008 else 32009 # No flag given, use default 32010 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 32011 fi 32012 32013 32014 TOOLCHAIN_CC_BINARY_clang="clang" 32015 TOOLCHAIN_CC_BINARY_gcc="gcc" 32016 TOOLCHAIN_CC_BINARY_microsoft="cl" 32017 TOOLCHAIN_CC_BINARY_solstudio="cc" 32018 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 32019 32020 TOOLCHAIN_CXX_BINARY_clang="clang++" 32021 TOOLCHAIN_CXX_BINARY_gcc="g++" 32022 TOOLCHAIN_CXX_BINARY_microsoft="cl" 32023 TOOLCHAIN_CXX_BINARY_solstudio="CC" 32024 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 32025 32026 # Use indirect variable referencing 32027 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 32028 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32029 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 32030 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 32031 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 32032 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 32033 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 32034 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 32035 32036 32037 # Define filename patterns 32038 if test "x$OPENJDK_TARGET_OS" = xwindows; then 32039 LIBRARY_PREFIX= 32040 SHARED_LIBRARY_SUFFIX='.dll' 32041 STATIC_LIBRARY_SUFFIX='.lib' 32042 SHARED_LIBRARY='$1.dll' 32043 STATIC_LIBRARY='$1.lib' 32044 OBJ_SUFFIX='.obj' 32045 EXE_SUFFIX='.exe' 32046 else 32047 LIBRARY_PREFIX=lib 32048 SHARED_LIBRARY_SUFFIX='.so' 32049 STATIC_LIBRARY_SUFFIX='.a' 32050 SHARED_LIBRARY='lib$1.so' 32051 STATIC_LIBRARY='lib$1.a' 32052 OBJ_SUFFIX='.o' 32053 EXE_SUFFIX='' 32054 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32055 # For full static builds, we're overloading the SHARED_LIBRARY 32056 # variables in order to limit the amount of changes required. 32057 # It would be better to remove SHARED and just use LIBRARY and 32058 # LIBRARY_SUFFIX for libraries that can be built either 32059 # shared or static and use STATIC_* for libraries that are 32060 # always built statically. 32061 if test "x$STATIC_BUILD" = xtrue; then 32062 SHARED_LIBRARY='lib$1.a' 32063 SHARED_LIBRARY_SUFFIX='.a' 32064 else 32065 SHARED_LIBRARY='lib$1.dylib' 32066 SHARED_LIBRARY_SUFFIX='.dylib' 32067 fi 32068 fi 32069 fi 32070 32071 32072 32073 32074 32075 32076 32077 32078 32079 32080 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 32081 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 32082 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 32083 else 32084 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 32085 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 32086 fi 32087 32088 32089 # User supplied flags should be used when configure detects compilers 32090 32091 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 32092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 32093 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 32094 fi 32095 32096 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 32097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 32098 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 32099 fi 32100 32101 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 32102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 32103 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 32104 fi 32105 32106 32107 # Check whether --with-extra-cflags was given. 32108 if test "${with_extra_cflags+set}" = set; then : 32109 withval=$with_extra_cflags; 32110 fi 32111 32112 32113 32114 # Check whether --with-extra-cxxflags was given. 32115 if test "${with_extra_cxxflags+set}" = set; then : 32116 withval=$with_extra_cxxflags; 32117 fi 32118 32119 32120 32121 # Check whether --with-extra-ldflags was given. 32122 if test "${with_extra_ldflags+set}" = set; then : 32123 withval=$with_extra_ldflags; 32124 fi 32125 32126 32127 EXTRA_CFLAGS="$with_extra_cflags" 32128 EXTRA_CXXFLAGS="$with_extra_cxxflags" 32129 EXTRA_LDFLAGS="$with_extra_ldflags" 32130 32131 32132 32133 32134 32135 # The global CFLAGS and LDLAGS variables are used by configure tests and 32136 # should include the extra parameters 32137 CFLAGS="$EXTRA_CFLAGS" 32138 CXXFLAGS="$EXTRA_CXXFLAGS" 32139 LDFLAGS="$EXTRA_LDFLAGS" 32140 CPPFLAGS="" 32141 32142 # The sysroot cflags are needed for configure to be able to run the compilers 32143 32144 if test "x$SYSROOT" != "x"; then 32145 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 32146 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32147 # Solaris Studio does not have a concept of sysroot. Instead we must 32148 # make sure the default include and lib dirs are appended to each 32149 # compile and link command line. Must also add -I-xbuiltin to enable 32150 # inlining of system functions and intrinsics. 32151 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 32152 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 32153 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 32154 fi 32155 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 32156 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 32157 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 32158 elif test "x$TOOLCHAIN_TYPE" = xclang; then 32159 SYSROOT_CFLAGS="-isysroot $SYSROOT" 32160 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 32161 fi 32162 # The global CFLAGS and LDFLAGS variables need these for configure to function 32163 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 32164 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 32165 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 32166 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 32167 fi 32168 32169 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32170 # We also need -iframework<path>/System/Library/Frameworks 32171 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32172 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32173 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 32174 # set this here so it doesn't have to be peppered throughout the forest 32175 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32176 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32177 fi 32178 32179 32180 32181 32182 32183 # Then detect the actual binaries needed 32184 32185 # FIXME: Is this needed? 32186 ac_ext=cpp 32187 ac_cpp='$CXXCPP $CPPFLAGS' 32188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32191 32192 32193 # Store the CFLAGS etc passed to the configure script. 32194 ORG_CFLAGS="$CFLAGS" 32195 ORG_CXXFLAGS="$CXXFLAGS" 32196 32197 # autoconf magic only relies on PATH, so update it if tools dir is specified 32198 OLD_PATH="$PATH" 32199 32200 # On Windows, we need to detect the visual studio installation first. 32201 # This will change the PATH, but we need to keep that new PATH even 32202 # after toolchain detection is done, since the compiler (on x86) uses 32203 # it for DLL resolution in runtime. 32204 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 32205 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 32206 32207 # Store path to cygwin link.exe to help excluding it when searching for 32208 # VS linker. This must be done before changing the PATH when looking for VS. 32209 # Extract the first word of "link", so it can be a program name with args. 32210 set dummy link; ac_word=$2 32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32212 $as_echo_n "checking for $ac_word... " >&6; } 32213 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 32214 $as_echo_n "(cached) " >&6 32215 else 32216 case $CYGWIN_LINK in 32217 [\\/]* | ?:[\\/]*) 32218 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 32219 ;; 32220 *) 32221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32222 for as_dir in $PATH 32223 do 32224 IFS=$as_save_IFS 32225 test -z "$as_dir" && as_dir=. 32226 for ac_exec_ext in '' $ac_executable_extensions; do 32227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32228 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 32229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32230 break 2 32231 fi 32232 done 32233 done 32234 IFS=$as_save_IFS 32235 32236 ;; 32237 esac 32238 fi 32239 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 32240 if test -n "$CYGWIN_LINK"; then 32241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 32242 $as_echo "$CYGWIN_LINK" >&6; } 32243 else 32244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32245 $as_echo "no" >&6; } 32246 fi 32247 32248 32249 if test "x$CYGWIN_LINK" != x; then 32250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 32251 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 32252 "$CYGWIN_LINK" --version > /dev/null 32253 if test $? -eq 0 ; then 32254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32255 $as_echo "yes" >&6; } 32256 else 32257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32258 $as_echo "no" >&6; } 32259 # This might be the VS linker. Don't exclude it later on. 32260 CYGWIN_LINK="" 32261 fi 32262 fi 32263 32264 # First-hand choice is to locate and run the vsvars bat file. 32265 32266 32267 # Check whether --with-toolchain-version was given. 32268 if test "${with_toolchain_version+set}" = set; then : 32269 withval=$with_toolchain_version; 32270 fi 32271 32272 32273 if test "x$with_toolchain_version" = xlist; then 32274 # List all toolchains 32275 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 32276 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 32277 for version in $VALID_VS_VERSIONS; do 32278 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 32279 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 32280 done 32281 32282 exit 0 32283 elif test "x$DEVKIT_VS_VERSION" != x; then 32284 VS_VERSION=$DEVKIT_VS_VERSION 32285 TOOLCHAIN_VERSION=$VS_VERSION 32286 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32287 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32288 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32289 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32290 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32291 VS_PATH="$TOOLCHAIN_PATH:$PATH" 32292 32293 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 32294 # can still be exported as INCLUDE for compiler invocations without 32295 # SYSROOT_CFLAGS 32296 OLDIFS="$IFS" 32297 IFS=";" 32298 for i in $DEVKIT_VS_INCLUDE; do 32299 ipath=$i 32300 32301 unix_path="$ipath" 32302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32303 windows_path=`$CYGPATH -m "$unix_path"` 32304 ipath="$windows_path" 32305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32306 windows_path=`cmd //c echo $unix_path` 32307 ipath="$windows_path" 32308 fi 32309 32310 VS_INCLUDE="$VS_INCLUDE;$ipath" 32311 done 32312 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 32313 # as LIB for compiler invocations without SYSROOT_LDFLAGS 32314 for i in $DEVKIT_VS_LIB; do 32315 libpath=$i 32316 32317 unix_path="$libpath" 32318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32319 windows_path=`$CYGPATH -m "$unix_path"` 32320 libpath="$windows_path" 32321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32322 windows_path=`cmd //c echo $unix_path` 32323 libpath="$windows_path" 32324 fi 32325 32326 VS_LIB="$VS_LIB;$libpath" 32327 done 32328 IFS="$OLDIFS" 32329 32330 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 32331 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 32332 32333 elif test "x$with_toolchain_version" != x; then 32334 # User override; check that it is valid 32335 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 32336 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 32337 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 32338 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 32339 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 32340 as_fn_error $? "Cannot continue." "$LINENO" 5 32341 fi 32342 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 32343 else 32344 # No flag given, use default 32345 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 32346 fi 32347 32348 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 32349 32350 VS_VERSION="$VS_VERSION" 32351 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 32352 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 32353 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 32354 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 32355 32356 # When using --with-tools-dir, assume it points to the correct and default 32357 # version of Visual Studio or that --with-toolchain-version was also set. 32358 if test "x$with_tools_dir" != x; then 32359 32360 if test "x$VS_ENV_CMD" = x; then 32361 VS_VERSION="${VS_VERSION}" 32362 VS_BASE="$with_tools_dir/../.." 32363 METHOD="--with-tools-dir" 32364 32365 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32366 VCVARSFILE="vc/bin/vcvars32.bat" 32367 else 32368 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32369 fi 32370 32371 32372 windows_path="$VS_BASE" 32373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32374 unix_path=`$CYGPATH -u "$windows_path"` 32375 VS_BASE="$unix_path" 32376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32378 VS_BASE="$unix_path" 32379 fi 32380 32381 if test -d "$VS_BASE"; then 32382 if test -f "$VS_BASE/$VCVARSFILE"; then 32383 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32384 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32385 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32386 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32387 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32388 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32389 else 32390 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32391 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32392 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32393 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32394 fi 32395 fi 32396 fi 32397 32398 32399 if test "x$VS_ENV_CMD" = x; then 32400 VS_VERSION="${VS_VERSION}" 32401 VS_BASE="$with_tools_dir/../../.." 32402 METHOD="--with-tools-dir" 32403 32404 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32405 VCVARSFILE="vc/bin/vcvars32.bat" 32406 else 32407 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32408 fi 32409 32410 32411 windows_path="$VS_BASE" 32412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32413 unix_path=`$CYGPATH -u "$windows_path"` 32414 VS_BASE="$unix_path" 32415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32416 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32417 VS_BASE="$unix_path" 32418 fi 32419 32420 if test -d "$VS_BASE"; then 32421 if test -f "$VS_BASE/$VCVARSFILE"; then 32422 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32423 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32424 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32425 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32426 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32427 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32428 else 32429 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32430 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32431 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32432 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32433 fi 32434 fi 32435 fi 32436 32437 if test "x$VS_ENV_CMD" = x; then 32438 # Having specified an argument which is incorrect will produce an instant failure; 32439 # we should not go on looking 32440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 32441 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 32442 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 32443 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 32444 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 32445 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 32446 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 32447 fi 32448 fi 32449 32450 VS_ENV_CMD="" 32451 VS_ENV_ARGS="" 32452 32453 if test "x$VS_COMNTOOLS" != x; then 32454 32455 if test "x$VS_ENV_CMD" = x; then 32456 VS_VERSION="${VS_VERSION}" 32457 VS_BASE="$VS_COMNTOOLS/../.." 32458 METHOD="$VS_COMNTOOLS_VAR variable" 32459 32460 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32461 VCVARSFILE="vc/bin/vcvars32.bat" 32462 else 32463 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32464 fi 32465 32466 32467 windows_path="$VS_BASE" 32468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32469 unix_path=`$CYGPATH -u "$windows_path"` 32470 VS_BASE="$unix_path" 32471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32472 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32473 VS_BASE="$unix_path" 32474 fi 32475 32476 if test -d "$VS_BASE"; then 32477 if test -f "$VS_BASE/$VCVARSFILE"; then 32478 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32479 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32480 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32481 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32482 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32483 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32484 else 32485 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32486 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32487 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32488 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32489 fi 32490 fi 32491 fi 32492 32493 fi 32494 if test "x$PROGRAMFILES" != x; then 32495 32496 if test "x$VS_ENV_CMD" = x; then 32497 VS_VERSION="${VS_VERSION}" 32498 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 32499 METHOD="well-known name" 32500 32501 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32502 VCVARSFILE="vc/bin/vcvars32.bat" 32503 else 32504 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32505 fi 32506 32507 32508 windows_path="$VS_BASE" 32509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32510 unix_path=`$CYGPATH -u "$windows_path"` 32511 VS_BASE="$unix_path" 32512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32514 VS_BASE="$unix_path" 32515 fi 32516 32517 if test -d "$VS_BASE"; then 32518 if test -f "$VS_BASE/$VCVARSFILE"; then 32519 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32520 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32521 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32522 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32523 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32524 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32525 else 32526 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32527 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32528 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32529 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32530 fi 32531 fi 32532 fi 32533 32534 fi 32535 # Work around the insanely named ProgramFiles(x86) env variable 32536 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 32537 if test "x$PROGRAMFILES_X86" != x; then 32538 32539 if test "x$VS_ENV_CMD" = x; then 32540 VS_VERSION="${VS_VERSION}" 32541 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 32542 METHOD="well-known name" 32543 32544 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32545 VCVARSFILE="vc/bin/vcvars32.bat" 32546 else 32547 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32548 fi 32549 32550 32551 windows_path="$VS_BASE" 32552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32553 unix_path=`$CYGPATH -u "$windows_path"` 32554 VS_BASE="$unix_path" 32555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32556 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32557 VS_BASE="$unix_path" 32558 fi 32559 32560 if test -d "$VS_BASE"; then 32561 if test -f "$VS_BASE/$VCVARSFILE"; then 32562 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32563 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32564 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32565 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32566 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32567 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32568 else 32569 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32570 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32571 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32572 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32573 fi 32574 fi 32575 fi 32576 32577 fi 32578 32579 if test "x$VS_ENV_CMD" = x; then 32580 VS_VERSION="${VS_VERSION}" 32581 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 32582 METHOD="well-known name" 32583 32584 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32585 VCVARSFILE="vc/bin/vcvars32.bat" 32586 else 32587 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32588 fi 32589 32590 32591 windows_path="$VS_BASE" 32592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32593 unix_path=`$CYGPATH -u "$windows_path"` 32594 VS_BASE="$unix_path" 32595 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32596 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32597 VS_BASE="$unix_path" 32598 fi 32599 32600 if test -d "$VS_BASE"; then 32601 if test -f "$VS_BASE/$VCVARSFILE"; then 32602 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32603 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32604 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32605 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32606 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32607 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32608 else 32609 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32610 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32611 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32612 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32613 fi 32614 fi 32615 fi 32616 32617 32618 if test "x$VS_ENV_CMD" = x; then 32619 VS_VERSION="${VS_VERSION}" 32620 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32621 METHOD="well-known name" 32622 32623 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32624 VCVARSFILE="vc/bin/vcvars32.bat" 32625 else 32626 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32627 fi 32628 32629 32630 windows_path="$VS_BASE" 32631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32632 unix_path=`$CYGPATH -u "$windows_path"` 32633 VS_BASE="$unix_path" 32634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32636 VS_BASE="$unix_path" 32637 fi 32638 32639 if test -d "$VS_BASE"; then 32640 if test -f "$VS_BASE/$VCVARSFILE"; then 32641 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32642 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32643 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32644 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32645 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32646 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32647 else 32648 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32649 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32650 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32651 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32652 fi 32653 fi 32654 fi 32655 32656 32657 if test "x$SDK_INSTALL_DIR" != x; then 32658 if test "x$ProgramW6432" != x; then 32659 32660 if test "x$VS_ENV_CMD" = x; then 32661 VS_VERSION="${VS_VERSION}" 32662 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32663 METHOD="well-known name" 32664 32665 windows_path="$WIN_SDK_BASE" 32666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32667 unix_path=`$CYGPATH -u "$windows_path"` 32668 WIN_SDK_BASE="$unix_path" 32669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32671 WIN_SDK_BASE="$unix_path" 32672 fi 32673 32674 if test -d "$WIN_SDK_BASE"; then 32675 # There have been cases of partial or broken SDK installations. A missing 32676 # lib dir is not going to work. 32677 if test ! -d "$WIN_SDK_BASE/lib"; then 32678 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32679 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32680 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32681 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32682 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32683 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32684 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32685 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32686 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32687 VS_ENV_ARGS="/x86" 32688 else 32689 VS_ENV_ARGS="/x64" 32690 fi 32691 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32692 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32693 # TODO: improve detection for other versions of SDK 32694 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32695 else 32696 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32697 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32698 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32699 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32700 fi 32701 fi 32702 fi 32703 32704 fi 32705 if test "x$PROGRAMW6432" != x; then 32706 32707 if test "x$VS_ENV_CMD" = x; then 32708 VS_VERSION="${VS_VERSION}" 32709 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32710 METHOD="well-known name" 32711 32712 windows_path="$WIN_SDK_BASE" 32713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32714 unix_path=`$CYGPATH -u "$windows_path"` 32715 WIN_SDK_BASE="$unix_path" 32716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32718 WIN_SDK_BASE="$unix_path" 32719 fi 32720 32721 if test -d "$WIN_SDK_BASE"; then 32722 # There have been cases of partial or broken SDK installations. A missing 32723 # lib dir is not going to work. 32724 if test ! -d "$WIN_SDK_BASE/lib"; then 32725 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32726 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32727 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32728 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32729 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32730 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32731 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32732 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32733 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32734 VS_ENV_ARGS="/x86" 32735 else 32736 VS_ENV_ARGS="/x64" 32737 fi 32738 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32739 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32740 # TODO: improve detection for other versions of SDK 32741 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32742 else 32743 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32744 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32745 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32746 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32747 fi 32748 fi 32749 fi 32750 32751 fi 32752 if test "x$PROGRAMFILES" != x; then 32753 32754 if test "x$VS_ENV_CMD" = x; then 32755 VS_VERSION="${VS_VERSION}" 32756 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32757 METHOD="well-known name" 32758 32759 windows_path="$WIN_SDK_BASE" 32760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32761 unix_path=`$CYGPATH -u "$windows_path"` 32762 WIN_SDK_BASE="$unix_path" 32763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32764 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32765 WIN_SDK_BASE="$unix_path" 32766 fi 32767 32768 if test -d "$WIN_SDK_BASE"; then 32769 # There have been cases of partial or broken SDK installations. A missing 32770 # lib dir is not going to work. 32771 if test ! -d "$WIN_SDK_BASE/lib"; then 32772 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32773 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32774 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32775 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32776 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32777 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32778 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32779 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32780 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32781 VS_ENV_ARGS="/x86" 32782 else 32783 VS_ENV_ARGS="/x64" 32784 fi 32785 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32786 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32787 # TODO: improve detection for other versions of SDK 32788 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32789 else 32790 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32791 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32792 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32793 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32794 fi 32795 fi 32796 fi 32797 32798 fi 32799 32800 if test "x$VS_ENV_CMD" = x; then 32801 VS_VERSION="${VS_VERSION}" 32802 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32803 METHOD="well-known name" 32804 32805 windows_path="$WIN_SDK_BASE" 32806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32807 unix_path=`$CYGPATH -u "$windows_path"` 32808 WIN_SDK_BASE="$unix_path" 32809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32810 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32811 WIN_SDK_BASE="$unix_path" 32812 fi 32813 32814 if test -d "$WIN_SDK_BASE"; then 32815 # There have been cases of partial or broken SDK installations. A missing 32816 # lib dir is not going to work. 32817 if test ! -d "$WIN_SDK_BASE/lib"; then 32818 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32819 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32820 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32821 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32822 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32823 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32824 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32825 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32826 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32827 VS_ENV_ARGS="/x86" 32828 else 32829 VS_ENV_ARGS="/x64" 32830 fi 32831 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32832 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32833 # TODO: improve detection for other versions of SDK 32834 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32835 else 32836 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32837 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32838 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32839 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32840 fi 32841 fi 32842 fi 32843 32844 32845 if test "x$VS_ENV_CMD" = x; then 32846 VS_VERSION="${VS_VERSION}" 32847 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32848 METHOD="well-known name" 32849 32850 windows_path="$WIN_SDK_BASE" 32851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32852 unix_path=`$CYGPATH -u "$windows_path"` 32853 WIN_SDK_BASE="$unix_path" 32854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32855 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32856 WIN_SDK_BASE="$unix_path" 32857 fi 32858 32859 if test -d "$WIN_SDK_BASE"; then 32860 # There have been cases of partial or broken SDK installations. A missing 32861 # lib dir is not going to work. 32862 if test ! -d "$WIN_SDK_BASE/lib"; then 32863 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32864 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32865 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32866 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32867 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32868 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32869 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32870 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32871 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32872 VS_ENV_ARGS="/x86" 32873 else 32874 VS_ENV_ARGS="/x64" 32875 fi 32876 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32877 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32878 # TODO: improve detection for other versions of SDK 32879 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32880 else 32881 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32882 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32883 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32884 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32885 fi 32886 fi 32887 fi 32888 32889 fi 32890 32891 if test "x$VS_ENV_CMD" != x; then 32892 TOOLCHAIN_VERSION=$VS_VERSION 32893 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32894 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32895 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32896 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32897 # The rest of the variables are already evaled while probing 32898 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32899 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32900 break 32901 fi 32902 done 32903 32904 32905 # If we have a devkit, skip all of the below. 32906 if test "x$DEVKIT_VS_VERSION" = x; then 32907 if test "x$VS_ENV_CMD" != x; then 32908 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32909 32910 # Only process if variable expands to non-empty 32911 32912 if test "x$VS_ENV_CMD" != x; then 32913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32914 32915 # First separate the path from the arguments. This will split at the first 32916 # space. 32917 complete="$VS_ENV_CMD" 32918 path="${complete%% *}" 32919 tmp="$complete EOL" 32920 arguments="${tmp#* }" 32921 32922 # Input might be given as Windows format, start by converting to 32923 # unix format. 32924 new_path=`$CYGPATH -u "$path"` 32925 32926 # Now try to locate executable using which 32927 new_path=`$WHICH "$new_path" 2> /dev/null` 32928 # bat and cmd files are not always considered executable in cygwin causing which 32929 # to not find them 32930 if test "x$new_path" = x \ 32931 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32932 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32933 new_path=`$CYGPATH -u "$path"` 32934 fi 32935 if test "x$new_path" = x; then 32936 # Oops. Which didn't find the executable. 32937 # The splitting of arguments from the executable at a space might have been incorrect, 32938 # since paths with space are more likely in Windows. Give it another try with the whole 32939 # argument. 32940 path="$complete" 32941 arguments="EOL" 32942 new_path=`$CYGPATH -u "$path"` 32943 new_path=`$WHICH "$new_path" 2> /dev/null` 32944 # bat and cmd files are not always considered executable in cygwin causing which 32945 # to not find them 32946 if test "x$new_path" = x \ 32947 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32948 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32949 new_path=`$CYGPATH -u "$path"` 32950 fi 32951 if test "x$new_path" = x; then 32952 # It's still not found. Now this is an unrecoverable error. 32953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32954 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32955 has_space=`$ECHO "$complete" | $GREP " "` 32956 if test "x$has_space" != x; then 32957 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32958 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32959 fi 32960 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32961 fi 32962 fi 32963 32964 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32965 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32966 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32967 # "foo.exe" is OK but "foo" is an error. 32968 # 32969 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32970 # It is also a way to make sure we got the proper file name for the real test later on. 32971 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32972 if test "x$test_shortpath" = x; then 32973 # Short path failed, file does not exist as specified. 32974 # Try adding .exe or .cmd 32975 if test -f "${new_path}.exe"; then 32976 input_to_shortpath="${new_path}.exe" 32977 elif test -f "${new_path}.cmd"; then 32978 input_to_shortpath="${new_path}.cmd" 32979 else 32980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 32981 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 32982 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32983 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32984 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32985 fi 32986 else 32987 input_to_shortpath="$new_path" 32988 fi 32989 32990 # Call helper function which possibly converts this using DOS-style short mode. 32991 # If so, the updated path is stored in $new_path. 32992 new_path="$input_to_shortpath" 32993 32994 input_path="$input_to_shortpath" 32995 # Check if we need to convert this using DOS-style short mode. If the path 32996 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32997 # take no chances and rewrite it. 32998 # Note: m4 eats our [], so we need to use [ and ] instead. 32999 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33000 if test "x$has_forbidden_chars" != x; then 33001 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33002 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33003 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33004 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33005 # Going to short mode and back again did indeed matter. Since short mode is 33006 # case insensitive, let's make it lowercase to improve readability. 33007 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33008 # Now convert it back to Unix-style (cygpath) 33009 input_path=`$CYGPATH -u "$shortmode_path"` 33010 new_path="$input_path" 33011 fi 33012 fi 33013 33014 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33015 if test "x$test_cygdrive_prefix" = x; then 33016 # As a simple fix, exclude /usr/bin since it's not a real path. 33017 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33018 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33019 # a path prefixed by /cygdrive for fixpath to work. 33020 new_path="$CYGWIN_ROOT_PATH$input_path" 33021 fi 33022 fi 33023 33024 # remove trailing .exe if any 33025 new_path="${new_path/%.exe/}" 33026 33027 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33028 33029 # First separate the path from the arguments. This will split at the first 33030 # space. 33031 complete="$VS_ENV_CMD" 33032 path="${complete%% *}" 33033 tmp="$complete EOL" 33034 arguments="${tmp#* }" 33035 33036 # Input might be given as Windows format, start by converting to 33037 # unix format. 33038 new_path="$path" 33039 33040 windows_path="$new_path" 33041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33042 unix_path=`$CYGPATH -u "$windows_path"` 33043 new_path="$unix_path" 33044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33045 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33046 new_path="$unix_path" 33047 fi 33048 33049 33050 # Now try to locate executable using which 33051 new_path=`$WHICH "$new_path" 2> /dev/null` 33052 33053 if test "x$new_path" = x; then 33054 # Oops. Which didn't find the executable. 33055 # The splitting of arguments from the executable at a space might have been incorrect, 33056 # since paths with space are more likely in Windows. Give it another try with the whole 33057 # argument. 33058 path="$complete" 33059 arguments="EOL" 33060 new_path="$path" 33061 33062 windows_path="$new_path" 33063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33064 unix_path=`$CYGPATH -u "$windows_path"` 33065 new_path="$unix_path" 33066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33067 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33068 new_path="$unix_path" 33069 fi 33070 33071 33072 new_path=`$WHICH "$new_path" 2> /dev/null` 33073 # bat and cmd files are not always considered executable in MSYS causing which 33074 # to not find them 33075 if test "x$new_path" = x \ 33076 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33077 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33078 new_path="$path" 33079 33080 windows_path="$new_path" 33081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33082 unix_path=`$CYGPATH -u "$windows_path"` 33083 new_path="$unix_path" 33084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33086 new_path="$unix_path" 33087 fi 33088 33089 fi 33090 33091 if test "x$new_path" = x; then 33092 # It's still not found. Now this is an unrecoverable error. 33093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33094 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33095 has_space=`$ECHO "$complete" | $GREP " "` 33096 if test "x$has_space" != x; then 33097 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33098 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33099 fi 33100 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33101 fi 33102 fi 33103 33104 # Now new_path has a complete unix path to the binary 33105 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33106 # Keep paths in /bin as-is, but remove trailing .exe if any 33107 new_path="${new_path/%.exe/}" 33108 # Do not save /bin paths to all_fixpath_prefixes! 33109 else 33110 # Not in mixed or Windows style, start by that. 33111 new_path=`cmd //c echo $new_path` 33112 33113 input_path="$new_path" 33114 # Check if we need to convert this using DOS-style short mode. If the path 33115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33116 # take no chances and rewrite it. 33117 # Note: m4 eats our [], so we need to use [ and ] instead. 33118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33119 if test "x$has_forbidden_chars" != x; then 33120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33121 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33122 fi 33123 33124 # Output is in $new_path 33125 33126 windows_path="$new_path" 33127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33128 unix_path=`$CYGPATH -u "$windows_path"` 33129 new_path="$unix_path" 33130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33132 new_path="$unix_path" 33133 fi 33134 33135 # remove trailing .exe if any 33136 new_path="${new_path/%.exe/}" 33137 33138 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33139 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33140 fi 33141 33142 else 33143 # We're on a unix platform. Hooray! :) 33144 # First separate the path from the arguments. This will split at the first 33145 # space. 33146 complete="$VS_ENV_CMD" 33147 path="${complete%% *}" 33148 tmp="$complete EOL" 33149 arguments="${tmp#* }" 33150 33151 # Cannot rely on the command "which" here since it doesn't always work. 33152 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33153 if test -z "$is_absolute_path"; then 33154 # Path to executable is not absolute. Find it. 33155 IFS_save="$IFS" 33156 IFS=: 33157 for p in $PATH; do 33158 if test -f "$p/$path" && test -x "$p/$path"; then 33159 new_path="$p/$path" 33160 break 33161 fi 33162 done 33163 IFS="$IFS_save" 33164 else 33165 # This is an absolute path, we can use it without further modifications. 33166 new_path="$path" 33167 fi 33168 33169 if test "x$new_path" = x; then 33170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33171 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33172 has_space=`$ECHO "$complete" | $GREP " "` 33173 if test "x$has_space" != x; then 33174 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33175 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33176 fi 33177 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33178 fi 33179 fi 33180 33181 # Now join together the path and the arguments once again 33182 if test "x$arguments" != xEOL; then 33183 new_complete="$new_path ${arguments% *}" 33184 else 33185 new_complete="$new_path" 33186 fi 33187 33188 if test "x$complete" != "x$new_complete"; then 33189 VS_ENV_CMD="$new_complete" 33190 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 33191 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 33192 fi 33193 fi 33194 33195 33196 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 33197 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 33198 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 33199 33200 # We need to create a couple of temporary files. 33201 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 33202 $MKDIR -p $VS_ENV_TMP_DIR 33203 33204 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 33205 # Instead create a shell script which will set the relevant variables when run. 33206 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 33207 33208 unix_path="$WINPATH_VS_ENV_CMD" 33209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33210 windows_path=`$CYGPATH -m "$unix_path"` 33211 WINPATH_VS_ENV_CMD="$windows_path" 33212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33213 windows_path=`cmd //c echo $unix_path` 33214 WINPATH_VS_ENV_CMD="$windows_path" 33215 fi 33216 33217 WINPATH_BASH="$BASH" 33218 33219 unix_path="$WINPATH_BASH" 33220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33221 windows_path=`$CYGPATH -m "$unix_path"` 33222 WINPATH_BASH="$windows_path" 33223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33224 windows_path=`cmd //c echo $unix_path` 33225 WINPATH_BASH="$windows_path" 33226 fi 33227 33228 33229 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 33230 # script (executable by bash) that will setup the important variables. 33231 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 33232 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 33233 # This will end up something like: 33234 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 33235 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 33236 # These will end up something like: 33237 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 33238 # The trailing space for everyone except PATH is no typo, but is needed due 33239 # to trailing \ in the Windows paths. These will be stripped later. 33240 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 33241 >> $EXTRACT_VC_ENV_BAT_FILE 33242 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 33243 >> $EXTRACT_VC_ENV_BAT_FILE 33244 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 33245 >> $EXTRACT_VC_ENV_BAT_FILE 33246 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 33247 >> $EXTRACT_VC_ENV_BAT_FILE 33248 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 33249 >> $EXTRACT_VC_ENV_BAT_FILE 33250 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 33251 >> $EXTRACT_VC_ENV_BAT_FILE 33252 33253 # Now execute the newly created bat file. 33254 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 33255 # Change directory so we don't need to mess with Windows paths in redirects. 33256 cd $VS_ENV_TMP_DIR 33257 cmd /c extract-vs-env.bat | $CAT 33258 cd $CURDIR 33259 33260 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 33261 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 33262 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 33263 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33264 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33265 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33266 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33267 as_fn_error $? "Cannot continue" "$LINENO" 5 33268 fi 33269 33270 # Now set all paths and other env variables. This will allow the rest of 33271 # the configure script to find and run the compiler in the proper way. 33272 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 33273 $as_echo "$as_me: Setting extracted environment variables" >&6;} 33274 . $VS_ENV_TMP_DIR/set-vs-env.sh 33275 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 33276 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 33277 else 33278 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 33279 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 33280 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 33281 fi 33282 fi 33283 33284 # At this point, we should have correct variables in the environment, or we can't continue. 33285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 33286 $as_echo_n "checking for Visual Studio variables... " >&6; } 33287 33288 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 33289 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 33290 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 33291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 33292 $as_echo "present but broken" >&6; } 33293 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 33294 else 33295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 33296 $as_echo "ok" >&6; } 33297 # Remove any trailing "\" ";" and " " from the variables. 33298 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 33299 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 33300 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 33301 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 33302 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 33303 # Remove any paths containing # (typically F#) as that messes up make. This 33304 # is needed if visual studio was installed with F# support. 33305 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 33306 33307 33308 33309 33310 33311 # Convert VS_INCLUDE into SYSROOT_CFLAGS 33312 OLDIFS="$IFS" 33313 IFS=";" 33314 for i in $VS_INCLUDE; do 33315 ipath=$i 33316 # Only process non-empty elements 33317 if test "x$ipath" != x; then 33318 IFS="$OLDIFS" 33319 # Check that directory exists before calling fixup_path 33320 testpath=$ipath 33321 33322 windows_path="$testpath" 33323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33324 unix_path=`$CYGPATH -u "$windows_path"` 33325 testpath="$unix_path" 33326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33328 testpath="$unix_path" 33329 fi 33330 33331 if test -d "$testpath"; then 33332 33333 # Only process if variable expands to non-empty 33334 33335 if test "x$ipath" != x; then 33336 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33337 33338 # Input might be given as Windows format, start by converting to 33339 # unix format. 33340 path="$ipath" 33341 new_path=`$CYGPATH -u "$path"` 33342 33343 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33344 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33345 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33346 # "foo.exe" is OK but "foo" is an error. 33347 # 33348 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33349 # It is also a way to make sure we got the proper file name for the real test later on. 33350 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33351 if test "x$test_shortpath" = x; then 33352 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33353 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33354 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 33355 fi 33356 33357 # Call helper function which possibly converts this using DOS-style short mode. 33358 # If so, the updated path is stored in $new_path. 33359 33360 input_path="$new_path" 33361 # Check if we need to convert this using DOS-style short mode. If the path 33362 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33363 # take no chances and rewrite it. 33364 # Note: m4 eats our [], so we need to use [ and ] instead. 33365 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33366 if test "x$has_forbidden_chars" != x; then 33367 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33368 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33369 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33370 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33371 # Going to short mode and back again did indeed matter. Since short mode is 33372 # case insensitive, let's make it lowercase to improve readability. 33373 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33374 # Now convert it back to Unix-style (cygpath) 33375 input_path=`$CYGPATH -u "$shortmode_path"` 33376 new_path="$input_path" 33377 fi 33378 fi 33379 33380 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33381 if test "x$test_cygdrive_prefix" = x; then 33382 # As a simple fix, exclude /usr/bin since it's not a real path. 33383 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33384 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33385 # a path prefixed by /cygdrive for fixpath to work. 33386 new_path="$CYGWIN_ROOT_PATH$input_path" 33387 fi 33388 fi 33389 33390 33391 if test "x$path" != "x$new_path"; then 33392 ipath="$new_path" 33393 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33394 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33395 fi 33396 33397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33398 33399 path="$ipath" 33400 has_colon=`$ECHO $path | $GREP ^.:` 33401 new_path="$path" 33402 if test "x$has_colon" = x; then 33403 # Not in mixed or Windows style, start by that. 33404 new_path=`cmd //c echo $path` 33405 fi 33406 33407 33408 input_path="$new_path" 33409 # Check if we need to convert this using DOS-style short mode. If the path 33410 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33411 # take no chances and rewrite it. 33412 # Note: m4 eats our [], so we need to use [ and ] instead. 33413 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33414 if test "x$has_forbidden_chars" != x; then 33415 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33416 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33417 fi 33418 33419 33420 windows_path="$new_path" 33421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33422 unix_path=`$CYGPATH -u "$windows_path"` 33423 new_path="$unix_path" 33424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33425 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33426 new_path="$unix_path" 33427 fi 33428 33429 if test "x$path" != "x$new_path"; then 33430 ipath="$new_path" 33431 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33432 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33433 fi 33434 33435 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33436 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33437 33438 else 33439 # We're on a unix platform. Hooray! :) 33440 path="$ipath" 33441 has_space=`$ECHO "$path" | $GREP " "` 33442 if test "x$has_space" != x; then 33443 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33444 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33445 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33446 fi 33447 33448 # Use eval to expand a potential ~ 33449 eval path="$path" 33450 if test ! -f "$path" && test ! -d "$path"; then 33451 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 33452 fi 33453 33454 if test -d "$path"; then 33455 ipath="`cd "$path"; $THEPWDCMD -L`" 33456 else 33457 dir="`$DIRNAME "$path"`" 33458 base="`$BASENAME "$path"`" 33459 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 33460 fi 33461 fi 33462 fi 33463 33464 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 33465 fi 33466 IFS=";" 33467 fi 33468 done 33469 # Convert VS_LIB into SYSROOT_LDFLAGS 33470 for i in $VS_LIB; do 33471 libpath=$i 33472 # Only process non-empty elements 33473 if test "x$libpath" != x; then 33474 IFS="$OLDIFS" 33475 # Check that directory exists before calling fixup_path 33476 testpath=$libpath 33477 33478 windows_path="$testpath" 33479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33480 unix_path=`$CYGPATH -u "$windows_path"` 33481 testpath="$unix_path" 33482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33483 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33484 testpath="$unix_path" 33485 fi 33486 33487 if test -d "$testpath"; then 33488 33489 # Only process if variable expands to non-empty 33490 33491 if test "x$libpath" != x; then 33492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33493 33494 # Input might be given as Windows format, start by converting to 33495 # unix format. 33496 path="$libpath" 33497 new_path=`$CYGPATH -u "$path"` 33498 33499 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33500 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33501 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33502 # "foo.exe" is OK but "foo" is an error. 33503 # 33504 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33505 # It is also a way to make sure we got the proper file name for the real test later on. 33506 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33507 if test "x$test_shortpath" = x; then 33508 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33509 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33510 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 33511 fi 33512 33513 # Call helper function which possibly converts this using DOS-style short mode. 33514 # If so, the updated path is stored in $new_path. 33515 33516 input_path="$new_path" 33517 # Check if we need to convert this using DOS-style short mode. If the path 33518 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33519 # take no chances and rewrite it. 33520 # Note: m4 eats our [], so we need to use [ and ] instead. 33521 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33522 if test "x$has_forbidden_chars" != x; then 33523 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33524 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33525 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33526 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33527 # Going to short mode and back again did indeed matter. Since short mode is 33528 # case insensitive, let's make it lowercase to improve readability. 33529 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33530 # Now convert it back to Unix-style (cygpath) 33531 input_path=`$CYGPATH -u "$shortmode_path"` 33532 new_path="$input_path" 33533 fi 33534 fi 33535 33536 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33537 if test "x$test_cygdrive_prefix" = x; then 33538 # As a simple fix, exclude /usr/bin since it's not a real path. 33539 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33540 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33541 # a path prefixed by /cygdrive for fixpath to work. 33542 new_path="$CYGWIN_ROOT_PATH$input_path" 33543 fi 33544 fi 33545 33546 33547 if test "x$path" != "x$new_path"; then 33548 libpath="$new_path" 33549 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33550 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33551 fi 33552 33553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33554 33555 path="$libpath" 33556 has_colon=`$ECHO $path | $GREP ^.:` 33557 new_path="$path" 33558 if test "x$has_colon" = x; then 33559 # Not in mixed or Windows style, start by that. 33560 new_path=`cmd //c echo $path` 33561 fi 33562 33563 33564 input_path="$new_path" 33565 # Check if we need to convert this using DOS-style short mode. If the path 33566 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33567 # take no chances and rewrite it. 33568 # Note: m4 eats our [], so we need to use [ and ] instead. 33569 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33570 if test "x$has_forbidden_chars" != x; then 33571 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33572 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33573 fi 33574 33575 33576 windows_path="$new_path" 33577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33578 unix_path=`$CYGPATH -u "$windows_path"` 33579 new_path="$unix_path" 33580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33581 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33582 new_path="$unix_path" 33583 fi 33584 33585 if test "x$path" != "x$new_path"; then 33586 libpath="$new_path" 33587 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33588 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33589 fi 33590 33591 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33592 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33593 33594 else 33595 # We're on a unix platform. Hooray! :) 33596 path="$libpath" 33597 has_space=`$ECHO "$path" | $GREP " "` 33598 if test "x$has_space" != x; then 33599 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33600 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33601 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33602 fi 33603 33604 # Use eval to expand a potential ~ 33605 eval path="$path" 33606 if test ! -f "$path" && test ! -d "$path"; then 33607 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 33608 fi 33609 33610 if test -d "$path"; then 33611 libpath="`cd "$path"; $THEPWDCMD -L`" 33612 else 33613 dir="`$DIRNAME "$path"`" 33614 base="`$BASENAME "$path"`" 33615 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 33616 fi 33617 fi 33618 fi 33619 33620 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33621 fi 33622 IFS=";" 33623 fi 33624 done 33625 IFS="$OLDIFS" 33626 fi 33627 else 33628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33629 $as_echo "not found" >&6; } 33630 33631 if test "x$VS_ENV_CMD" = x; then 33632 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33633 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33634 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33635 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33636 else 33637 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33638 $as_echo "$as_me: Running the extraction script failed." >&6;} 33639 fi 33640 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33641 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33642 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33643 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33644 as_fn_error $? "Cannot continue" "$LINENO" 5 33645 fi 33646 33647 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33648 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33649 PATH="$VS_PATH" 33650 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33651 export INCLUDE="$VS_INCLUDE" 33652 export LIB="$VS_LIB" 33653 else 33654 if test "x$XCODE_VERSION_OUTPUT" != x; then 33655 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33656 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33657 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33658 else 33659 # Currently we do not define this for other toolchains. This might change as the need arise. 33660 TOOLCHAIN_VERSION= 33661 fi 33662 fi 33663 33664 33665 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33666 # override all other locations. 33667 if test "x$TOOLCHAIN_PATH" != x; then 33668 PATH=$TOOLCHAIN_PATH:$PATH 33669 fi 33670 33671 33672 # 33673 # Setup the compilers (CC and CXX) 33674 # 33675 33676 COMPILER_NAME=C 33677 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33678 33679 if test "x$CC" != x; then 33680 # User has supplied compiler name already, always let that override. 33681 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33682 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33683 if test "x`basename $CC`" = "x$CC"; then 33684 # A command without a complete path is provided, search $PATH. 33685 33686 for ac_prog in $CC 33687 do 33688 # Extract the first word of "$ac_prog", so it can be a program name with args. 33689 set dummy $ac_prog; ac_word=$2 33690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33691 $as_echo_n "checking for $ac_word... " >&6; } 33692 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33693 $as_echo_n "(cached) " >&6 33694 else 33695 case $POTENTIAL_CC in 33696 [\\/]* | ?:[\\/]*) 33697 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33698 ;; 33699 *) 33700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33701 for as_dir in $PATH 33702 do 33703 IFS=$as_save_IFS 33704 test -z "$as_dir" && as_dir=. 33705 for ac_exec_ext in '' $ac_executable_extensions; do 33706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33707 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33709 break 2 33710 fi 33711 done 33712 done 33713 IFS=$as_save_IFS 33714 33715 ;; 33716 esac 33717 fi 33718 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33719 if test -n "$POTENTIAL_CC"; then 33720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33721 $as_echo "$POTENTIAL_CC" >&6; } 33722 else 33723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33724 $as_echo "no" >&6; } 33725 fi 33726 33727 33728 test -n "$POTENTIAL_CC" && break 33729 done 33730 33731 if test "x$POTENTIAL_CC" != x; then 33732 CC=$POTENTIAL_CC 33733 else 33734 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33735 fi 33736 else 33737 # Otherwise it might already be a complete path 33738 if test ! -x "$CC"; then 33739 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33740 fi 33741 fi 33742 else 33743 # No user supplied value. Locate compiler ourselves. 33744 33745 # If we are cross compiling, assume cross compilation tools follows the 33746 # cross compilation standard where they are prefixed with the autoconf 33747 # standard name for the target. For example the binary 33748 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33749 # If we are not cross compiling, then the default compiler name will be 33750 # used. 33751 33752 CC= 33753 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33754 # before checking the rest of the PATH. 33755 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33756 # step, this should not be necessary. 33757 if test -n "$TOOLCHAIN_PATH"; then 33758 PATH_save="$PATH" 33759 PATH="$TOOLCHAIN_PATH" 33760 if test -n "$ac_tool_prefix"; then 33761 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33762 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33764 $as_echo_n "checking for $ac_word... " >&6; } 33765 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33766 $as_echo_n "(cached) " >&6 33767 else 33768 case $TOOLCHAIN_PATH_CC in 33769 [\\/]* | ?:[\\/]*) 33770 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33771 ;; 33772 *) 33773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33774 for as_dir in $PATH 33775 do 33776 IFS=$as_save_IFS 33777 test -z "$as_dir" && as_dir=. 33778 for ac_exec_ext in '' $ac_executable_extensions; do 33779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33780 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33782 break 2 33783 fi 33784 done 33785 done 33786 IFS=$as_save_IFS 33787 33788 ;; 33789 esac 33790 fi 33791 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33792 if test -n "$TOOLCHAIN_PATH_CC"; then 33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33794 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33795 else 33796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33797 $as_echo "no" >&6; } 33798 fi 33799 33800 33801 fi 33802 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CC"; then 33803 ac_pt_TOOLCHAIN_PATH_CC=$TOOLCHAIN_PATH_CC 33804 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33805 set dummy $SEARCH_LIST; ac_word=$2 33806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33807 $as_echo_n "checking for $ac_word... " >&6; } 33808 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC+:} false; then : 33809 $as_echo_n "(cached) " >&6 33810 else 33811 case $ac_pt_TOOLCHAIN_PATH_CC in 33812 [\\/]* | ?:[\\/]*) 33813 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$ac_pt_TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33814 ;; 33815 *) 33816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33817 for as_dir in $PATH 33818 do 33819 IFS=$as_save_IFS 33820 test -z "$as_dir" && as_dir=. 33821 for ac_exec_ext in '' $ac_executable_extensions; do 33822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33823 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33825 break 2 33826 fi 33827 done 33828 done 33829 IFS=$as_save_IFS 33830 33831 ;; 33832 esac 33833 fi 33834 ac_pt_TOOLCHAIN_PATH_CC=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC 33835 if test -n "$ac_pt_TOOLCHAIN_PATH_CC"; then 33836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CC" >&5 33837 $as_echo "$ac_pt_TOOLCHAIN_PATH_CC" >&6; } 33838 else 33839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33840 $as_echo "no" >&6; } 33841 fi 33842 33843 if test "x$ac_pt_TOOLCHAIN_PATH_CC" = x; then 33844 TOOLCHAIN_PATH_CC="" 33845 else 33846 case $cross_compiling:$ac_tool_warned in 33847 yes:) 33848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33850 ac_tool_warned=yes ;; 33851 esac 33852 TOOLCHAIN_PATH_CC=$ac_pt_TOOLCHAIN_PATH_CC 33853 fi 33854 else 33855 TOOLCHAIN_PATH_CC="$ac_cv_path_TOOLCHAIN_PATH_CC" 33856 fi 33857 33858 CC=$TOOLCHAIN_PATH_CC 33859 PATH="$PATH_save" 33860 fi 33861 33862 # AC_PATH_TOOL can't be run multiple times with the same variable, 33863 # so create a new name for this run. 33864 if test "x$CC" = x; then 33865 if test -n "$ac_tool_prefix"; then 33866 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33867 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33869 $as_echo_n "checking for $ac_word... " >&6; } 33870 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33871 $as_echo_n "(cached) " >&6 33872 else 33873 case $POTENTIAL_CC in 33874 [\\/]* | ?:[\\/]*) 33875 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33876 ;; 33877 *) 33878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33879 for as_dir in $PATH 33880 do 33881 IFS=$as_save_IFS 33882 test -z "$as_dir" && as_dir=. 33883 for ac_exec_ext in '' $ac_executable_extensions; do 33884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33885 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33887 break 2 33888 fi 33889 done 33890 done 33891 IFS=$as_save_IFS 33892 33893 ;; 33894 esac 33895 fi 33896 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33897 if test -n "$POTENTIAL_CC"; then 33898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33899 $as_echo "$POTENTIAL_CC" >&6; } 33900 else 33901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33902 $as_echo "no" >&6; } 33903 fi 33904 33905 33906 fi 33907 if test -z "$ac_cv_path_POTENTIAL_CC"; then 33908 ac_pt_POTENTIAL_CC=$POTENTIAL_CC 33909 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33910 set dummy $SEARCH_LIST; ac_word=$2 33911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33912 $as_echo_n "checking for $ac_word... " >&6; } 33913 if ${ac_cv_path_ac_pt_POTENTIAL_CC+:} false; then : 33914 $as_echo_n "(cached) " >&6 33915 else 33916 case $ac_pt_POTENTIAL_CC in 33917 [\\/]* | ?:[\\/]*) 33918 ac_cv_path_ac_pt_POTENTIAL_CC="$ac_pt_POTENTIAL_CC" # Let the user override the test with a path. 33919 ;; 33920 *) 33921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33922 for as_dir in $PATH 33923 do 33924 IFS=$as_save_IFS 33925 test -z "$as_dir" && as_dir=. 33926 for ac_exec_ext in '' $ac_executable_extensions; do 33927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33928 ac_cv_path_ac_pt_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33930 break 2 33931 fi 33932 done 33933 done 33934 IFS=$as_save_IFS 33935 33936 ;; 33937 esac 33938 fi 33939 ac_pt_POTENTIAL_CC=$ac_cv_path_ac_pt_POTENTIAL_CC 33940 if test -n "$ac_pt_POTENTIAL_CC"; then 33941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CC" >&5 33942 $as_echo "$ac_pt_POTENTIAL_CC" >&6; } 33943 else 33944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33945 $as_echo "no" >&6; } 33946 fi 33947 33948 if test "x$ac_pt_POTENTIAL_CC" = x; then 33949 POTENTIAL_CC="" 33950 else 33951 case $cross_compiling:$ac_tool_warned in 33952 yes:) 33953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33955 ac_tool_warned=yes ;; 33956 esac 33957 POTENTIAL_CC=$ac_pt_POTENTIAL_CC 33958 fi 33959 else 33960 POTENTIAL_CC="$ac_cv_path_POTENTIAL_CC" 33961 fi 33962 33963 CC=$POTENTIAL_CC 33964 fi 33965 33966 if test "x$CC" = x; then 33967 33968 # Print a helpful message on how to acquire the necessary build dependency. 33969 # devkit is the help tag: freetype, cups, alsa etc 33970 MISSING_DEPENDENCY=devkit 33971 33972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33973 cygwin_help $MISSING_DEPENDENCY 33974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33975 msys_help $MISSING_DEPENDENCY 33976 else 33977 PKGHANDLER_COMMAND= 33978 33979 case $PKGHANDLER in 33980 apt-get) 33981 apt_help $MISSING_DEPENDENCY ;; 33982 yum) 33983 yum_help $MISSING_DEPENDENCY ;; 33984 brew) 33985 brew_help $MISSING_DEPENDENCY ;; 33986 port) 33987 port_help $MISSING_DEPENDENCY ;; 33988 pkgutil) 33989 pkgutil_help $MISSING_DEPENDENCY ;; 33990 pkgadd) 33991 pkgadd_help $MISSING_DEPENDENCY ;; 33992 esac 33993 33994 if test "x$PKGHANDLER_COMMAND" != x; then 33995 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33996 fi 33997 fi 33998 33999 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34000 fi 34001 fi 34002 34003 # Now we have a compiler binary in CC. Make sure it's okay. 34004 34005 # Only process if variable expands to non-empty 34006 34007 if test "x$CC" != x; then 34008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34009 34010 # First separate the path from the arguments. This will split at the first 34011 # space. 34012 complete="$CC" 34013 path="${complete%% *}" 34014 tmp="$complete EOL" 34015 arguments="${tmp#* }" 34016 34017 # Input might be given as Windows format, start by converting to 34018 # unix format. 34019 new_path=`$CYGPATH -u "$path"` 34020 34021 # Now try to locate executable using which 34022 new_path=`$WHICH "$new_path" 2> /dev/null` 34023 # bat and cmd files are not always considered executable in cygwin causing which 34024 # to not find them 34025 if test "x$new_path" = x \ 34026 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34027 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34028 new_path=`$CYGPATH -u "$path"` 34029 fi 34030 if test "x$new_path" = x; then 34031 # Oops. Which didn't find the executable. 34032 # The splitting of arguments from the executable at a space might have been incorrect, 34033 # since paths with space are more likely in Windows. Give it another try with the whole 34034 # argument. 34035 path="$complete" 34036 arguments="EOL" 34037 new_path=`$CYGPATH -u "$path"` 34038 new_path=`$WHICH "$new_path" 2> /dev/null` 34039 # bat and cmd files are not always considered executable in cygwin causing which 34040 # to not find them 34041 if test "x$new_path" = x \ 34042 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34043 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34044 new_path=`$CYGPATH -u "$path"` 34045 fi 34046 if test "x$new_path" = x; then 34047 # It's still not found. Now this is an unrecoverable error. 34048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34049 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34050 has_space=`$ECHO "$complete" | $GREP " "` 34051 if test "x$has_space" != x; then 34052 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34053 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34054 fi 34055 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34056 fi 34057 fi 34058 34059 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34060 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34061 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34062 # "foo.exe" is OK but "foo" is an error. 34063 # 34064 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34065 # It is also a way to make sure we got the proper file name for the real test later on. 34066 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34067 if test "x$test_shortpath" = x; then 34068 # Short path failed, file does not exist as specified. 34069 # Try adding .exe or .cmd 34070 if test -f "${new_path}.exe"; then 34071 input_to_shortpath="${new_path}.exe" 34072 elif test -f "${new_path}.cmd"; then 34073 input_to_shortpath="${new_path}.cmd" 34074 else 34075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 34076 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 34077 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34078 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34079 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34080 fi 34081 else 34082 input_to_shortpath="$new_path" 34083 fi 34084 34085 # Call helper function which possibly converts this using DOS-style short mode. 34086 # If so, the updated path is stored in $new_path. 34087 new_path="$input_to_shortpath" 34088 34089 input_path="$input_to_shortpath" 34090 # Check if we need to convert this using DOS-style short mode. If the path 34091 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34092 # take no chances and rewrite it. 34093 # Note: m4 eats our [], so we need to use [ and ] instead. 34094 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34095 if test "x$has_forbidden_chars" != x; then 34096 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34097 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34098 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34099 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34100 # Going to short mode and back again did indeed matter. Since short mode is 34101 # case insensitive, let's make it lowercase to improve readability. 34102 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34103 # Now convert it back to Unix-style (cygpath) 34104 input_path=`$CYGPATH -u "$shortmode_path"` 34105 new_path="$input_path" 34106 fi 34107 fi 34108 34109 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34110 if test "x$test_cygdrive_prefix" = x; then 34111 # As a simple fix, exclude /usr/bin since it's not a real path. 34112 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34113 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34114 # a path prefixed by /cygdrive for fixpath to work. 34115 new_path="$CYGWIN_ROOT_PATH$input_path" 34116 fi 34117 fi 34118 34119 # remove trailing .exe if any 34120 new_path="${new_path/%.exe/}" 34121 34122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34123 34124 # First separate the path from the arguments. This will split at the first 34125 # space. 34126 complete="$CC" 34127 path="${complete%% *}" 34128 tmp="$complete EOL" 34129 arguments="${tmp#* }" 34130 34131 # Input might be given as Windows format, start by converting to 34132 # unix format. 34133 new_path="$path" 34134 34135 windows_path="$new_path" 34136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34137 unix_path=`$CYGPATH -u "$windows_path"` 34138 new_path="$unix_path" 34139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34140 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34141 new_path="$unix_path" 34142 fi 34143 34144 34145 # Now try to locate executable using which 34146 new_path=`$WHICH "$new_path" 2> /dev/null` 34147 34148 if test "x$new_path" = x; then 34149 # Oops. Which didn't find the executable. 34150 # The splitting of arguments from the executable at a space might have been incorrect, 34151 # since paths with space are more likely in Windows. Give it another try with the whole 34152 # argument. 34153 path="$complete" 34154 arguments="EOL" 34155 new_path="$path" 34156 34157 windows_path="$new_path" 34158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34159 unix_path=`$CYGPATH -u "$windows_path"` 34160 new_path="$unix_path" 34161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34163 new_path="$unix_path" 34164 fi 34165 34166 34167 new_path=`$WHICH "$new_path" 2> /dev/null` 34168 # bat and cmd files are not always considered executable in MSYS causing which 34169 # to not find them 34170 if test "x$new_path" = x \ 34171 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34172 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34173 new_path="$path" 34174 34175 windows_path="$new_path" 34176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34177 unix_path=`$CYGPATH -u "$windows_path"` 34178 new_path="$unix_path" 34179 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34180 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34181 new_path="$unix_path" 34182 fi 34183 34184 fi 34185 34186 if test "x$new_path" = x; then 34187 # It's still not found. Now this is an unrecoverable error. 34188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34189 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34190 has_space=`$ECHO "$complete" | $GREP " "` 34191 if test "x$has_space" != x; then 34192 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34193 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34194 fi 34195 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34196 fi 34197 fi 34198 34199 # Now new_path has a complete unix path to the binary 34200 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34201 # Keep paths in /bin as-is, but remove trailing .exe if any 34202 new_path="${new_path/%.exe/}" 34203 # Do not save /bin paths to all_fixpath_prefixes! 34204 else 34205 # Not in mixed or Windows style, start by that. 34206 new_path=`cmd //c echo $new_path` 34207 34208 input_path="$new_path" 34209 # Check if we need to convert this using DOS-style short mode. If the path 34210 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34211 # take no chances and rewrite it. 34212 # Note: m4 eats our [], so we need to use [ and ] instead. 34213 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34214 if test "x$has_forbidden_chars" != x; then 34215 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34216 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34217 fi 34218 34219 # Output is in $new_path 34220 34221 windows_path="$new_path" 34222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34223 unix_path=`$CYGPATH -u "$windows_path"` 34224 new_path="$unix_path" 34225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34227 new_path="$unix_path" 34228 fi 34229 34230 # remove trailing .exe if any 34231 new_path="${new_path/%.exe/}" 34232 34233 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34234 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34235 fi 34236 34237 else 34238 # We're on a unix platform. Hooray! :) 34239 # First separate the path from the arguments. This will split at the first 34240 # space. 34241 complete="$CC" 34242 path="${complete%% *}" 34243 tmp="$complete EOL" 34244 arguments="${tmp#* }" 34245 34246 # Cannot rely on the command "which" here since it doesn't always work. 34247 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34248 if test -z "$is_absolute_path"; then 34249 # Path to executable is not absolute. Find it. 34250 IFS_save="$IFS" 34251 IFS=: 34252 for p in $PATH; do 34253 if test -f "$p/$path" && test -x "$p/$path"; then 34254 new_path="$p/$path" 34255 break 34256 fi 34257 done 34258 IFS="$IFS_save" 34259 else 34260 # This is an absolute path, we can use it without further modifications. 34261 new_path="$path" 34262 fi 34263 34264 if test "x$new_path" = x; then 34265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34266 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34267 has_space=`$ECHO "$complete" | $GREP " "` 34268 if test "x$has_space" != x; then 34269 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34270 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34271 fi 34272 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34273 fi 34274 fi 34275 34276 # Now join together the path and the arguments once again 34277 if test "x$arguments" != xEOL; then 34278 new_complete="$new_path ${arguments% *}" 34279 else 34280 new_complete="$new_path" 34281 fi 34282 34283 if test "x$complete" != "x$new_complete"; then 34284 CC="$new_complete" 34285 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 34286 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 34287 fi 34288 fi 34289 34290 TEST_COMPILER="$CC" 34291 34292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 34293 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 34294 SYMLINK_ORIGINAL="$TEST_COMPILER" 34295 34296 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34297 # Follow a chain of symbolic links. Use readlink 34298 # where it exists, else fall back to horribly 34299 # complicated shell code. 34300 if test "x$READLINK_TESTED" != yes; then 34301 # On MacOSX there is a readlink tool with a different 34302 # purpose than the GNU readlink tool. Check the found readlink. 34303 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34304 if test "x$ISGNU" = x; then 34305 # A readlink that we do not know how to use. 34306 # Are there other non-GNU readlinks out there? 34307 READLINK_TESTED=yes 34308 READLINK= 34309 fi 34310 fi 34311 34312 if test "x$READLINK" != x; then 34313 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34314 else 34315 # Save the current directory for restoring afterwards 34316 STARTDIR=$PWD 34317 COUNTER=0 34318 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34319 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34320 cd $sym_link_dir 34321 # Use -P flag to resolve symlinks in directories. 34322 cd `$THEPWDCMD -P` 34323 sym_link_dir=`$THEPWDCMD -P` 34324 # Resolve file symlinks 34325 while test $COUNTER -lt 20; do 34326 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34327 if test "x$ISLINK" == x; then 34328 # This is not a symbolic link! We are done! 34329 break 34330 fi 34331 # Again resolve directory symlinks since the target of the just found 34332 # link could be in a different directory 34333 cd `$DIRNAME $ISLINK` 34334 sym_link_dir=`$THEPWDCMD -P` 34335 sym_link_file=`$BASENAME $ISLINK` 34336 let COUNTER=COUNTER+1 34337 done 34338 cd $STARTDIR 34339 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34340 fi 34341 fi 34342 34343 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34345 $as_echo "no symlink" >&6; } 34346 else 34347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34348 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34349 34350 # We can't handle ccache by gcc wrappers, since we need to know if we're 34351 # using ccache. Instead ccache usage must be controlled by a configure option. 34352 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34353 if test "x$COMPILER_BASENAME" = "xccache"; then 34354 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34355 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34356 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34357 fi 34358 fi 34359 34360 34361 COMPILER=$CC 34362 COMPILER_NAME=$COMPILER_NAME 34363 34364 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34365 # cc -V output typically looks like 34366 # cc: Sun C 5.12 Linux_i386 2011/11/16 34367 # or 34368 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 34369 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34370 # Check that this is likely to be the Solaris Studio cc. 34371 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 34372 if test $? -ne 0; then 34373 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34374 { $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 34375 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34376 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34377 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34378 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34379 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34380 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34381 fi 34382 # Remove usage instructions (if present), and 34383 # collapse compiler output into a single line 34384 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34385 $SED -e 's/ *[Uu]sage:.*//'` 34386 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34387 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34388 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34389 # xlc -qversion output typically looks like 34390 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34391 # Version: 11.01.0000.0015 34392 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34393 # Check that this is likely to be the IBM XL C compiler. 34394 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34395 if test $? -ne 0; then 34396 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34397 { $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 34398 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34399 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34400 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34401 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34402 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34403 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34404 fi 34405 # Collapse compiler output into a single line 34406 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34407 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34408 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34409 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34410 # There is no specific version flag, but all output starts with a version string. 34411 # First line typically looks something like: 34412 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34413 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34414 # Check that this is likely to be Microsoft CL.EXE. 34415 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34416 if test $? -ne 0; then 34417 { $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 34418 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34419 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34420 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34421 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34422 fi 34423 # Collapse compiler output into a single line 34424 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34425 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34426 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34427 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34428 # gcc --version output typically looks like 34429 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34430 # Copyright (C) 2013 Free Software Foundation, Inc. 34431 # This is free software; see the source for copying conditions. There is NO 34432 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34433 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34434 # Check that this is likely to be GCC. 34435 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34436 if test $? -ne 0; then 34437 { $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 34438 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34439 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34440 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34441 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34442 fi 34443 # Remove Copyright and legalese from version string, and 34444 # collapse into a single line 34445 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34446 $SED -e 's/ *Copyright .*//'` 34447 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34448 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34449 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34450 # clang --version output typically looks like 34451 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34452 # clang version 3.3 (tags/RELEASE_33/final) 34453 # or 34454 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34455 # Target: x86_64-pc-linux-gnu 34456 # Thread model: posix 34457 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34458 # Check that this is likely to be clang 34459 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34460 if test $? -ne 0; then 34461 { $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 34462 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34463 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34464 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34465 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34466 fi 34467 # Collapse compiler output into a single line 34468 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34469 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34470 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34471 else 34472 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34473 fi 34474 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34475 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34476 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34477 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 34478 34479 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34480 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34481 34482 34483 # Now that we have resolved CC ourself, let autoconf have its go at it 34484 ac_ext=c 34485 ac_cpp='$CPP $CPPFLAGS' 34486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34488 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34489 if test -n "$ac_tool_prefix"; then 34490 for ac_prog in $CC 34491 do 34492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34495 $as_echo_n "checking for $ac_word... " >&6; } 34496 if ${ac_cv_prog_CC+:} false; then : 34497 $as_echo_n "(cached) " >&6 34498 else 34499 if test -n "$CC"; then 34500 ac_cv_prog_CC="$CC" # Let the user override the test. 34501 else 34502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34503 for as_dir in $PATH 34504 do 34505 IFS=$as_save_IFS 34506 test -z "$as_dir" && as_dir=. 34507 for ac_exec_ext in '' $ac_executable_extensions; do 34508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34511 break 2 34512 fi 34513 done 34514 done 34515 IFS=$as_save_IFS 34516 34517 fi 34518 fi 34519 CC=$ac_cv_prog_CC 34520 if test -n "$CC"; then 34521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34522 $as_echo "$CC" >&6; } 34523 else 34524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34525 $as_echo "no" >&6; } 34526 fi 34527 34528 34529 test -n "$CC" && break 34530 done 34531 fi 34532 if test -z "$CC"; then 34533 ac_ct_CC=$CC 34534 for ac_prog in $CC 34535 do 34536 # Extract the first word of "$ac_prog", so it can be a program name with args. 34537 set dummy $ac_prog; ac_word=$2 34538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34539 $as_echo_n "checking for $ac_word... " >&6; } 34540 if ${ac_cv_prog_ac_ct_CC+:} false; then : 34541 $as_echo_n "(cached) " >&6 34542 else 34543 if test -n "$ac_ct_CC"; then 34544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34545 else 34546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34547 for as_dir in $PATH 34548 do 34549 IFS=$as_save_IFS 34550 test -z "$as_dir" && as_dir=. 34551 for ac_exec_ext in '' $ac_executable_extensions; do 34552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34553 ac_cv_prog_ac_ct_CC="$ac_prog" 34554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34555 break 2 34556 fi 34557 done 34558 done 34559 IFS=$as_save_IFS 34560 34561 fi 34562 fi 34563 ac_ct_CC=$ac_cv_prog_ac_ct_CC 34564 if test -n "$ac_ct_CC"; then 34565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34566 $as_echo "$ac_ct_CC" >&6; } 34567 else 34568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34569 $as_echo "no" >&6; } 34570 fi 34571 34572 34573 test -n "$ac_ct_CC" && break 34574 done 34575 34576 if test "x$ac_ct_CC" = x; then 34577 CC="" 34578 else 34579 case $cross_compiling:$ac_tool_warned in 34580 yes:) 34581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34583 ac_tool_warned=yes ;; 34584 esac 34585 CC=$ac_ct_CC 34586 fi 34587 fi 34588 34589 34590 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34592 as_fn_error $? "no acceptable C compiler found in \$PATH 34593 See \`config.log' for more details" "$LINENO" 5; } 34594 34595 # Provide some information about the compiler. 34596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 34597 set X $ac_compile 34598 ac_compiler=$2 34599 for ac_option in --version -v -V -qversion; do 34600 { { ac_try="$ac_compiler $ac_option >&5" 34601 case "(($ac_try" in 34602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34603 *) ac_try_echo=$ac_try;; 34604 esac 34605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34606 $as_echo "$ac_try_echo"; } >&5 34607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34608 ac_status=$? 34609 if test -s conftest.err; then 34610 sed '10a\ 34611 ... rest of stderr output deleted ... 34612 10q' conftest.err >conftest.er1 34613 cat conftest.er1 >&5 34614 fi 34615 rm -f conftest.er1 conftest.err 34616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34617 test $ac_status = 0; } 34618 done 34619 34620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34621 /* end confdefs.h. */ 34622 34623 int 34624 main () 34625 { 34626 34627 ; 34628 return 0; 34629 } 34630 _ACEOF 34631 ac_clean_files_save=$ac_clean_files 34632 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 34633 # Try to create an executable without -o first, disregard a.out. 34634 # It will help us diagnose broken compilers, and finding out an intuition 34635 # of exeext. 34636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 34637 $as_echo_n "checking whether the C compiler works... " >&6; } 34638 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 34639 34640 # The possible output files: 34641 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 34642 34643 ac_rmfiles= 34644 for ac_file in $ac_files 34645 do 34646 case $ac_file in 34647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34648 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 34649 esac 34650 done 34651 rm -f $ac_rmfiles 34652 34653 if { { ac_try="$ac_link_default" 34654 case "(($ac_try" in 34655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34656 *) ac_try_echo=$ac_try;; 34657 esac 34658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34659 $as_echo "$ac_try_echo"; } >&5 34660 (eval "$ac_link_default") 2>&5 34661 ac_status=$? 34662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34663 test $ac_status = 0; }; then : 34664 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 34665 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 34666 # in a Makefile. We should not override ac_cv_exeext if it was cached, 34667 # so that the user can short-circuit this test for compilers unknown to 34668 # Autoconf. 34669 for ac_file in $ac_files '' 34670 do 34671 test -f "$ac_file" || continue 34672 case $ac_file in 34673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 34674 ;; 34675 [ab].out ) 34676 # We found the default executable, but exeext='' is most 34677 # certainly right. 34678 break;; 34679 *.* ) 34680 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 34681 then :; else 34682 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34683 fi 34684 # We set ac_cv_exeext here because the later test for it is not 34685 # safe: cross compilers may not add the suffix if given an `-o' 34686 # argument, so we may need to know it at that point already. 34687 # Even if this section looks crufty: it has the advantage of 34688 # actually working. 34689 break;; 34690 * ) 34691 break;; 34692 esac 34693 done 34694 test "$ac_cv_exeext" = no && ac_cv_exeext= 34695 34696 else 34697 ac_file='' 34698 fi 34699 if test -z "$ac_file"; then : 34700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34701 $as_echo "no" >&6; } 34702 $as_echo "$as_me: failed program was:" >&5 34703 sed 's/^/| /' conftest.$ac_ext >&5 34704 34705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34707 as_fn_error 77 "C compiler cannot create executables 34708 See \`config.log' for more details" "$LINENO" 5; } 34709 else 34710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34711 $as_echo "yes" >&6; } 34712 fi 34713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34714 $as_echo_n "checking for C compiler default output file name... " >&6; } 34715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34716 $as_echo "$ac_file" >&6; } 34717 ac_exeext=$ac_cv_exeext 34718 34719 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34720 ac_clean_files=$ac_clean_files_save 34721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34722 $as_echo_n "checking for suffix of executables... " >&6; } 34723 if { { ac_try="$ac_link" 34724 case "(($ac_try" in 34725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34726 *) ac_try_echo=$ac_try;; 34727 esac 34728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34729 $as_echo "$ac_try_echo"; } >&5 34730 (eval "$ac_link") 2>&5 34731 ac_status=$? 34732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34733 test $ac_status = 0; }; then : 34734 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34736 # work properly (i.e., refer to `conftest.exe'), while it won't with 34737 # `rm'. 34738 for ac_file in conftest.exe conftest conftest.*; do 34739 test -f "$ac_file" || continue 34740 case $ac_file in 34741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34743 break;; 34744 * ) break;; 34745 esac 34746 done 34747 else 34748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34750 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34751 See \`config.log' for more details" "$LINENO" 5; } 34752 fi 34753 rm -f conftest conftest$ac_cv_exeext 34754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34755 $as_echo "$ac_cv_exeext" >&6; } 34756 34757 rm -f conftest.$ac_ext 34758 EXEEXT=$ac_cv_exeext 34759 ac_exeext=$EXEEXT 34760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34761 /* end confdefs.h. */ 34762 #include <stdio.h> 34763 int 34764 main () 34765 { 34766 FILE *f = fopen ("conftest.out", "w"); 34767 return ferror (f) || fclose (f) != 0; 34768 34769 ; 34770 return 0; 34771 } 34772 _ACEOF 34773 ac_clean_files="$ac_clean_files conftest.out" 34774 # Check that the compiler produces executables we can run. If not, either 34775 # the compiler is broken, or we cross compile. 34776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34777 $as_echo_n "checking whether we are cross compiling... " >&6; } 34778 if test "$cross_compiling" != yes; then 34779 { { ac_try="$ac_link" 34780 case "(($ac_try" in 34781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34782 *) ac_try_echo=$ac_try;; 34783 esac 34784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34785 $as_echo "$ac_try_echo"; } >&5 34786 (eval "$ac_link") 2>&5 34787 ac_status=$? 34788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34789 test $ac_status = 0; } 34790 if { ac_try='./conftest$ac_cv_exeext' 34791 { { case "(($ac_try" in 34792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34793 *) ac_try_echo=$ac_try;; 34794 esac 34795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34796 $as_echo "$ac_try_echo"; } >&5 34797 (eval "$ac_try") 2>&5 34798 ac_status=$? 34799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34800 test $ac_status = 0; }; }; then 34801 cross_compiling=no 34802 else 34803 if test "$cross_compiling" = maybe; then 34804 cross_compiling=yes 34805 else 34806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34808 as_fn_error $? "cannot run C compiled programs. 34809 If you meant to cross compile, use \`--host'. 34810 See \`config.log' for more details" "$LINENO" 5; } 34811 fi 34812 fi 34813 fi 34814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34815 $as_echo "$cross_compiling" >&6; } 34816 34817 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34818 ac_clean_files=$ac_clean_files_save 34819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34820 $as_echo_n "checking for suffix of object files... " >&6; } 34821 if ${ac_cv_objext+:} false; then : 34822 $as_echo_n "(cached) " >&6 34823 else 34824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34825 /* end confdefs.h. */ 34826 34827 int 34828 main () 34829 { 34830 34831 ; 34832 return 0; 34833 } 34834 _ACEOF 34835 rm -f conftest.o conftest.obj 34836 if { { ac_try="$ac_compile" 34837 case "(($ac_try" in 34838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34839 *) ac_try_echo=$ac_try;; 34840 esac 34841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34842 $as_echo "$ac_try_echo"; } >&5 34843 (eval "$ac_compile") 2>&5 34844 ac_status=$? 34845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34846 test $ac_status = 0; }; then : 34847 for ac_file in conftest.o conftest.obj conftest.*; do 34848 test -f "$ac_file" || continue; 34849 case $ac_file in 34850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34852 break;; 34853 esac 34854 done 34855 else 34856 $as_echo "$as_me: failed program was:" >&5 34857 sed 's/^/| /' conftest.$ac_ext >&5 34858 34859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34861 as_fn_error $? "cannot compute suffix of object files: cannot compile 34862 See \`config.log' for more details" "$LINENO" 5; } 34863 fi 34864 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34865 fi 34866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34867 $as_echo "$ac_cv_objext" >&6; } 34868 OBJEXT=$ac_cv_objext 34869 ac_objext=$OBJEXT 34870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34872 if ${ac_cv_c_compiler_gnu+:} false; then : 34873 $as_echo_n "(cached) " >&6 34874 else 34875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34876 /* end confdefs.h. */ 34877 34878 int 34879 main () 34880 { 34881 #ifndef __GNUC__ 34882 choke me 34883 #endif 34884 34885 ; 34886 return 0; 34887 } 34888 _ACEOF 34889 if ac_fn_c_try_compile "$LINENO"; then : 34890 ac_compiler_gnu=yes 34891 else 34892 ac_compiler_gnu=no 34893 fi 34894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34895 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34896 34897 fi 34898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34899 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34900 if test $ac_compiler_gnu = yes; then 34901 GCC=yes 34902 else 34903 GCC= 34904 fi 34905 ac_test_CFLAGS=${CFLAGS+set} 34906 ac_save_CFLAGS=$CFLAGS 34907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34908 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34909 if ${ac_cv_prog_cc_g+:} false; then : 34910 $as_echo_n "(cached) " >&6 34911 else 34912 ac_save_c_werror_flag=$ac_c_werror_flag 34913 ac_c_werror_flag=yes 34914 ac_cv_prog_cc_g=no 34915 CFLAGS="-g" 34916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34917 /* end confdefs.h. */ 34918 34919 int 34920 main () 34921 { 34922 34923 ; 34924 return 0; 34925 } 34926 _ACEOF 34927 if ac_fn_c_try_compile "$LINENO"; then : 34928 ac_cv_prog_cc_g=yes 34929 else 34930 CFLAGS="" 34931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34932 /* end confdefs.h. */ 34933 34934 int 34935 main () 34936 { 34937 34938 ; 34939 return 0; 34940 } 34941 _ACEOF 34942 if ac_fn_c_try_compile "$LINENO"; then : 34943 34944 else 34945 ac_c_werror_flag=$ac_save_c_werror_flag 34946 CFLAGS="-g" 34947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34948 /* end confdefs.h. */ 34949 34950 int 34951 main () 34952 { 34953 34954 ; 34955 return 0; 34956 } 34957 _ACEOF 34958 if ac_fn_c_try_compile "$LINENO"; then : 34959 ac_cv_prog_cc_g=yes 34960 fi 34961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34962 fi 34963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34964 fi 34965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34966 ac_c_werror_flag=$ac_save_c_werror_flag 34967 fi 34968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34969 $as_echo "$ac_cv_prog_cc_g" >&6; } 34970 if test "$ac_test_CFLAGS" = set; then 34971 CFLAGS=$ac_save_CFLAGS 34972 elif test $ac_cv_prog_cc_g = yes; then 34973 if test "$GCC" = yes; then 34974 CFLAGS="-g -O2" 34975 else 34976 CFLAGS="-g" 34977 fi 34978 else 34979 if test "$GCC" = yes; then 34980 CFLAGS="-O2" 34981 else 34982 CFLAGS= 34983 fi 34984 fi 34985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 34986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34987 if ${ac_cv_prog_cc_c89+:} false; then : 34988 $as_echo_n "(cached) " >&6 34989 else 34990 ac_cv_prog_cc_c89=no 34991 ac_save_CC=$CC 34992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34993 /* end confdefs.h. */ 34994 #include <stdarg.h> 34995 #include <stdio.h> 34996 struct stat; 34997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34998 struct buf { int x; }; 34999 FILE * (*rcsopen) (struct buf *, struct stat *, int); 35000 static char *e (p, i) 35001 char **p; 35002 int i; 35003 { 35004 return p[i]; 35005 } 35006 static char *f (char * (*g) (char **, int), char **p, ...) 35007 { 35008 char *s; 35009 va_list v; 35010 va_start (v,p); 35011 s = g (p, va_arg (v,int)); 35012 va_end (v); 35013 return s; 35014 } 35015 35016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 35017 function prototypes and stuff, but not '\xHH' hex character constants. 35018 These don't provoke an error unfortunately, instead are silently treated 35019 as 'x'. The following induces an error, until -std is added to get 35020 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35021 array size at least. It's necessary to write '\x00'==0 to get something 35022 that's true only with -std. */ 35023 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35024 35025 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 35026 inside strings and character constants. */ 35027 #define FOO(x) 'x' 35028 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35029 35030 int test (int i, double x); 35031 struct s1 {int (*f) (int a);}; 35032 struct s2 {int (*f) (double a);}; 35033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35034 int argc; 35035 char **argv; 35036 int 35037 main () 35038 { 35039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35040 ; 35041 return 0; 35042 } 35043 _ACEOF 35044 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35045 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35046 do 35047 CC="$ac_save_CC $ac_arg" 35048 if ac_fn_c_try_compile "$LINENO"; then : 35049 ac_cv_prog_cc_c89=$ac_arg 35050 fi 35051 rm -f core conftest.err conftest.$ac_objext 35052 test "x$ac_cv_prog_cc_c89" != "xno" && break 35053 done 35054 rm -f conftest.$ac_ext 35055 CC=$ac_save_CC 35056 35057 fi 35058 # AC_CACHE_VAL 35059 case "x$ac_cv_prog_cc_c89" in 35060 x) 35061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35062 $as_echo "none needed" >&6; } ;; 35063 xno) 35064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35065 $as_echo "unsupported" >&6; } ;; 35066 *) 35067 CC="$CC $ac_cv_prog_cc_c89" 35068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35069 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35070 esac 35071 if test "x$ac_cv_prog_cc_c89" != xno; then : 35072 35073 fi 35074 35075 ac_ext=cpp 35076 ac_cpp='$CXXCPP $CPPFLAGS' 35077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35080 35081 35082 35083 COMPILER_NAME=C++ 35084 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 35085 35086 if test "x$CXX" != x; then 35087 # User has supplied compiler name already, always let that override. 35088 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 35089 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 35090 if test "x`basename $CXX`" = "x$CXX"; then 35091 # A command without a complete path is provided, search $PATH. 35092 35093 for ac_prog in $CXX 35094 do 35095 # Extract the first word of "$ac_prog", so it can be a program name with args. 35096 set dummy $ac_prog; ac_word=$2 35097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35098 $as_echo_n "checking for $ac_word... " >&6; } 35099 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35100 $as_echo_n "(cached) " >&6 35101 else 35102 case $POTENTIAL_CXX in 35103 [\\/]* | ?:[\\/]*) 35104 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35105 ;; 35106 *) 35107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35108 for as_dir in $PATH 35109 do 35110 IFS=$as_save_IFS 35111 test -z "$as_dir" && as_dir=. 35112 for ac_exec_ext in '' $ac_executable_extensions; do 35113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35114 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35116 break 2 35117 fi 35118 done 35119 done 35120 IFS=$as_save_IFS 35121 35122 ;; 35123 esac 35124 fi 35125 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35126 if test -n "$POTENTIAL_CXX"; then 35127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35128 $as_echo "$POTENTIAL_CXX" >&6; } 35129 else 35130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35131 $as_echo "no" >&6; } 35132 fi 35133 35134 35135 test -n "$POTENTIAL_CXX" && break 35136 done 35137 35138 if test "x$POTENTIAL_CXX" != x; then 35139 CXX=$POTENTIAL_CXX 35140 else 35141 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 35142 fi 35143 else 35144 # Otherwise it might already be a complete path 35145 if test ! -x "$CXX"; then 35146 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 35147 fi 35148 fi 35149 else 35150 # No user supplied value. Locate compiler ourselves. 35151 35152 # If we are cross compiling, assume cross compilation tools follows the 35153 # cross compilation standard where they are prefixed with the autoconf 35154 # standard name for the target. For example the binary 35155 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 35156 # If we are not cross compiling, then the default compiler name will be 35157 # used. 35158 35159 CXX= 35160 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 35161 # before checking the rest of the PATH. 35162 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 35163 # step, this should not be necessary. 35164 if test -n "$TOOLCHAIN_PATH"; then 35165 PATH_save="$PATH" 35166 PATH="$TOOLCHAIN_PATH" 35167 if test -n "$ac_tool_prefix"; then 35168 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35169 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35171 $as_echo_n "checking for $ac_word... " >&6; } 35172 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 35173 $as_echo_n "(cached) " >&6 35174 else 35175 case $TOOLCHAIN_PATH_CXX in 35176 [\\/]* | ?:[\\/]*) 35177 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35178 ;; 35179 *) 35180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35181 for as_dir in $PATH 35182 do 35183 IFS=$as_save_IFS 35184 test -z "$as_dir" && as_dir=. 35185 for ac_exec_ext in '' $ac_executable_extensions; do 35186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35187 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35189 break 2 35190 fi 35191 done 35192 done 35193 IFS=$as_save_IFS 35194 35195 ;; 35196 esac 35197 fi 35198 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 35199 if test -n "$TOOLCHAIN_PATH_CXX"; then 35200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 35201 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 35202 else 35203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35204 $as_echo "no" >&6; } 35205 fi 35206 35207 35208 fi 35209 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CXX"; then 35210 ac_pt_TOOLCHAIN_PATH_CXX=$TOOLCHAIN_PATH_CXX 35211 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35212 set dummy $SEARCH_LIST; ac_word=$2 35213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35214 $as_echo_n "checking for $ac_word... " >&6; } 35215 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX+:} false; then : 35216 $as_echo_n "(cached) " >&6 35217 else 35218 case $ac_pt_TOOLCHAIN_PATH_CXX in 35219 [\\/]* | ?:[\\/]*) 35220 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$ac_pt_TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35221 ;; 35222 *) 35223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35224 for as_dir in $PATH 35225 do 35226 IFS=$as_save_IFS 35227 test -z "$as_dir" && as_dir=. 35228 for ac_exec_ext in '' $ac_executable_extensions; do 35229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35230 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35232 break 2 35233 fi 35234 done 35235 done 35236 IFS=$as_save_IFS 35237 35238 ;; 35239 esac 35240 fi 35241 ac_pt_TOOLCHAIN_PATH_CXX=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX 35242 if test -n "$ac_pt_TOOLCHAIN_PATH_CXX"; then 35243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CXX" >&5 35244 $as_echo "$ac_pt_TOOLCHAIN_PATH_CXX" >&6; } 35245 else 35246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35247 $as_echo "no" >&6; } 35248 fi 35249 35250 if test "x$ac_pt_TOOLCHAIN_PATH_CXX" = x; then 35251 TOOLCHAIN_PATH_CXX="" 35252 else 35253 case $cross_compiling:$ac_tool_warned in 35254 yes:) 35255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35257 ac_tool_warned=yes ;; 35258 esac 35259 TOOLCHAIN_PATH_CXX=$ac_pt_TOOLCHAIN_PATH_CXX 35260 fi 35261 else 35262 TOOLCHAIN_PATH_CXX="$ac_cv_path_TOOLCHAIN_PATH_CXX" 35263 fi 35264 35265 CXX=$TOOLCHAIN_PATH_CXX 35266 PATH="$PATH_save" 35267 fi 35268 35269 # AC_PATH_TOOL can't be run multiple times with the same variable, 35270 # so create a new name for this run. 35271 if test "x$CXX" = x; then 35272 if test -n "$ac_tool_prefix"; then 35273 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35274 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35276 $as_echo_n "checking for $ac_word... " >&6; } 35277 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35278 $as_echo_n "(cached) " >&6 35279 else 35280 case $POTENTIAL_CXX in 35281 [\\/]* | ?:[\\/]*) 35282 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35283 ;; 35284 *) 35285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35286 for as_dir in $PATH 35287 do 35288 IFS=$as_save_IFS 35289 test -z "$as_dir" && as_dir=. 35290 for ac_exec_ext in '' $ac_executable_extensions; do 35291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35292 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35294 break 2 35295 fi 35296 done 35297 done 35298 IFS=$as_save_IFS 35299 35300 ;; 35301 esac 35302 fi 35303 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35304 if test -n "$POTENTIAL_CXX"; then 35305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35306 $as_echo "$POTENTIAL_CXX" >&6; } 35307 else 35308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35309 $as_echo "no" >&6; } 35310 fi 35311 35312 35313 fi 35314 if test -z "$ac_cv_path_POTENTIAL_CXX"; then 35315 ac_pt_POTENTIAL_CXX=$POTENTIAL_CXX 35316 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35317 set dummy $SEARCH_LIST; ac_word=$2 35318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35319 $as_echo_n "checking for $ac_word... " >&6; } 35320 if ${ac_cv_path_ac_pt_POTENTIAL_CXX+:} false; then : 35321 $as_echo_n "(cached) " >&6 35322 else 35323 case $ac_pt_POTENTIAL_CXX in 35324 [\\/]* | ?:[\\/]*) 35325 ac_cv_path_ac_pt_POTENTIAL_CXX="$ac_pt_POTENTIAL_CXX" # Let the user override the test with a path. 35326 ;; 35327 *) 35328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35329 for as_dir in $PATH 35330 do 35331 IFS=$as_save_IFS 35332 test -z "$as_dir" && as_dir=. 35333 for ac_exec_ext in '' $ac_executable_extensions; do 35334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35335 ac_cv_path_ac_pt_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35337 break 2 35338 fi 35339 done 35340 done 35341 IFS=$as_save_IFS 35342 35343 ;; 35344 esac 35345 fi 35346 ac_pt_POTENTIAL_CXX=$ac_cv_path_ac_pt_POTENTIAL_CXX 35347 if test -n "$ac_pt_POTENTIAL_CXX"; then 35348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CXX" >&5 35349 $as_echo "$ac_pt_POTENTIAL_CXX" >&6; } 35350 else 35351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35352 $as_echo "no" >&6; } 35353 fi 35354 35355 if test "x$ac_pt_POTENTIAL_CXX" = x; then 35356 POTENTIAL_CXX="" 35357 else 35358 case $cross_compiling:$ac_tool_warned in 35359 yes:) 35360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35362 ac_tool_warned=yes ;; 35363 esac 35364 POTENTIAL_CXX=$ac_pt_POTENTIAL_CXX 35365 fi 35366 else 35367 POTENTIAL_CXX="$ac_cv_path_POTENTIAL_CXX" 35368 fi 35369 35370 CXX=$POTENTIAL_CXX 35371 fi 35372 35373 if test "x$CXX" = x; then 35374 35375 # Print a helpful message on how to acquire the necessary build dependency. 35376 # devkit is the help tag: freetype, cups, alsa etc 35377 MISSING_DEPENDENCY=devkit 35378 35379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35380 cygwin_help $MISSING_DEPENDENCY 35381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35382 msys_help $MISSING_DEPENDENCY 35383 else 35384 PKGHANDLER_COMMAND= 35385 35386 case $PKGHANDLER in 35387 apt-get) 35388 apt_help $MISSING_DEPENDENCY ;; 35389 yum) 35390 yum_help $MISSING_DEPENDENCY ;; 35391 brew) 35392 brew_help $MISSING_DEPENDENCY ;; 35393 port) 35394 port_help $MISSING_DEPENDENCY ;; 35395 pkgutil) 35396 pkgutil_help $MISSING_DEPENDENCY ;; 35397 pkgadd) 35398 pkgadd_help $MISSING_DEPENDENCY ;; 35399 esac 35400 35401 if test "x$PKGHANDLER_COMMAND" != x; then 35402 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 35403 fi 35404 fi 35405 35406 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 35407 fi 35408 fi 35409 35410 # Now we have a compiler binary in CXX. Make sure it's okay. 35411 35412 # Only process if variable expands to non-empty 35413 35414 if test "x$CXX" != x; then 35415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35416 35417 # First separate the path from the arguments. This will split at the first 35418 # space. 35419 complete="$CXX" 35420 path="${complete%% *}" 35421 tmp="$complete EOL" 35422 arguments="${tmp#* }" 35423 35424 # Input might be given as Windows format, start by converting to 35425 # unix format. 35426 new_path=`$CYGPATH -u "$path"` 35427 35428 # Now try to locate executable using which 35429 new_path=`$WHICH "$new_path" 2> /dev/null` 35430 # bat and cmd files are not always considered executable in cygwin causing which 35431 # to not find them 35432 if test "x$new_path" = x \ 35433 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35434 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35435 new_path=`$CYGPATH -u "$path"` 35436 fi 35437 if test "x$new_path" = x; then 35438 # Oops. Which didn't find the executable. 35439 # The splitting of arguments from the executable at a space might have been incorrect, 35440 # since paths with space are more likely in Windows. Give it another try with the whole 35441 # argument. 35442 path="$complete" 35443 arguments="EOL" 35444 new_path=`$CYGPATH -u "$path"` 35445 new_path=`$WHICH "$new_path" 2> /dev/null` 35446 # bat and cmd files are not always considered executable in cygwin causing which 35447 # to not find them 35448 if test "x$new_path" = x \ 35449 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35450 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35451 new_path=`$CYGPATH -u "$path"` 35452 fi 35453 if test "x$new_path" = x; then 35454 # It's still not found. Now this is an unrecoverable error. 35455 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35456 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35457 has_space=`$ECHO "$complete" | $GREP " "` 35458 if test "x$has_space" != x; then 35459 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35460 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35461 fi 35462 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35463 fi 35464 fi 35465 35466 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35467 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35468 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35469 # "foo.exe" is OK but "foo" is an error. 35470 # 35471 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35472 # It is also a way to make sure we got the proper file name for the real test later on. 35473 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35474 if test "x$test_shortpath" = x; then 35475 # Short path failed, file does not exist as specified. 35476 # Try adding .exe or .cmd 35477 if test -f "${new_path}.exe"; then 35478 input_to_shortpath="${new_path}.exe" 35479 elif test -f "${new_path}.cmd"; then 35480 input_to_shortpath="${new_path}.cmd" 35481 else 35482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 35483 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 35484 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35485 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35486 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35487 fi 35488 else 35489 input_to_shortpath="$new_path" 35490 fi 35491 35492 # Call helper function which possibly converts this using DOS-style short mode. 35493 # If so, the updated path is stored in $new_path. 35494 new_path="$input_to_shortpath" 35495 35496 input_path="$input_to_shortpath" 35497 # Check if we need to convert this using DOS-style short mode. If the path 35498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35499 # take no chances and rewrite it. 35500 # Note: m4 eats our [], so we need to use [ and ] instead. 35501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35502 if test "x$has_forbidden_chars" != x; then 35503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35504 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35505 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35506 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35507 # Going to short mode and back again did indeed matter. Since short mode is 35508 # case insensitive, let's make it lowercase to improve readability. 35509 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35510 # Now convert it back to Unix-style (cygpath) 35511 input_path=`$CYGPATH -u "$shortmode_path"` 35512 new_path="$input_path" 35513 fi 35514 fi 35515 35516 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35517 if test "x$test_cygdrive_prefix" = x; then 35518 # As a simple fix, exclude /usr/bin since it's not a real path. 35519 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35520 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35521 # a path prefixed by /cygdrive for fixpath to work. 35522 new_path="$CYGWIN_ROOT_PATH$input_path" 35523 fi 35524 fi 35525 35526 # remove trailing .exe if any 35527 new_path="${new_path/%.exe/}" 35528 35529 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35530 35531 # First separate the path from the arguments. This will split at the first 35532 # space. 35533 complete="$CXX" 35534 path="${complete%% *}" 35535 tmp="$complete EOL" 35536 arguments="${tmp#* }" 35537 35538 # Input might be given as Windows format, start by converting to 35539 # unix format. 35540 new_path="$path" 35541 35542 windows_path="$new_path" 35543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35544 unix_path=`$CYGPATH -u "$windows_path"` 35545 new_path="$unix_path" 35546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35547 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35548 new_path="$unix_path" 35549 fi 35550 35551 35552 # Now try to locate executable using which 35553 new_path=`$WHICH "$new_path" 2> /dev/null` 35554 35555 if test "x$new_path" = x; then 35556 # Oops. Which didn't find the executable. 35557 # The splitting of arguments from the executable at a space might have been incorrect, 35558 # since paths with space are more likely in Windows. Give it another try with the whole 35559 # argument. 35560 path="$complete" 35561 arguments="EOL" 35562 new_path="$path" 35563 35564 windows_path="$new_path" 35565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35566 unix_path=`$CYGPATH -u "$windows_path"` 35567 new_path="$unix_path" 35568 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35569 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35570 new_path="$unix_path" 35571 fi 35572 35573 35574 new_path=`$WHICH "$new_path" 2> /dev/null` 35575 # bat and cmd files are not always considered executable in MSYS causing which 35576 # to not find them 35577 if test "x$new_path" = x \ 35578 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35579 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35580 new_path="$path" 35581 35582 windows_path="$new_path" 35583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35584 unix_path=`$CYGPATH -u "$windows_path"` 35585 new_path="$unix_path" 35586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35588 new_path="$unix_path" 35589 fi 35590 35591 fi 35592 35593 if test "x$new_path" = x; then 35594 # It's still not found. Now this is an unrecoverable error. 35595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35596 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35597 has_space=`$ECHO "$complete" | $GREP " "` 35598 if test "x$has_space" != x; then 35599 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35600 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35601 fi 35602 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35603 fi 35604 fi 35605 35606 # Now new_path has a complete unix path to the binary 35607 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35608 # Keep paths in /bin as-is, but remove trailing .exe if any 35609 new_path="${new_path/%.exe/}" 35610 # Do not save /bin paths to all_fixpath_prefixes! 35611 else 35612 # Not in mixed or Windows style, start by that. 35613 new_path=`cmd //c echo $new_path` 35614 35615 input_path="$new_path" 35616 # Check if we need to convert this using DOS-style short mode. If the path 35617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35618 # take no chances and rewrite it. 35619 # Note: m4 eats our [], so we need to use [ and ] instead. 35620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35621 if test "x$has_forbidden_chars" != x; then 35622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35623 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35624 fi 35625 35626 # Output is in $new_path 35627 35628 windows_path="$new_path" 35629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35630 unix_path=`$CYGPATH -u "$windows_path"` 35631 new_path="$unix_path" 35632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35634 new_path="$unix_path" 35635 fi 35636 35637 # remove trailing .exe if any 35638 new_path="${new_path/%.exe/}" 35639 35640 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35641 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35642 fi 35643 35644 else 35645 # We're on a unix platform. Hooray! :) 35646 # First separate the path from the arguments. This will split at the first 35647 # space. 35648 complete="$CXX" 35649 path="${complete%% *}" 35650 tmp="$complete EOL" 35651 arguments="${tmp#* }" 35652 35653 # Cannot rely on the command "which" here since it doesn't always work. 35654 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35655 if test -z "$is_absolute_path"; then 35656 # Path to executable is not absolute. Find it. 35657 IFS_save="$IFS" 35658 IFS=: 35659 for p in $PATH; do 35660 if test -f "$p/$path" && test -x "$p/$path"; then 35661 new_path="$p/$path" 35662 break 35663 fi 35664 done 35665 IFS="$IFS_save" 35666 else 35667 # This is an absolute path, we can use it without further modifications. 35668 new_path="$path" 35669 fi 35670 35671 if test "x$new_path" = x; then 35672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35673 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35674 has_space=`$ECHO "$complete" | $GREP " "` 35675 if test "x$has_space" != x; then 35676 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35677 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35678 fi 35679 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35680 fi 35681 fi 35682 35683 # Now join together the path and the arguments once again 35684 if test "x$arguments" != xEOL; then 35685 new_complete="$new_path ${arguments% *}" 35686 else 35687 new_complete="$new_path" 35688 fi 35689 35690 if test "x$complete" != "x$new_complete"; then 35691 CXX="$new_complete" 35692 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 35693 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 35694 fi 35695 fi 35696 35697 TEST_COMPILER="$CXX" 35698 35699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 35700 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 35701 SYMLINK_ORIGINAL="$TEST_COMPILER" 35702 35703 if test "x$OPENJDK_BUILD_OS" != xwindows; then 35704 # Follow a chain of symbolic links. Use readlink 35705 # where it exists, else fall back to horribly 35706 # complicated shell code. 35707 if test "x$READLINK_TESTED" != yes; then 35708 # On MacOSX there is a readlink tool with a different 35709 # purpose than the GNU readlink tool. Check the found readlink. 35710 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 35711 if test "x$ISGNU" = x; then 35712 # A readlink that we do not know how to use. 35713 # Are there other non-GNU readlinks out there? 35714 READLINK_TESTED=yes 35715 READLINK= 35716 fi 35717 fi 35718 35719 if test "x$READLINK" != x; then 35720 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 35721 else 35722 # Save the current directory for restoring afterwards 35723 STARTDIR=$PWD 35724 COUNTER=0 35725 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 35726 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 35727 cd $sym_link_dir 35728 # Use -P flag to resolve symlinks in directories. 35729 cd `$THEPWDCMD -P` 35730 sym_link_dir=`$THEPWDCMD -P` 35731 # Resolve file symlinks 35732 while test $COUNTER -lt 20; do 35733 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 35734 if test "x$ISLINK" == x; then 35735 # This is not a symbolic link! We are done! 35736 break 35737 fi 35738 # Again resolve directory symlinks since the target of the just found 35739 # link could be in a different directory 35740 cd `$DIRNAME $ISLINK` 35741 sym_link_dir=`$THEPWDCMD -P` 35742 sym_link_file=`$BASENAME $ISLINK` 35743 let COUNTER=COUNTER+1 35744 done 35745 cd $STARTDIR 35746 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 35747 fi 35748 fi 35749 35750 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 35751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 35752 $as_echo "no symlink" >&6; } 35753 else 35754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 35755 $as_echo "$SYMLINK_ORIGINAL" >&6; } 35756 35757 # We can't handle ccache by gcc wrappers, since we need to know if we're 35758 # using ccache. Instead ccache usage must be controlled by a configure option. 35759 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 35760 if test "x$COMPILER_BASENAME" = "xccache"; then 35761 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 35762 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 35763 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 35764 fi 35765 fi 35766 35767 35768 COMPILER=$CXX 35769 COMPILER_NAME=$COMPILER_NAME 35770 35771 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 35772 # cc -V output typically looks like 35773 # cc: Sun C 5.12 Linux_i386 2011/11/16 35774 # or 35775 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 35776 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 35777 # Check that this is likely to be the Solaris Studio cc. 35778 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 35779 if test $? -ne 0; then 35780 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35781 { $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 35782 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35783 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35784 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35785 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35786 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35787 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35788 fi 35789 # Remove usage instructions (if present), and 35790 # collapse compiler output into a single line 35791 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35792 $SED -e 's/ *[Uu]sage:.*//'` 35793 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35794 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 35795 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 35796 # xlc -qversion output typically looks like 35797 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 35798 # Version: 11.01.0000.0015 35799 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 35800 # Check that this is likely to be the IBM XL C compiler. 35801 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 35802 if test $? -ne 0; then 35803 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35804 { $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 35805 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35806 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35807 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35808 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35809 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35810 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35811 fi 35812 # Collapse compiler output into a single line 35813 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35814 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35815 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 35816 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35817 # There is no specific version flag, but all output starts with a version string. 35818 # First line typically looks something like: 35819 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 35820 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 35821 # Check that this is likely to be Microsoft CL.EXE. 35822 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 35823 if test $? -ne 0; then 35824 { $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 35825 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35826 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35827 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35828 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35829 fi 35830 # Collapse compiler output into a single line 35831 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35832 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35833 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 35834 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 35835 # gcc --version output typically looks like 35836 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 35837 # Copyright (C) 2013 Free Software Foundation, Inc. 35838 # This is free software; see the source for copying conditions. There is NO 35839 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35840 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35841 # Check that this is likely to be GCC. 35842 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 35843 if test $? -ne 0; then 35844 { $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 35845 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35846 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 35847 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 35848 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35849 fi 35850 # Remove Copyright and legalese from version string, and 35851 # collapse into a single line 35852 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35853 $SED -e 's/ *Copyright .*//'` 35854 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35855 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 35856 elif test "x$TOOLCHAIN_TYPE" = xclang; then 35857 # clang --version output typically looks like 35858 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 35859 # clang version 3.3 (tags/RELEASE_33/final) 35860 # or 35861 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 35862 # Target: x86_64-pc-linux-gnu 35863 # Thread model: posix 35864 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35865 # Check that this is likely to be clang 35866 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 35867 if test $? -ne 0; then 35868 { $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 35869 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35870 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35871 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35872 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35873 fi 35874 # Collapse compiler output into a single line 35875 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35876 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35877 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 35878 else 35879 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 35880 fi 35881 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 35882 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 35883 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 35884 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 35885 35886 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 35887 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 35888 35889 35890 # Now that we have resolved CXX ourself, let autoconf have its go at it 35891 ac_ext=cpp 35892 ac_cpp='$CXXCPP $CPPFLAGS' 35893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35896 if test -z "$CXX"; then 35897 if test -n "$CCC"; then 35898 CXX=$CCC 35899 else 35900 if test -n "$ac_tool_prefix"; then 35901 for ac_prog in $CXX 35902 do 35903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35906 $as_echo_n "checking for $ac_word... " >&6; } 35907 if ${ac_cv_prog_CXX+:} false; then : 35908 $as_echo_n "(cached) " >&6 35909 else 35910 if test -n "$CXX"; then 35911 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35912 else 35913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35914 for as_dir in $PATH 35915 do 35916 IFS=$as_save_IFS 35917 test -z "$as_dir" && as_dir=. 35918 for ac_exec_ext in '' $ac_executable_extensions; do 35919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35920 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35922 break 2 35923 fi 35924 done 35925 done 35926 IFS=$as_save_IFS 35927 35928 fi 35929 fi 35930 CXX=$ac_cv_prog_CXX 35931 if test -n "$CXX"; then 35932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35933 $as_echo "$CXX" >&6; } 35934 else 35935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35936 $as_echo "no" >&6; } 35937 fi 35938 35939 35940 test -n "$CXX" && break 35941 done 35942 fi 35943 if test -z "$CXX"; then 35944 ac_ct_CXX=$CXX 35945 for ac_prog in $CXX 35946 do 35947 # Extract the first word of "$ac_prog", so it can be a program name with args. 35948 set dummy $ac_prog; ac_word=$2 35949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35950 $as_echo_n "checking for $ac_word... " >&6; } 35951 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 35952 $as_echo_n "(cached) " >&6 35953 else 35954 if test -n "$ac_ct_CXX"; then 35955 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 35956 else 35957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35958 for as_dir in $PATH 35959 do 35960 IFS=$as_save_IFS 35961 test -z "$as_dir" && as_dir=. 35962 for ac_exec_ext in '' $ac_executable_extensions; do 35963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35964 ac_cv_prog_ac_ct_CXX="$ac_prog" 35965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35966 break 2 35967 fi 35968 done 35969 done 35970 IFS=$as_save_IFS 35971 35972 fi 35973 fi 35974 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 35975 if test -n "$ac_ct_CXX"; then 35976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 35977 $as_echo "$ac_ct_CXX" >&6; } 35978 else 35979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35980 $as_echo "no" >&6; } 35981 fi 35982 35983 35984 test -n "$ac_ct_CXX" && break 35985 done 35986 35987 if test "x$ac_ct_CXX" = x; then 35988 CXX="g++" 35989 else 35990 case $cross_compiling:$ac_tool_warned in 35991 yes:) 35992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35994 ac_tool_warned=yes ;; 35995 esac 35996 CXX=$ac_ct_CXX 35997 fi 35998 fi 35999 36000 fi 36001 fi 36002 # Provide some information about the compiler. 36003 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 36004 set X $ac_compile 36005 ac_compiler=$2 36006 for ac_option in --version -v -V -qversion; do 36007 { { ac_try="$ac_compiler $ac_option >&5" 36008 case "(($ac_try" in 36009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36010 *) ac_try_echo=$ac_try;; 36011 esac 36012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36013 $as_echo "$ac_try_echo"; } >&5 36014 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 36015 ac_status=$? 36016 if test -s conftest.err; then 36017 sed '10a\ 36018 ... rest of stderr output deleted ... 36019 10q' conftest.err >conftest.er1 36020 cat conftest.er1 >&5 36021 fi 36022 rm -f conftest.er1 conftest.err 36023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36024 test $ac_status = 0; } 36025 done 36026 36027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 36028 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 36029 if ${ac_cv_cxx_compiler_gnu+:} false; then : 36030 $as_echo_n "(cached) " >&6 36031 else 36032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36033 /* end confdefs.h. */ 36034 36035 int 36036 main () 36037 { 36038 #ifndef __GNUC__ 36039 choke me 36040 #endif 36041 36042 ; 36043 return 0; 36044 } 36045 _ACEOF 36046 if ac_fn_cxx_try_compile "$LINENO"; then : 36047 ac_compiler_gnu=yes 36048 else 36049 ac_compiler_gnu=no 36050 fi 36051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36052 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 36053 36054 fi 36055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 36056 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 36057 if test $ac_compiler_gnu = yes; then 36058 GXX=yes 36059 else 36060 GXX= 36061 fi 36062 ac_test_CXXFLAGS=${CXXFLAGS+set} 36063 ac_save_CXXFLAGS=$CXXFLAGS 36064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 36065 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 36066 if ${ac_cv_prog_cxx_g+:} false; then : 36067 $as_echo_n "(cached) " >&6 36068 else 36069 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 36070 ac_cxx_werror_flag=yes 36071 ac_cv_prog_cxx_g=no 36072 CXXFLAGS="-g" 36073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36074 /* end confdefs.h. */ 36075 36076 int 36077 main () 36078 { 36079 36080 ; 36081 return 0; 36082 } 36083 _ACEOF 36084 if ac_fn_cxx_try_compile "$LINENO"; then : 36085 ac_cv_prog_cxx_g=yes 36086 else 36087 CXXFLAGS="" 36088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36089 /* end confdefs.h. */ 36090 36091 int 36092 main () 36093 { 36094 36095 ; 36096 return 0; 36097 } 36098 _ACEOF 36099 if ac_fn_cxx_try_compile "$LINENO"; then : 36100 36101 else 36102 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36103 CXXFLAGS="-g" 36104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36105 /* end confdefs.h. */ 36106 36107 int 36108 main () 36109 { 36110 36111 ; 36112 return 0; 36113 } 36114 _ACEOF 36115 if ac_fn_cxx_try_compile "$LINENO"; then : 36116 ac_cv_prog_cxx_g=yes 36117 fi 36118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36119 fi 36120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36121 fi 36122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36123 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36124 fi 36125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 36126 $as_echo "$ac_cv_prog_cxx_g" >&6; } 36127 if test "$ac_test_CXXFLAGS" = set; then 36128 CXXFLAGS=$ac_save_CXXFLAGS 36129 elif test $ac_cv_prog_cxx_g = yes; then 36130 if test "$GXX" = yes; then 36131 CXXFLAGS="-g -O2" 36132 else 36133 CXXFLAGS="-g" 36134 fi 36135 else 36136 if test "$GXX" = yes; then 36137 CXXFLAGS="-O2" 36138 else 36139 CXXFLAGS= 36140 fi 36141 fi 36142 ac_ext=cpp 36143 ac_cpp='$CXXCPP $CPPFLAGS' 36144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36147 36148 36149 # This is the compiler version number on the form X.Y[.Z] 36150 36151 36152 36153 36154 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 36155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 36156 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 36157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 36158 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 36159 fi 36160 36161 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 36162 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 36163 { $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 36164 $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;} 36165 fi 36166 36167 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 36168 { $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 36169 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36170 fi 36171 36172 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 36173 36174 36175 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 36176 36177 36178 36179 36180 36181 36182 36183 36184 36185 36186 36187 36188 36189 36190 36191 36192 36193 36194 36195 36196 36197 36198 36199 36200 36201 36202 36203 36204 36205 36206 36207 36208 36209 36210 36211 36212 36213 36214 36215 36216 36217 36218 36219 36220 36221 36222 36223 36224 36225 # Execute function body 36226 36227 # Need to assign to a variable since m4 is blocked from modifying parts in []. 36228 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 36229 36230 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 36231 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 36232 fi 36233 36234 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 36235 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 36236 fi 36237 36238 # Version comparison method inspired by http://stackoverflow.com/a/24067243 36239 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 36240 36241 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 36242 : 36243 36244 else 36245 : 36246 36247 { $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 36248 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 36249 36250 36251 fi 36252 36253 36254 36255 36256 36257 36258 36259 36260 36261 36262 36263 36264 36265 36266 fi 36267 36268 # 36269 # Setup the preprocessor (CPP and CXXCPP) 36270 # 36271 ac_ext=c 36272 ac_cpp='$CPP $CPPFLAGS' 36273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36275 ac_compiler_gnu=$ac_cv_c_compiler_gnu 36276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 36277 $as_echo_n "checking how to run the C preprocessor... " >&6; } 36278 # On Suns, sometimes $CPP names a directory. 36279 if test -n "$CPP" && test -d "$CPP"; then 36280 CPP= 36281 fi 36282 if test -z "$CPP"; then 36283 if ${ac_cv_prog_CPP+:} false; then : 36284 $as_echo_n "(cached) " >&6 36285 else 36286 # Double quotes because CPP needs to be expanded 36287 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 36288 do 36289 ac_preproc_ok=false 36290 for ac_c_preproc_warn_flag in '' yes 36291 do 36292 # Use a header file that comes with gcc, so configuring glibc 36293 # with a fresh cross-compiler works. 36294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36295 # <limits.h> exists even on freestanding compilers. 36296 # On the NeXT, cc -E runs the code through the compiler's parser, 36297 # not just through cpp. "Syntax error" is here to catch this case. 36298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36299 /* end confdefs.h. */ 36300 #ifdef __STDC__ 36301 # include <limits.h> 36302 #else 36303 # include <assert.h> 36304 #endif 36305 Syntax error 36306 _ACEOF 36307 if ac_fn_c_try_cpp "$LINENO"; then : 36308 36309 else 36310 # Broken: fails on valid input. 36311 continue 36312 fi 36313 rm -f conftest.err conftest.i conftest.$ac_ext 36314 36315 # OK, works on sane cases. Now check whether nonexistent headers 36316 # can be detected and how. 36317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36318 /* end confdefs.h. */ 36319 #include <ac_nonexistent.h> 36320 _ACEOF 36321 if ac_fn_c_try_cpp "$LINENO"; then : 36322 # Broken: success on invalid input. 36323 continue 36324 else 36325 # Passes both tests. 36326 ac_preproc_ok=: 36327 break 36328 fi 36329 rm -f conftest.err conftest.i conftest.$ac_ext 36330 36331 done 36332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36333 rm -f conftest.i conftest.err conftest.$ac_ext 36334 if $ac_preproc_ok; then : 36335 break 36336 fi 36337 36338 done 36339 ac_cv_prog_CPP=$CPP 36340 36341 fi 36342 CPP=$ac_cv_prog_CPP 36343 else 36344 ac_cv_prog_CPP=$CPP 36345 fi 36346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 36347 $as_echo "$CPP" >&6; } 36348 ac_preproc_ok=false 36349 for ac_c_preproc_warn_flag in '' yes 36350 do 36351 # Use a header file that comes with gcc, so configuring glibc 36352 # with a fresh cross-compiler works. 36353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36354 # <limits.h> exists even on freestanding compilers. 36355 # On the NeXT, cc -E runs the code through the compiler's parser, 36356 # not just through cpp. "Syntax error" is here to catch this case. 36357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36358 /* end confdefs.h. */ 36359 #ifdef __STDC__ 36360 # include <limits.h> 36361 #else 36362 # include <assert.h> 36363 #endif 36364 Syntax error 36365 _ACEOF 36366 if ac_fn_c_try_cpp "$LINENO"; then : 36367 36368 else 36369 # Broken: fails on valid input. 36370 continue 36371 fi 36372 rm -f conftest.err conftest.i conftest.$ac_ext 36373 36374 # OK, works on sane cases. Now check whether nonexistent headers 36375 # can be detected and how. 36376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36377 /* end confdefs.h. */ 36378 #include <ac_nonexistent.h> 36379 _ACEOF 36380 if ac_fn_c_try_cpp "$LINENO"; then : 36381 # Broken: success on invalid input. 36382 continue 36383 else 36384 # Passes both tests. 36385 ac_preproc_ok=: 36386 break 36387 fi 36388 rm -f conftest.err conftest.i conftest.$ac_ext 36389 36390 done 36391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36392 rm -f conftest.i conftest.err conftest.$ac_ext 36393 if $ac_preproc_ok; then : 36394 36395 else 36396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36398 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 36399 See \`config.log' for more details" "$LINENO" 5; } 36400 fi 36401 36402 ac_ext=cpp 36403 ac_cpp='$CXXCPP $CPPFLAGS' 36404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36407 36408 36409 # Only process if variable expands to non-empty 36410 36411 if test "x$CPP" != x; then 36412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36413 36414 # First separate the path from the arguments. This will split at the first 36415 # space. 36416 complete="$CPP" 36417 path="${complete%% *}" 36418 tmp="$complete EOL" 36419 arguments="${tmp#* }" 36420 36421 # Input might be given as Windows format, start by converting to 36422 # unix format. 36423 new_path=`$CYGPATH -u "$path"` 36424 36425 # Now try to locate executable using which 36426 new_path=`$WHICH "$new_path" 2> /dev/null` 36427 # bat and cmd files are not always considered executable in cygwin causing which 36428 # to not find them 36429 if test "x$new_path" = x \ 36430 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36431 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36432 new_path=`$CYGPATH -u "$path"` 36433 fi 36434 if test "x$new_path" = x; then 36435 # Oops. Which didn't find the executable. 36436 # The splitting of arguments from the executable at a space might have been incorrect, 36437 # since paths with space are more likely in Windows. Give it another try with the whole 36438 # argument. 36439 path="$complete" 36440 arguments="EOL" 36441 new_path=`$CYGPATH -u "$path"` 36442 new_path=`$WHICH "$new_path" 2> /dev/null` 36443 # bat and cmd files are not always considered executable in cygwin causing which 36444 # to not find them 36445 if test "x$new_path" = x \ 36446 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36447 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36448 new_path=`$CYGPATH -u "$path"` 36449 fi 36450 if test "x$new_path" = x; then 36451 # It's still not found. Now this is an unrecoverable error. 36452 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36453 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36454 has_space=`$ECHO "$complete" | $GREP " "` 36455 if test "x$has_space" != x; then 36456 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36457 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36458 fi 36459 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36460 fi 36461 fi 36462 36463 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36464 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36465 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36466 # "foo.exe" is OK but "foo" is an error. 36467 # 36468 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36469 # It is also a way to make sure we got the proper file name for the real test later on. 36470 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36471 if test "x$test_shortpath" = x; then 36472 # Short path failed, file does not exist as specified. 36473 # Try adding .exe or .cmd 36474 if test -f "${new_path}.exe"; then 36475 input_to_shortpath="${new_path}.exe" 36476 elif test -f "${new_path}.cmd"; then 36477 input_to_shortpath="${new_path}.cmd" 36478 else 36479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 36480 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 36481 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36482 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36483 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36484 fi 36485 else 36486 input_to_shortpath="$new_path" 36487 fi 36488 36489 # Call helper function which possibly converts this using DOS-style short mode. 36490 # If so, the updated path is stored in $new_path. 36491 new_path="$input_to_shortpath" 36492 36493 input_path="$input_to_shortpath" 36494 # Check if we need to convert this using DOS-style short mode. If the path 36495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36496 # take no chances and rewrite it. 36497 # Note: m4 eats our [], so we need to use [ and ] instead. 36498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36499 if test "x$has_forbidden_chars" != x; then 36500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36501 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36502 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36503 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36504 # Going to short mode and back again did indeed matter. Since short mode is 36505 # case insensitive, let's make it lowercase to improve readability. 36506 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36507 # Now convert it back to Unix-style (cygpath) 36508 input_path=`$CYGPATH -u "$shortmode_path"` 36509 new_path="$input_path" 36510 fi 36511 fi 36512 36513 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36514 if test "x$test_cygdrive_prefix" = x; then 36515 # As a simple fix, exclude /usr/bin since it's not a real path. 36516 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36517 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36518 # a path prefixed by /cygdrive for fixpath to work. 36519 new_path="$CYGWIN_ROOT_PATH$input_path" 36520 fi 36521 fi 36522 36523 # remove trailing .exe if any 36524 new_path="${new_path/%.exe/}" 36525 36526 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36527 36528 # First separate the path from the arguments. This will split at the first 36529 # space. 36530 complete="$CPP" 36531 path="${complete%% *}" 36532 tmp="$complete EOL" 36533 arguments="${tmp#* }" 36534 36535 # Input might be given as Windows format, start by converting to 36536 # unix format. 36537 new_path="$path" 36538 36539 windows_path="$new_path" 36540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36541 unix_path=`$CYGPATH -u "$windows_path"` 36542 new_path="$unix_path" 36543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36545 new_path="$unix_path" 36546 fi 36547 36548 36549 # Now try to locate executable using which 36550 new_path=`$WHICH "$new_path" 2> /dev/null` 36551 36552 if test "x$new_path" = x; then 36553 # Oops. Which didn't find the executable. 36554 # The splitting of arguments from the executable at a space might have been incorrect, 36555 # since paths with space are more likely in Windows. Give it another try with the whole 36556 # argument. 36557 path="$complete" 36558 arguments="EOL" 36559 new_path="$path" 36560 36561 windows_path="$new_path" 36562 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36563 unix_path=`$CYGPATH -u "$windows_path"` 36564 new_path="$unix_path" 36565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36566 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36567 new_path="$unix_path" 36568 fi 36569 36570 36571 new_path=`$WHICH "$new_path" 2> /dev/null` 36572 # bat and cmd files are not always considered executable in MSYS causing which 36573 # to not find them 36574 if test "x$new_path" = x \ 36575 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36576 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36577 new_path="$path" 36578 36579 windows_path="$new_path" 36580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36581 unix_path=`$CYGPATH -u "$windows_path"` 36582 new_path="$unix_path" 36583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36584 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36585 new_path="$unix_path" 36586 fi 36587 36588 fi 36589 36590 if test "x$new_path" = x; then 36591 # It's still not found. Now this is an unrecoverable error. 36592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36593 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36594 has_space=`$ECHO "$complete" | $GREP " "` 36595 if test "x$has_space" != x; then 36596 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36597 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36598 fi 36599 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36600 fi 36601 fi 36602 36603 # Now new_path has a complete unix path to the binary 36604 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36605 # Keep paths in /bin as-is, but remove trailing .exe if any 36606 new_path="${new_path/%.exe/}" 36607 # Do not save /bin paths to all_fixpath_prefixes! 36608 else 36609 # Not in mixed or Windows style, start by that. 36610 new_path=`cmd //c echo $new_path` 36611 36612 input_path="$new_path" 36613 # Check if we need to convert this using DOS-style short mode. If the path 36614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36615 # take no chances and rewrite it. 36616 # Note: m4 eats our [], so we need to use [ and ] instead. 36617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36618 if test "x$has_forbidden_chars" != x; then 36619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36620 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36621 fi 36622 36623 # Output is in $new_path 36624 36625 windows_path="$new_path" 36626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36627 unix_path=`$CYGPATH -u "$windows_path"` 36628 new_path="$unix_path" 36629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36630 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36631 new_path="$unix_path" 36632 fi 36633 36634 # remove trailing .exe if any 36635 new_path="${new_path/%.exe/}" 36636 36637 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36638 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36639 fi 36640 36641 else 36642 # We're on a unix platform. Hooray! :) 36643 # First separate the path from the arguments. This will split at the first 36644 # space. 36645 complete="$CPP" 36646 path="${complete%% *}" 36647 tmp="$complete EOL" 36648 arguments="${tmp#* }" 36649 36650 # Cannot rely on the command "which" here since it doesn't always work. 36651 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36652 if test -z "$is_absolute_path"; then 36653 # Path to executable is not absolute. Find it. 36654 IFS_save="$IFS" 36655 IFS=: 36656 for p in $PATH; do 36657 if test -f "$p/$path" && test -x "$p/$path"; then 36658 new_path="$p/$path" 36659 break 36660 fi 36661 done 36662 IFS="$IFS_save" 36663 else 36664 # This is an absolute path, we can use it without further modifications. 36665 new_path="$path" 36666 fi 36667 36668 if test "x$new_path" = x; then 36669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36670 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36671 has_space=`$ECHO "$complete" | $GREP " "` 36672 if test "x$has_space" != x; then 36673 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36674 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36675 fi 36676 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36677 fi 36678 fi 36679 36680 # Now join together the path and the arguments once again 36681 if test "x$arguments" != xEOL; then 36682 new_complete="$new_path ${arguments% *}" 36683 else 36684 new_complete="$new_path" 36685 fi 36686 36687 if test "x$complete" != "x$new_complete"; then 36688 CPP="$new_complete" 36689 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 36690 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 36691 fi 36692 fi 36693 36694 ac_ext=cpp 36695 ac_cpp='$CXXCPP $CPPFLAGS' 36696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 36700 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 36701 if test -z "$CXXCPP"; then 36702 if ${ac_cv_prog_CXXCPP+:} false; then : 36703 $as_echo_n "(cached) " >&6 36704 else 36705 # Double quotes because CXXCPP needs to be expanded 36706 for CXXCPP in "$CXX -E" "/lib/cpp" 36707 do 36708 ac_preproc_ok=false 36709 for ac_cxx_preproc_warn_flag in '' yes 36710 do 36711 # Use a header file that comes with gcc, so configuring glibc 36712 # with a fresh cross-compiler works. 36713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36714 # <limits.h> exists even on freestanding compilers. 36715 # On the NeXT, cc -E runs the code through the compiler's parser, 36716 # not just through cpp. "Syntax error" is here to catch this case. 36717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36718 /* end confdefs.h. */ 36719 #ifdef __STDC__ 36720 # include <limits.h> 36721 #else 36722 # include <assert.h> 36723 #endif 36724 Syntax error 36725 _ACEOF 36726 if ac_fn_cxx_try_cpp "$LINENO"; then : 36727 36728 else 36729 # Broken: fails on valid input. 36730 continue 36731 fi 36732 rm -f conftest.err conftest.i conftest.$ac_ext 36733 36734 # OK, works on sane cases. Now check whether nonexistent headers 36735 # can be detected and how. 36736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36737 /* end confdefs.h. */ 36738 #include <ac_nonexistent.h> 36739 _ACEOF 36740 if ac_fn_cxx_try_cpp "$LINENO"; then : 36741 # Broken: success on invalid input. 36742 continue 36743 else 36744 # Passes both tests. 36745 ac_preproc_ok=: 36746 break 36747 fi 36748 rm -f conftest.err conftest.i conftest.$ac_ext 36749 36750 done 36751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36752 rm -f conftest.i conftest.err conftest.$ac_ext 36753 if $ac_preproc_ok; then : 36754 break 36755 fi 36756 36757 done 36758 ac_cv_prog_CXXCPP=$CXXCPP 36759 36760 fi 36761 CXXCPP=$ac_cv_prog_CXXCPP 36762 else 36763 ac_cv_prog_CXXCPP=$CXXCPP 36764 fi 36765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 36766 $as_echo "$CXXCPP" >&6; } 36767 ac_preproc_ok=false 36768 for ac_cxx_preproc_warn_flag in '' yes 36769 do 36770 # Use a header file that comes with gcc, so configuring glibc 36771 # with a fresh cross-compiler works. 36772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36773 # <limits.h> exists even on freestanding compilers. 36774 # On the NeXT, cc -E runs the code through the compiler's parser, 36775 # not just through cpp. "Syntax error" is here to catch this case. 36776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36777 /* end confdefs.h. */ 36778 #ifdef __STDC__ 36779 # include <limits.h> 36780 #else 36781 # include <assert.h> 36782 #endif 36783 Syntax error 36784 _ACEOF 36785 if ac_fn_cxx_try_cpp "$LINENO"; then : 36786 36787 else 36788 # Broken: fails on valid input. 36789 continue 36790 fi 36791 rm -f conftest.err conftest.i conftest.$ac_ext 36792 36793 # OK, works on sane cases. Now check whether nonexistent headers 36794 # can be detected and how. 36795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36796 /* end confdefs.h. */ 36797 #include <ac_nonexistent.h> 36798 _ACEOF 36799 if ac_fn_cxx_try_cpp "$LINENO"; then : 36800 # Broken: success on invalid input. 36801 continue 36802 else 36803 # Passes both tests. 36804 ac_preproc_ok=: 36805 break 36806 fi 36807 rm -f conftest.err conftest.i conftest.$ac_ext 36808 36809 done 36810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36811 rm -f conftest.i conftest.err conftest.$ac_ext 36812 if $ac_preproc_ok; then : 36813 36814 else 36815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36817 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 36818 See \`config.log' for more details" "$LINENO" 5; } 36819 fi 36820 36821 ac_ext=cpp 36822 ac_cpp='$CXXCPP $CPPFLAGS' 36823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36826 36827 36828 # Only process if variable expands to non-empty 36829 36830 if test "x$CXXCPP" != x; then 36831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36832 36833 # First separate the path from the arguments. This will split at the first 36834 # space. 36835 complete="$CXXCPP" 36836 path="${complete%% *}" 36837 tmp="$complete EOL" 36838 arguments="${tmp#* }" 36839 36840 # Input might be given as Windows format, start by converting to 36841 # unix format. 36842 new_path=`$CYGPATH -u "$path"` 36843 36844 # Now try to locate executable using which 36845 new_path=`$WHICH "$new_path" 2> /dev/null` 36846 # bat and cmd files are not always considered executable in cygwin causing which 36847 # to not find them 36848 if test "x$new_path" = x \ 36849 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36850 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36851 new_path=`$CYGPATH -u "$path"` 36852 fi 36853 if test "x$new_path" = x; then 36854 # Oops. Which didn't find the executable. 36855 # The splitting of arguments from the executable at a space might have been incorrect, 36856 # since paths with space are more likely in Windows. Give it another try with the whole 36857 # argument. 36858 path="$complete" 36859 arguments="EOL" 36860 new_path=`$CYGPATH -u "$path"` 36861 new_path=`$WHICH "$new_path" 2> /dev/null` 36862 # bat and cmd files are not always considered executable in cygwin causing which 36863 # to not find them 36864 if test "x$new_path" = x \ 36865 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36866 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36867 new_path=`$CYGPATH -u "$path"` 36868 fi 36869 if test "x$new_path" = x; then 36870 # It's still not found. Now this is an unrecoverable error. 36871 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36872 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36873 has_space=`$ECHO "$complete" | $GREP " "` 36874 if test "x$has_space" != x; then 36875 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36876 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36877 fi 36878 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36879 fi 36880 fi 36881 36882 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36883 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36884 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36885 # "foo.exe" is OK but "foo" is an error. 36886 # 36887 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36888 # It is also a way to make sure we got the proper file name for the real test later on. 36889 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36890 if test "x$test_shortpath" = x; then 36891 # Short path failed, file does not exist as specified. 36892 # Try adding .exe or .cmd 36893 if test -f "${new_path}.exe"; then 36894 input_to_shortpath="${new_path}.exe" 36895 elif test -f "${new_path}.cmd"; then 36896 input_to_shortpath="${new_path}.cmd" 36897 else 36898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36899 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36900 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36901 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36902 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36903 fi 36904 else 36905 input_to_shortpath="$new_path" 36906 fi 36907 36908 # Call helper function which possibly converts this using DOS-style short mode. 36909 # If so, the updated path is stored in $new_path. 36910 new_path="$input_to_shortpath" 36911 36912 input_path="$input_to_shortpath" 36913 # Check if we need to convert this using DOS-style short mode. If the path 36914 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36915 # take no chances and rewrite it. 36916 # Note: m4 eats our [], so we need to use [ and ] instead. 36917 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36918 if test "x$has_forbidden_chars" != x; then 36919 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36920 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36921 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36922 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36923 # Going to short mode and back again did indeed matter. Since short mode is 36924 # case insensitive, let's make it lowercase to improve readability. 36925 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36926 # Now convert it back to Unix-style (cygpath) 36927 input_path=`$CYGPATH -u "$shortmode_path"` 36928 new_path="$input_path" 36929 fi 36930 fi 36931 36932 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36933 if test "x$test_cygdrive_prefix" = x; then 36934 # As a simple fix, exclude /usr/bin since it's not a real path. 36935 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36936 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36937 # a path prefixed by /cygdrive for fixpath to work. 36938 new_path="$CYGWIN_ROOT_PATH$input_path" 36939 fi 36940 fi 36941 36942 # remove trailing .exe if any 36943 new_path="${new_path/%.exe/}" 36944 36945 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36946 36947 # First separate the path from the arguments. This will split at the first 36948 # space. 36949 complete="$CXXCPP" 36950 path="${complete%% *}" 36951 tmp="$complete EOL" 36952 arguments="${tmp#* }" 36953 36954 # Input might be given as Windows format, start by converting to 36955 # unix format. 36956 new_path="$path" 36957 36958 windows_path="$new_path" 36959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36960 unix_path=`$CYGPATH -u "$windows_path"` 36961 new_path="$unix_path" 36962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36964 new_path="$unix_path" 36965 fi 36966 36967 36968 # Now try to locate executable using which 36969 new_path=`$WHICH "$new_path" 2> /dev/null` 36970 36971 if test "x$new_path" = x; then 36972 # Oops. Which didn't find the executable. 36973 # The splitting of arguments from the executable at a space might have been incorrect, 36974 # since paths with space are more likely in Windows. Give it another try with the whole 36975 # argument. 36976 path="$complete" 36977 arguments="EOL" 36978 new_path="$path" 36979 36980 windows_path="$new_path" 36981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36982 unix_path=`$CYGPATH -u "$windows_path"` 36983 new_path="$unix_path" 36984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36985 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36986 new_path="$unix_path" 36987 fi 36988 36989 36990 new_path=`$WHICH "$new_path" 2> /dev/null` 36991 # bat and cmd files are not always considered executable in MSYS causing which 36992 # to not find them 36993 if test "x$new_path" = x \ 36994 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36995 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36996 new_path="$path" 36997 36998 windows_path="$new_path" 36999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37000 unix_path=`$CYGPATH -u "$windows_path"` 37001 new_path="$unix_path" 37002 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37003 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37004 new_path="$unix_path" 37005 fi 37006 37007 fi 37008 37009 if test "x$new_path" = x; then 37010 # It's still not found. Now this is an unrecoverable error. 37011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37012 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37013 has_space=`$ECHO "$complete" | $GREP " "` 37014 if test "x$has_space" != x; then 37015 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37016 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37017 fi 37018 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37019 fi 37020 fi 37021 37022 # Now new_path has a complete unix path to the binary 37023 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37024 # Keep paths in /bin as-is, but remove trailing .exe if any 37025 new_path="${new_path/%.exe/}" 37026 # Do not save /bin paths to all_fixpath_prefixes! 37027 else 37028 # Not in mixed or Windows style, start by that. 37029 new_path=`cmd //c echo $new_path` 37030 37031 input_path="$new_path" 37032 # Check if we need to convert this using DOS-style short mode. If the path 37033 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37034 # take no chances and rewrite it. 37035 # Note: m4 eats our [], so we need to use [ and ] instead. 37036 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37037 if test "x$has_forbidden_chars" != x; then 37038 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37039 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37040 fi 37041 37042 # Output is in $new_path 37043 37044 windows_path="$new_path" 37045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37046 unix_path=`$CYGPATH -u "$windows_path"` 37047 new_path="$unix_path" 37048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37050 new_path="$unix_path" 37051 fi 37052 37053 # remove trailing .exe if any 37054 new_path="${new_path/%.exe/}" 37055 37056 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37057 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37058 fi 37059 37060 else 37061 # We're on a unix platform. Hooray! :) 37062 # First separate the path from the arguments. This will split at the first 37063 # space. 37064 complete="$CXXCPP" 37065 path="${complete%% *}" 37066 tmp="$complete EOL" 37067 arguments="${tmp#* }" 37068 37069 # Cannot rely on the command "which" here since it doesn't always work. 37070 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37071 if test -z "$is_absolute_path"; then 37072 # Path to executable is not absolute. Find it. 37073 IFS_save="$IFS" 37074 IFS=: 37075 for p in $PATH; do 37076 if test -f "$p/$path" && test -x "$p/$path"; then 37077 new_path="$p/$path" 37078 break 37079 fi 37080 done 37081 IFS="$IFS_save" 37082 else 37083 # This is an absolute path, we can use it without further modifications. 37084 new_path="$path" 37085 fi 37086 37087 if test "x$new_path" = x; then 37088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37089 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37090 has_space=`$ECHO "$complete" | $GREP " "` 37091 if test "x$has_space" != x; then 37092 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37093 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37094 fi 37095 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37096 fi 37097 fi 37098 37099 # Now join together the path and the arguments once again 37100 if test "x$arguments" != xEOL; then 37101 new_complete="$new_path ${arguments% *}" 37102 else 37103 new_complete="$new_path" 37104 fi 37105 37106 if test "x$complete" != "x$new_complete"; then 37107 CXXCPP="$new_complete" 37108 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 37109 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 37110 fi 37111 fi 37112 37113 37114 # 37115 # Setup the linker (LD) 37116 # 37117 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37118 # In the Microsoft toolchain we have a separate LD command "link". 37119 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 37120 # a cygwin program for something completely different. 37121 # Extract the first word of "link", so it can be a program name with args. 37122 set dummy link; ac_word=$2 37123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37124 $as_echo_n "checking for $ac_word... " >&6; } 37125 if ${ac_cv_prog_LD+:} false; then : 37126 $as_echo_n "(cached) " >&6 37127 else 37128 if test -n "$LD"; then 37129 ac_cv_prog_LD="$LD" # Let the user override the test. 37130 else 37131 ac_prog_rejected=no 37132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37133 for as_dir in $PATH 37134 do 37135 IFS=$as_save_IFS 37136 test -z "$as_dir" && as_dir=. 37137 for ac_exec_ext in '' $ac_executable_extensions; do 37138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37139 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 37140 ac_prog_rejected=yes 37141 continue 37142 fi 37143 ac_cv_prog_LD="link" 37144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37145 break 2 37146 fi 37147 done 37148 done 37149 IFS=$as_save_IFS 37150 37151 if test $ac_prog_rejected = yes; then 37152 # We found a bogon in the path, so make sure we never use it. 37153 set dummy $ac_cv_prog_LD 37154 shift 37155 if test $# != 0; then 37156 # We chose a different compiler from the bogus one. 37157 # However, it has the same basename, so the bogon will be chosen 37158 # first if we set LD to just the basename; use the full file name. 37159 shift 37160 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 37161 fi 37162 fi 37163 fi 37164 fi 37165 LD=$ac_cv_prog_LD 37166 if test -n "$LD"; then 37167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 37168 $as_echo "$LD" >&6; } 37169 else 37170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37171 $as_echo "no" >&6; } 37172 fi 37173 37174 37175 37176 # Only process if variable expands to non-empty 37177 37178 if test "x$LD" != x; then 37179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37180 37181 # First separate the path from the arguments. This will split at the first 37182 # space. 37183 complete="$LD" 37184 path="${complete%% *}" 37185 tmp="$complete EOL" 37186 arguments="${tmp#* }" 37187 37188 # Input might be given as Windows format, start by converting to 37189 # unix format. 37190 new_path=`$CYGPATH -u "$path"` 37191 37192 # Now try to locate executable using which 37193 new_path=`$WHICH "$new_path" 2> /dev/null` 37194 # bat and cmd files are not always considered executable in cygwin causing which 37195 # to not find them 37196 if test "x$new_path" = x \ 37197 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37198 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37199 new_path=`$CYGPATH -u "$path"` 37200 fi 37201 if test "x$new_path" = x; then 37202 # Oops. Which didn't find the executable. 37203 # The splitting of arguments from the executable at a space might have been incorrect, 37204 # since paths with space are more likely in Windows. Give it another try with the whole 37205 # argument. 37206 path="$complete" 37207 arguments="EOL" 37208 new_path=`$CYGPATH -u "$path"` 37209 new_path=`$WHICH "$new_path" 2> /dev/null` 37210 # bat and cmd files are not always considered executable in cygwin causing which 37211 # to not find them 37212 if test "x$new_path" = x \ 37213 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37214 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37215 new_path=`$CYGPATH -u "$path"` 37216 fi 37217 if test "x$new_path" = x; then 37218 # It's still not found. Now this is an unrecoverable error. 37219 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37220 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37221 has_space=`$ECHO "$complete" | $GREP " "` 37222 if test "x$has_space" != x; then 37223 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37224 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37225 fi 37226 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37227 fi 37228 fi 37229 37230 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37231 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37232 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37233 # "foo.exe" is OK but "foo" is an error. 37234 # 37235 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37236 # It is also a way to make sure we got the proper file name for the real test later on. 37237 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37238 if test "x$test_shortpath" = x; then 37239 # Short path failed, file does not exist as specified. 37240 # Try adding .exe or .cmd 37241 if test -f "${new_path}.exe"; then 37242 input_to_shortpath="${new_path}.exe" 37243 elif test -f "${new_path}.cmd"; then 37244 input_to_shortpath="${new_path}.cmd" 37245 else 37246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 37247 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 37248 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37249 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37250 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37251 fi 37252 else 37253 input_to_shortpath="$new_path" 37254 fi 37255 37256 # Call helper function which possibly converts this using DOS-style short mode. 37257 # If so, the updated path is stored in $new_path. 37258 new_path="$input_to_shortpath" 37259 37260 input_path="$input_to_shortpath" 37261 # Check if we need to convert this using DOS-style short mode. If the path 37262 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37263 # take no chances and rewrite it. 37264 # Note: m4 eats our [], so we need to use [ and ] instead. 37265 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37266 if test "x$has_forbidden_chars" != x; then 37267 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37268 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37269 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37270 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37271 # Going to short mode and back again did indeed matter. Since short mode is 37272 # case insensitive, let's make it lowercase to improve readability. 37273 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37274 # Now convert it back to Unix-style (cygpath) 37275 input_path=`$CYGPATH -u "$shortmode_path"` 37276 new_path="$input_path" 37277 fi 37278 fi 37279 37280 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37281 if test "x$test_cygdrive_prefix" = x; then 37282 # As a simple fix, exclude /usr/bin since it's not a real path. 37283 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37284 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37285 # a path prefixed by /cygdrive for fixpath to work. 37286 new_path="$CYGWIN_ROOT_PATH$input_path" 37287 fi 37288 fi 37289 37290 # remove trailing .exe if any 37291 new_path="${new_path/%.exe/}" 37292 37293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37294 37295 # First separate the path from the arguments. This will split at the first 37296 # space. 37297 complete="$LD" 37298 path="${complete%% *}" 37299 tmp="$complete EOL" 37300 arguments="${tmp#* }" 37301 37302 # Input might be given as Windows format, start by converting to 37303 # unix format. 37304 new_path="$path" 37305 37306 windows_path="$new_path" 37307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37308 unix_path=`$CYGPATH -u "$windows_path"` 37309 new_path="$unix_path" 37310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37311 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37312 new_path="$unix_path" 37313 fi 37314 37315 37316 # Now try to locate executable using which 37317 new_path=`$WHICH "$new_path" 2> /dev/null` 37318 37319 if test "x$new_path" = x; then 37320 # Oops. Which didn't find the executable. 37321 # The splitting of arguments from the executable at a space might have been incorrect, 37322 # since paths with space are more likely in Windows. Give it another try with the whole 37323 # argument. 37324 path="$complete" 37325 arguments="EOL" 37326 new_path="$path" 37327 37328 windows_path="$new_path" 37329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37330 unix_path=`$CYGPATH -u "$windows_path"` 37331 new_path="$unix_path" 37332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37333 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37334 new_path="$unix_path" 37335 fi 37336 37337 37338 new_path=`$WHICH "$new_path" 2> /dev/null` 37339 # bat and cmd files are not always considered executable in MSYS causing which 37340 # to not find them 37341 if test "x$new_path" = x \ 37342 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37343 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37344 new_path="$path" 37345 37346 windows_path="$new_path" 37347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37348 unix_path=`$CYGPATH -u "$windows_path"` 37349 new_path="$unix_path" 37350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37352 new_path="$unix_path" 37353 fi 37354 37355 fi 37356 37357 if test "x$new_path" = x; then 37358 # It's still not found. Now this is an unrecoverable error. 37359 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37360 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37361 has_space=`$ECHO "$complete" | $GREP " "` 37362 if test "x$has_space" != x; then 37363 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37364 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37365 fi 37366 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37367 fi 37368 fi 37369 37370 # Now new_path has a complete unix path to the binary 37371 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37372 # Keep paths in /bin as-is, but remove trailing .exe if any 37373 new_path="${new_path/%.exe/}" 37374 # Do not save /bin paths to all_fixpath_prefixes! 37375 else 37376 # Not in mixed or Windows style, start by that. 37377 new_path=`cmd //c echo $new_path` 37378 37379 input_path="$new_path" 37380 # Check if we need to convert this using DOS-style short mode. If the path 37381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37382 # take no chances and rewrite it. 37383 # Note: m4 eats our [], so we need to use [ and ] instead. 37384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37385 if test "x$has_forbidden_chars" != x; then 37386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37387 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37388 fi 37389 37390 # Output is in $new_path 37391 37392 windows_path="$new_path" 37393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37394 unix_path=`$CYGPATH -u "$windows_path"` 37395 new_path="$unix_path" 37396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37397 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37398 new_path="$unix_path" 37399 fi 37400 37401 # remove trailing .exe if any 37402 new_path="${new_path/%.exe/}" 37403 37404 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37405 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37406 fi 37407 37408 else 37409 # We're on a unix platform. Hooray! :) 37410 # First separate the path from the arguments. This will split at the first 37411 # space. 37412 complete="$LD" 37413 path="${complete%% *}" 37414 tmp="$complete EOL" 37415 arguments="${tmp#* }" 37416 37417 # Cannot rely on the command "which" here since it doesn't always work. 37418 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37419 if test -z "$is_absolute_path"; then 37420 # Path to executable is not absolute. Find it. 37421 IFS_save="$IFS" 37422 IFS=: 37423 for p in $PATH; do 37424 if test -f "$p/$path" && test -x "$p/$path"; then 37425 new_path="$p/$path" 37426 break 37427 fi 37428 done 37429 IFS="$IFS_save" 37430 else 37431 # This is an absolute path, we can use it without further modifications. 37432 new_path="$path" 37433 fi 37434 37435 if test "x$new_path" = x; then 37436 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37437 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37438 has_space=`$ECHO "$complete" | $GREP " "` 37439 if test "x$has_space" != x; then 37440 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37441 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37442 fi 37443 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37444 fi 37445 fi 37446 37447 # Now join together the path and the arguments once again 37448 if test "x$arguments" != xEOL; then 37449 new_complete="$new_path ${arguments% *}" 37450 else 37451 new_complete="$new_path" 37452 fi 37453 37454 if test "x$complete" != "x$new_complete"; then 37455 LD="$new_complete" 37456 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 37457 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 37458 fi 37459 fi 37460 37461 # Verify that we indeed succeeded with this trick. 37462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 37463 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 37464 "$LD" --version > /dev/null 37465 if test $? -eq 0 ; then 37466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37467 $as_echo "no" >&6; } 37468 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 37469 else 37470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37471 $as_echo "yes" >&6; } 37472 fi 37473 LDCXX="$LD" 37474 else 37475 # All other toolchains use the compiler to link. 37476 LD="$CC" 37477 LDCXX="$CXX" 37478 fi 37479 37480 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 37481 37482 37483 # 37484 # Setup the assembler (AS) 37485 # 37486 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 37487 37488 37489 # Publish this variable in the help. 37490 37491 37492 if [ -z "${AS+x}" ]; then 37493 # The variable is not set by user, try to locate tool using the code snippet 37494 for ac_prog in as 37495 do 37496 # Extract the first word of "$ac_prog", so it can be a program name with args. 37497 set dummy $ac_prog; ac_word=$2 37498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37499 $as_echo_n "checking for $ac_word... " >&6; } 37500 if ${ac_cv_path_AS+:} false; then : 37501 $as_echo_n "(cached) " >&6 37502 else 37503 case $AS in 37504 [\\/]* | ?:[\\/]*) 37505 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37506 ;; 37507 *) 37508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37509 for as_dir in $PATH 37510 do 37511 IFS=$as_save_IFS 37512 test -z "$as_dir" && as_dir=. 37513 for ac_exec_ext in '' $ac_executable_extensions; do 37514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37515 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37517 break 2 37518 fi 37519 done 37520 done 37521 IFS=$as_save_IFS 37522 37523 ;; 37524 esac 37525 fi 37526 AS=$ac_cv_path_AS 37527 if test -n "$AS"; then 37528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37529 $as_echo "$AS" >&6; } 37530 else 37531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37532 $as_echo "no" >&6; } 37533 fi 37534 37535 37536 test -n "$AS" && break 37537 done 37538 37539 else 37540 # The variable is set, but is it from the command line or the environment? 37541 37542 # Try to remove the string !AS! from our list. 37543 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 37544 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37545 # If it failed, the variable was not from the command line. Ignore it, 37546 # but warn the user (except for BASH, which is always set by the calling BASH). 37547 if test "xAS" != xBASH; then 37548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 37549 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 37550 fi 37551 # Try to locate tool using the code snippet 37552 for ac_prog in as 37553 do 37554 # Extract the first word of "$ac_prog", so it can be a program name with args. 37555 set dummy $ac_prog; ac_word=$2 37556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37557 $as_echo_n "checking for $ac_word... " >&6; } 37558 if ${ac_cv_path_AS+:} false; then : 37559 $as_echo_n "(cached) " >&6 37560 else 37561 case $AS in 37562 [\\/]* | ?:[\\/]*) 37563 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37564 ;; 37565 *) 37566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37567 for as_dir in $PATH 37568 do 37569 IFS=$as_save_IFS 37570 test -z "$as_dir" && as_dir=. 37571 for ac_exec_ext in '' $ac_executable_extensions; do 37572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37573 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37575 break 2 37576 fi 37577 done 37578 done 37579 IFS=$as_save_IFS 37580 37581 ;; 37582 esac 37583 fi 37584 AS=$ac_cv_path_AS 37585 if test -n "$AS"; then 37586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37587 $as_echo "$AS" >&6; } 37588 else 37589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37590 $as_echo "no" >&6; } 37591 fi 37592 37593 37594 test -n "$AS" && break 37595 done 37596 37597 else 37598 # If it succeeded, then it was overridden by the user. We will use it 37599 # for the tool. 37600 37601 # First remove it from the list of overridden variables, so we can test 37602 # for unknown variables in the end. 37603 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37604 37605 # Check if we try to supply an empty value 37606 if test "x$AS" = x; then 37607 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 37608 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 37609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37610 $as_echo_n "checking for AS... " >&6; } 37611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37612 $as_echo "disabled" >&6; } 37613 else 37614 # Check if the provided tool contains a complete path. 37615 tool_specified="$AS" 37616 tool_basename="${tool_specified##*/}" 37617 if test "x$tool_basename" = "x$tool_specified"; then 37618 # A command without a complete path is provided, search $PATH. 37619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 37620 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 37621 # Extract the first word of "$tool_basename", so it can be a program name with args. 37622 set dummy $tool_basename; ac_word=$2 37623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37624 $as_echo_n "checking for $ac_word... " >&6; } 37625 if ${ac_cv_path_AS+:} false; then : 37626 $as_echo_n "(cached) " >&6 37627 else 37628 case $AS in 37629 [\\/]* | ?:[\\/]*) 37630 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37631 ;; 37632 *) 37633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37634 for as_dir in $PATH 37635 do 37636 IFS=$as_save_IFS 37637 test -z "$as_dir" && as_dir=. 37638 for ac_exec_ext in '' $ac_executable_extensions; do 37639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37640 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37642 break 2 37643 fi 37644 done 37645 done 37646 IFS=$as_save_IFS 37647 37648 ;; 37649 esac 37650 fi 37651 AS=$ac_cv_path_AS 37652 if test -n "$AS"; then 37653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37654 $as_echo "$AS" >&6; } 37655 else 37656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37657 $as_echo "no" >&6; } 37658 fi 37659 37660 37661 if test "x$AS" = x; then 37662 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37663 fi 37664 else 37665 # Otherwise we believe it is a complete path. Use it as it is. 37666 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 37667 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 37668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37669 $as_echo_n "checking for AS... " >&6; } 37670 if test ! -x "$tool_specified"; then 37671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37672 $as_echo "not found" >&6; } 37673 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 37674 fi 37675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37676 $as_echo "$tool_specified" >&6; } 37677 fi 37678 fi 37679 fi 37680 37681 fi 37682 37683 37684 37685 # Only process if variable expands to non-empty 37686 37687 if test "x$AS" != x; then 37688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37689 37690 # First separate the path from the arguments. This will split at the first 37691 # space. 37692 complete="$AS" 37693 path="${complete%% *}" 37694 tmp="$complete EOL" 37695 arguments="${tmp#* }" 37696 37697 # Input might be given as Windows format, start by converting to 37698 # unix format. 37699 new_path=`$CYGPATH -u "$path"` 37700 37701 # Now try to locate executable using which 37702 new_path=`$WHICH "$new_path" 2> /dev/null` 37703 # bat and cmd files are not always considered executable in cygwin causing which 37704 # to not find them 37705 if test "x$new_path" = x \ 37706 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37707 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37708 new_path=`$CYGPATH -u "$path"` 37709 fi 37710 if test "x$new_path" = x; then 37711 # Oops. Which didn't find the executable. 37712 # The splitting of arguments from the executable at a space might have been incorrect, 37713 # since paths with space are more likely in Windows. Give it another try with the whole 37714 # argument. 37715 path="$complete" 37716 arguments="EOL" 37717 new_path=`$CYGPATH -u "$path"` 37718 new_path=`$WHICH "$new_path" 2> /dev/null` 37719 # bat and cmd files are not always considered executable in cygwin causing which 37720 # to not find them 37721 if test "x$new_path" = x \ 37722 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37723 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37724 new_path=`$CYGPATH -u "$path"` 37725 fi 37726 if test "x$new_path" = x; then 37727 # It's still not found. Now this is an unrecoverable error. 37728 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37729 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37730 has_space=`$ECHO "$complete" | $GREP " "` 37731 if test "x$has_space" != x; then 37732 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37733 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37734 fi 37735 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37736 fi 37737 fi 37738 37739 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37740 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37741 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37742 # "foo.exe" is OK but "foo" is an error. 37743 # 37744 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37745 # It is also a way to make sure we got the proper file name for the real test later on. 37746 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37747 if test "x$test_shortpath" = x; then 37748 # Short path failed, file does not exist as specified. 37749 # Try adding .exe or .cmd 37750 if test -f "${new_path}.exe"; then 37751 input_to_shortpath="${new_path}.exe" 37752 elif test -f "${new_path}.cmd"; then 37753 input_to_shortpath="${new_path}.cmd" 37754 else 37755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 37756 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 37757 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37758 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37759 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37760 fi 37761 else 37762 input_to_shortpath="$new_path" 37763 fi 37764 37765 # Call helper function which possibly converts this using DOS-style short mode. 37766 # If so, the updated path is stored in $new_path. 37767 new_path="$input_to_shortpath" 37768 37769 input_path="$input_to_shortpath" 37770 # Check if we need to convert this using DOS-style short mode. If the path 37771 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37772 # take no chances and rewrite it. 37773 # Note: m4 eats our [], so we need to use [ and ] instead. 37774 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37775 if test "x$has_forbidden_chars" != x; then 37776 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37777 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37778 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37779 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37780 # Going to short mode and back again did indeed matter. Since short mode is 37781 # case insensitive, let's make it lowercase to improve readability. 37782 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37783 # Now convert it back to Unix-style (cygpath) 37784 input_path=`$CYGPATH -u "$shortmode_path"` 37785 new_path="$input_path" 37786 fi 37787 fi 37788 37789 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37790 if test "x$test_cygdrive_prefix" = x; then 37791 # As a simple fix, exclude /usr/bin since it's not a real path. 37792 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37793 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37794 # a path prefixed by /cygdrive for fixpath to work. 37795 new_path="$CYGWIN_ROOT_PATH$input_path" 37796 fi 37797 fi 37798 37799 # remove trailing .exe if any 37800 new_path="${new_path/%.exe/}" 37801 37802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37803 37804 # First separate the path from the arguments. This will split at the first 37805 # space. 37806 complete="$AS" 37807 path="${complete%% *}" 37808 tmp="$complete EOL" 37809 arguments="${tmp#* }" 37810 37811 # Input might be given as Windows format, start by converting to 37812 # unix format. 37813 new_path="$path" 37814 37815 windows_path="$new_path" 37816 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37817 unix_path=`$CYGPATH -u "$windows_path"` 37818 new_path="$unix_path" 37819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37820 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37821 new_path="$unix_path" 37822 fi 37823 37824 37825 # Now try to locate executable using which 37826 new_path=`$WHICH "$new_path" 2> /dev/null` 37827 37828 if test "x$new_path" = x; then 37829 # Oops. Which didn't find the executable. 37830 # The splitting of arguments from the executable at a space might have been incorrect, 37831 # since paths with space are more likely in Windows. Give it another try with the whole 37832 # argument. 37833 path="$complete" 37834 arguments="EOL" 37835 new_path="$path" 37836 37837 windows_path="$new_path" 37838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37839 unix_path=`$CYGPATH -u "$windows_path"` 37840 new_path="$unix_path" 37841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37842 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37843 new_path="$unix_path" 37844 fi 37845 37846 37847 new_path=`$WHICH "$new_path" 2> /dev/null` 37848 # bat and cmd files are not always considered executable in MSYS causing which 37849 # to not find them 37850 if test "x$new_path" = x \ 37851 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37852 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37853 new_path="$path" 37854 37855 windows_path="$new_path" 37856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37857 unix_path=`$CYGPATH -u "$windows_path"` 37858 new_path="$unix_path" 37859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37860 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37861 new_path="$unix_path" 37862 fi 37863 37864 fi 37865 37866 if test "x$new_path" = x; then 37867 # It's still not found. Now this is an unrecoverable error. 37868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37869 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37870 has_space=`$ECHO "$complete" | $GREP " "` 37871 if test "x$has_space" != x; then 37872 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37873 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37874 fi 37875 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37876 fi 37877 fi 37878 37879 # Now new_path has a complete unix path to the binary 37880 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37881 # Keep paths in /bin as-is, but remove trailing .exe if any 37882 new_path="${new_path/%.exe/}" 37883 # Do not save /bin paths to all_fixpath_prefixes! 37884 else 37885 # Not in mixed or Windows style, start by that. 37886 new_path=`cmd //c echo $new_path` 37887 37888 input_path="$new_path" 37889 # Check if we need to convert this using DOS-style short mode. If the path 37890 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37891 # take no chances and rewrite it. 37892 # Note: m4 eats our [], so we need to use [ and ] instead. 37893 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37894 if test "x$has_forbidden_chars" != x; then 37895 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37896 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37897 fi 37898 37899 # Output is in $new_path 37900 37901 windows_path="$new_path" 37902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37903 unix_path=`$CYGPATH -u "$windows_path"` 37904 new_path="$unix_path" 37905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37906 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37907 new_path="$unix_path" 37908 fi 37909 37910 # remove trailing .exe if any 37911 new_path="${new_path/%.exe/}" 37912 37913 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37914 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37915 fi 37916 37917 else 37918 # We're on a unix platform. Hooray! :) 37919 # First separate the path from the arguments. This will split at the first 37920 # space. 37921 complete="$AS" 37922 path="${complete%% *}" 37923 tmp="$complete EOL" 37924 arguments="${tmp#* }" 37925 37926 # Cannot rely on the command "which" here since it doesn't always work. 37927 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37928 if test -z "$is_absolute_path"; then 37929 # Path to executable is not absolute. Find it. 37930 IFS_save="$IFS" 37931 IFS=: 37932 for p in $PATH; do 37933 if test -f "$p/$path" && test -x "$p/$path"; then 37934 new_path="$p/$path" 37935 break 37936 fi 37937 done 37938 IFS="$IFS_save" 37939 else 37940 # This is an absolute path, we can use it without further modifications. 37941 new_path="$path" 37942 fi 37943 37944 if test "x$new_path" = x; then 37945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37946 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37947 has_space=`$ECHO "$complete" | $GREP " "` 37948 if test "x$has_space" != x; then 37949 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37950 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37951 fi 37952 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37953 fi 37954 fi 37955 37956 # Now join together the path and the arguments once again 37957 if test "x$arguments" != xEOL; then 37958 new_complete="$new_path ${arguments% *}" 37959 else 37960 new_complete="$new_path" 37961 fi 37962 37963 if test "x$complete" != "x$new_complete"; then 37964 AS="$new_complete" 37965 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 37966 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 37967 fi 37968 fi 37969 37970 if test "x$AS" = x; then 37971 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 37972 fi 37973 else 37974 # FIXME: is this correct for microsoft? 37975 AS="$CC -c" 37976 fi 37977 37978 37979 # 37980 # Setup the archiver (AR) 37981 # 37982 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37983 # The corresponding ar tool is lib.exe (used to create static libraries) 37984 # Extract the first word of "lib", so it can be a program name with args. 37985 set dummy lib; ac_word=$2 37986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37987 $as_echo_n "checking for $ac_word... " >&6; } 37988 if ${ac_cv_prog_AR+:} false; then : 37989 $as_echo_n "(cached) " >&6 37990 else 37991 if test -n "$AR"; then 37992 ac_cv_prog_AR="$AR" # Let the user override the test. 37993 else 37994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37995 for as_dir in $PATH 37996 do 37997 IFS=$as_save_IFS 37998 test -z "$as_dir" && as_dir=. 37999 for ac_exec_ext in '' $ac_executable_extensions; do 38000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38001 ac_cv_prog_AR="lib" 38002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38003 break 2 38004 fi 38005 done 38006 done 38007 IFS=$as_save_IFS 38008 38009 fi 38010 fi 38011 AR=$ac_cv_prog_AR 38012 if test -n "$AR"; then 38013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38014 $as_echo "$AR" >&6; } 38015 else 38016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38017 $as_echo "no" >&6; } 38018 fi 38019 38020 38021 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 38022 38023 38024 # Publish this variable in the help. 38025 38026 38027 if [ -z "${AR+x}" ]; then 38028 # The variable is not set by user, try to locate tool using the code snippet 38029 if test -n "$ac_tool_prefix"; then 38030 for ac_prog in ar gcc-ar 38031 do 38032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38035 $as_echo_n "checking for $ac_word... " >&6; } 38036 if ${ac_cv_prog_AR+:} false; then : 38037 $as_echo_n "(cached) " >&6 38038 else 38039 if test -n "$AR"; then 38040 ac_cv_prog_AR="$AR" # Let the user override the test. 38041 else 38042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38043 for as_dir in $PATH 38044 do 38045 IFS=$as_save_IFS 38046 test -z "$as_dir" && as_dir=. 38047 for ac_exec_ext in '' $ac_executable_extensions; do 38048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38049 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38051 break 2 38052 fi 38053 done 38054 done 38055 IFS=$as_save_IFS 38056 38057 fi 38058 fi 38059 AR=$ac_cv_prog_AR 38060 if test -n "$AR"; then 38061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38062 $as_echo "$AR" >&6; } 38063 else 38064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38065 $as_echo "no" >&6; } 38066 fi 38067 38068 38069 test -n "$AR" && break 38070 done 38071 fi 38072 if test -z "$AR"; then 38073 ac_ct_AR=$AR 38074 for ac_prog in ar gcc-ar 38075 do 38076 # Extract the first word of "$ac_prog", so it can be a program name with args. 38077 set dummy $ac_prog; ac_word=$2 38078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38079 $as_echo_n "checking for $ac_word... " >&6; } 38080 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38081 $as_echo_n "(cached) " >&6 38082 else 38083 if test -n "$ac_ct_AR"; then 38084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38085 else 38086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38087 for as_dir in $PATH 38088 do 38089 IFS=$as_save_IFS 38090 test -z "$as_dir" && as_dir=. 38091 for ac_exec_ext in '' $ac_executable_extensions; do 38092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38093 ac_cv_prog_ac_ct_AR="$ac_prog" 38094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38095 break 2 38096 fi 38097 done 38098 done 38099 IFS=$as_save_IFS 38100 38101 fi 38102 fi 38103 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38104 if test -n "$ac_ct_AR"; then 38105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38106 $as_echo "$ac_ct_AR" >&6; } 38107 else 38108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38109 $as_echo "no" >&6; } 38110 fi 38111 38112 38113 test -n "$ac_ct_AR" && break 38114 done 38115 38116 if test "x$ac_ct_AR" = x; then 38117 AR="" 38118 else 38119 case $cross_compiling:$ac_tool_warned in 38120 yes:) 38121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38123 ac_tool_warned=yes ;; 38124 esac 38125 AR=$ac_ct_AR 38126 fi 38127 fi 38128 38129 else 38130 # The variable is set, but is it from the command line or the environment? 38131 38132 # Try to remove the string !AR! from our list. 38133 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38134 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38135 # If it failed, the variable was not from the command line. Ignore it, 38136 # but warn the user (except for BASH, which is always set by the calling BASH). 38137 if test "xAR" != xBASH; then 38138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38139 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38140 fi 38141 # Try to locate tool using the code snippet 38142 if test -n "$ac_tool_prefix"; then 38143 for ac_prog in ar gcc-ar 38144 do 38145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38148 $as_echo_n "checking for $ac_word... " >&6; } 38149 if ${ac_cv_prog_AR+:} false; then : 38150 $as_echo_n "(cached) " >&6 38151 else 38152 if test -n "$AR"; then 38153 ac_cv_prog_AR="$AR" # Let the user override the test. 38154 else 38155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38156 for as_dir in $PATH 38157 do 38158 IFS=$as_save_IFS 38159 test -z "$as_dir" && as_dir=. 38160 for ac_exec_ext in '' $ac_executable_extensions; do 38161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38162 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38164 break 2 38165 fi 38166 done 38167 done 38168 IFS=$as_save_IFS 38169 38170 fi 38171 fi 38172 AR=$ac_cv_prog_AR 38173 if test -n "$AR"; then 38174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38175 $as_echo "$AR" >&6; } 38176 else 38177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38178 $as_echo "no" >&6; } 38179 fi 38180 38181 38182 test -n "$AR" && break 38183 done 38184 fi 38185 if test -z "$AR"; then 38186 ac_ct_AR=$AR 38187 for ac_prog in ar gcc-ar 38188 do 38189 # Extract the first word of "$ac_prog", so it can be a program name with args. 38190 set dummy $ac_prog; ac_word=$2 38191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38192 $as_echo_n "checking for $ac_word... " >&6; } 38193 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38194 $as_echo_n "(cached) " >&6 38195 else 38196 if test -n "$ac_ct_AR"; then 38197 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38198 else 38199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38200 for as_dir in $PATH 38201 do 38202 IFS=$as_save_IFS 38203 test -z "$as_dir" && as_dir=. 38204 for ac_exec_ext in '' $ac_executable_extensions; do 38205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38206 ac_cv_prog_ac_ct_AR="$ac_prog" 38207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38208 break 2 38209 fi 38210 done 38211 done 38212 IFS=$as_save_IFS 38213 38214 fi 38215 fi 38216 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38217 if test -n "$ac_ct_AR"; then 38218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38219 $as_echo "$ac_ct_AR" >&6; } 38220 else 38221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38222 $as_echo "no" >&6; } 38223 fi 38224 38225 38226 test -n "$ac_ct_AR" && break 38227 done 38228 38229 if test "x$ac_ct_AR" = x; then 38230 AR="" 38231 else 38232 case $cross_compiling:$ac_tool_warned in 38233 yes:) 38234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38236 ac_tool_warned=yes ;; 38237 esac 38238 AR=$ac_ct_AR 38239 fi 38240 fi 38241 38242 else 38243 # If it succeeded, then it was overridden by the user. We will use it 38244 # for the tool. 38245 38246 # First remove it from the list of overridden variables, so we can test 38247 # for unknown variables in the end. 38248 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38249 38250 # Check if we try to supply an empty value 38251 if test "x$AR" = x; then 38252 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38253 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38255 $as_echo_n "checking for AR... " >&6; } 38256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38257 $as_echo "disabled" >&6; } 38258 else 38259 # Check if the provided tool contains a complete path. 38260 tool_specified="$AR" 38261 tool_basename="${tool_specified##*/}" 38262 if test "x$tool_basename" = "x$tool_specified"; then 38263 # A command without a complete path is provided, search $PATH. 38264 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38265 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38266 # Extract the first word of "$tool_basename", so it can be a program name with args. 38267 set dummy $tool_basename; ac_word=$2 38268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38269 $as_echo_n "checking for $ac_word... " >&6; } 38270 if ${ac_cv_path_AR+:} false; then : 38271 $as_echo_n "(cached) " >&6 38272 else 38273 case $AR in 38274 [\\/]* | ?:[\\/]*) 38275 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38276 ;; 38277 *) 38278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38279 for as_dir in $PATH 38280 do 38281 IFS=$as_save_IFS 38282 test -z "$as_dir" && as_dir=. 38283 for ac_exec_ext in '' $ac_executable_extensions; do 38284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38285 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38287 break 2 38288 fi 38289 done 38290 done 38291 IFS=$as_save_IFS 38292 38293 ;; 38294 esac 38295 fi 38296 AR=$ac_cv_path_AR 38297 if test -n "$AR"; then 38298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38299 $as_echo "$AR" >&6; } 38300 else 38301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38302 $as_echo "no" >&6; } 38303 fi 38304 38305 38306 if test "x$AR" = x; then 38307 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38308 fi 38309 else 38310 # Otherwise we believe it is a complete path. Use it as it is. 38311 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38312 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38314 $as_echo_n "checking for AR... " >&6; } 38315 if test ! -x "$tool_specified"; then 38316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38317 $as_echo "not found" >&6; } 38318 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38319 fi 38320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38321 $as_echo "$tool_specified" >&6; } 38322 fi 38323 fi 38324 fi 38325 38326 fi 38327 38328 38329 else 38330 38331 38332 # Publish this variable in the help. 38333 38334 38335 if [ -z "${AR+x}" ]; then 38336 # The variable is not set by user, try to locate tool using the code snippet 38337 if test -n "$ac_tool_prefix"; then 38338 for ac_prog in ar 38339 do 38340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38343 $as_echo_n "checking for $ac_word... " >&6; } 38344 if ${ac_cv_prog_AR+:} false; then : 38345 $as_echo_n "(cached) " >&6 38346 else 38347 if test -n "$AR"; then 38348 ac_cv_prog_AR="$AR" # Let the user override the test. 38349 else 38350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38351 for as_dir in $PATH 38352 do 38353 IFS=$as_save_IFS 38354 test -z "$as_dir" && as_dir=. 38355 for ac_exec_ext in '' $ac_executable_extensions; do 38356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38357 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38359 break 2 38360 fi 38361 done 38362 done 38363 IFS=$as_save_IFS 38364 38365 fi 38366 fi 38367 AR=$ac_cv_prog_AR 38368 if test -n "$AR"; then 38369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38370 $as_echo "$AR" >&6; } 38371 else 38372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38373 $as_echo "no" >&6; } 38374 fi 38375 38376 38377 test -n "$AR" && break 38378 done 38379 fi 38380 if test -z "$AR"; then 38381 ac_ct_AR=$AR 38382 for ac_prog in ar 38383 do 38384 # Extract the first word of "$ac_prog", so it can be a program name with args. 38385 set dummy $ac_prog; ac_word=$2 38386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38387 $as_echo_n "checking for $ac_word... " >&6; } 38388 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38389 $as_echo_n "(cached) " >&6 38390 else 38391 if test -n "$ac_ct_AR"; then 38392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38393 else 38394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38395 for as_dir in $PATH 38396 do 38397 IFS=$as_save_IFS 38398 test -z "$as_dir" && as_dir=. 38399 for ac_exec_ext in '' $ac_executable_extensions; do 38400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38401 ac_cv_prog_ac_ct_AR="$ac_prog" 38402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38403 break 2 38404 fi 38405 done 38406 done 38407 IFS=$as_save_IFS 38408 38409 fi 38410 fi 38411 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38412 if test -n "$ac_ct_AR"; then 38413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38414 $as_echo "$ac_ct_AR" >&6; } 38415 else 38416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38417 $as_echo "no" >&6; } 38418 fi 38419 38420 38421 test -n "$ac_ct_AR" && break 38422 done 38423 38424 if test "x$ac_ct_AR" = x; then 38425 AR="" 38426 else 38427 case $cross_compiling:$ac_tool_warned in 38428 yes:) 38429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38431 ac_tool_warned=yes ;; 38432 esac 38433 AR=$ac_ct_AR 38434 fi 38435 fi 38436 38437 else 38438 # The variable is set, but is it from the command line or the environment? 38439 38440 # Try to remove the string !AR! from our list. 38441 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38442 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38443 # If it failed, the variable was not from the command line. Ignore it, 38444 # but warn the user (except for BASH, which is always set by the calling BASH). 38445 if test "xAR" != xBASH; then 38446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38447 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38448 fi 38449 # Try to locate tool using the code snippet 38450 if test -n "$ac_tool_prefix"; then 38451 for ac_prog in ar 38452 do 38453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38456 $as_echo_n "checking for $ac_word... " >&6; } 38457 if ${ac_cv_prog_AR+:} false; then : 38458 $as_echo_n "(cached) " >&6 38459 else 38460 if test -n "$AR"; then 38461 ac_cv_prog_AR="$AR" # Let the user override the test. 38462 else 38463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38464 for as_dir in $PATH 38465 do 38466 IFS=$as_save_IFS 38467 test -z "$as_dir" && as_dir=. 38468 for ac_exec_ext in '' $ac_executable_extensions; do 38469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38470 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38472 break 2 38473 fi 38474 done 38475 done 38476 IFS=$as_save_IFS 38477 38478 fi 38479 fi 38480 AR=$ac_cv_prog_AR 38481 if test -n "$AR"; then 38482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38483 $as_echo "$AR" >&6; } 38484 else 38485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38486 $as_echo "no" >&6; } 38487 fi 38488 38489 38490 test -n "$AR" && break 38491 done 38492 fi 38493 if test -z "$AR"; then 38494 ac_ct_AR=$AR 38495 for ac_prog in ar 38496 do 38497 # Extract the first word of "$ac_prog", so it can be a program name with args. 38498 set dummy $ac_prog; ac_word=$2 38499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38500 $as_echo_n "checking for $ac_word... " >&6; } 38501 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38502 $as_echo_n "(cached) " >&6 38503 else 38504 if test -n "$ac_ct_AR"; then 38505 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38506 else 38507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38508 for as_dir in $PATH 38509 do 38510 IFS=$as_save_IFS 38511 test -z "$as_dir" && as_dir=. 38512 for ac_exec_ext in '' $ac_executable_extensions; do 38513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38514 ac_cv_prog_ac_ct_AR="$ac_prog" 38515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38516 break 2 38517 fi 38518 done 38519 done 38520 IFS=$as_save_IFS 38521 38522 fi 38523 fi 38524 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38525 if test -n "$ac_ct_AR"; then 38526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38527 $as_echo "$ac_ct_AR" >&6; } 38528 else 38529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38530 $as_echo "no" >&6; } 38531 fi 38532 38533 38534 test -n "$ac_ct_AR" && break 38535 done 38536 38537 if test "x$ac_ct_AR" = x; then 38538 AR="" 38539 else 38540 case $cross_compiling:$ac_tool_warned in 38541 yes:) 38542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38544 ac_tool_warned=yes ;; 38545 esac 38546 AR=$ac_ct_AR 38547 fi 38548 fi 38549 38550 else 38551 # If it succeeded, then it was overridden by the user. We will use it 38552 # for the tool. 38553 38554 # First remove it from the list of overridden variables, so we can test 38555 # for unknown variables in the end. 38556 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38557 38558 # Check if we try to supply an empty value 38559 if test "x$AR" = x; then 38560 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38561 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38563 $as_echo_n "checking for AR... " >&6; } 38564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38565 $as_echo "disabled" >&6; } 38566 else 38567 # Check if the provided tool contains a complete path. 38568 tool_specified="$AR" 38569 tool_basename="${tool_specified##*/}" 38570 if test "x$tool_basename" = "x$tool_specified"; then 38571 # A command without a complete path is provided, search $PATH. 38572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38573 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38574 # Extract the first word of "$tool_basename", so it can be a program name with args. 38575 set dummy $tool_basename; ac_word=$2 38576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38577 $as_echo_n "checking for $ac_word... " >&6; } 38578 if ${ac_cv_path_AR+:} false; then : 38579 $as_echo_n "(cached) " >&6 38580 else 38581 case $AR in 38582 [\\/]* | ?:[\\/]*) 38583 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38584 ;; 38585 *) 38586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38587 for as_dir in $PATH 38588 do 38589 IFS=$as_save_IFS 38590 test -z "$as_dir" && as_dir=. 38591 for ac_exec_ext in '' $ac_executable_extensions; do 38592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38593 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38595 break 2 38596 fi 38597 done 38598 done 38599 IFS=$as_save_IFS 38600 38601 ;; 38602 esac 38603 fi 38604 AR=$ac_cv_path_AR 38605 if test -n "$AR"; then 38606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38607 $as_echo "$AR" >&6; } 38608 else 38609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38610 $as_echo "no" >&6; } 38611 fi 38612 38613 38614 if test "x$AR" = x; then 38615 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38616 fi 38617 else 38618 # Otherwise we believe it is a complete path. Use it as it is. 38619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38620 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38622 $as_echo_n "checking for AR... " >&6; } 38623 if test ! -x "$tool_specified"; then 38624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38625 $as_echo "not found" >&6; } 38626 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38627 fi 38628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38629 $as_echo "$tool_specified" >&6; } 38630 fi 38631 fi 38632 fi 38633 38634 fi 38635 38636 38637 fi 38638 38639 # Only process if variable expands to non-empty 38640 38641 if test "x$AR" != x; then 38642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38643 38644 # First separate the path from the arguments. This will split at the first 38645 # space. 38646 complete="$AR" 38647 path="${complete%% *}" 38648 tmp="$complete EOL" 38649 arguments="${tmp#* }" 38650 38651 # Input might be given as Windows format, start by converting to 38652 # unix format. 38653 new_path=`$CYGPATH -u "$path"` 38654 38655 # Now try to locate executable using which 38656 new_path=`$WHICH "$new_path" 2> /dev/null` 38657 # bat and cmd files are not always considered executable in cygwin causing which 38658 # to not find them 38659 if test "x$new_path" = x \ 38660 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38661 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38662 new_path=`$CYGPATH -u "$path"` 38663 fi 38664 if test "x$new_path" = x; then 38665 # Oops. Which didn't find the executable. 38666 # The splitting of arguments from the executable at a space might have been incorrect, 38667 # since paths with space are more likely in Windows. Give it another try with the whole 38668 # argument. 38669 path="$complete" 38670 arguments="EOL" 38671 new_path=`$CYGPATH -u "$path"` 38672 new_path=`$WHICH "$new_path" 2> /dev/null` 38673 # bat and cmd files are not always considered executable in cygwin causing which 38674 # to not find them 38675 if test "x$new_path" = x \ 38676 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38677 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38678 new_path=`$CYGPATH -u "$path"` 38679 fi 38680 if test "x$new_path" = x; then 38681 # It's still not found. Now this is an unrecoverable error. 38682 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38683 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38684 has_space=`$ECHO "$complete" | $GREP " "` 38685 if test "x$has_space" != x; then 38686 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38687 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38688 fi 38689 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38690 fi 38691 fi 38692 38693 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38694 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38695 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38696 # "foo.exe" is OK but "foo" is an error. 38697 # 38698 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38699 # It is also a way to make sure we got the proper file name for the real test later on. 38700 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38701 if test "x$test_shortpath" = x; then 38702 # Short path failed, file does not exist as specified. 38703 # Try adding .exe or .cmd 38704 if test -f "${new_path}.exe"; then 38705 input_to_shortpath="${new_path}.exe" 38706 elif test -f "${new_path}.cmd"; then 38707 input_to_shortpath="${new_path}.cmd" 38708 else 38709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 38710 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 38711 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38712 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38713 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38714 fi 38715 else 38716 input_to_shortpath="$new_path" 38717 fi 38718 38719 # Call helper function which possibly converts this using DOS-style short mode. 38720 # If so, the updated path is stored in $new_path. 38721 new_path="$input_to_shortpath" 38722 38723 input_path="$input_to_shortpath" 38724 # Check if we need to convert this using DOS-style short mode. If the path 38725 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38726 # take no chances and rewrite it. 38727 # Note: m4 eats our [], so we need to use [ and ] instead. 38728 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38729 if test "x$has_forbidden_chars" != x; then 38730 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38731 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38732 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38733 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38734 # Going to short mode and back again did indeed matter. Since short mode is 38735 # case insensitive, let's make it lowercase to improve readability. 38736 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38737 # Now convert it back to Unix-style (cygpath) 38738 input_path=`$CYGPATH -u "$shortmode_path"` 38739 new_path="$input_path" 38740 fi 38741 fi 38742 38743 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38744 if test "x$test_cygdrive_prefix" = x; then 38745 # As a simple fix, exclude /usr/bin since it's not a real path. 38746 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38747 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38748 # a path prefixed by /cygdrive for fixpath to work. 38749 new_path="$CYGWIN_ROOT_PATH$input_path" 38750 fi 38751 fi 38752 38753 # remove trailing .exe if any 38754 new_path="${new_path/%.exe/}" 38755 38756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38757 38758 # First separate the path from the arguments. This will split at the first 38759 # space. 38760 complete="$AR" 38761 path="${complete%% *}" 38762 tmp="$complete EOL" 38763 arguments="${tmp#* }" 38764 38765 # Input might be given as Windows format, start by converting to 38766 # unix format. 38767 new_path="$path" 38768 38769 windows_path="$new_path" 38770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38771 unix_path=`$CYGPATH -u "$windows_path"` 38772 new_path="$unix_path" 38773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38774 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38775 new_path="$unix_path" 38776 fi 38777 38778 38779 # Now try to locate executable using which 38780 new_path=`$WHICH "$new_path" 2> /dev/null` 38781 38782 if test "x$new_path" = x; then 38783 # Oops. Which didn't find the executable. 38784 # The splitting of arguments from the executable at a space might have been incorrect, 38785 # since paths with space are more likely in Windows. Give it another try with the whole 38786 # argument. 38787 path="$complete" 38788 arguments="EOL" 38789 new_path="$path" 38790 38791 windows_path="$new_path" 38792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38793 unix_path=`$CYGPATH -u "$windows_path"` 38794 new_path="$unix_path" 38795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38796 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38797 new_path="$unix_path" 38798 fi 38799 38800 38801 new_path=`$WHICH "$new_path" 2> /dev/null` 38802 # bat and cmd files are not always considered executable in MSYS causing which 38803 # to not find them 38804 if test "x$new_path" = x \ 38805 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38806 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38807 new_path="$path" 38808 38809 windows_path="$new_path" 38810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38811 unix_path=`$CYGPATH -u "$windows_path"` 38812 new_path="$unix_path" 38813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38814 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38815 new_path="$unix_path" 38816 fi 38817 38818 fi 38819 38820 if test "x$new_path" = x; then 38821 # It's still not found. Now this is an unrecoverable error. 38822 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38823 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38824 has_space=`$ECHO "$complete" | $GREP " "` 38825 if test "x$has_space" != x; then 38826 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38827 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38828 fi 38829 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38830 fi 38831 fi 38832 38833 # Now new_path has a complete unix path to the binary 38834 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38835 # Keep paths in /bin as-is, but remove trailing .exe if any 38836 new_path="${new_path/%.exe/}" 38837 # Do not save /bin paths to all_fixpath_prefixes! 38838 else 38839 # Not in mixed or Windows style, start by that. 38840 new_path=`cmd //c echo $new_path` 38841 38842 input_path="$new_path" 38843 # Check if we need to convert this using DOS-style short mode. If the path 38844 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38845 # take no chances and rewrite it. 38846 # Note: m4 eats our [], so we need to use [ and ] instead. 38847 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38848 if test "x$has_forbidden_chars" != x; then 38849 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38850 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38851 fi 38852 38853 # Output is in $new_path 38854 38855 windows_path="$new_path" 38856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38857 unix_path=`$CYGPATH -u "$windows_path"` 38858 new_path="$unix_path" 38859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38860 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38861 new_path="$unix_path" 38862 fi 38863 38864 # remove trailing .exe if any 38865 new_path="${new_path/%.exe/}" 38866 38867 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38868 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38869 fi 38870 38871 else 38872 # We're on a unix platform. Hooray! :) 38873 # First separate the path from the arguments. This will split at the first 38874 # space. 38875 complete="$AR" 38876 path="${complete%% *}" 38877 tmp="$complete EOL" 38878 arguments="${tmp#* }" 38879 38880 # Cannot rely on the command "which" here since it doesn't always work. 38881 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38882 if test -z "$is_absolute_path"; then 38883 # Path to executable is not absolute. Find it. 38884 IFS_save="$IFS" 38885 IFS=: 38886 for p in $PATH; do 38887 if test -f "$p/$path" && test -x "$p/$path"; then 38888 new_path="$p/$path" 38889 break 38890 fi 38891 done 38892 IFS="$IFS_save" 38893 else 38894 # This is an absolute path, we can use it without further modifications. 38895 new_path="$path" 38896 fi 38897 38898 if test "x$new_path" = x; then 38899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38900 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38901 has_space=`$ECHO "$complete" | $GREP " "` 38902 if test "x$has_space" != x; then 38903 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38904 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38905 fi 38906 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38907 fi 38908 fi 38909 38910 # Now join together the path and the arguments once again 38911 if test "x$arguments" != xEOL; then 38912 new_complete="$new_path ${arguments% *}" 38913 else 38914 new_complete="$new_path" 38915 fi 38916 38917 if test "x$complete" != "x$new_complete"; then 38918 AR="$new_complete" 38919 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38920 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38921 fi 38922 fi 38923 38924 38925 38926 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 38927 38928 38929 # Publish this variable in the help. 38930 38931 38932 if [ -z "${LIPO+x}" ]; then 38933 # The variable is not set by user, try to locate tool using the code snippet 38934 for ac_prog in lipo 38935 do 38936 # Extract the first word of "$ac_prog", so it can be a program name with args. 38937 set dummy $ac_prog; ac_word=$2 38938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38939 $as_echo_n "checking for $ac_word... " >&6; } 38940 if ${ac_cv_path_LIPO+:} false; then : 38941 $as_echo_n "(cached) " >&6 38942 else 38943 case $LIPO in 38944 [\\/]* | ?:[\\/]*) 38945 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38946 ;; 38947 *) 38948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38949 for as_dir in $PATH 38950 do 38951 IFS=$as_save_IFS 38952 test -z "$as_dir" && as_dir=. 38953 for ac_exec_ext in '' $ac_executable_extensions; do 38954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38955 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38957 break 2 38958 fi 38959 done 38960 done 38961 IFS=$as_save_IFS 38962 38963 ;; 38964 esac 38965 fi 38966 LIPO=$ac_cv_path_LIPO 38967 if test -n "$LIPO"; then 38968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38969 $as_echo "$LIPO" >&6; } 38970 else 38971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38972 $as_echo "no" >&6; } 38973 fi 38974 38975 38976 test -n "$LIPO" && break 38977 done 38978 38979 else 38980 # The variable is set, but is it from the command line or the environment? 38981 38982 # Try to remove the string !LIPO! from our list. 38983 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 38984 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38985 # If it failed, the variable was not from the command line. Ignore it, 38986 # but warn the user (except for BASH, which is always set by the calling BASH). 38987 if test "xLIPO" != xBASH; then 38988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 38989 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 38990 fi 38991 # Try to locate tool using the code snippet 38992 for ac_prog in lipo 38993 do 38994 # Extract the first word of "$ac_prog", so it can be a program name with args. 38995 set dummy $ac_prog; ac_word=$2 38996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38997 $as_echo_n "checking for $ac_word... " >&6; } 38998 if ${ac_cv_path_LIPO+:} false; then : 38999 $as_echo_n "(cached) " >&6 39000 else 39001 case $LIPO in 39002 [\\/]* | ?:[\\/]*) 39003 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39004 ;; 39005 *) 39006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39007 for as_dir in $PATH 39008 do 39009 IFS=$as_save_IFS 39010 test -z "$as_dir" && as_dir=. 39011 for ac_exec_ext in '' $ac_executable_extensions; do 39012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39013 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39015 break 2 39016 fi 39017 done 39018 done 39019 IFS=$as_save_IFS 39020 39021 ;; 39022 esac 39023 fi 39024 LIPO=$ac_cv_path_LIPO 39025 if test -n "$LIPO"; then 39026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39027 $as_echo "$LIPO" >&6; } 39028 else 39029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39030 $as_echo "no" >&6; } 39031 fi 39032 39033 39034 test -n "$LIPO" && break 39035 done 39036 39037 else 39038 # If it succeeded, then it was overridden by the user. We will use it 39039 # for the tool. 39040 39041 # First remove it from the list of overridden variables, so we can test 39042 # for unknown variables in the end. 39043 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39044 39045 # Check if we try to supply an empty value 39046 if test "x$LIPO" = x; then 39047 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 39048 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 39049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39050 $as_echo_n "checking for LIPO... " >&6; } 39051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39052 $as_echo "disabled" >&6; } 39053 else 39054 # Check if the provided tool contains a complete path. 39055 tool_specified="$LIPO" 39056 tool_basename="${tool_specified##*/}" 39057 if test "x$tool_basename" = "x$tool_specified"; then 39058 # A command without a complete path is provided, search $PATH. 39059 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 39060 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 39061 # Extract the first word of "$tool_basename", so it can be a program name with args. 39062 set dummy $tool_basename; ac_word=$2 39063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39064 $as_echo_n "checking for $ac_word... " >&6; } 39065 if ${ac_cv_path_LIPO+:} false; then : 39066 $as_echo_n "(cached) " >&6 39067 else 39068 case $LIPO in 39069 [\\/]* | ?:[\\/]*) 39070 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39071 ;; 39072 *) 39073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39074 for as_dir in $PATH 39075 do 39076 IFS=$as_save_IFS 39077 test -z "$as_dir" && as_dir=. 39078 for ac_exec_ext in '' $ac_executable_extensions; do 39079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39080 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39082 break 2 39083 fi 39084 done 39085 done 39086 IFS=$as_save_IFS 39087 39088 ;; 39089 esac 39090 fi 39091 LIPO=$ac_cv_path_LIPO 39092 if test -n "$LIPO"; then 39093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39094 $as_echo "$LIPO" >&6; } 39095 else 39096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39097 $as_echo "no" >&6; } 39098 fi 39099 39100 39101 if test "x$LIPO" = x; then 39102 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39103 fi 39104 else 39105 # Otherwise we believe it is a complete path. Use it as it is. 39106 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 39107 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 39108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39109 $as_echo_n "checking for LIPO... " >&6; } 39110 if test ! -x "$tool_specified"; then 39111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39112 $as_echo "not found" >&6; } 39113 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 39114 fi 39115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39116 $as_echo "$tool_specified" >&6; } 39117 fi 39118 fi 39119 fi 39120 39121 fi 39122 39123 39124 39125 # Only process if variable expands to non-empty 39126 39127 if test "x$LIPO" != x; then 39128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39129 39130 # First separate the path from the arguments. This will split at the first 39131 # space. 39132 complete="$LIPO" 39133 path="${complete%% *}" 39134 tmp="$complete EOL" 39135 arguments="${tmp#* }" 39136 39137 # Input might be given as Windows format, start by converting to 39138 # unix format. 39139 new_path=`$CYGPATH -u "$path"` 39140 39141 # Now try to locate executable using which 39142 new_path=`$WHICH "$new_path" 2> /dev/null` 39143 # bat and cmd files are not always considered executable in cygwin causing which 39144 # to not find them 39145 if test "x$new_path" = x \ 39146 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39147 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39148 new_path=`$CYGPATH -u "$path"` 39149 fi 39150 if test "x$new_path" = x; then 39151 # Oops. Which didn't find the executable. 39152 # The splitting of arguments from the executable at a space might have been incorrect, 39153 # since paths with space are more likely in Windows. Give it another try with the whole 39154 # argument. 39155 path="$complete" 39156 arguments="EOL" 39157 new_path=`$CYGPATH -u "$path"` 39158 new_path=`$WHICH "$new_path" 2> /dev/null` 39159 # bat and cmd files are not always considered executable in cygwin causing which 39160 # to not find them 39161 if test "x$new_path" = x \ 39162 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39163 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39164 new_path=`$CYGPATH -u "$path"` 39165 fi 39166 if test "x$new_path" = x; then 39167 # It's still not found. Now this is an unrecoverable error. 39168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39169 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39170 has_space=`$ECHO "$complete" | $GREP " "` 39171 if test "x$has_space" != x; then 39172 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39173 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39174 fi 39175 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39176 fi 39177 fi 39178 39179 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39180 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39181 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39182 # "foo.exe" is OK but "foo" is an error. 39183 # 39184 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39185 # It is also a way to make sure we got the proper file name for the real test later on. 39186 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39187 if test "x$test_shortpath" = x; then 39188 # Short path failed, file does not exist as specified. 39189 # Try adding .exe or .cmd 39190 if test -f "${new_path}.exe"; then 39191 input_to_shortpath="${new_path}.exe" 39192 elif test -f "${new_path}.cmd"; then 39193 input_to_shortpath="${new_path}.cmd" 39194 else 39195 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 39196 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 39197 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39198 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39199 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39200 fi 39201 else 39202 input_to_shortpath="$new_path" 39203 fi 39204 39205 # Call helper function which possibly converts this using DOS-style short mode. 39206 # If so, the updated path is stored in $new_path. 39207 new_path="$input_to_shortpath" 39208 39209 input_path="$input_to_shortpath" 39210 # Check if we need to convert this using DOS-style short mode. If the path 39211 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39212 # take no chances and rewrite it. 39213 # Note: m4 eats our [], so we need to use [ and ] instead. 39214 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39215 if test "x$has_forbidden_chars" != x; then 39216 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39217 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39218 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39219 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39220 # Going to short mode and back again did indeed matter. Since short mode is 39221 # case insensitive, let's make it lowercase to improve readability. 39222 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39223 # Now convert it back to Unix-style (cygpath) 39224 input_path=`$CYGPATH -u "$shortmode_path"` 39225 new_path="$input_path" 39226 fi 39227 fi 39228 39229 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39230 if test "x$test_cygdrive_prefix" = x; then 39231 # As a simple fix, exclude /usr/bin since it's not a real path. 39232 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39233 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39234 # a path prefixed by /cygdrive for fixpath to work. 39235 new_path="$CYGWIN_ROOT_PATH$input_path" 39236 fi 39237 fi 39238 39239 # remove trailing .exe if any 39240 new_path="${new_path/%.exe/}" 39241 39242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39243 39244 # First separate the path from the arguments. This will split at the first 39245 # space. 39246 complete="$LIPO" 39247 path="${complete%% *}" 39248 tmp="$complete EOL" 39249 arguments="${tmp#* }" 39250 39251 # Input might be given as Windows format, start by converting to 39252 # unix format. 39253 new_path="$path" 39254 39255 windows_path="$new_path" 39256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39257 unix_path=`$CYGPATH -u "$windows_path"` 39258 new_path="$unix_path" 39259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39261 new_path="$unix_path" 39262 fi 39263 39264 39265 # Now try to locate executable using which 39266 new_path=`$WHICH "$new_path" 2> /dev/null` 39267 39268 if test "x$new_path" = x; then 39269 # Oops. Which didn't find the executable. 39270 # The splitting of arguments from the executable at a space might have been incorrect, 39271 # since paths with space are more likely in Windows. Give it another try with the whole 39272 # argument. 39273 path="$complete" 39274 arguments="EOL" 39275 new_path="$path" 39276 39277 windows_path="$new_path" 39278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39279 unix_path=`$CYGPATH -u "$windows_path"` 39280 new_path="$unix_path" 39281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39282 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39283 new_path="$unix_path" 39284 fi 39285 39286 39287 new_path=`$WHICH "$new_path" 2> /dev/null` 39288 # bat and cmd files are not always considered executable in MSYS causing which 39289 # to not find them 39290 if test "x$new_path" = x \ 39291 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39292 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39293 new_path="$path" 39294 39295 windows_path="$new_path" 39296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39297 unix_path=`$CYGPATH -u "$windows_path"` 39298 new_path="$unix_path" 39299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39301 new_path="$unix_path" 39302 fi 39303 39304 fi 39305 39306 if test "x$new_path" = x; then 39307 # It's still not found. Now this is an unrecoverable error. 39308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39309 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39310 has_space=`$ECHO "$complete" | $GREP " "` 39311 if test "x$has_space" != x; then 39312 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39313 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39314 fi 39315 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39316 fi 39317 fi 39318 39319 # Now new_path has a complete unix path to the binary 39320 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39321 # Keep paths in /bin as-is, but remove trailing .exe if any 39322 new_path="${new_path/%.exe/}" 39323 # Do not save /bin paths to all_fixpath_prefixes! 39324 else 39325 # Not in mixed or Windows style, start by that. 39326 new_path=`cmd //c echo $new_path` 39327 39328 input_path="$new_path" 39329 # Check if we need to convert this using DOS-style short mode. If the path 39330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39331 # take no chances and rewrite it. 39332 # Note: m4 eats our [], so we need to use [ and ] instead. 39333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39334 if test "x$has_forbidden_chars" != x; then 39335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39336 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39337 fi 39338 39339 # Output is in $new_path 39340 39341 windows_path="$new_path" 39342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39343 unix_path=`$CYGPATH -u "$windows_path"` 39344 new_path="$unix_path" 39345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39347 new_path="$unix_path" 39348 fi 39349 39350 # remove trailing .exe if any 39351 new_path="${new_path/%.exe/}" 39352 39353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39355 fi 39356 39357 else 39358 # We're on a unix platform. Hooray! :) 39359 # First separate the path from the arguments. This will split at the first 39360 # space. 39361 complete="$LIPO" 39362 path="${complete%% *}" 39363 tmp="$complete EOL" 39364 arguments="${tmp#* }" 39365 39366 # Cannot rely on the command "which" here since it doesn't always work. 39367 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39368 if test -z "$is_absolute_path"; then 39369 # Path to executable is not absolute. Find it. 39370 IFS_save="$IFS" 39371 IFS=: 39372 for p in $PATH; do 39373 if test -f "$p/$path" && test -x "$p/$path"; then 39374 new_path="$p/$path" 39375 break 39376 fi 39377 done 39378 IFS="$IFS_save" 39379 else 39380 # This is an absolute path, we can use it without further modifications. 39381 new_path="$path" 39382 fi 39383 39384 if test "x$new_path" = x; then 39385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39386 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39387 has_space=`$ECHO "$complete" | $GREP " "` 39388 if test "x$has_space" != x; then 39389 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39390 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39391 fi 39392 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39393 fi 39394 fi 39395 39396 # Now join together the path and the arguments once again 39397 if test "x$arguments" != xEOL; then 39398 new_complete="$new_path ${arguments% *}" 39399 else 39400 new_complete="$new_path" 39401 fi 39402 39403 if test "x$complete" != "x$new_complete"; then 39404 LIPO="$new_complete" 39405 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 39406 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 39407 fi 39408 fi 39409 39410 39411 39412 39413 # Publish this variable in the help. 39414 39415 39416 if [ -z "${OTOOL+x}" ]; then 39417 # The variable is not set by user, try to locate tool using the code snippet 39418 for ac_prog in otool 39419 do 39420 # Extract the first word of "$ac_prog", so it can be a program name with args. 39421 set dummy $ac_prog; ac_word=$2 39422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39423 $as_echo_n "checking for $ac_word... " >&6; } 39424 if ${ac_cv_path_OTOOL+:} false; then : 39425 $as_echo_n "(cached) " >&6 39426 else 39427 case $OTOOL in 39428 [\\/]* | ?:[\\/]*) 39429 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39430 ;; 39431 *) 39432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39433 for as_dir in $PATH 39434 do 39435 IFS=$as_save_IFS 39436 test -z "$as_dir" && as_dir=. 39437 for ac_exec_ext in '' $ac_executable_extensions; do 39438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39439 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39441 break 2 39442 fi 39443 done 39444 done 39445 IFS=$as_save_IFS 39446 39447 ;; 39448 esac 39449 fi 39450 OTOOL=$ac_cv_path_OTOOL 39451 if test -n "$OTOOL"; then 39452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39453 $as_echo "$OTOOL" >&6; } 39454 else 39455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39456 $as_echo "no" >&6; } 39457 fi 39458 39459 39460 test -n "$OTOOL" && break 39461 done 39462 39463 else 39464 # The variable is set, but is it from the command line or the environment? 39465 39466 # Try to remove the string !OTOOL! from our list. 39467 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 39468 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39469 # If it failed, the variable was not from the command line. Ignore it, 39470 # but warn the user (except for BASH, which is always set by the calling BASH). 39471 if test "xOTOOL" != xBASH; then 39472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 39473 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 39474 fi 39475 # Try to locate tool using the code snippet 39476 for ac_prog in otool 39477 do 39478 # Extract the first word of "$ac_prog", so it can be a program name with args. 39479 set dummy $ac_prog; ac_word=$2 39480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39481 $as_echo_n "checking for $ac_word... " >&6; } 39482 if ${ac_cv_path_OTOOL+:} false; then : 39483 $as_echo_n "(cached) " >&6 39484 else 39485 case $OTOOL in 39486 [\\/]* | ?:[\\/]*) 39487 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39488 ;; 39489 *) 39490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39491 for as_dir in $PATH 39492 do 39493 IFS=$as_save_IFS 39494 test -z "$as_dir" && as_dir=. 39495 for ac_exec_ext in '' $ac_executable_extensions; do 39496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39497 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39499 break 2 39500 fi 39501 done 39502 done 39503 IFS=$as_save_IFS 39504 39505 ;; 39506 esac 39507 fi 39508 OTOOL=$ac_cv_path_OTOOL 39509 if test -n "$OTOOL"; then 39510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39511 $as_echo "$OTOOL" >&6; } 39512 else 39513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39514 $as_echo "no" >&6; } 39515 fi 39516 39517 39518 test -n "$OTOOL" && break 39519 done 39520 39521 else 39522 # If it succeeded, then it was overridden by the user. We will use it 39523 # for the tool. 39524 39525 # First remove it from the list of overridden variables, so we can test 39526 # for unknown variables in the end. 39527 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39528 39529 # Check if we try to supply an empty value 39530 if test "x$OTOOL" = x; then 39531 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 39532 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 39533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 39534 $as_echo_n "checking for OTOOL... " >&6; } 39535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39536 $as_echo "disabled" >&6; } 39537 else 39538 # Check if the provided tool contains a complete path. 39539 tool_specified="$OTOOL" 39540 tool_basename="${tool_specified##*/}" 39541 if test "x$tool_basename" = "x$tool_specified"; then 39542 # A command without a complete path is provided, search $PATH. 39543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 39544 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 39545 # Extract the first word of "$tool_basename", so it can be a program name with args. 39546 set dummy $tool_basename; ac_word=$2 39547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39548 $as_echo_n "checking for $ac_word... " >&6; } 39549 if ${ac_cv_path_OTOOL+:} false; then : 39550 $as_echo_n "(cached) " >&6 39551 else 39552 case $OTOOL in 39553 [\\/]* | ?:[\\/]*) 39554 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39555 ;; 39556 *) 39557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39558 for as_dir in $PATH 39559 do 39560 IFS=$as_save_IFS 39561 test -z "$as_dir" && as_dir=. 39562 for ac_exec_ext in '' $ac_executable_extensions; do 39563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39564 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39566 break 2 39567 fi 39568 done 39569 done 39570 IFS=$as_save_IFS 39571 39572 ;; 39573 esac 39574 fi 39575 OTOOL=$ac_cv_path_OTOOL 39576 if test -n "$OTOOL"; then 39577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39578 $as_echo "$OTOOL" >&6; } 39579 else 39580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39581 $as_echo "no" >&6; } 39582 fi 39583 39584 39585 if test "x$OTOOL" = x; then 39586 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39587 fi 39588 else 39589 # Otherwise we believe it is a complete path. Use it as it is. 39590 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 39591 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 39592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 39593 $as_echo_n "checking for OTOOL... " >&6; } 39594 if test ! -x "$tool_specified"; then 39595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39596 $as_echo "not found" >&6; } 39597 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 39598 fi 39599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39600 $as_echo "$tool_specified" >&6; } 39601 fi 39602 fi 39603 fi 39604 39605 fi 39606 39607 39608 39609 if test "x$OTOOL" = x; then 39610 as_fn_error $? "Could not find required tool for OTOOL" "$LINENO" 5 39611 fi 39612 39613 39614 39615 # Only process if variable expands to non-empty 39616 39617 if test "x$OTOOL" != x; then 39618 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39619 39620 # First separate the path from the arguments. This will split at the first 39621 # space. 39622 complete="$OTOOL" 39623 path="${complete%% *}" 39624 tmp="$complete EOL" 39625 arguments="${tmp#* }" 39626 39627 # Input might be given as Windows format, start by converting to 39628 # unix format. 39629 new_path=`$CYGPATH -u "$path"` 39630 39631 # Now try to locate executable using which 39632 new_path=`$WHICH "$new_path" 2> /dev/null` 39633 # bat and cmd files are not always considered executable in cygwin causing which 39634 # to not find them 39635 if test "x$new_path" = x \ 39636 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39637 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39638 new_path=`$CYGPATH -u "$path"` 39639 fi 39640 if test "x$new_path" = x; then 39641 # Oops. Which didn't find the executable. 39642 # The splitting of arguments from the executable at a space might have been incorrect, 39643 # since paths with space are more likely in Windows. Give it another try with the whole 39644 # argument. 39645 path="$complete" 39646 arguments="EOL" 39647 new_path=`$CYGPATH -u "$path"` 39648 new_path=`$WHICH "$new_path" 2> /dev/null` 39649 # bat and cmd files are not always considered executable in cygwin causing which 39650 # to not find them 39651 if test "x$new_path" = x \ 39652 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39653 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39654 new_path=`$CYGPATH -u "$path"` 39655 fi 39656 if test "x$new_path" = x; then 39657 # It's still not found. Now this is an unrecoverable error. 39658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39659 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39660 has_space=`$ECHO "$complete" | $GREP " "` 39661 if test "x$has_space" != x; then 39662 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39663 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39664 fi 39665 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39666 fi 39667 fi 39668 39669 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39670 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39671 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39672 # "foo.exe" is OK but "foo" is an error. 39673 # 39674 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39675 # It is also a way to make sure we got the proper file name for the real test later on. 39676 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39677 if test "x$test_shortpath" = x; then 39678 # Short path failed, file does not exist as specified. 39679 # Try adding .exe or .cmd 39680 if test -f "${new_path}.exe"; then 39681 input_to_shortpath="${new_path}.exe" 39682 elif test -f "${new_path}.cmd"; then 39683 input_to_shortpath="${new_path}.cmd" 39684 else 39685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$new_path\", is invalid." >&5 39686 $as_echo "$as_me: The path of OTOOL, which resolves as \"$new_path\", is invalid." >&6;} 39687 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39688 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39689 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39690 fi 39691 else 39692 input_to_shortpath="$new_path" 39693 fi 39694 39695 # Call helper function which possibly converts this using DOS-style short mode. 39696 # If so, the updated path is stored in $new_path. 39697 new_path="$input_to_shortpath" 39698 39699 input_path="$input_to_shortpath" 39700 # Check if we need to convert this using DOS-style short mode. If the path 39701 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39702 # take no chances and rewrite it. 39703 # Note: m4 eats our [], so we need to use [ and ] instead. 39704 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39705 if test "x$has_forbidden_chars" != x; then 39706 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39707 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39708 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39709 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39710 # Going to short mode and back again did indeed matter. Since short mode is 39711 # case insensitive, let's make it lowercase to improve readability. 39712 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39713 # Now convert it back to Unix-style (cygpath) 39714 input_path=`$CYGPATH -u "$shortmode_path"` 39715 new_path="$input_path" 39716 fi 39717 fi 39718 39719 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39720 if test "x$test_cygdrive_prefix" = x; then 39721 # As a simple fix, exclude /usr/bin since it's not a real path. 39722 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39723 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39724 # a path prefixed by /cygdrive for fixpath to work. 39725 new_path="$CYGWIN_ROOT_PATH$input_path" 39726 fi 39727 fi 39728 39729 # remove trailing .exe if any 39730 new_path="${new_path/%.exe/}" 39731 39732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39733 39734 # First separate the path from the arguments. This will split at the first 39735 # space. 39736 complete="$OTOOL" 39737 path="${complete%% *}" 39738 tmp="$complete EOL" 39739 arguments="${tmp#* }" 39740 39741 # Input might be given as Windows format, start by converting to 39742 # unix format. 39743 new_path="$path" 39744 39745 windows_path="$new_path" 39746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39747 unix_path=`$CYGPATH -u "$windows_path"` 39748 new_path="$unix_path" 39749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39751 new_path="$unix_path" 39752 fi 39753 39754 39755 # Now try to locate executable using which 39756 new_path=`$WHICH "$new_path" 2> /dev/null` 39757 39758 if test "x$new_path" = x; then 39759 # Oops. Which didn't find the executable. 39760 # The splitting of arguments from the executable at a space might have been incorrect, 39761 # since paths with space are more likely in Windows. Give it another try with the whole 39762 # argument. 39763 path="$complete" 39764 arguments="EOL" 39765 new_path="$path" 39766 39767 windows_path="$new_path" 39768 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39769 unix_path=`$CYGPATH -u "$windows_path"` 39770 new_path="$unix_path" 39771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39772 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39773 new_path="$unix_path" 39774 fi 39775 39776 39777 new_path=`$WHICH "$new_path" 2> /dev/null` 39778 # bat and cmd files are not always considered executable in MSYS causing which 39779 # to not find them 39780 if test "x$new_path" = x \ 39781 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39782 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39783 new_path="$path" 39784 39785 windows_path="$new_path" 39786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39787 unix_path=`$CYGPATH -u "$windows_path"` 39788 new_path="$unix_path" 39789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39791 new_path="$unix_path" 39792 fi 39793 39794 fi 39795 39796 if test "x$new_path" = x; then 39797 # It's still not found. Now this is an unrecoverable error. 39798 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39799 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39800 has_space=`$ECHO "$complete" | $GREP " "` 39801 if test "x$has_space" != x; then 39802 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39803 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39804 fi 39805 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39806 fi 39807 fi 39808 39809 # Now new_path has a complete unix path to the binary 39810 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39811 # Keep paths in /bin as-is, but remove trailing .exe if any 39812 new_path="${new_path/%.exe/}" 39813 # Do not save /bin paths to all_fixpath_prefixes! 39814 else 39815 # Not in mixed or Windows style, start by that. 39816 new_path=`cmd //c echo $new_path` 39817 39818 input_path="$new_path" 39819 # Check if we need to convert this using DOS-style short mode. If the path 39820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39821 # take no chances and rewrite it. 39822 # Note: m4 eats our [], so we need to use [ and ] instead. 39823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39824 if test "x$has_forbidden_chars" != x; then 39825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39826 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39827 fi 39828 39829 # Output is in $new_path 39830 39831 windows_path="$new_path" 39832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39833 unix_path=`$CYGPATH -u "$windows_path"` 39834 new_path="$unix_path" 39835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39837 new_path="$unix_path" 39838 fi 39839 39840 # remove trailing .exe if any 39841 new_path="${new_path/%.exe/}" 39842 39843 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39844 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39845 fi 39846 39847 else 39848 # We're on a unix platform. Hooray! :) 39849 # First separate the path from the arguments. This will split at the first 39850 # space. 39851 complete="$OTOOL" 39852 path="${complete%% *}" 39853 tmp="$complete EOL" 39854 arguments="${tmp#* }" 39855 39856 # Cannot rely on the command "which" here since it doesn't always work. 39857 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39858 if test -z "$is_absolute_path"; then 39859 # Path to executable is not absolute. Find it. 39860 IFS_save="$IFS" 39861 IFS=: 39862 for p in $PATH; do 39863 if test -f "$p/$path" && test -x "$p/$path"; then 39864 new_path="$p/$path" 39865 break 39866 fi 39867 done 39868 IFS="$IFS_save" 39869 else 39870 # This is an absolute path, we can use it without further modifications. 39871 new_path="$path" 39872 fi 39873 39874 if test "x$new_path" = x; then 39875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39876 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39877 has_space=`$ECHO "$complete" | $GREP " "` 39878 if test "x$has_space" != x; then 39879 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39880 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39881 fi 39882 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39883 fi 39884 fi 39885 39886 # Now join together the path and the arguments once again 39887 if test "x$arguments" != xEOL; then 39888 new_complete="$new_path ${arguments% *}" 39889 else 39890 new_complete="$new_path" 39891 fi 39892 39893 if test "x$complete" != "x$new_complete"; then 39894 OTOOL="$new_complete" 39895 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OTOOL to \"$new_complete\"" >&5 39896 $as_echo "$as_me: Rewriting OTOOL to \"$new_complete\"" >&6;} 39897 fi 39898 fi 39899 39900 39901 39902 39903 # Publish this variable in the help. 39904 39905 39906 if [ -z "${INSTALL_NAME_TOOL+x}" ]; then 39907 # The variable is not set by user, try to locate tool using the code snippet 39908 for ac_prog in install_name_tool 39909 do 39910 # Extract the first word of "$ac_prog", so it can be a program name with args. 39911 set dummy $ac_prog; ac_word=$2 39912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39913 $as_echo_n "checking for $ac_word... " >&6; } 39914 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 39915 $as_echo_n "(cached) " >&6 39916 else 39917 case $INSTALL_NAME_TOOL in 39918 [\\/]* | ?:[\\/]*) 39919 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 39920 ;; 39921 *) 39922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39923 for as_dir in $PATH 39924 do 39925 IFS=$as_save_IFS 39926 test -z "$as_dir" && as_dir=. 39927 for ac_exec_ext in '' $ac_executable_extensions; do 39928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39929 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 39930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39931 break 2 39932 fi 39933 done 39934 done 39935 IFS=$as_save_IFS 39936 39937 ;; 39938 esac 39939 fi 39940 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 39941 if test -n "$INSTALL_NAME_TOOL"; then 39942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 39943 $as_echo "$INSTALL_NAME_TOOL" >&6; } 39944 else 39945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39946 $as_echo "no" >&6; } 39947 fi 39948 39949 39950 test -n "$INSTALL_NAME_TOOL" && break 39951 done 39952 39953 else 39954 # The variable is set, but is it from the command line or the environment? 39955 39956 # Try to remove the string !INSTALL_NAME_TOOL! from our list. 39957 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!INSTALL_NAME_TOOL!/} 39958 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39959 # If it failed, the variable was not from the command line. Ignore it, 39960 # but warn the user (except for BASH, which is always set by the calling BASH). 39961 if test "xINSTALL_NAME_TOOL" != xBASH; then 39962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of INSTALL_NAME_TOOL from the environment. Use command line variables instead." >&5 39963 $as_echo "$as_me: WARNING: Ignoring value of INSTALL_NAME_TOOL from the environment. Use command line variables instead." >&2;} 39964 fi 39965 # Try to locate tool using the code snippet 39966 for ac_prog in install_name_tool 39967 do 39968 # Extract the first word of "$ac_prog", so it can be a program name with args. 39969 set dummy $ac_prog; ac_word=$2 39970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39971 $as_echo_n "checking for $ac_word... " >&6; } 39972 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 39973 $as_echo_n "(cached) " >&6 39974 else 39975 case $INSTALL_NAME_TOOL in 39976 [\\/]* | ?:[\\/]*) 39977 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 39978 ;; 39979 *) 39980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39981 for as_dir in $PATH 39982 do 39983 IFS=$as_save_IFS 39984 test -z "$as_dir" && as_dir=. 39985 for ac_exec_ext in '' $ac_executable_extensions; do 39986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39987 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 39988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39989 break 2 39990 fi 39991 done 39992 done 39993 IFS=$as_save_IFS 39994 39995 ;; 39996 esac 39997 fi 39998 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 39999 if test -n "$INSTALL_NAME_TOOL"; then 40000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 40001 $as_echo "$INSTALL_NAME_TOOL" >&6; } 40002 else 40003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40004 $as_echo "no" >&6; } 40005 fi 40006 40007 40008 test -n "$INSTALL_NAME_TOOL" && break 40009 done 40010 40011 else 40012 # If it succeeded, then it was overridden by the user. We will use it 40013 # for the tool. 40014 40015 # First remove it from the list of overridden variables, so we can test 40016 # for unknown variables in the end. 40017 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40018 40019 # Check if we try to supply an empty value 40020 if test "x$INSTALL_NAME_TOOL" = x; then 40021 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool INSTALL_NAME_TOOL= (no value)" >&5 40022 $as_echo "$as_me: Setting user supplied tool INSTALL_NAME_TOOL= (no value)" >&6;} 40023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INSTALL_NAME_TOOL" >&5 40024 $as_echo_n "checking for INSTALL_NAME_TOOL... " >&6; } 40025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40026 $as_echo "disabled" >&6; } 40027 else 40028 # Check if the provided tool contains a complete path. 40029 tool_specified="$INSTALL_NAME_TOOL" 40030 tool_basename="${tool_specified##*/}" 40031 if test "x$tool_basename" = "x$tool_specified"; then 40032 # A command without a complete path is provided, search $PATH. 40033 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool INSTALL_NAME_TOOL=$tool_basename" >&5 40034 $as_echo "$as_me: Will search for user supplied tool INSTALL_NAME_TOOL=$tool_basename" >&6;} 40035 # Extract the first word of "$tool_basename", so it can be a program name with args. 40036 set dummy $tool_basename; ac_word=$2 40037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40038 $as_echo_n "checking for $ac_word... " >&6; } 40039 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 40040 $as_echo_n "(cached) " >&6 40041 else 40042 case $INSTALL_NAME_TOOL in 40043 [\\/]* | ?:[\\/]*) 40044 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 40045 ;; 40046 *) 40047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40048 for as_dir in $PATH 40049 do 40050 IFS=$as_save_IFS 40051 test -z "$as_dir" && as_dir=. 40052 for ac_exec_ext in '' $ac_executable_extensions; do 40053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40054 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 40055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40056 break 2 40057 fi 40058 done 40059 done 40060 IFS=$as_save_IFS 40061 40062 ;; 40063 esac 40064 fi 40065 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 40066 if test -n "$INSTALL_NAME_TOOL"; then 40067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 40068 $as_echo "$INSTALL_NAME_TOOL" >&6; } 40069 else 40070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40071 $as_echo "no" >&6; } 40072 fi 40073 40074 40075 if test "x$INSTALL_NAME_TOOL" = x; then 40076 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40077 fi 40078 else 40079 # Otherwise we believe it is a complete path. Use it as it is. 40080 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool INSTALL_NAME_TOOL=$tool_specified" >&5 40081 $as_echo "$as_me: Will use user supplied tool INSTALL_NAME_TOOL=$tool_specified" >&6;} 40082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INSTALL_NAME_TOOL" >&5 40083 $as_echo_n "checking for INSTALL_NAME_TOOL... " >&6; } 40084 if test ! -x "$tool_specified"; then 40085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40086 $as_echo "not found" >&6; } 40087 as_fn_error $? "User supplied tool INSTALL_NAME_TOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 40088 fi 40089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40090 $as_echo "$tool_specified" >&6; } 40091 fi 40092 fi 40093 fi 40094 40095 fi 40096 40097 40098 40099 if test "x$INSTALL_NAME_TOOL" = x; then 40100 as_fn_error $? "Could not find required tool for INSTALL_NAME_TOOL" "$LINENO" 5 40101 fi 40102 40103 40104 40105 # Only process if variable expands to non-empty 40106 40107 if test "x$INSTALL_NAME_TOOL" != x; then 40108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40109 40110 # First separate the path from the arguments. This will split at the first 40111 # space. 40112 complete="$INSTALL_NAME_TOOL" 40113 path="${complete%% *}" 40114 tmp="$complete EOL" 40115 arguments="${tmp#* }" 40116 40117 # Input might be given as Windows format, start by converting to 40118 # unix format. 40119 new_path=`$CYGPATH -u "$path"` 40120 40121 # Now try to locate executable using which 40122 new_path=`$WHICH "$new_path" 2> /dev/null` 40123 # bat and cmd files are not always considered executable in cygwin causing which 40124 # to not find them 40125 if test "x$new_path" = x \ 40126 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40127 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40128 new_path=`$CYGPATH -u "$path"` 40129 fi 40130 if test "x$new_path" = x; then 40131 # Oops. Which didn't find the executable. 40132 # The splitting of arguments from the executable at a space might have been incorrect, 40133 # since paths with space are more likely in Windows. Give it another try with the whole 40134 # argument. 40135 path="$complete" 40136 arguments="EOL" 40137 new_path=`$CYGPATH -u "$path"` 40138 new_path=`$WHICH "$new_path" 2> /dev/null` 40139 # bat and cmd files are not always considered executable in cygwin causing which 40140 # to not find them 40141 if test "x$new_path" = x \ 40142 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40143 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40144 new_path=`$CYGPATH -u "$path"` 40145 fi 40146 if test "x$new_path" = x; then 40147 # It's still not found. Now this is an unrecoverable error. 40148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40149 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40150 has_space=`$ECHO "$complete" | $GREP " "` 40151 if test "x$has_space" != x; then 40152 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40153 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40154 fi 40155 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40156 fi 40157 fi 40158 40159 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40160 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40161 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40162 # "foo.exe" is OK but "foo" is an error. 40163 # 40164 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40165 # It is also a way to make sure we got the proper file name for the real test later on. 40166 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40167 if test "x$test_shortpath" = x; then 40168 # Short path failed, file does not exist as specified. 40169 # Try adding .exe or .cmd 40170 if test -f "${new_path}.exe"; then 40171 input_to_shortpath="${new_path}.exe" 40172 elif test -f "${new_path}.cmd"; then 40173 input_to_shortpath="${new_path}.cmd" 40174 else 40175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$new_path\", is invalid." >&5 40176 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$new_path\", is invalid." >&6;} 40177 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40178 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40179 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40180 fi 40181 else 40182 input_to_shortpath="$new_path" 40183 fi 40184 40185 # Call helper function which possibly converts this using DOS-style short mode. 40186 # If so, the updated path is stored in $new_path. 40187 new_path="$input_to_shortpath" 40188 40189 input_path="$input_to_shortpath" 40190 # Check if we need to convert this using DOS-style short mode. If the path 40191 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40192 # take no chances and rewrite it. 40193 # Note: m4 eats our [], so we need to use [ and ] instead. 40194 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40195 if test "x$has_forbidden_chars" != x; then 40196 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40197 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40198 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40199 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40200 # Going to short mode and back again did indeed matter. Since short mode is 40201 # case insensitive, let's make it lowercase to improve readability. 40202 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40203 # Now convert it back to Unix-style (cygpath) 40204 input_path=`$CYGPATH -u "$shortmode_path"` 40205 new_path="$input_path" 40206 fi 40207 fi 40208 40209 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40210 if test "x$test_cygdrive_prefix" = x; then 40211 # As a simple fix, exclude /usr/bin since it's not a real path. 40212 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40213 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40214 # a path prefixed by /cygdrive for fixpath to work. 40215 new_path="$CYGWIN_ROOT_PATH$input_path" 40216 fi 40217 fi 40218 40219 # remove trailing .exe if any 40220 new_path="${new_path/%.exe/}" 40221 40222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40223 40224 # First separate the path from the arguments. This will split at the first 40225 # space. 40226 complete="$INSTALL_NAME_TOOL" 40227 path="${complete%% *}" 40228 tmp="$complete EOL" 40229 arguments="${tmp#* }" 40230 40231 # Input might be given as Windows format, start by converting to 40232 # unix format. 40233 new_path="$path" 40234 40235 windows_path="$new_path" 40236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40237 unix_path=`$CYGPATH -u "$windows_path"` 40238 new_path="$unix_path" 40239 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40240 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40241 new_path="$unix_path" 40242 fi 40243 40244 40245 # Now try to locate executable using which 40246 new_path=`$WHICH "$new_path" 2> /dev/null` 40247 40248 if test "x$new_path" = x; then 40249 # Oops. Which didn't find the executable. 40250 # The splitting of arguments from the executable at a space might have been incorrect, 40251 # since paths with space are more likely in Windows. Give it another try with the whole 40252 # argument. 40253 path="$complete" 40254 arguments="EOL" 40255 new_path="$path" 40256 40257 windows_path="$new_path" 40258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40259 unix_path=`$CYGPATH -u "$windows_path"` 40260 new_path="$unix_path" 40261 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40262 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40263 new_path="$unix_path" 40264 fi 40265 40266 40267 new_path=`$WHICH "$new_path" 2> /dev/null` 40268 # bat and cmd files are not always considered executable in MSYS causing which 40269 # to not find them 40270 if test "x$new_path" = x \ 40271 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40272 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40273 new_path="$path" 40274 40275 windows_path="$new_path" 40276 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40277 unix_path=`$CYGPATH -u "$windows_path"` 40278 new_path="$unix_path" 40279 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40280 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40281 new_path="$unix_path" 40282 fi 40283 40284 fi 40285 40286 if test "x$new_path" = x; then 40287 # It's still not found. Now this is an unrecoverable error. 40288 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40289 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40290 has_space=`$ECHO "$complete" | $GREP " "` 40291 if test "x$has_space" != x; then 40292 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40293 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40294 fi 40295 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40296 fi 40297 fi 40298 40299 # Now new_path has a complete unix path to the binary 40300 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40301 # Keep paths in /bin as-is, but remove trailing .exe if any 40302 new_path="${new_path/%.exe/}" 40303 # Do not save /bin paths to all_fixpath_prefixes! 40304 else 40305 # Not in mixed or Windows style, start by that. 40306 new_path=`cmd //c echo $new_path` 40307 40308 input_path="$new_path" 40309 # Check if we need to convert this using DOS-style short mode. If the path 40310 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40311 # take no chances and rewrite it. 40312 # Note: m4 eats our [], so we need to use [ and ] instead. 40313 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40314 if test "x$has_forbidden_chars" != x; then 40315 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40316 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40317 fi 40318 40319 # Output is in $new_path 40320 40321 windows_path="$new_path" 40322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40323 unix_path=`$CYGPATH -u "$windows_path"` 40324 new_path="$unix_path" 40325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40326 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40327 new_path="$unix_path" 40328 fi 40329 40330 # remove trailing .exe if any 40331 new_path="${new_path/%.exe/}" 40332 40333 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40334 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40335 fi 40336 40337 else 40338 # We're on a unix platform. Hooray! :) 40339 # First separate the path from the arguments. This will split at the first 40340 # space. 40341 complete="$INSTALL_NAME_TOOL" 40342 path="${complete%% *}" 40343 tmp="$complete EOL" 40344 arguments="${tmp#* }" 40345 40346 # Cannot rely on the command "which" here since it doesn't always work. 40347 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40348 if test -z "$is_absolute_path"; then 40349 # Path to executable is not absolute. Find it. 40350 IFS_save="$IFS" 40351 IFS=: 40352 for p in $PATH; do 40353 if test -f "$p/$path" && test -x "$p/$path"; then 40354 new_path="$p/$path" 40355 break 40356 fi 40357 done 40358 IFS="$IFS_save" 40359 else 40360 # This is an absolute path, we can use it without further modifications. 40361 new_path="$path" 40362 fi 40363 40364 if test "x$new_path" = x; then 40365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40366 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40367 has_space=`$ECHO "$complete" | $GREP " "` 40368 if test "x$has_space" != x; then 40369 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40370 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40371 fi 40372 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40373 fi 40374 fi 40375 40376 # Now join together the path and the arguments once again 40377 if test "x$arguments" != xEOL; then 40378 new_complete="$new_path ${arguments% *}" 40379 else 40380 new_complete="$new_path" 40381 fi 40382 40383 if test "x$complete" != "x$new_complete"; then 40384 INSTALL_NAME_TOOL="$new_complete" 40385 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting INSTALL_NAME_TOOL to \"$new_complete\"" >&5 40386 $as_echo "$as_me: Rewriting INSTALL_NAME_TOOL to \"$new_complete\"" >&6;} 40387 fi 40388 fi 40389 40390 fi 40391 40392 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40393 # Extract the first word of "mt", so it can be a program name with args. 40394 set dummy mt; ac_word=$2 40395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40396 $as_echo_n "checking for $ac_word... " >&6; } 40397 if ${ac_cv_prog_MT+:} false; then : 40398 $as_echo_n "(cached) " >&6 40399 else 40400 if test -n "$MT"; then 40401 ac_cv_prog_MT="$MT" # Let the user override the test. 40402 else 40403 ac_prog_rejected=no 40404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40405 for as_dir in $PATH 40406 do 40407 IFS=$as_save_IFS 40408 test -z "$as_dir" && as_dir=. 40409 for ac_exec_ext in '' $ac_executable_extensions; do 40410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 40412 ac_prog_rejected=yes 40413 continue 40414 fi 40415 ac_cv_prog_MT="mt" 40416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40417 break 2 40418 fi 40419 done 40420 done 40421 IFS=$as_save_IFS 40422 40423 if test $ac_prog_rejected = yes; then 40424 # We found a bogon in the path, so make sure we never use it. 40425 set dummy $ac_cv_prog_MT 40426 shift 40427 if test $# != 0; then 40428 # We chose a different compiler from the bogus one. 40429 # However, it has the same basename, so the bogon will be chosen 40430 # first if we set MT to just the basename; use the full file name. 40431 shift 40432 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 40433 fi 40434 fi 40435 fi 40436 fi 40437 MT=$ac_cv_prog_MT 40438 if test -n "$MT"; then 40439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 40440 $as_echo "$MT" >&6; } 40441 else 40442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40443 $as_echo "no" >&6; } 40444 fi 40445 40446 40447 40448 # Only process if variable expands to non-empty 40449 40450 if test "x$MT" != x; then 40451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40452 40453 # First separate the path from the arguments. This will split at the first 40454 # space. 40455 complete="$MT" 40456 path="${complete%% *}" 40457 tmp="$complete EOL" 40458 arguments="${tmp#* }" 40459 40460 # Input might be given as Windows format, start by converting to 40461 # unix format. 40462 new_path=`$CYGPATH -u "$path"` 40463 40464 # Now try to locate executable using which 40465 new_path=`$WHICH "$new_path" 2> /dev/null` 40466 # bat and cmd files are not always considered executable in cygwin causing which 40467 # to not find them 40468 if test "x$new_path" = x \ 40469 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40470 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40471 new_path=`$CYGPATH -u "$path"` 40472 fi 40473 if test "x$new_path" = x; then 40474 # Oops. Which didn't find the executable. 40475 # The splitting of arguments from the executable at a space might have been incorrect, 40476 # since paths with space are more likely in Windows. Give it another try with the whole 40477 # argument. 40478 path="$complete" 40479 arguments="EOL" 40480 new_path=`$CYGPATH -u "$path"` 40481 new_path=`$WHICH "$new_path" 2> /dev/null` 40482 # bat and cmd files are not always considered executable in cygwin causing which 40483 # to not find them 40484 if test "x$new_path" = x \ 40485 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40486 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40487 new_path=`$CYGPATH -u "$path"` 40488 fi 40489 if test "x$new_path" = x; then 40490 # It's still not found. Now this is an unrecoverable error. 40491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40492 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40493 has_space=`$ECHO "$complete" | $GREP " "` 40494 if test "x$has_space" != x; then 40495 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40496 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40497 fi 40498 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40499 fi 40500 fi 40501 40502 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40503 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40504 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40505 # "foo.exe" is OK but "foo" is an error. 40506 # 40507 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40508 # It is also a way to make sure we got the proper file name for the real test later on. 40509 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40510 if test "x$test_shortpath" = x; then 40511 # Short path failed, file does not exist as specified. 40512 # Try adding .exe or .cmd 40513 if test -f "${new_path}.exe"; then 40514 input_to_shortpath="${new_path}.exe" 40515 elif test -f "${new_path}.cmd"; then 40516 input_to_shortpath="${new_path}.cmd" 40517 else 40518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 40519 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 40520 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40521 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40522 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40523 fi 40524 else 40525 input_to_shortpath="$new_path" 40526 fi 40527 40528 # Call helper function which possibly converts this using DOS-style short mode. 40529 # If so, the updated path is stored in $new_path. 40530 new_path="$input_to_shortpath" 40531 40532 input_path="$input_to_shortpath" 40533 # Check if we need to convert this using DOS-style short mode. If the path 40534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40535 # take no chances and rewrite it. 40536 # Note: m4 eats our [], so we need to use [ and ] instead. 40537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40538 if test "x$has_forbidden_chars" != x; then 40539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40540 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40541 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40542 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40543 # Going to short mode and back again did indeed matter. Since short mode is 40544 # case insensitive, let's make it lowercase to improve readability. 40545 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40546 # Now convert it back to Unix-style (cygpath) 40547 input_path=`$CYGPATH -u "$shortmode_path"` 40548 new_path="$input_path" 40549 fi 40550 fi 40551 40552 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40553 if test "x$test_cygdrive_prefix" = x; then 40554 # As a simple fix, exclude /usr/bin since it's not a real path. 40555 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40556 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40557 # a path prefixed by /cygdrive for fixpath to work. 40558 new_path="$CYGWIN_ROOT_PATH$input_path" 40559 fi 40560 fi 40561 40562 # remove trailing .exe if any 40563 new_path="${new_path/%.exe/}" 40564 40565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40566 40567 # First separate the path from the arguments. This will split at the first 40568 # space. 40569 complete="$MT" 40570 path="${complete%% *}" 40571 tmp="$complete EOL" 40572 arguments="${tmp#* }" 40573 40574 # Input might be given as Windows format, start by converting to 40575 # unix format. 40576 new_path="$path" 40577 40578 windows_path="$new_path" 40579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40580 unix_path=`$CYGPATH -u "$windows_path"` 40581 new_path="$unix_path" 40582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40583 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40584 new_path="$unix_path" 40585 fi 40586 40587 40588 # Now try to locate executable using which 40589 new_path=`$WHICH "$new_path" 2> /dev/null` 40590 40591 if test "x$new_path" = x; then 40592 # Oops. Which didn't find the executable. 40593 # The splitting of arguments from the executable at a space might have been incorrect, 40594 # since paths with space are more likely in Windows. Give it another try with the whole 40595 # argument. 40596 path="$complete" 40597 arguments="EOL" 40598 new_path="$path" 40599 40600 windows_path="$new_path" 40601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40602 unix_path=`$CYGPATH -u "$windows_path"` 40603 new_path="$unix_path" 40604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40605 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40606 new_path="$unix_path" 40607 fi 40608 40609 40610 new_path=`$WHICH "$new_path" 2> /dev/null` 40611 # bat and cmd files are not always considered executable in MSYS causing which 40612 # to not find them 40613 if test "x$new_path" = x \ 40614 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40615 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40616 new_path="$path" 40617 40618 windows_path="$new_path" 40619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40620 unix_path=`$CYGPATH -u "$windows_path"` 40621 new_path="$unix_path" 40622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40623 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40624 new_path="$unix_path" 40625 fi 40626 40627 fi 40628 40629 if test "x$new_path" = x; then 40630 # It's still not found. Now this is an unrecoverable error. 40631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40632 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40633 has_space=`$ECHO "$complete" | $GREP " "` 40634 if test "x$has_space" != x; then 40635 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40636 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40637 fi 40638 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40639 fi 40640 fi 40641 40642 # Now new_path has a complete unix path to the binary 40643 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40644 # Keep paths in /bin as-is, but remove trailing .exe if any 40645 new_path="${new_path/%.exe/}" 40646 # Do not save /bin paths to all_fixpath_prefixes! 40647 else 40648 # Not in mixed or Windows style, start by that. 40649 new_path=`cmd //c echo $new_path` 40650 40651 input_path="$new_path" 40652 # Check if we need to convert this using DOS-style short mode. If the path 40653 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40654 # take no chances and rewrite it. 40655 # Note: m4 eats our [], so we need to use [ and ] instead. 40656 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40657 if test "x$has_forbidden_chars" != x; then 40658 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40659 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40660 fi 40661 40662 # Output is in $new_path 40663 40664 windows_path="$new_path" 40665 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40666 unix_path=`$CYGPATH -u "$windows_path"` 40667 new_path="$unix_path" 40668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40669 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40670 new_path="$unix_path" 40671 fi 40672 40673 # remove trailing .exe if any 40674 new_path="${new_path/%.exe/}" 40675 40676 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40677 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40678 fi 40679 40680 else 40681 # We're on a unix platform. Hooray! :) 40682 # First separate the path from the arguments. This will split at the first 40683 # space. 40684 complete="$MT" 40685 path="${complete%% *}" 40686 tmp="$complete EOL" 40687 arguments="${tmp#* }" 40688 40689 # Cannot rely on the command "which" here since it doesn't always work. 40690 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40691 if test -z "$is_absolute_path"; then 40692 # Path to executable is not absolute. Find it. 40693 IFS_save="$IFS" 40694 IFS=: 40695 for p in $PATH; do 40696 if test -f "$p/$path" && test -x "$p/$path"; then 40697 new_path="$p/$path" 40698 break 40699 fi 40700 done 40701 IFS="$IFS_save" 40702 else 40703 # This is an absolute path, we can use it without further modifications. 40704 new_path="$path" 40705 fi 40706 40707 if test "x$new_path" = x; then 40708 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40709 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40710 has_space=`$ECHO "$complete" | $GREP " "` 40711 if test "x$has_space" != x; then 40712 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40713 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40714 fi 40715 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40716 fi 40717 fi 40718 40719 # Now join together the path and the arguments once again 40720 if test "x$arguments" != xEOL; then 40721 new_complete="$new_path ${arguments% *}" 40722 else 40723 new_complete="$new_path" 40724 fi 40725 40726 if test "x$complete" != "x$new_complete"; then 40727 MT="$new_complete" 40728 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 40729 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 40730 fi 40731 fi 40732 40733 # Setup the resource compiler (RC) 40734 # Extract the first word of "rc", so it can be a program name with args. 40735 set dummy rc; ac_word=$2 40736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40737 $as_echo_n "checking for $ac_word... " >&6; } 40738 if ${ac_cv_prog_RC+:} false; then : 40739 $as_echo_n "(cached) " >&6 40740 else 40741 if test -n "$RC"; then 40742 ac_cv_prog_RC="$RC" # Let the user override the test. 40743 else 40744 ac_prog_rejected=no 40745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40746 for as_dir in $PATH 40747 do 40748 IFS=$as_save_IFS 40749 test -z "$as_dir" && as_dir=. 40750 for ac_exec_ext in '' $ac_executable_extensions; do 40751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 40753 ac_prog_rejected=yes 40754 continue 40755 fi 40756 ac_cv_prog_RC="rc" 40757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40758 break 2 40759 fi 40760 done 40761 done 40762 IFS=$as_save_IFS 40763 40764 if test $ac_prog_rejected = yes; then 40765 # We found a bogon in the path, so make sure we never use it. 40766 set dummy $ac_cv_prog_RC 40767 shift 40768 if test $# != 0; then 40769 # We chose a different compiler from the bogus one. 40770 # However, it has the same basename, so the bogon will be chosen 40771 # first if we set RC to just the basename; use the full file name. 40772 shift 40773 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 40774 fi 40775 fi 40776 fi 40777 fi 40778 RC=$ac_cv_prog_RC 40779 if test -n "$RC"; then 40780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 40781 $as_echo "$RC" >&6; } 40782 else 40783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40784 $as_echo "no" >&6; } 40785 fi 40786 40787 40788 40789 # Only process if variable expands to non-empty 40790 40791 if test "x$RC" != x; then 40792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40793 40794 # First separate the path from the arguments. This will split at the first 40795 # space. 40796 complete="$RC" 40797 path="${complete%% *}" 40798 tmp="$complete EOL" 40799 arguments="${tmp#* }" 40800 40801 # Input might be given as Windows format, start by converting to 40802 # unix format. 40803 new_path=`$CYGPATH -u "$path"` 40804 40805 # Now try to locate executable using which 40806 new_path=`$WHICH "$new_path" 2> /dev/null` 40807 # bat and cmd files are not always considered executable in cygwin causing which 40808 # to not find them 40809 if test "x$new_path" = x \ 40810 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40811 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40812 new_path=`$CYGPATH -u "$path"` 40813 fi 40814 if test "x$new_path" = x; then 40815 # Oops. Which didn't find the executable. 40816 # The splitting of arguments from the executable at a space might have been incorrect, 40817 # since paths with space are more likely in Windows. Give it another try with the whole 40818 # argument. 40819 path="$complete" 40820 arguments="EOL" 40821 new_path=`$CYGPATH -u "$path"` 40822 new_path=`$WHICH "$new_path" 2> /dev/null` 40823 # bat and cmd files are not always considered executable in cygwin causing which 40824 # to not find them 40825 if test "x$new_path" = x \ 40826 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40827 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40828 new_path=`$CYGPATH -u "$path"` 40829 fi 40830 if test "x$new_path" = x; then 40831 # It's still not found. Now this is an unrecoverable error. 40832 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40833 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40834 has_space=`$ECHO "$complete" | $GREP " "` 40835 if test "x$has_space" != x; then 40836 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40837 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40838 fi 40839 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40840 fi 40841 fi 40842 40843 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40844 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40845 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40846 # "foo.exe" is OK but "foo" is an error. 40847 # 40848 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40849 # It is also a way to make sure we got the proper file name for the real test later on. 40850 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40851 if test "x$test_shortpath" = x; then 40852 # Short path failed, file does not exist as specified. 40853 # Try adding .exe or .cmd 40854 if test -f "${new_path}.exe"; then 40855 input_to_shortpath="${new_path}.exe" 40856 elif test -f "${new_path}.cmd"; then 40857 input_to_shortpath="${new_path}.cmd" 40858 else 40859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 40860 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 40861 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40862 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40863 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40864 fi 40865 else 40866 input_to_shortpath="$new_path" 40867 fi 40868 40869 # Call helper function which possibly converts this using DOS-style short mode. 40870 # If so, the updated path is stored in $new_path. 40871 new_path="$input_to_shortpath" 40872 40873 input_path="$input_to_shortpath" 40874 # Check if we need to convert this using DOS-style short mode. If the path 40875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40876 # take no chances and rewrite it. 40877 # Note: m4 eats our [], so we need to use [ and ] instead. 40878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40879 if test "x$has_forbidden_chars" != x; then 40880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40881 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40882 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40883 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40884 # Going to short mode and back again did indeed matter. Since short mode is 40885 # case insensitive, let's make it lowercase to improve readability. 40886 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40887 # Now convert it back to Unix-style (cygpath) 40888 input_path=`$CYGPATH -u "$shortmode_path"` 40889 new_path="$input_path" 40890 fi 40891 fi 40892 40893 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40894 if test "x$test_cygdrive_prefix" = x; then 40895 # As a simple fix, exclude /usr/bin since it's not a real path. 40896 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40897 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40898 # a path prefixed by /cygdrive for fixpath to work. 40899 new_path="$CYGWIN_ROOT_PATH$input_path" 40900 fi 40901 fi 40902 40903 # remove trailing .exe if any 40904 new_path="${new_path/%.exe/}" 40905 40906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40907 40908 # First separate the path from the arguments. This will split at the first 40909 # space. 40910 complete="$RC" 40911 path="${complete%% *}" 40912 tmp="$complete EOL" 40913 arguments="${tmp#* }" 40914 40915 # Input might be given as Windows format, start by converting to 40916 # unix format. 40917 new_path="$path" 40918 40919 windows_path="$new_path" 40920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40921 unix_path=`$CYGPATH -u "$windows_path"` 40922 new_path="$unix_path" 40923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40924 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40925 new_path="$unix_path" 40926 fi 40927 40928 40929 # Now try to locate executable using which 40930 new_path=`$WHICH "$new_path" 2> /dev/null` 40931 40932 if test "x$new_path" = x; then 40933 # Oops. Which didn't find the executable. 40934 # The splitting of arguments from the executable at a space might have been incorrect, 40935 # since paths with space are more likely in Windows. Give it another try with the whole 40936 # argument. 40937 path="$complete" 40938 arguments="EOL" 40939 new_path="$path" 40940 40941 windows_path="$new_path" 40942 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40943 unix_path=`$CYGPATH -u "$windows_path"` 40944 new_path="$unix_path" 40945 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40946 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40947 new_path="$unix_path" 40948 fi 40949 40950 40951 new_path=`$WHICH "$new_path" 2> /dev/null` 40952 # bat and cmd files are not always considered executable in MSYS causing which 40953 # to not find them 40954 if test "x$new_path" = x \ 40955 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40956 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40957 new_path="$path" 40958 40959 windows_path="$new_path" 40960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40961 unix_path=`$CYGPATH -u "$windows_path"` 40962 new_path="$unix_path" 40963 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40964 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40965 new_path="$unix_path" 40966 fi 40967 40968 fi 40969 40970 if test "x$new_path" = x; then 40971 # It's still not found. Now this is an unrecoverable error. 40972 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40973 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40974 has_space=`$ECHO "$complete" | $GREP " "` 40975 if test "x$has_space" != x; then 40976 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40977 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40978 fi 40979 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40980 fi 40981 fi 40982 40983 # Now new_path has a complete unix path to the binary 40984 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40985 # Keep paths in /bin as-is, but remove trailing .exe if any 40986 new_path="${new_path/%.exe/}" 40987 # Do not save /bin paths to all_fixpath_prefixes! 40988 else 40989 # Not in mixed or Windows style, start by that. 40990 new_path=`cmd //c echo $new_path` 40991 40992 input_path="$new_path" 40993 # Check if we need to convert this using DOS-style short mode. If the path 40994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40995 # take no chances and rewrite it. 40996 # Note: m4 eats our [], so we need to use [ and ] instead. 40997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40998 if test "x$has_forbidden_chars" != x; then 40999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41000 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41001 fi 41002 41003 # Output is in $new_path 41004 41005 windows_path="$new_path" 41006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41007 unix_path=`$CYGPATH -u "$windows_path"` 41008 new_path="$unix_path" 41009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41010 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41011 new_path="$unix_path" 41012 fi 41013 41014 # remove trailing .exe if any 41015 new_path="${new_path/%.exe/}" 41016 41017 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41018 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41019 fi 41020 41021 else 41022 # We're on a unix platform. Hooray! :) 41023 # First separate the path from the arguments. This will split at the first 41024 # space. 41025 complete="$RC" 41026 path="${complete%% *}" 41027 tmp="$complete EOL" 41028 arguments="${tmp#* }" 41029 41030 # Cannot rely on the command "which" here since it doesn't always work. 41031 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41032 if test -z "$is_absolute_path"; then 41033 # Path to executable is not absolute. Find it. 41034 IFS_save="$IFS" 41035 IFS=: 41036 for p in $PATH; do 41037 if test -f "$p/$path" && test -x "$p/$path"; then 41038 new_path="$p/$path" 41039 break 41040 fi 41041 done 41042 IFS="$IFS_save" 41043 else 41044 # This is an absolute path, we can use it without further modifications. 41045 new_path="$path" 41046 fi 41047 41048 if test "x$new_path" = x; then 41049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 41050 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 41051 has_space=`$ECHO "$complete" | $GREP " "` 41052 if test "x$has_space" != x; then 41053 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41054 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41055 fi 41056 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 41057 fi 41058 fi 41059 41060 # Now join together the path and the arguments once again 41061 if test "x$arguments" != xEOL; then 41062 new_complete="$new_path ${arguments% *}" 41063 else 41064 new_complete="$new_path" 41065 fi 41066 41067 if test "x$complete" != "x$new_complete"; then 41068 RC="$new_complete" 41069 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 41070 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 41071 fi 41072 fi 41073 41074 # Extract the first word of "dumpbin", so it can be a program name with args. 41075 set dummy dumpbin; ac_word=$2 41076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41077 $as_echo_n "checking for $ac_word... " >&6; } 41078 if ${ac_cv_prog_DUMPBIN+:} false; then : 41079 $as_echo_n "(cached) " >&6 41080 else 41081 if test -n "$DUMPBIN"; then 41082 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 41083 else 41084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41085 for as_dir in $PATH 41086 do 41087 IFS=$as_save_IFS 41088 test -z "$as_dir" && as_dir=. 41089 for ac_exec_ext in '' $ac_executable_extensions; do 41090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41091 ac_cv_prog_DUMPBIN="dumpbin" 41092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41093 break 2 41094 fi 41095 done 41096 done 41097 IFS=$as_save_IFS 41098 41099 fi 41100 fi 41101 DUMPBIN=$ac_cv_prog_DUMPBIN 41102 if test -n "$DUMPBIN"; then 41103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 41104 $as_echo "$DUMPBIN" >&6; } 41105 else 41106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41107 $as_echo "no" >&6; } 41108 fi 41109 41110 41111 41112 # Only process if variable expands to non-empty 41113 41114 if test "x$DUMPBIN" != x; then 41115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41116 41117 # First separate the path from the arguments. This will split at the first 41118 # space. 41119 complete="$DUMPBIN" 41120 path="${complete%% *}" 41121 tmp="$complete EOL" 41122 arguments="${tmp#* }" 41123 41124 # Input might be given as Windows format, start by converting to 41125 # unix format. 41126 new_path=`$CYGPATH -u "$path"` 41127 41128 # Now try to locate executable using which 41129 new_path=`$WHICH "$new_path" 2> /dev/null` 41130 # bat and cmd files are not always considered executable in cygwin causing which 41131 # to not find them 41132 if test "x$new_path" = x \ 41133 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41134 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41135 new_path=`$CYGPATH -u "$path"` 41136 fi 41137 if test "x$new_path" = x; then 41138 # Oops. Which didn't find the executable. 41139 # The splitting of arguments from the executable at a space might have been incorrect, 41140 # since paths with space are more likely in Windows. Give it another try with the whole 41141 # argument. 41142 path="$complete" 41143 arguments="EOL" 41144 new_path=`$CYGPATH -u "$path"` 41145 new_path=`$WHICH "$new_path" 2> /dev/null` 41146 # bat and cmd files are not always considered executable in cygwin causing which 41147 # to not find them 41148 if test "x$new_path" = x \ 41149 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41150 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41151 new_path=`$CYGPATH -u "$path"` 41152 fi 41153 if test "x$new_path" = x; then 41154 # It's still not found. Now this is an unrecoverable error. 41155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41156 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41157 has_space=`$ECHO "$complete" | $GREP " "` 41158 if test "x$has_space" != x; then 41159 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41160 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41161 fi 41162 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41163 fi 41164 fi 41165 41166 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41167 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41168 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41169 # "foo.exe" is OK but "foo" is an error. 41170 # 41171 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41172 # It is also a way to make sure we got the proper file name for the real test later on. 41173 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41174 if test "x$test_shortpath" = x; then 41175 # Short path failed, file does not exist as specified. 41176 # Try adding .exe or .cmd 41177 if test -f "${new_path}.exe"; then 41178 input_to_shortpath="${new_path}.exe" 41179 elif test -f "${new_path}.cmd"; then 41180 input_to_shortpath="${new_path}.cmd" 41181 else 41182 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 41183 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 41184 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41185 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41186 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41187 fi 41188 else 41189 input_to_shortpath="$new_path" 41190 fi 41191 41192 # Call helper function which possibly converts this using DOS-style short mode. 41193 # If so, the updated path is stored in $new_path. 41194 new_path="$input_to_shortpath" 41195 41196 input_path="$input_to_shortpath" 41197 # Check if we need to convert this using DOS-style short mode. If the path 41198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41199 # take no chances and rewrite it. 41200 # Note: m4 eats our [], so we need to use [ and ] instead. 41201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41202 if test "x$has_forbidden_chars" != x; then 41203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41204 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41205 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41206 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41207 # Going to short mode and back again did indeed matter. Since short mode is 41208 # case insensitive, let's make it lowercase to improve readability. 41209 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41210 # Now convert it back to Unix-style (cygpath) 41211 input_path=`$CYGPATH -u "$shortmode_path"` 41212 new_path="$input_path" 41213 fi 41214 fi 41215 41216 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41217 if test "x$test_cygdrive_prefix" = x; then 41218 # As a simple fix, exclude /usr/bin since it's not a real path. 41219 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41220 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41221 # a path prefixed by /cygdrive for fixpath to work. 41222 new_path="$CYGWIN_ROOT_PATH$input_path" 41223 fi 41224 fi 41225 41226 # remove trailing .exe if any 41227 new_path="${new_path/%.exe/}" 41228 41229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41230 41231 # First separate the path from the arguments. This will split at the first 41232 # space. 41233 complete="$DUMPBIN" 41234 path="${complete%% *}" 41235 tmp="$complete EOL" 41236 arguments="${tmp#* }" 41237 41238 # Input might be given as Windows format, start by converting to 41239 # unix format. 41240 new_path="$path" 41241 41242 windows_path="$new_path" 41243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41244 unix_path=`$CYGPATH -u "$windows_path"` 41245 new_path="$unix_path" 41246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41247 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41248 new_path="$unix_path" 41249 fi 41250 41251 41252 # Now try to locate executable using which 41253 new_path=`$WHICH "$new_path" 2> /dev/null` 41254 41255 if test "x$new_path" = x; then 41256 # Oops. Which didn't find the executable. 41257 # The splitting of arguments from the executable at a space might have been incorrect, 41258 # since paths with space are more likely in Windows. Give it another try with the whole 41259 # argument. 41260 path="$complete" 41261 arguments="EOL" 41262 new_path="$path" 41263 41264 windows_path="$new_path" 41265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41266 unix_path=`$CYGPATH -u "$windows_path"` 41267 new_path="$unix_path" 41268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41269 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41270 new_path="$unix_path" 41271 fi 41272 41273 41274 new_path=`$WHICH "$new_path" 2> /dev/null` 41275 # bat and cmd files are not always considered executable in MSYS causing which 41276 # to not find them 41277 if test "x$new_path" = x \ 41278 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41279 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41280 new_path="$path" 41281 41282 windows_path="$new_path" 41283 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41284 unix_path=`$CYGPATH -u "$windows_path"` 41285 new_path="$unix_path" 41286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41287 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41288 new_path="$unix_path" 41289 fi 41290 41291 fi 41292 41293 if test "x$new_path" = x; then 41294 # It's still not found. Now this is an unrecoverable error. 41295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41296 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41297 has_space=`$ECHO "$complete" | $GREP " "` 41298 if test "x$has_space" != x; then 41299 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41300 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41301 fi 41302 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41303 fi 41304 fi 41305 41306 # Now new_path has a complete unix path to the binary 41307 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41308 # Keep paths in /bin as-is, but remove trailing .exe if any 41309 new_path="${new_path/%.exe/}" 41310 # Do not save /bin paths to all_fixpath_prefixes! 41311 else 41312 # Not in mixed or Windows style, start by that. 41313 new_path=`cmd //c echo $new_path` 41314 41315 input_path="$new_path" 41316 # Check if we need to convert this using DOS-style short mode. If the path 41317 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41318 # take no chances and rewrite it. 41319 # Note: m4 eats our [], so we need to use [ and ] instead. 41320 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41321 if test "x$has_forbidden_chars" != x; then 41322 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41323 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41324 fi 41325 41326 # Output is in $new_path 41327 41328 windows_path="$new_path" 41329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41330 unix_path=`$CYGPATH -u "$windows_path"` 41331 new_path="$unix_path" 41332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41333 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41334 new_path="$unix_path" 41335 fi 41336 41337 # remove trailing .exe if any 41338 new_path="${new_path/%.exe/}" 41339 41340 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41341 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41342 fi 41343 41344 else 41345 # We're on a unix platform. Hooray! :) 41346 # First separate the path from the arguments. This will split at the first 41347 # space. 41348 complete="$DUMPBIN" 41349 path="${complete%% *}" 41350 tmp="$complete EOL" 41351 arguments="${tmp#* }" 41352 41353 # Cannot rely on the command "which" here since it doesn't always work. 41354 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41355 if test -z "$is_absolute_path"; then 41356 # Path to executable is not absolute. Find it. 41357 IFS_save="$IFS" 41358 IFS=: 41359 for p in $PATH; do 41360 if test -f "$p/$path" && test -x "$p/$path"; then 41361 new_path="$p/$path" 41362 break 41363 fi 41364 done 41365 IFS="$IFS_save" 41366 else 41367 # This is an absolute path, we can use it without further modifications. 41368 new_path="$path" 41369 fi 41370 41371 if test "x$new_path" = x; then 41372 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41373 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41374 has_space=`$ECHO "$complete" | $GREP " "` 41375 if test "x$has_space" != x; then 41376 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41377 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41378 fi 41379 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41380 fi 41381 fi 41382 41383 # Now join together the path and the arguments once again 41384 if test "x$arguments" != xEOL; then 41385 new_complete="$new_path ${arguments% *}" 41386 else 41387 new_complete="$new_path" 41388 fi 41389 41390 if test "x$complete" != "x$new_complete"; then 41391 DUMPBIN="$new_complete" 41392 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 41393 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 41394 fi 41395 fi 41396 41397 # We need to check for 'msbuild.exe' because at the place where we expect to 41398 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 41399 # won't find the 'msbuild.exe' executable in that case (and the 41400 # 'ac_executable_extensions' is unusable due to performance reasons). 41401 # Notice that we intentionally don't fix up the path to MSBUILD because we 41402 # will call it in a DOS shell during freetype detection on Windows (see 41403 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 41404 # Extract the first word of "msbuild.exe", so it can be a program name with args. 41405 set dummy msbuild.exe; ac_word=$2 41406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41407 $as_echo_n "checking for $ac_word... " >&6; } 41408 if ${ac_cv_prog_MSBUILD+:} false; then : 41409 $as_echo_n "(cached) " >&6 41410 else 41411 if test -n "$MSBUILD"; then 41412 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 41413 else 41414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41415 for as_dir in $PATH 41416 do 41417 IFS=$as_save_IFS 41418 test -z "$as_dir" && as_dir=. 41419 for ac_exec_ext in '' $ac_executable_extensions; do 41420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41421 ac_cv_prog_MSBUILD="msbuild.exe" 41422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41423 break 2 41424 fi 41425 done 41426 done 41427 IFS=$as_save_IFS 41428 41429 fi 41430 fi 41431 MSBUILD=$ac_cv_prog_MSBUILD 41432 if test -n "$MSBUILD"; then 41433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 41434 $as_echo "$MSBUILD" >&6; } 41435 else 41436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41437 $as_echo "no" >&6; } 41438 fi 41439 41440 41441 fi 41442 41443 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41444 41445 41446 # Publish this variable in the help. 41447 41448 41449 if [ -z "${STRIP+x}" ]; then 41450 # The variable is not set by user, try to locate tool using the code snippet 41451 for ac_prog in strip 41452 do 41453 # Extract the first word of "$ac_prog", so it can be a program name with args. 41454 set dummy $ac_prog; ac_word=$2 41455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41456 $as_echo_n "checking for $ac_word... " >&6; } 41457 if ${ac_cv_path_STRIP+:} false; then : 41458 $as_echo_n "(cached) " >&6 41459 else 41460 case $STRIP in 41461 [\\/]* | ?:[\\/]*) 41462 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41463 ;; 41464 *) 41465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41466 for as_dir in $PATH 41467 do 41468 IFS=$as_save_IFS 41469 test -z "$as_dir" && as_dir=. 41470 for ac_exec_ext in '' $ac_executable_extensions; do 41471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41472 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41474 break 2 41475 fi 41476 done 41477 done 41478 IFS=$as_save_IFS 41479 41480 ;; 41481 esac 41482 fi 41483 STRIP=$ac_cv_path_STRIP 41484 if test -n "$STRIP"; then 41485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41486 $as_echo "$STRIP" >&6; } 41487 else 41488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41489 $as_echo "no" >&6; } 41490 fi 41491 41492 41493 test -n "$STRIP" && break 41494 done 41495 41496 else 41497 # The variable is set, but is it from the command line or the environment? 41498 41499 # Try to remove the string !STRIP! from our list. 41500 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 41501 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41502 # If it failed, the variable was not from the command line. Ignore it, 41503 # but warn the user (except for BASH, which is always set by the calling BASH). 41504 if test "xSTRIP" != xBASH; then 41505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 41506 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 41507 fi 41508 # Try to locate tool using the code snippet 41509 for ac_prog in strip 41510 do 41511 # Extract the first word of "$ac_prog", so it can be a program name with args. 41512 set dummy $ac_prog; ac_word=$2 41513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41514 $as_echo_n "checking for $ac_word... " >&6; } 41515 if ${ac_cv_path_STRIP+:} false; then : 41516 $as_echo_n "(cached) " >&6 41517 else 41518 case $STRIP in 41519 [\\/]* | ?:[\\/]*) 41520 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41521 ;; 41522 *) 41523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41524 for as_dir in $PATH 41525 do 41526 IFS=$as_save_IFS 41527 test -z "$as_dir" && as_dir=. 41528 for ac_exec_ext in '' $ac_executable_extensions; do 41529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41530 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41532 break 2 41533 fi 41534 done 41535 done 41536 IFS=$as_save_IFS 41537 41538 ;; 41539 esac 41540 fi 41541 STRIP=$ac_cv_path_STRIP 41542 if test -n "$STRIP"; then 41543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41544 $as_echo "$STRIP" >&6; } 41545 else 41546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41547 $as_echo "no" >&6; } 41548 fi 41549 41550 41551 test -n "$STRIP" && break 41552 done 41553 41554 else 41555 # If it succeeded, then it was overridden by the user. We will use it 41556 # for the tool. 41557 41558 # First remove it from the list of overridden variables, so we can test 41559 # for unknown variables in the end. 41560 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41561 41562 # Check if we try to supply an empty value 41563 if test "x$STRIP" = x; then 41564 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 41565 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 41566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41567 $as_echo_n "checking for STRIP... " >&6; } 41568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41569 $as_echo "disabled" >&6; } 41570 else 41571 # Check if the provided tool contains a complete path. 41572 tool_specified="$STRIP" 41573 tool_basename="${tool_specified##*/}" 41574 if test "x$tool_basename" = "x$tool_specified"; then 41575 # A command without a complete path is provided, search $PATH. 41576 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 41577 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 41578 # Extract the first word of "$tool_basename", so it can be a program name with args. 41579 set dummy $tool_basename; ac_word=$2 41580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41581 $as_echo_n "checking for $ac_word... " >&6; } 41582 if ${ac_cv_path_STRIP+:} false; then : 41583 $as_echo_n "(cached) " >&6 41584 else 41585 case $STRIP in 41586 [\\/]* | ?:[\\/]*) 41587 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41588 ;; 41589 *) 41590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41591 for as_dir in $PATH 41592 do 41593 IFS=$as_save_IFS 41594 test -z "$as_dir" && as_dir=. 41595 for ac_exec_ext in '' $ac_executable_extensions; do 41596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41597 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41599 break 2 41600 fi 41601 done 41602 done 41603 IFS=$as_save_IFS 41604 41605 ;; 41606 esac 41607 fi 41608 STRIP=$ac_cv_path_STRIP 41609 if test -n "$STRIP"; then 41610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41611 $as_echo "$STRIP" >&6; } 41612 else 41613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41614 $as_echo "no" >&6; } 41615 fi 41616 41617 41618 if test "x$STRIP" = x; then 41619 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41620 fi 41621 else 41622 # Otherwise we believe it is a complete path. Use it as it is. 41623 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 41624 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 41625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41626 $as_echo_n "checking for STRIP... " >&6; } 41627 if test ! -x "$tool_specified"; then 41628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41629 $as_echo "not found" >&6; } 41630 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 41631 fi 41632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41633 $as_echo "$tool_specified" >&6; } 41634 fi 41635 fi 41636 fi 41637 41638 fi 41639 41640 41641 41642 # Only process if variable expands to non-empty 41643 41644 if test "x$STRIP" != x; then 41645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41646 41647 # First separate the path from the arguments. This will split at the first 41648 # space. 41649 complete="$STRIP" 41650 path="${complete%% *}" 41651 tmp="$complete EOL" 41652 arguments="${tmp#* }" 41653 41654 # Input might be given as Windows format, start by converting to 41655 # unix format. 41656 new_path=`$CYGPATH -u "$path"` 41657 41658 # Now try to locate executable using which 41659 new_path=`$WHICH "$new_path" 2> /dev/null` 41660 # bat and cmd files are not always considered executable in cygwin causing which 41661 # to not find them 41662 if test "x$new_path" = x \ 41663 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41664 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41665 new_path=`$CYGPATH -u "$path"` 41666 fi 41667 if test "x$new_path" = x; then 41668 # Oops. Which didn't find the executable. 41669 # The splitting of arguments from the executable at a space might have been incorrect, 41670 # since paths with space are more likely in Windows. Give it another try with the whole 41671 # argument. 41672 path="$complete" 41673 arguments="EOL" 41674 new_path=`$CYGPATH -u "$path"` 41675 new_path=`$WHICH "$new_path" 2> /dev/null` 41676 # bat and cmd files are not always considered executable in cygwin causing which 41677 # to not find them 41678 if test "x$new_path" = x \ 41679 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41680 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41681 new_path=`$CYGPATH -u "$path"` 41682 fi 41683 if test "x$new_path" = x; then 41684 # It's still not found. Now this is an unrecoverable error. 41685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41686 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41687 has_space=`$ECHO "$complete" | $GREP " "` 41688 if test "x$has_space" != x; then 41689 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41690 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41691 fi 41692 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41693 fi 41694 fi 41695 41696 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41697 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41698 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41699 # "foo.exe" is OK but "foo" is an error. 41700 # 41701 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41702 # It is also a way to make sure we got the proper file name for the real test later on. 41703 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41704 if test "x$test_shortpath" = x; then 41705 # Short path failed, file does not exist as specified. 41706 # Try adding .exe or .cmd 41707 if test -f "${new_path}.exe"; then 41708 input_to_shortpath="${new_path}.exe" 41709 elif test -f "${new_path}.cmd"; then 41710 input_to_shortpath="${new_path}.cmd" 41711 else 41712 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 41713 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 41714 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41715 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41716 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41717 fi 41718 else 41719 input_to_shortpath="$new_path" 41720 fi 41721 41722 # Call helper function which possibly converts this using DOS-style short mode. 41723 # If so, the updated path is stored in $new_path. 41724 new_path="$input_to_shortpath" 41725 41726 input_path="$input_to_shortpath" 41727 # Check if we need to convert this using DOS-style short mode. If the path 41728 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41729 # take no chances and rewrite it. 41730 # Note: m4 eats our [], so we need to use [ and ] instead. 41731 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41732 if test "x$has_forbidden_chars" != x; then 41733 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41734 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41735 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41736 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41737 # Going to short mode and back again did indeed matter. Since short mode is 41738 # case insensitive, let's make it lowercase to improve readability. 41739 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41740 # Now convert it back to Unix-style (cygpath) 41741 input_path=`$CYGPATH -u "$shortmode_path"` 41742 new_path="$input_path" 41743 fi 41744 fi 41745 41746 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41747 if test "x$test_cygdrive_prefix" = x; then 41748 # As a simple fix, exclude /usr/bin since it's not a real path. 41749 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41750 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41751 # a path prefixed by /cygdrive for fixpath to work. 41752 new_path="$CYGWIN_ROOT_PATH$input_path" 41753 fi 41754 fi 41755 41756 # remove trailing .exe if any 41757 new_path="${new_path/%.exe/}" 41758 41759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41760 41761 # First separate the path from the arguments. This will split at the first 41762 # space. 41763 complete="$STRIP" 41764 path="${complete%% *}" 41765 tmp="$complete EOL" 41766 arguments="${tmp#* }" 41767 41768 # Input might be given as Windows format, start by converting to 41769 # unix format. 41770 new_path="$path" 41771 41772 windows_path="$new_path" 41773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41774 unix_path=`$CYGPATH -u "$windows_path"` 41775 new_path="$unix_path" 41776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41778 new_path="$unix_path" 41779 fi 41780 41781 41782 # Now try to locate executable using which 41783 new_path=`$WHICH "$new_path" 2> /dev/null` 41784 41785 if test "x$new_path" = x; then 41786 # Oops. Which didn't find the executable. 41787 # The splitting of arguments from the executable at a space might have been incorrect, 41788 # since paths with space are more likely in Windows. Give it another try with the whole 41789 # argument. 41790 path="$complete" 41791 arguments="EOL" 41792 new_path="$path" 41793 41794 windows_path="$new_path" 41795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41796 unix_path=`$CYGPATH -u "$windows_path"` 41797 new_path="$unix_path" 41798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41799 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41800 new_path="$unix_path" 41801 fi 41802 41803 41804 new_path=`$WHICH "$new_path" 2> /dev/null` 41805 # bat and cmd files are not always considered executable in MSYS causing which 41806 # to not find them 41807 if test "x$new_path" = x \ 41808 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41809 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41810 new_path="$path" 41811 41812 windows_path="$new_path" 41813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41814 unix_path=`$CYGPATH -u "$windows_path"` 41815 new_path="$unix_path" 41816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41817 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41818 new_path="$unix_path" 41819 fi 41820 41821 fi 41822 41823 if test "x$new_path" = x; then 41824 # It's still not found. Now this is an unrecoverable error. 41825 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41826 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41827 has_space=`$ECHO "$complete" | $GREP " "` 41828 if test "x$has_space" != x; then 41829 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41830 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41831 fi 41832 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41833 fi 41834 fi 41835 41836 # Now new_path has a complete unix path to the binary 41837 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41838 # Keep paths in /bin as-is, but remove trailing .exe if any 41839 new_path="${new_path/%.exe/}" 41840 # Do not save /bin paths to all_fixpath_prefixes! 41841 else 41842 # Not in mixed or Windows style, start by that. 41843 new_path=`cmd //c echo $new_path` 41844 41845 input_path="$new_path" 41846 # Check if we need to convert this using DOS-style short mode. If the path 41847 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41848 # take no chances and rewrite it. 41849 # Note: m4 eats our [], so we need to use [ and ] instead. 41850 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41851 if test "x$has_forbidden_chars" != x; then 41852 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41853 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41854 fi 41855 41856 # Output is in $new_path 41857 41858 windows_path="$new_path" 41859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41860 unix_path=`$CYGPATH -u "$windows_path"` 41861 new_path="$unix_path" 41862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41863 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41864 new_path="$unix_path" 41865 fi 41866 41867 # remove trailing .exe if any 41868 new_path="${new_path/%.exe/}" 41869 41870 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41871 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41872 fi 41873 41874 else 41875 # We're on a unix platform. Hooray! :) 41876 # First separate the path from the arguments. This will split at the first 41877 # space. 41878 complete="$STRIP" 41879 path="${complete%% *}" 41880 tmp="$complete EOL" 41881 arguments="${tmp#* }" 41882 41883 # Cannot rely on the command "which" here since it doesn't always work. 41884 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41885 if test -z "$is_absolute_path"; then 41886 # Path to executable is not absolute. Find it. 41887 IFS_save="$IFS" 41888 IFS=: 41889 for p in $PATH; do 41890 if test -f "$p/$path" && test -x "$p/$path"; then 41891 new_path="$p/$path" 41892 break 41893 fi 41894 done 41895 IFS="$IFS_save" 41896 else 41897 # This is an absolute path, we can use it without further modifications. 41898 new_path="$path" 41899 fi 41900 41901 if test "x$new_path" = x; then 41902 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41903 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41904 has_space=`$ECHO "$complete" | $GREP " "` 41905 if test "x$has_space" != x; then 41906 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41907 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41908 fi 41909 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41910 fi 41911 fi 41912 41913 # Now join together the path and the arguments once again 41914 if test "x$arguments" != xEOL; then 41915 new_complete="$new_path ${arguments% *}" 41916 else 41917 new_complete="$new_path" 41918 fi 41919 41920 if test "x$complete" != "x$new_complete"; then 41921 STRIP="$new_complete" 41922 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41923 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41924 fi 41925 fi 41926 41927 41928 41929 # Publish this variable in the help. 41930 41931 41932 if [ -z "${NM+x}" ]; then 41933 # The variable is not set by user, try to locate tool using the code snippet 41934 for ac_prog in nm 41935 do 41936 # Extract the first word of "$ac_prog", so it can be a program name with args. 41937 set dummy $ac_prog; ac_word=$2 41938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41939 $as_echo_n "checking for $ac_word... " >&6; } 41940 if ${ac_cv_path_NM+:} false; then : 41941 $as_echo_n "(cached) " >&6 41942 else 41943 case $NM in 41944 [\\/]* | ?:[\\/]*) 41945 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41946 ;; 41947 *) 41948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41949 for as_dir in $PATH 41950 do 41951 IFS=$as_save_IFS 41952 test -z "$as_dir" && as_dir=. 41953 for ac_exec_ext in '' $ac_executable_extensions; do 41954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41955 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41957 break 2 41958 fi 41959 done 41960 done 41961 IFS=$as_save_IFS 41962 41963 ;; 41964 esac 41965 fi 41966 NM=$ac_cv_path_NM 41967 if test -n "$NM"; then 41968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41969 $as_echo "$NM" >&6; } 41970 else 41971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41972 $as_echo "no" >&6; } 41973 fi 41974 41975 41976 test -n "$NM" && break 41977 done 41978 41979 else 41980 # The variable is set, but is it from the command line or the environment? 41981 41982 # Try to remove the string !NM! from our list. 41983 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41984 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41985 # If it failed, the variable was not from the command line. Ignore it, 41986 # but warn the user (except for BASH, which is always set by the calling BASH). 41987 if test "xNM" != xBASH; then 41988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41989 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41990 fi 41991 # Try to locate tool using the code snippet 41992 for ac_prog in nm 41993 do 41994 # Extract the first word of "$ac_prog", so it can be a program name with args. 41995 set dummy $ac_prog; ac_word=$2 41996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41997 $as_echo_n "checking for $ac_word... " >&6; } 41998 if ${ac_cv_path_NM+:} false; then : 41999 $as_echo_n "(cached) " >&6 42000 else 42001 case $NM in 42002 [\\/]* | ?:[\\/]*) 42003 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42004 ;; 42005 *) 42006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42007 for as_dir in $PATH 42008 do 42009 IFS=$as_save_IFS 42010 test -z "$as_dir" && as_dir=. 42011 for ac_exec_ext in '' $ac_executable_extensions; do 42012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42013 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42015 break 2 42016 fi 42017 done 42018 done 42019 IFS=$as_save_IFS 42020 42021 ;; 42022 esac 42023 fi 42024 NM=$ac_cv_path_NM 42025 if test -n "$NM"; then 42026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42027 $as_echo "$NM" >&6; } 42028 else 42029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42030 $as_echo "no" >&6; } 42031 fi 42032 42033 42034 test -n "$NM" && break 42035 done 42036 42037 else 42038 # If it succeeded, then it was overridden by the user. We will use it 42039 # for the tool. 42040 42041 # First remove it from the list of overridden variables, so we can test 42042 # for unknown variables in the end. 42043 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42044 42045 # Check if we try to supply an empty value 42046 if test "x$NM" = x; then 42047 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42048 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42050 $as_echo_n "checking for NM... " >&6; } 42051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42052 $as_echo "disabled" >&6; } 42053 else 42054 # Check if the provided tool contains a complete path. 42055 tool_specified="$NM" 42056 tool_basename="${tool_specified##*/}" 42057 if test "x$tool_basename" = "x$tool_specified"; then 42058 # A command without a complete path is provided, search $PATH. 42059 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42060 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42061 # Extract the first word of "$tool_basename", so it can be a program name with args. 42062 set dummy $tool_basename; ac_word=$2 42063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42064 $as_echo_n "checking for $ac_word... " >&6; } 42065 if ${ac_cv_path_NM+:} false; then : 42066 $as_echo_n "(cached) " >&6 42067 else 42068 case $NM in 42069 [\\/]* | ?:[\\/]*) 42070 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42071 ;; 42072 *) 42073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42074 for as_dir in $PATH 42075 do 42076 IFS=$as_save_IFS 42077 test -z "$as_dir" && as_dir=. 42078 for ac_exec_ext in '' $ac_executable_extensions; do 42079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42080 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42082 break 2 42083 fi 42084 done 42085 done 42086 IFS=$as_save_IFS 42087 42088 ;; 42089 esac 42090 fi 42091 NM=$ac_cv_path_NM 42092 if test -n "$NM"; then 42093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42094 $as_echo "$NM" >&6; } 42095 else 42096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42097 $as_echo "no" >&6; } 42098 fi 42099 42100 42101 if test "x$NM" = x; then 42102 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42103 fi 42104 else 42105 # Otherwise we believe it is a complete path. Use it as it is. 42106 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42107 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42109 $as_echo_n "checking for NM... " >&6; } 42110 if test ! -x "$tool_specified"; then 42111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42112 $as_echo "not found" >&6; } 42113 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42114 fi 42115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42116 $as_echo "$tool_specified" >&6; } 42117 fi 42118 fi 42119 fi 42120 42121 fi 42122 42123 42124 42125 # Only process if variable expands to non-empty 42126 42127 if test "x$NM" != x; then 42128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42129 42130 # First separate the path from the arguments. This will split at the first 42131 # space. 42132 complete="$NM" 42133 path="${complete%% *}" 42134 tmp="$complete EOL" 42135 arguments="${tmp#* }" 42136 42137 # Input might be given as Windows format, start by converting to 42138 # unix format. 42139 new_path=`$CYGPATH -u "$path"` 42140 42141 # Now try to locate executable using which 42142 new_path=`$WHICH "$new_path" 2> /dev/null` 42143 # bat and cmd files are not always considered executable in cygwin causing which 42144 # to not find them 42145 if test "x$new_path" = x \ 42146 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42147 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42148 new_path=`$CYGPATH -u "$path"` 42149 fi 42150 if test "x$new_path" = x; then 42151 # Oops. Which didn't find the executable. 42152 # The splitting of arguments from the executable at a space might have been incorrect, 42153 # since paths with space are more likely in Windows. Give it another try with the whole 42154 # argument. 42155 path="$complete" 42156 arguments="EOL" 42157 new_path=`$CYGPATH -u "$path"` 42158 new_path=`$WHICH "$new_path" 2> /dev/null` 42159 # bat and cmd files are not always considered executable in cygwin causing which 42160 # to not find them 42161 if test "x$new_path" = x \ 42162 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42163 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42164 new_path=`$CYGPATH -u "$path"` 42165 fi 42166 if test "x$new_path" = x; then 42167 # It's still not found. Now this is an unrecoverable error. 42168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42169 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42170 has_space=`$ECHO "$complete" | $GREP " "` 42171 if test "x$has_space" != x; then 42172 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42173 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42174 fi 42175 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42176 fi 42177 fi 42178 42179 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42180 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42181 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42182 # "foo.exe" is OK but "foo" is an error. 42183 # 42184 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42185 # It is also a way to make sure we got the proper file name for the real test later on. 42186 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42187 if test "x$test_shortpath" = x; then 42188 # Short path failed, file does not exist as specified. 42189 # Try adding .exe or .cmd 42190 if test -f "${new_path}.exe"; then 42191 input_to_shortpath="${new_path}.exe" 42192 elif test -f "${new_path}.cmd"; then 42193 input_to_shortpath="${new_path}.cmd" 42194 else 42195 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 42196 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 42197 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42198 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42199 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42200 fi 42201 else 42202 input_to_shortpath="$new_path" 42203 fi 42204 42205 # Call helper function which possibly converts this using DOS-style short mode. 42206 # If so, the updated path is stored in $new_path. 42207 new_path="$input_to_shortpath" 42208 42209 input_path="$input_to_shortpath" 42210 # Check if we need to convert this using DOS-style short mode. If the path 42211 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42212 # take no chances and rewrite it. 42213 # Note: m4 eats our [], so we need to use [ and ] instead. 42214 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42215 if test "x$has_forbidden_chars" != x; then 42216 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42217 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42218 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42219 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42220 # Going to short mode and back again did indeed matter. Since short mode is 42221 # case insensitive, let's make it lowercase to improve readability. 42222 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42223 # Now convert it back to Unix-style (cygpath) 42224 input_path=`$CYGPATH -u "$shortmode_path"` 42225 new_path="$input_path" 42226 fi 42227 fi 42228 42229 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42230 if test "x$test_cygdrive_prefix" = x; then 42231 # As a simple fix, exclude /usr/bin since it's not a real path. 42232 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42233 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42234 # a path prefixed by /cygdrive for fixpath to work. 42235 new_path="$CYGWIN_ROOT_PATH$input_path" 42236 fi 42237 fi 42238 42239 # remove trailing .exe if any 42240 new_path="${new_path/%.exe/}" 42241 42242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42243 42244 # First separate the path from the arguments. This will split at the first 42245 # space. 42246 complete="$NM" 42247 path="${complete%% *}" 42248 tmp="$complete EOL" 42249 arguments="${tmp#* }" 42250 42251 # Input might be given as Windows format, start by converting to 42252 # unix format. 42253 new_path="$path" 42254 42255 windows_path="$new_path" 42256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42257 unix_path=`$CYGPATH -u "$windows_path"` 42258 new_path="$unix_path" 42259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42261 new_path="$unix_path" 42262 fi 42263 42264 42265 # Now try to locate executable using which 42266 new_path=`$WHICH "$new_path" 2> /dev/null` 42267 42268 if test "x$new_path" = x; then 42269 # Oops. Which didn't find the executable. 42270 # The splitting of arguments from the executable at a space might have been incorrect, 42271 # since paths with space are more likely in Windows. Give it another try with the whole 42272 # argument. 42273 path="$complete" 42274 arguments="EOL" 42275 new_path="$path" 42276 42277 windows_path="$new_path" 42278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42279 unix_path=`$CYGPATH -u "$windows_path"` 42280 new_path="$unix_path" 42281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42282 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42283 new_path="$unix_path" 42284 fi 42285 42286 42287 new_path=`$WHICH "$new_path" 2> /dev/null` 42288 # bat and cmd files are not always considered executable in MSYS causing which 42289 # to not find them 42290 if test "x$new_path" = x \ 42291 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42292 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42293 new_path="$path" 42294 42295 windows_path="$new_path" 42296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42297 unix_path=`$CYGPATH -u "$windows_path"` 42298 new_path="$unix_path" 42299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42301 new_path="$unix_path" 42302 fi 42303 42304 fi 42305 42306 if test "x$new_path" = x; then 42307 # It's still not found. Now this is an unrecoverable error. 42308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42309 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42310 has_space=`$ECHO "$complete" | $GREP " "` 42311 if test "x$has_space" != x; then 42312 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42313 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42314 fi 42315 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42316 fi 42317 fi 42318 42319 # Now new_path has a complete unix path to the binary 42320 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42321 # Keep paths in /bin as-is, but remove trailing .exe if any 42322 new_path="${new_path/%.exe/}" 42323 # Do not save /bin paths to all_fixpath_prefixes! 42324 else 42325 # Not in mixed or Windows style, start by that. 42326 new_path=`cmd //c echo $new_path` 42327 42328 input_path="$new_path" 42329 # Check if we need to convert this using DOS-style short mode. If the path 42330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42331 # take no chances and rewrite it. 42332 # Note: m4 eats our [], so we need to use [ and ] instead. 42333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42334 if test "x$has_forbidden_chars" != x; then 42335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42336 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42337 fi 42338 42339 # Output is in $new_path 42340 42341 windows_path="$new_path" 42342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42343 unix_path=`$CYGPATH -u "$windows_path"` 42344 new_path="$unix_path" 42345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42347 new_path="$unix_path" 42348 fi 42349 42350 # remove trailing .exe if any 42351 new_path="${new_path/%.exe/}" 42352 42353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42355 fi 42356 42357 else 42358 # We're on a unix platform. Hooray! :) 42359 # First separate the path from the arguments. This will split at the first 42360 # space. 42361 complete="$NM" 42362 path="${complete%% *}" 42363 tmp="$complete EOL" 42364 arguments="${tmp#* }" 42365 42366 # Cannot rely on the command "which" here since it doesn't always work. 42367 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42368 if test -z "$is_absolute_path"; then 42369 # Path to executable is not absolute. Find it. 42370 IFS_save="$IFS" 42371 IFS=: 42372 for p in $PATH; do 42373 if test -f "$p/$path" && test -x "$p/$path"; then 42374 new_path="$p/$path" 42375 break 42376 fi 42377 done 42378 IFS="$IFS_save" 42379 else 42380 # This is an absolute path, we can use it without further modifications. 42381 new_path="$path" 42382 fi 42383 42384 if test "x$new_path" = x; then 42385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42386 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42387 has_space=`$ECHO "$complete" | $GREP " "` 42388 if test "x$has_space" != x; then 42389 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42390 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42391 fi 42392 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42393 fi 42394 fi 42395 42396 # Now join together the path and the arguments once again 42397 if test "x$arguments" != xEOL; then 42398 new_complete="$new_path ${arguments% *}" 42399 else 42400 new_complete="$new_path" 42401 fi 42402 42403 if test "x$complete" != "x$new_complete"; then 42404 NM="$new_complete" 42405 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42406 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42407 fi 42408 fi 42409 42410 42411 42412 # Publish this variable in the help. 42413 42414 42415 if [ -z "${GNM+x}" ]; then 42416 # The variable is not set by user, try to locate tool using the code snippet 42417 for ac_prog in gnm 42418 do 42419 # Extract the first word of "$ac_prog", so it can be a program name with args. 42420 set dummy $ac_prog; ac_word=$2 42421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42422 $as_echo_n "checking for $ac_word... " >&6; } 42423 if ${ac_cv_path_GNM+:} false; then : 42424 $as_echo_n "(cached) " >&6 42425 else 42426 case $GNM in 42427 [\\/]* | ?:[\\/]*) 42428 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42429 ;; 42430 *) 42431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42432 for as_dir in $PATH 42433 do 42434 IFS=$as_save_IFS 42435 test -z "$as_dir" && as_dir=. 42436 for ac_exec_ext in '' $ac_executable_extensions; do 42437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42438 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42440 break 2 42441 fi 42442 done 42443 done 42444 IFS=$as_save_IFS 42445 42446 ;; 42447 esac 42448 fi 42449 GNM=$ac_cv_path_GNM 42450 if test -n "$GNM"; then 42451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42452 $as_echo "$GNM" >&6; } 42453 else 42454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42455 $as_echo "no" >&6; } 42456 fi 42457 42458 42459 test -n "$GNM" && break 42460 done 42461 42462 else 42463 # The variable is set, but is it from the command line or the environment? 42464 42465 # Try to remove the string !GNM! from our list. 42466 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 42467 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42468 # If it failed, the variable was not from the command line. Ignore it, 42469 # but warn the user (except for BASH, which is always set by the calling BASH). 42470 if test "xGNM" != xBASH; then 42471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 42472 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 42473 fi 42474 # Try to locate tool using the code snippet 42475 for ac_prog in gnm 42476 do 42477 # Extract the first word of "$ac_prog", so it can be a program name with args. 42478 set dummy $ac_prog; ac_word=$2 42479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42480 $as_echo_n "checking for $ac_word... " >&6; } 42481 if ${ac_cv_path_GNM+:} false; then : 42482 $as_echo_n "(cached) " >&6 42483 else 42484 case $GNM in 42485 [\\/]* | ?:[\\/]*) 42486 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42487 ;; 42488 *) 42489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42490 for as_dir in $PATH 42491 do 42492 IFS=$as_save_IFS 42493 test -z "$as_dir" && as_dir=. 42494 for ac_exec_ext in '' $ac_executable_extensions; do 42495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42496 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42498 break 2 42499 fi 42500 done 42501 done 42502 IFS=$as_save_IFS 42503 42504 ;; 42505 esac 42506 fi 42507 GNM=$ac_cv_path_GNM 42508 if test -n "$GNM"; then 42509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42510 $as_echo "$GNM" >&6; } 42511 else 42512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42513 $as_echo "no" >&6; } 42514 fi 42515 42516 42517 test -n "$GNM" && break 42518 done 42519 42520 else 42521 # If it succeeded, then it was overridden by the user. We will use it 42522 # for the tool. 42523 42524 # First remove it from the list of overridden variables, so we can test 42525 # for unknown variables in the end. 42526 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42527 42528 # Check if we try to supply an empty value 42529 if test "x$GNM" = x; then 42530 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 42531 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 42532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 42533 $as_echo_n "checking for GNM... " >&6; } 42534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42535 $as_echo "disabled" >&6; } 42536 else 42537 # Check if the provided tool contains a complete path. 42538 tool_specified="$GNM" 42539 tool_basename="${tool_specified##*/}" 42540 if test "x$tool_basename" = "x$tool_specified"; then 42541 # A command without a complete path is provided, search $PATH. 42542 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 42543 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 42544 # Extract the first word of "$tool_basename", so it can be a program name with args. 42545 set dummy $tool_basename; ac_word=$2 42546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42547 $as_echo_n "checking for $ac_word... " >&6; } 42548 if ${ac_cv_path_GNM+:} false; then : 42549 $as_echo_n "(cached) " >&6 42550 else 42551 case $GNM in 42552 [\\/]* | ?:[\\/]*) 42553 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42554 ;; 42555 *) 42556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42557 for as_dir in $PATH 42558 do 42559 IFS=$as_save_IFS 42560 test -z "$as_dir" && as_dir=. 42561 for ac_exec_ext in '' $ac_executable_extensions; do 42562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42563 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42565 break 2 42566 fi 42567 done 42568 done 42569 IFS=$as_save_IFS 42570 42571 ;; 42572 esac 42573 fi 42574 GNM=$ac_cv_path_GNM 42575 if test -n "$GNM"; then 42576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42577 $as_echo "$GNM" >&6; } 42578 else 42579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42580 $as_echo "no" >&6; } 42581 fi 42582 42583 42584 if test "x$GNM" = x; then 42585 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42586 fi 42587 else 42588 # Otherwise we believe it is a complete path. Use it as it is. 42589 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 42590 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 42591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 42592 $as_echo_n "checking for GNM... " >&6; } 42593 if test ! -x "$tool_specified"; then 42594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42595 $as_echo "not found" >&6; } 42596 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 42597 fi 42598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42599 $as_echo "$tool_specified" >&6; } 42600 fi 42601 fi 42602 fi 42603 42604 fi 42605 42606 42607 42608 # Only process if variable expands to non-empty 42609 42610 if test "x$GNM" != x; then 42611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42612 42613 # First separate the path from the arguments. This will split at the first 42614 # space. 42615 complete="$GNM" 42616 path="${complete%% *}" 42617 tmp="$complete EOL" 42618 arguments="${tmp#* }" 42619 42620 # Input might be given as Windows format, start by converting to 42621 # unix format. 42622 new_path=`$CYGPATH -u "$path"` 42623 42624 # Now try to locate executable using which 42625 new_path=`$WHICH "$new_path" 2> /dev/null` 42626 # bat and cmd files are not always considered executable in cygwin causing which 42627 # to not find them 42628 if test "x$new_path" = x \ 42629 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42630 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42631 new_path=`$CYGPATH -u "$path"` 42632 fi 42633 if test "x$new_path" = x; then 42634 # Oops. Which didn't find the executable. 42635 # The splitting of arguments from the executable at a space might have been incorrect, 42636 # since paths with space are more likely in Windows. Give it another try with the whole 42637 # argument. 42638 path="$complete" 42639 arguments="EOL" 42640 new_path=`$CYGPATH -u "$path"` 42641 new_path=`$WHICH "$new_path" 2> /dev/null` 42642 # bat and cmd files are not always considered executable in cygwin causing which 42643 # to not find them 42644 if test "x$new_path" = x \ 42645 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42646 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42647 new_path=`$CYGPATH -u "$path"` 42648 fi 42649 if test "x$new_path" = x; then 42650 # It's still not found. Now this is an unrecoverable error. 42651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42652 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42653 has_space=`$ECHO "$complete" | $GREP " "` 42654 if test "x$has_space" != x; then 42655 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42656 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42657 fi 42658 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42659 fi 42660 fi 42661 42662 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42663 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42664 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42665 # "foo.exe" is OK but "foo" is an error. 42666 # 42667 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42668 # It is also a way to make sure we got the proper file name for the real test later on. 42669 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42670 if test "x$test_shortpath" = x; then 42671 # Short path failed, file does not exist as specified. 42672 # Try adding .exe or .cmd 42673 if test -f "${new_path}.exe"; then 42674 input_to_shortpath="${new_path}.exe" 42675 elif test -f "${new_path}.cmd"; then 42676 input_to_shortpath="${new_path}.cmd" 42677 else 42678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 42679 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 42680 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42681 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42682 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42683 fi 42684 else 42685 input_to_shortpath="$new_path" 42686 fi 42687 42688 # Call helper function which possibly converts this using DOS-style short mode. 42689 # If so, the updated path is stored in $new_path. 42690 new_path="$input_to_shortpath" 42691 42692 input_path="$input_to_shortpath" 42693 # Check if we need to convert this using DOS-style short mode. If the path 42694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42695 # take no chances and rewrite it. 42696 # Note: m4 eats our [], so we need to use [ and ] instead. 42697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42698 if test "x$has_forbidden_chars" != x; then 42699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42700 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42701 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42702 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42703 # Going to short mode and back again did indeed matter. Since short mode is 42704 # case insensitive, let's make it lowercase to improve readability. 42705 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42706 # Now convert it back to Unix-style (cygpath) 42707 input_path=`$CYGPATH -u "$shortmode_path"` 42708 new_path="$input_path" 42709 fi 42710 fi 42711 42712 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42713 if test "x$test_cygdrive_prefix" = x; then 42714 # As a simple fix, exclude /usr/bin since it's not a real path. 42715 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42716 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42717 # a path prefixed by /cygdrive for fixpath to work. 42718 new_path="$CYGWIN_ROOT_PATH$input_path" 42719 fi 42720 fi 42721 42722 # remove trailing .exe if any 42723 new_path="${new_path/%.exe/}" 42724 42725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42726 42727 # First separate the path from the arguments. This will split at the first 42728 # space. 42729 complete="$GNM" 42730 path="${complete%% *}" 42731 tmp="$complete EOL" 42732 arguments="${tmp#* }" 42733 42734 # Input might be given as Windows format, start by converting to 42735 # unix format. 42736 new_path="$path" 42737 42738 windows_path="$new_path" 42739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42740 unix_path=`$CYGPATH -u "$windows_path"` 42741 new_path="$unix_path" 42742 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42743 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42744 new_path="$unix_path" 42745 fi 42746 42747 42748 # Now try to locate executable using which 42749 new_path=`$WHICH "$new_path" 2> /dev/null` 42750 42751 if test "x$new_path" = x; then 42752 # Oops. Which didn't find the executable. 42753 # The splitting of arguments from the executable at a space might have been incorrect, 42754 # since paths with space are more likely in Windows. Give it another try with the whole 42755 # argument. 42756 path="$complete" 42757 arguments="EOL" 42758 new_path="$path" 42759 42760 windows_path="$new_path" 42761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42762 unix_path=`$CYGPATH -u "$windows_path"` 42763 new_path="$unix_path" 42764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42766 new_path="$unix_path" 42767 fi 42768 42769 42770 new_path=`$WHICH "$new_path" 2> /dev/null` 42771 # bat and cmd files are not always considered executable in MSYS causing which 42772 # to not find them 42773 if test "x$new_path" = x \ 42774 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42775 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42776 new_path="$path" 42777 42778 windows_path="$new_path" 42779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42780 unix_path=`$CYGPATH -u "$windows_path"` 42781 new_path="$unix_path" 42782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42783 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42784 new_path="$unix_path" 42785 fi 42786 42787 fi 42788 42789 if test "x$new_path" = x; then 42790 # It's still not found. Now this is an unrecoverable error. 42791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42792 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42793 has_space=`$ECHO "$complete" | $GREP " "` 42794 if test "x$has_space" != x; then 42795 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42796 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42797 fi 42798 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42799 fi 42800 fi 42801 42802 # Now new_path has a complete unix path to the binary 42803 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42804 # Keep paths in /bin as-is, but remove trailing .exe if any 42805 new_path="${new_path/%.exe/}" 42806 # Do not save /bin paths to all_fixpath_prefixes! 42807 else 42808 # Not in mixed or Windows style, start by that. 42809 new_path=`cmd //c echo $new_path` 42810 42811 input_path="$new_path" 42812 # Check if we need to convert this using DOS-style short mode. If the path 42813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42814 # take no chances and rewrite it. 42815 # Note: m4 eats our [], so we need to use [ and ] instead. 42816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42817 if test "x$has_forbidden_chars" != x; then 42818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42819 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42820 fi 42821 42822 # Output is in $new_path 42823 42824 windows_path="$new_path" 42825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42826 unix_path=`$CYGPATH -u "$windows_path"` 42827 new_path="$unix_path" 42828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42829 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42830 new_path="$unix_path" 42831 fi 42832 42833 # remove trailing .exe if any 42834 new_path="${new_path/%.exe/}" 42835 42836 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42837 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42838 fi 42839 42840 else 42841 # We're on a unix platform. Hooray! :) 42842 # First separate the path from the arguments. This will split at the first 42843 # space. 42844 complete="$GNM" 42845 path="${complete%% *}" 42846 tmp="$complete EOL" 42847 arguments="${tmp#* }" 42848 42849 # Cannot rely on the command "which" here since it doesn't always work. 42850 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42851 if test -z "$is_absolute_path"; then 42852 # Path to executable is not absolute. Find it. 42853 IFS_save="$IFS" 42854 IFS=: 42855 for p in $PATH; do 42856 if test -f "$p/$path" && test -x "$p/$path"; then 42857 new_path="$p/$path" 42858 break 42859 fi 42860 done 42861 IFS="$IFS_save" 42862 else 42863 # This is an absolute path, we can use it without further modifications. 42864 new_path="$path" 42865 fi 42866 42867 if test "x$new_path" = x; then 42868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42869 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42870 has_space=`$ECHO "$complete" | $GREP " "` 42871 if test "x$has_space" != x; then 42872 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42873 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42874 fi 42875 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42876 fi 42877 fi 42878 42879 # Now join together the path and the arguments once again 42880 if test "x$arguments" != xEOL; then 42881 new_complete="$new_path ${arguments% *}" 42882 else 42883 new_complete="$new_path" 42884 fi 42885 42886 if test "x$complete" != "x$new_complete"; then 42887 GNM="$new_complete" 42888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 42889 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 42890 fi 42891 fi 42892 42893 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 42894 # FIXME: we should unify this with the solaris case above. 42895 42896 42897 # Publish this variable in the help. 42898 42899 42900 if [ -z "${STRIP+x}" ]; then 42901 # The variable is not set by user, try to locate tool using the code snippet 42902 if test -n "$ac_tool_prefix"; then 42903 for ac_prog in strip 42904 do 42905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42908 $as_echo_n "checking for $ac_word... " >&6; } 42909 if ${ac_cv_prog_STRIP+:} false; then : 42910 $as_echo_n "(cached) " >&6 42911 else 42912 if test -n "$STRIP"; then 42913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42914 else 42915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42916 for as_dir in $PATH 42917 do 42918 IFS=$as_save_IFS 42919 test -z "$as_dir" && as_dir=. 42920 for ac_exec_ext in '' $ac_executable_extensions; do 42921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42922 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42924 break 2 42925 fi 42926 done 42927 done 42928 IFS=$as_save_IFS 42929 42930 fi 42931 fi 42932 STRIP=$ac_cv_prog_STRIP 42933 if test -n "$STRIP"; then 42934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42935 $as_echo "$STRIP" >&6; } 42936 else 42937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42938 $as_echo "no" >&6; } 42939 fi 42940 42941 42942 test -n "$STRIP" && break 42943 done 42944 fi 42945 if test -z "$STRIP"; then 42946 ac_ct_STRIP=$STRIP 42947 for ac_prog in strip 42948 do 42949 # Extract the first word of "$ac_prog", so it can be a program name with args. 42950 set dummy $ac_prog; ac_word=$2 42951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42952 $as_echo_n "checking for $ac_word... " >&6; } 42953 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42954 $as_echo_n "(cached) " >&6 42955 else 42956 if test -n "$ac_ct_STRIP"; then 42957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42958 else 42959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42960 for as_dir in $PATH 42961 do 42962 IFS=$as_save_IFS 42963 test -z "$as_dir" && as_dir=. 42964 for ac_exec_ext in '' $ac_executable_extensions; do 42965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42966 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42968 break 2 42969 fi 42970 done 42971 done 42972 IFS=$as_save_IFS 42973 42974 fi 42975 fi 42976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42977 if test -n "$ac_ct_STRIP"; then 42978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42979 $as_echo "$ac_ct_STRIP" >&6; } 42980 else 42981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42982 $as_echo "no" >&6; } 42983 fi 42984 42985 42986 test -n "$ac_ct_STRIP" && break 42987 done 42988 42989 if test "x$ac_ct_STRIP" = x; then 42990 STRIP="" 42991 else 42992 case $cross_compiling:$ac_tool_warned in 42993 yes:) 42994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42996 ac_tool_warned=yes ;; 42997 esac 42998 STRIP=$ac_ct_STRIP 42999 fi 43000 fi 43001 43002 else 43003 # The variable is set, but is it from the command line or the environment? 43004 43005 # Try to remove the string !STRIP! from our list. 43006 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 43007 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43008 # If it failed, the variable was not from the command line. Ignore it, 43009 # but warn the user (except for BASH, which is always set by the calling BASH). 43010 if test "xSTRIP" != xBASH; then 43011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 43012 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 43013 fi 43014 # Try to locate tool using the code snippet 43015 if test -n "$ac_tool_prefix"; then 43016 for ac_prog in strip 43017 do 43018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43021 $as_echo_n "checking for $ac_word... " >&6; } 43022 if ${ac_cv_prog_STRIP+:} false; then : 43023 $as_echo_n "(cached) " >&6 43024 else 43025 if test -n "$STRIP"; then 43026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 43027 else 43028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43029 for as_dir in $PATH 43030 do 43031 IFS=$as_save_IFS 43032 test -z "$as_dir" && as_dir=. 43033 for ac_exec_ext in '' $ac_executable_extensions; do 43034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43035 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 43036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43037 break 2 43038 fi 43039 done 43040 done 43041 IFS=$as_save_IFS 43042 43043 fi 43044 fi 43045 STRIP=$ac_cv_prog_STRIP 43046 if test -n "$STRIP"; then 43047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 43048 $as_echo "$STRIP" >&6; } 43049 else 43050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43051 $as_echo "no" >&6; } 43052 fi 43053 43054 43055 test -n "$STRIP" && break 43056 done 43057 fi 43058 if test -z "$STRIP"; then 43059 ac_ct_STRIP=$STRIP 43060 for ac_prog in strip 43061 do 43062 # Extract the first word of "$ac_prog", so it can be a program name with args. 43063 set dummy $ac_prog; ac_word=$2 43064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43065 $as_echo_n "checking for $ac_word... " >&6; } 43066 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 43067 $as_echo_n "(cached) " >&6 43068 else 43069 if test -n "$ac_ct_STRIP"; then 43070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 43071 else 43072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43073 for as_dir in $PATH 43074 do 43075 IFS=$as_save_IFS 43076 test -z "$as_dir" && as_dir=. 43077 for ac_exec_ext in '' $ac_executable_extensions; do 43078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43079 ac_cv_prog_ac_ct_STRIP="$ac_prog" 43080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43081 break 2 43082 fi 43083 done 43084 done 43085 IFS=$as_save_IFS 43086 43087 fi 43088 fi 43089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 43090 if test -n "$ac_ct_STRIP"; then 43091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 43092 $as_echo "$ac_ct_STRIP" >&6; } 43093 else 43094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43095 $as_echo "no" >&6; } 43096 fi 43097 43098 43099 test -n "$ac_ct_STRIP" && break 43100 done 43101 43102 if test "x$ac_ct_STRIP" = x; then 43103 STRIP="" 43104 else 43105 case $cross_compiling:$ac_tool_warned in 43106 yes:) 43107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43109 ac_tool_warned=yes ;; 43110 esac 43111 STRIP=$ac_ct_STRIP 43112 fi 43113 fi 43114 43115 else 43116 # If it succeeded, then it was overridden by the user. We will use it 43117 # for the tool. 43118 43119 # First remove it from the list of overridden variables, so we can test 43120 # for unknown variables in the end. 43121 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43122 43123 # Check if we try to supply an empty value 43124 if test "x$STRIP" = x; then 43125 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 43126 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 43127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 43128 $as_echo_n "checking for STRIP... " >&6; } 43129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43130 $as_echo "disabled" >&6; } 43131 else 43132 # Check if the provided tool contains a complete path. 43133 tool_specified="$STRIP" 43134 tool_basename="${tool_specified##*/}" 43135 if test "x$tool_basename" = "x$tool_specified"; then 43136 # A command without a complete path is provided, search $PATH. 43137 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 43138 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 43139 # Extract the first word of "$tool_basename", so it can be a program name with args. 43140 set dummy $tool_basename; ac_word=$2 43141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43142 $as_echo_n "checking for $ac_word... " >&6; } 43143 if ${ac_cv_path_STRIP+:} false; then : 43144 $as_echo_n "(cached) " >&6 43145 else 43146 case $STRIP in 43147 [\\/]* | ?:[\\/]*) 43148 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 43149 ;; 43150 *) 43151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43152 for as_dir in $PATH 43153 do 43154 IFS=$as_save_IFS 43155 test -z "$as_dir" && as_dir=. 43156 for ac_exec_ext in '' $ac_executable_extensions; do 43157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43158 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 43159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43160 break 2 43161 fi 43162 done 43163 done 43164 IFS=$as_save_IFS 43165 43166 ;; 43167 esac 43168 fi 43169 STRIP=$ac_cv_path_STRIP 43170 if test -n "$STRIP"; then 43171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 43172 $as_echo "$STRIP" >&6; } 43173 else 43174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43175 $as_echo "no" >&6; } 43176 fi 43177 43178 43179 if test "x$STRIP" = x; then 43180 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43181 fi 43182 else 43183 # Otherwise we believe it is a complete path. Use it as it is. 43184 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 43185 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 43186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 43187 $as_echo_n "checking for STRIP... " >&6; } 43188 if test ! -x "$tool_specified"; then 43189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43190 $as_echo "not found" >&6; } 43191 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 43192 fi 43193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43194 $as_echo "$tool_specified" >&6; } 43195 fi 43196 fi 43197 fi 43198 43199 fi 43200 43201 43202 43203 # Only process if variable expands to non-empty 43204 43205 if test "x$STRIP" != x; then 43206 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43207 43208 # First separate the path from the arguments. This will split at the first 43209 # space. 43210 complete="$STRIP" 43211 path="${complete%% *}" 43212 tmp="$complete EOL" 43213 arguments="${tmp#* }" 43214 43215 # Input might be given as Windows format, start by converting to 43216 # unix format. 43217 new_path=`$CYGPATH -u "$path"` 43218 43219 # Now try to locate executable using which 43220 new_path=`$WHICH "$new_path" 2> /dev/null` 43221 # bat and cmd files are not always considered executable in cygwin causing which 43222 # to not find them 43223 if test "x$new_path" = x \ 43224 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43225 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43226 new_path=`$CYGPATH -u "$path"` 43227 fi 43228 if test "x$new_path" = x; then 43229 # Oops. Which didn't find the executable. 43230 # The splitting of arguments from the executable at a space might have been incorrect, 43231 # since paths with space are more likely in Windows. Give it another try with the whole 43232 # argument. 43233 path="$complete" 43234 arguments="EOL" 43235 new_path=`$CYGPATH -u "$path"` 43236 new_path=`$WHICH "$new_path" 2> /dev/null` 43237 # bat and cmd files are not always considered executable in cygwin causing which 43238 # to not find them 43239 if test "x$new_path" = x \ 43240 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43241 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43242 new_path=`$CYGPATH -u "$path"` 43243 fi 43244 if test "x$new_path" = x; then 43245 # It's still not found. Now this is an unrecoverable error. 43246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43247 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43248 has_space=`$ECHO "$complete" | $GREP " "` 43249 if test "x$has_space" != x; then 43250 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43251 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43252 fi 43253 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43254 fi 43255 fi 43256 43257 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43258 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43259 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43260 # "foo.exe" is OK but "foo" is an error. 43261 # 43262 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43263 # It is also a way to make sure we got the proper file name for the real test later on. 43264 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43265 if test "x$test_shortpath" = x; then 43266 # Short path failed, file does not exist as specified. 43267 # Try adding .exe or .cmd 43268 if test -f "${new_path}.exe"; then 43269 input_to_shortpath="${new_path}.exe" 43270 elif test -f "${new_path}.cmd"; then 43271 input_to_shortpath="${new_path}.cmd" 43272 else 43273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 43274 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 43275 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43276 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43277 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43278 fi 43279 else 43280 input_to_shortpath="$new_path" 43281 fi 43282 43283 # Call helper function which possibly converts this using DOS-style short mode. 43284 # If so, the updated path is stored in $new_path. 43285 new_path="$input_to_shortpath" 43286 43287 input_path="$input_to_shortpath" 43288 # Check if we need to convert this using DOS-style short mode. If the path 43289 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43290 # take no chances and rewrite it. 43291 # Note: m4 eats our [], so we need to use [ and ] instead. 43292 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43293 if test "x$has_forbidden_chars" != x; then 43294 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43295 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43296 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43297 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43298 # Going to short mode and back again did indeed matter. Since short mode is 43299 # case insensitive, let's make it lowercase to improve readability. 43300 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43301 # Now convert it back to Unix-style (cygpath) 43302 input_path=`$CYGPATH -u "$shortmode_path"` 43303 new_path="$input_path" 43304 fi 43305 fi 43306 43307 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43308 if test "x$test_cygdrive_prefix" = x; then 43309 # As a simple fix, exclude /usr/bin since it's not a real path. 43310 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43311 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43312 # a path prefixed by /cygdrive for fixpath to work. 43313 new_path="$CYGWIN_ROOT_PATH$input_path" 43314 fi 43315 fi 43316 43317 # remove trailing .exe if any 43318 new_path="${new_path/%.exe/}" 43319 43320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43321 43322 # First separate the path from the arguments. This will split at the first 43323 # space. 43324 complete="$STRIP" 43325 path="${complete%% *}" 43326 tmp="$complete EOL" 43327 arguments="${tmp#* }" 43328 43329 # Input might be given as Windows format, start by converting to 43330 # unix format. 43331 new_path="$path" 43332 43333 windows_path="$new_path" 43334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43335 unix_path=`$CYGPATH -u "$windows_path"` 43336 new_path="$unix_path" 43337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43338 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43339 new_path="$unix_path" 43340 fi 43341 43342 43343 # Now try to locate executable using which 43344 new_path=`$WHICH "$new_path" 2> /dev/null` 43345 43346 if test "x$new_path" = x; then 43347 # Oops. Which didn't find the executable. 43348 # The splitting of arguments from the executable at a space might have been incorrect, 43349 # since paths with space are more likely in Windows. Give it another try with the whole 43350 # argument. 43351 path="$complete" 43352 arguments="EOL" 43353 new_path="$path" 43354 43355 windows_path="$new_path" 43356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43357 unix_path=`$CYGPATH -u "$windows_path"` 43358 new_path="$unix_path" 43359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43360 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43361 new_path="$unix_path" 43362 fi 43363 43364 43365 new_path=`$WHICH "$new_path" 2> /dev/null` 43366 # bat and cmd files are not always considered executable in MSYS causing which 43367 # to not find them 43368 if test "x$new_path" = x \ 43369 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43370 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43371 new_path="$path" 43372 43373 windows_path="$new_path" 43374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43375 unix_path=`$CYGPATH -u "$windows_path"` 43376 new_path="$unix_path" 43377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43378 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43379 new_path="$unix_path" 43380 fi 43381 43382 fi 43383 43384 if test "x$new_path" = x; then 43385 # It's still not found. Now this is an unrecoverable error. 43386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43387 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43388 has_space=`$ECHO "$complete" | $GREP " "` 43389 if test "x$has_space" != x; then 43390 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43391 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43392 fi 43393 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43394 fi 43395 fi 43396 43397 # Now new_path has a complete unix path to the binary 43398 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43399 # Keep paths in /bin as-is, but remove trailing .exe if any 43400 new_path="${new_path/%.exe/}" 43401 # Do not save /bin paths to all_fixpath_prefixes! 43402 else 43403 # Not in mixed or Windows style, start by that. 43404 new_path=`cmd //c echo $new_path` 43405 43406 input_path="$new_path" 43407 # Check if we need to convert this using DOS-style short mode. If the path 43408 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43409 # take no chances and rewrite it. 43410 # Note: m4 eats our [], so we need to use [ and ] instead. 43411 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43412 if test "x$has_forbidden_chars" != x; then 43413 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43414 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43415 fi 43416 43417 # Output is in $new_path 43418 43419 windows_path="$new_path" 43420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43421 unix_path=`$CYGPATH -u "$windows_path"` 43422 new_path="$unix_path" 43423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43424 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43425 new_path="$unix_path" 43426 fi 43427 43428 # remove trailing .exe if any 43429 new_path="${new_path/%.exe/}" 43430 43431 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43432 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43433 fi 43434 43435 else 43436 # We're on a unix platform. Hooray! :) 43437 # First separate the path from the arguments. This will split at the first 43438 # space. 43439 complete="$STRIP" 43440 path="${complete%% *}" 43441 tmp="$complete EOL" 43442 arguments="${tmp#* }" 43443 43444 # Cannot rely on the command "which" here since it doesn't always work. 43445 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43446 if test -z "$is_absolute_path"; then 43447 # Path to executable is not absolute. Find it. 43448 IFS_save="$IFS" 43449 IFS=: 43450 for p in $PATH; do 43451 if test -f "$p/$path" && test -x "$p/$path"; then 43452 new_path="$p/$path" 43453 break 43454 fi 43455 done 43456 IFS="$IFS_save" 43457 else 43458 # This is an absolute path, we can use it without further modifications. 43459 new_path="$path" 43460 fi 43461 43462 if test "x$new_path" = x; then 43463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43464 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43465 has_space=`$ECHO "$complete" | $GREP " "` 43466 if test "x$has_space" != x; then 43467 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43468 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43469 fi 43470 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43471 fi 43472 fi 43473 43474 # Now join together the path and the arguments once again 43475 if test "x$arguments" != xEOL; then 43476 new_complete="$new_path ${arguments% *}" 43477 else 43478 new_complete="$new_path" 43479 fi 43480 43481 if test "x$complete" != "x$new_complete"; then 43482 STRIP="$new_complete" 43483 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 43484 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 43485 fi 43486 fi 43487 43488 if test "x$TOOLCHAIN_TYPE" = xgcc; then 43489 43490 43491 # Publish this variable in the help. 43492 43493 43494 if [ -z "${NM+x}" ]; then 43495 # The variable is not set by user, try to locate tool using the code snippet 43496 if test -n "$ac_tool_prefix"; then 43497 for ac_prog in nm gcc-nm 43498 do 43499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43502 $as_echo_n "checking for $ac_word... " >&6; } 43503 if ${ac_cv_prog_NM+:} false; then : 43504 $as_echo_n "(cached) " >&6 43505 else 43506 if test -n "$NM"; then 43507 ac_cv_prog_NM="$NM" # Let the user override the test. 43508 else 43509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43510 for as_dir in $PATH 43511 do 43512 IFS=$as_save_IFS 43513 test -z "$as_dir" && as_dir=. 43514 for ac_exec_ext in '' $ac_executable_extensions; do 43515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43516 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43518 break 2 43519 fi 43520 done 43521 done 43522 IFS=$as_save_IFS 43523 43524 fi 43525 fi 43526 NM=$ac_cv_prog_NM 43527 if test -n "$NM"; then 43528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43529 $as_echo "$NM" >&6; } 43530 else 43531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43532 $as_echo "no" >&6; } 43533 fi 43534 43535 43536 test -n "$NM" && break 43537 done 43538 fi 43539 if test -z "$NM"; then 43540 ac_ct_NM=$NM 43541 for ac_prog in nm gcc-nm 43542 do 43543 # Extract the first word of "$ac_prog", so it can be a program name with args. 43544 set dummy $ac_prog; ac_word=$2 43545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43546 $as_echo_n "checking for $ac_word... " >&6; } 43547 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43548 $as_echo_n "(cached) " >&6 43549 else 43550 if test -n "$ac_ct_NM"; then 43551 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43552 else 43553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43554 for as_dir in $PATH 43555 do 43556 IFS=$as_save_IFS 43557 test -z "$as_dir" && as_dir=. 43558 for ac_exec_ext in '' $ac_executable_extensions; do 43559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43560 ac_cv_prog_ac_ct_NM="$ac_prog" 43561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43562 break 2 43563 fi 43564 done 43565 done 43566 IFS=$as_save_IFS 43567 43568 fi 43569 fi 43570 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43571 if test -n "$ac_ct_NM"; then 43572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43573 $as_echo "$ac_ct_NM" >&6; } 43574 else 43575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43576 $as_echo "no" >&6; } 43577 fi 43578 43579 43580 test -n "$ac_ct_NM" && break 43581 done 43582 43583 if test "x$ac_ct_NM" = x; then 43584 NM="" 43585 else 43586 case $cross_compiling:$ac_tool_warned in 43587 yes:) 43588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43590 ac_tool_warned=yes ;; 43591 esac 43592 NM=$ac_ct_NM 43593 fi 43594 fi 43595 43596 else 43597 # The variable is set, but is it from the command line or the environment? 43598 43599 # Try to remove the string !NM! from our list. 43600 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43601 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43602 # If it failed, the variable was not from the command line. Ignore it, 43603 # but warn the user (except for BASH, which is always set by the calling BASH). 43604 if test "xNM" != xBASH; then 43605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43606 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43607 fi 43608 # Try to locate tool using the code snippet 43609 if test -n "$ac_tool_prefix"; then 43610 for ac_prog in nm gcc-nm 43611 do 43612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43615 $as_echo_n "checking for $ac_word... " >&6; } 43616 if ${ac_cv_prog_NM+:} false; then : 43617 $as_echo_n "(cached) " >&6 43618 else 43619 if test -n "$NM"; then 43620 ac_cv_prog_NM="$NM" # Let the user override the test. 43621 else 43622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43623 for as_dir in $PATH 43624 do 43625 IFS=$as_save_IFS 43626 test -z "$as_dir" && as_dir=. 43627 for ac_exec_ext in '' $ac_executable_extensions; do 43628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43629 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43631 break 2 43632 fi 43633 done 43634 done 43635 IFS=$as_save_IFS 43636 43637 fi 43638 fi 43639 NM=$ac_cv_prog_NM 43640 if test -n "$NM"; then 43641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43642 $as_echo "$NM" >&6; } 43643 else 43644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43645 $as_echo "no" >&6; } 43646 fi 43647 43648 43649 test -n "$NM" && break 43650 done 43651 fi 43652 if test -z "$NM"; then 43653 ac_ct_NM=$NM 43654 for ac_prog in nm gcc-nm 43655 do 43656 # Extract the first word of "$ac_prog", so it can be a program name with args. 43657 set dummy $ac_prog; ac_word=$2 43658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43659 $as_echo_n "checking for $ac_word... " >&6; } 43660 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43661 $as_echo_n "(cached) " >&6 43662 else 43663 if test -n "$ac_ct_NM"; then 43664 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43665 else 43666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43667 for as_dir in $PATH 43668 do 43669 IFS=$as_save_IFS 43670 test -z "$as_dir" && as_dir=. 43671 for ac_exec_ext in '' $ac_executable_extensions; do 43672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43673 ac_cv_prog_ac_ct_NM="$ac_prog" 43674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43675 break 2 43676 fi 43677 done 43678 done 43679 IFS=$as_save_IFS 43680 43681 fi 43682 fi 43683 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43684 if test -n "$ac_ct_NM"; then 43685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43686 $as_echo "$ac_ct_NM" >&6; } 43687 else 43688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43689 $as_echo "no" >&6; } 43690 fi 43691 43692 43693 test -n "$ac_ct_NM" && break 43694 done 43695 43696 if test "x$ac_ct_NM" = x; then 43697 NM="" 43698 else 43699 case $cross_compiling:$ac_tool_warned in 43700 yes:) 43701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43703 ac_tool_warned=yes ;; 43704 esac 43705 NM=$ac_ct_NM 43706 fi 43707 fi 43708 43709 else 43710 # If it succeeded, then it was overridden by the user. We will use it 43711 # for the tool. 43712 43713 # First remove it from the list of overridden variables, so we can test 43714 # for unknown variables in the end. 43715 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43716 43717 # Check if we try to supply an empty value 43718 if test "x$NM" = x; then 43719 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 43720 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 43721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43722 $as_echo_n "checking for NM... " >&6; } 43723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43724 $as_echo "disabled" >&6; } 43725 else 43726 # Check if the provided tool contains a complete path. 43727 tool_specified="$NM" 43728 tool_basename="${tool_specified##*/}" 43729 if test "x$tool_basename" = "x$tool_specified"; then 43730 # A command without a complete path is provided, search $PATH. 43731 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 43732 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 43733 # Extract the first word of "$tool_basename", so it can be a program name with args. 43734 set dummy $tool_basename; ac_word=$2 43735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43736 $as_echo_n "checking for $ac_word... " >&6; } 43737 if ${ac_cv_path_NM+:} false; then : 43738 $as_echo_n "(cached) " >&6 43739 else 43740 case $NM in 43741 [\\/]* | ?:[\\/]*) 43742 ac_cv_path_NM="$NM" # Let the user override the test with a path. 43743 ;; 43744 *) 43745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43746 for as_dir in $PATH 43747 do 43748 IFS=$as_save_IFS 43749 test -z "$as_dir" && as_dir=. 43750 for ac_exec_ext in '' $ac_executable_extensions; do 43751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43752 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 43753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43754 break 2 43755 fi 43756 done 43757 done 43758 IFS=$as_save_IFS 43759 43760 ;; 43761 esac 43762 fi 43763 NM=$ac_cv_path_NM 43764 if test -n "$NM"; then 43765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43766 $as_echo "$NM" >&6; } 43767 else 43768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43769 $as_echo "no" >&6; } 43770 fi 43771 43772 43773 if test "x$NM" = x; then 43774 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43775 fi 43776 else 43777 # Otherwise we believe it is a complete path. Use it as it is. 43778 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 43779 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 43780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43781 $as_echo_n "checking for NM... " >&6; } 43782 if test ! -x "$tool_specified"; then 43783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43784 $as_echo "not found" >&6; } 43785 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 43786 fi 43787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43788 $as_echo "$tool_specified" >&6; } 43789 fi 43790 fi 43791 fi 43792 43793 fi 43794 43795 43796 else 43797 43798 43799 # Publish this variable in the help. 43800 43801 43802 if [ -z "${NM+x}" ]; then 43803 # The variable is not set by user, try to locate tool using the code snippet 43804 if test -n "$ac_tool_prefix"; then 43805 for ac_prog in nm 43806 do 43807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43810 $as_echo_n "checking for $ac_word... " >&6; } 43811 if ${ac_cv_prog_NM+:} false; then : 43812 $as_echo_n "(cached) " >&6 43813 else 43814 if test -n "$NM"; then 43815 ac_cv_prog_NM="$NM" # Let the user override the test. 43816 else 43817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43818 for as_dir in $PATH 43819 do 43820 IFS=$as_save_IFS 43821 test -z "$as_dir" && as_dir=. 43822 for ac_exec_ext in '' $ac_executable_extensions; do 43823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43824 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43826 break 2 43827 fi 43828 done 43829 done 43830 IFS=$as_save_IFS 43831 43832 fi 43833 fi 43834 NM=$ac_cv_prog_NM 43835 if test -n "$NM"; then 43836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43837 $as_echo "$NM" >&6; } 43838 else 43839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43840 $as_echo "no" >&6; } 43841 fi 43842 43843 43844 test -n "$NM" && break 43845 done 43846 fi 43847 if test -z "$NM"; then 43848 ac_ct_NM=$NM 43849 for ac_prog in nm 43850 do 43851 # Extract the first word of "$ac_prog", so it can be a program name with args. 43852 set dummy $ac_prog; ac_word=$2 43853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43854 $as_echo_n "checking for $ac_word... " >&6; } 43855 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43856 $as_echo_n "(cached) " >&6 43857 else 43858 if test -n "$ac_ct_NM"; then 43859 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43860 else 43861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43862 for as_dir in $PATH 43863 do 43864 IFS=$as_save_IFS 43865 test -z "$as_dir" && as_dir=. 43866 for ac_exec_ext in '' $ac_executable_extensions; do 43867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43868 ac_cv_prog_ac_ct_NM="$ac_prog" 43869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43870 break 2 43871 fi 43872 done 43873 done 43874 IFS=$as_save_IFS 43875 43876 fi 43877 fi 43878 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43879 if test -n "$ac_ct_NM"; then 43880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43881 $as_echo "$ac_ct_NM" >&6; } 43882 else 43883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43884 $as_echo "no" >&6; } 43885 fi 43886 43887 43888 test -n "$ac_ct_NM" && break 43889 done 43890 43891 if test "x$ac_ct_NM" = x; then 43892 NM="" 43893 else 43894 case $cross_compiling:$ac_tool_warned in 43895 yes:) 43896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43898 ac_tool_warned=yes ;; 43899 esac 43900 NM=$ac_ct_NM 43901 fi 43902 fi 43903 43904 else 43905 # The variable is set, but is it from the command line or the environment? 43906 43907 # Try to remove the string !NM! from our list. 43908 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43909 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43910 # If it failed, the variable was not from the command line. Ignore it, 43911 # but warn the user (except for BASH, which is always set by the calling BASH). 43912 if test "xNM" != xBASH; then 43913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43914 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43915 fi 43916 # Try to locate tool using the code snippet 43917 if test -n "$ac_tool_prefix"; then 43918 for ac_prog in nm 43919 do 43920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43923 $as_echo_n "checking for $ac_word... " >&6; } 43924 if ${ac_cv_prog_NM+:} false; then : 43925 $as_echo_n "(cached) " >&6 43926 else 43927 if test -n "$NM"; then 43928 ac_cv_prog_NM="$NM" # Let the user override the test. 43929 else 43930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43931 for as_dir in $PATH 43932 do 43933 IFS=$as_save_IFS 43934 test -z "$as_dir" && as_dir=. 43935 for ac_exec_ext in '' $ac_executable_extensions; do 43936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43937 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43939 break 2 43940 fi 43941 done 43942 done 43943 IFS=$as_save_IFS 43944 43945 fi 43946 fi 43947 NM=$ac_cv_prog_NM 43948 if test -n "$NM"; then 43949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43950 $as_echo "$NM" >&6; } 43951 else 43952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43953 $as_echo "no" >&6; } 43954 fi 43955 43956 43957 test -n "$NM" && break 43958 done 43959 fi 43960 if test -z "$NM"; then 43961 ac_ct_NM=$NM 43962 for ac_prog in nm 43963 do 43964 # Extract the first word of "$ac_prog", so it can be a program name with args. 43965 set dummy $ac_prog; ac_word=$2 43966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43967 $as_echo_n "checking for $ac_word... " >&6; } 43968 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43969 $as_echo_n "(cached) " >&6 43970 else 43971 if test -n "$ac_ct_NM"; then 43972 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43973 else 43974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43975 for as_dir in $PATH 43976 do 43977 IFS=$as_save_IFS 43978 test -z "$as_dir" && as_dir=. 43979 for ac_exec_ext in '' $ac_executable_extensions; do 43980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43981 ac_cv_prog_ac_ct_NM="$ac_prog" 43982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43983 break 2 43984 fi 43985 done 43986 done 43987 IFS=$as_save_IFS 43988 43989 fi 43990 fi 43991 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43992 if test -n "$ac_ct_NM"; then 43993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43994 $as_echo "$ac_ct_NM" >&6; } 43995 else 43996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43997 $as_echo "no" >&6; } 43998 fi 43999 44000 44001 test -n "$ac_ct_NM" && break 44002 done 44003 44004 if test "x$ac_ct_NM" = x; then 44005 NM="" 44006 else 44007 case $cross_compiling:$ac_tool_warned in 44008 yes:) 44009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44011 ac_tool_warned=yes ;; 44012 esac 44013 NM=$ac_ct_NM 44014 fi 44015 fi 44016 44017 else 44018 # If it succeeded, then it was overridden by the user. We will use it 44019 # for the tool. 44020 44021 # First remove it from the list of overridden variables, so we can test 44022 # for unknown variables in the end. 44023 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44024 44025 # Check if we try to supply an empty value 44026 if test "x$NM" = x; then 44027 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 44028 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 44029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 44030 $as_echo_n "checking for NM... " >&6; } 44031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44032 $as_echo "disabled" >&6; } 44033 else 44034 # Check if the provided tool contains a complete path. 44035 tool_specified="$NM" 44036 tool_basename="${tool_specified##*/}" 44037 if test "x$tool_basename" = "x$tool_specified"; then 44038 # A command without a complete path is provided, search $PATH. 44039 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 44040 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 44041 # Extract the first word of "$tool_basename", so it can be a program name with args. 44042 set dummy $tool_basename; ac_word=$2 44043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44044 $as_echo_n "checking for $ac_word... " >&6; } 44045 if ${ac_cv_path_NM+:} false; then : 44046 $as_echo_n "(cached) " >&6 44047 else 44048 case $NM in 44049 [\\/]* | ?:[\\/]*) 44050 ac_cv_path_NM="$NM" # Let the user override the test with a path. 44051 ;; 44052 *) 44053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44054 for as_dir in $PATH 44055 do 44056 IFS=$as_save_IFS 44057 test -z "$as_dir" && as_dir=. 44058 for ac_exec_ext in '' $ac_executable_extensions; do 44059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44060 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 44061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44062 break 2 44063 fi 44064 done 44065 done 44066 IFS=$as_save_IFS 44067 44068 ;; 44069 esac 44070 fi 44071 NM=$ac_cv_path_NM 44072 if test -n "$NM"; then 44073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 44074 $as_echo "$NM" >&6; } 44075 else 44076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44077 $as_echo "no" >&6; } 44078 fi 44079 44080 44081 if test "x$NM" = x; then 44082 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44083 fi 44084 else 44085 # Otherwise we believe it is a complete path. Use it as it is. 44086 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 44087 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 44088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 44089 $as_echo_n "checking for NM... " >&6; } 44090 if test ! -x "$tool_specified"; then 44091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44092 $as_echo "not found" >&6; } 44093 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 44094 fi 44095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44096 $as_echo "$tool_specified" >&6; } 44097 fi 44098 fi 44099 fi 44100 44101 fi 44102 44103 44104 fi 44105 44106 # Only process if variable expands to non-empty 44107 44108 if test "x$NM" != x; then 44109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44110 44111 # First separate the path from the arguments. This will split at the first 44112 # space. 44113 complete="$NM" 44114 path="${complete%% *}" 44115 tmp="$complete EOL" 44116 arguments="${tmp#* }" 44117 44118 # Input might be given as Windows format, start by converting to 44119 # unix format. 44120 new_path=`$CYGPATH -u "$path"` 44121 44122 # Now try to locate executable using which 44123 new_path=`$WHICH "$new_path" 2> /dev/null` 44124 # bat and cmd files are not always considered executable in cygwin causing which 44125 # to not find them 44126 if test "x$new_path" = x \ 44127 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44128 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44129 new_path=`$CYGPATH -u "$path"` 44130 fi 44131 if test "x$new_path" = x; then 44132 # Oops. Which didn't find the executable. 44133 # The splitting of arguments from the executable at a space might have been incorrect, 44134 # since paths with space are more likely in Windows. Give it another try with the whole 44135 # argument. 44136 path="$complete" 44137 arguments="EOL" 44138 new_path=`$CYGPATH -u "$path"` 44139 new_path=`$WHICH "$new_path" 2> /dev/null` 44140 # bat and cmd files are not always considered executable in cygwin causing which 44141 # to not find them 44142 if test "x$new_path" = x \ 44143 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44144 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44145 new_path=`$CYGPATH -u "$path"` 44146 fi 44147 if test "x$new_path" = x; then 44148 # It's still not found. Now this is an unrecoverable error. 44149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44150 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44151 has_space=`$ECHO "$complete" | $GREP " "` 44152 if test "x$has_space" != x; then 44153 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44154 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44155 fi 44156 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44157 fi 44158 fi 44159 44160 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44161 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44162 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44163 # "foo.exe" is OK but "foo" is an error. 44164 # 44165 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44166 # It is also a way to make sure we got the proper file name for the real test later on. 44167 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44168 if test "x$test_shortpath" = x; then 44169 # Short path failed, file does not exist as specified. 44170 # Try adding .exe or .cmd 44171 if test -f "${new_path}.exe"; then 44172 input_to_shortpath="${new_path}.exe" 44173 elif test -f "${new_path}.cmd"; then 44174 input_to_shortpath="${new_path}.cmd" 44175 else 44176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 44177 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 44178 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44179 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44180 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44181 fi 44182 else 44183 input_to_shortpath="$new_path" 44184 fi 44185 44186 # Call helper function which possibly converts this using DOS-style short mode. 44187 # If so, the updated path is stored in $new_path. 44188 new_path="$input_to_shortpath" 44189 44190 input_path="$input_to_shortpath" 44191 # Check if we need to convert this using DOS-style short mode. If the path 44192 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44193 # take no chances and rewrite it. 44194 # Note: m4 eats our [], so we need to use [ and ] instead. 44195 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44196 if test "x$has_forbidden_chars" != x; then 44197 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44198 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44199 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44200 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44201 # Going to short mode and back again did indeed matter. Since short mode is 44202 # case insensitive, let's make it lowercase to improve readability. 44203 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44204 # Now convert it back to Unix-style (cygpath) 44205 input_path=`$CYGPATH -u "$shortmode_path"` 44206 new_path="$input_path" 44207 fi 44208 fi 44209 44210 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44211 if test "x$test_cygdrive_prefix" = x; then 44212 # As a simple fix, exclude /usr/bin since it's not a real path. 44213 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44214 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44215 # a path prefixed by /cygdrive for fixpath to work. 44216 new_path="$CYGWIN_ROOT_PATH$input_path" 44217 fi 44218 fi 44219 44220 # remove trailing .exe if any 44221 new_path="${new_path/%.exe/}" 44222 44223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44224 44225 # First separate the path from the arguments. This will split at the first 44226 # space. 44227 complete="$NM" 44228 path="${complete%% *}" 44229 tmp="$complete EOL" 44230 arguments="${tmp#* }" 44231 44232 # Input might be given as Windows format, start by converting to 44233 # unix format. 44234 new_path="$path" 44235 44236 windows_path="$new_path" 44237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44238 unix_path=`$CYGPATH -u "$windows_path"` 44239 new_path="$unix_path" 44240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44242 new_path="$unix_path" 44243 fi 44244 44245 44246 # Now try to locate executable using which 44247 new_path=`$WHICH "$new_path" 2> /dev/null` 44248 44249 if test "x$new_path" = x; then 44250 # Oops. Which didn't find the executable. 44251 # The splitting of arguments from the executable at a space might have been incorrect, 44252 # since paths with space are more likely in Windows. Give it another try with the whole 44253 # argument. 44254 path="$complete" 44255 arguments="EOL" 44256 new_path="$path" 44257 44258 windows_path="$new_path" 44259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44260 unix_path=`$CYGPATH -u "$windows_path"` 44261 new_path="$unix_path" 44262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44264 new_path="$unix_path" 44265 fi 44266 44267 44268 new_path=`$WHICH "$new_path" 2> /dev/null` 44269 # bat and cmd files are not always considered executable in MSYS causing which 44270 # to not find them 44271 if test "x$new_path" = x \ 44272 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44273 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44274 new_path="$path" 44275 44276 windows_path="$new_path" 44277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44278 unix_path=`$CYGPATH -u "$windows_path"` 44279 new_path="$unix_path" 44280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44281 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44282 new_path="$unix_path" 44283 fi 44284 44285 fi 44286 44287 if test "x$new_path" = x; then 44288 # It's still not found. Now this is an unrecoverable error. 44289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44290 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44291 has_space=`$ECHO "$complete" | $GREP " "` 44292 if test "x$has_space" != x; then 44293 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44294 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44295 fi 44296 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44297 fi 44298 fi 44299 44300 # Now new_path has a complete unix path to the binary 44301 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44302 # Keep paths in /bin as-is, but remove trailing .exe if any 44303 new_path="${new_path/%.exe/}" 44304 # Do not save /bin paths to all_fixpath_prefixes! 44305 else 44306 # Not in mixed or Windows style, start by that. 44307 new_path=`cmd //c echo $new_path` 44308 44309 input_path="$new_path" 44310 # Check if we need to convert this using DOS-style short mode. If the path 44311 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44312 # take no chances and rewrite it. 44313 # Note: m4 eats our [], so we need to use [ and ] instead. 44314 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44315 if test "x$has_forbidden_chars" != x; then 44316 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44317 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44318 fi 44319 44320 # Output is in $new_path 44321 44322 windows_path="$new_path" 44323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44324 unix_path=`$CYGPATH -u "$windows_path"` 44325 new_path="$unix_path" 44326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44328 new_path="$unix_path" 44329 fi 44330 44331 # remove trailing .exe if any 44332 new_path="${new_path/%.exe/}" 44333 44334 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44335 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44336 fi 44337 44338 else 44339 # We're on a unix platform. Hooray! :) 44340 # First separate the path from the arguments. This will split at the first 44341 # space. 44342 complete="$NM" 44343 path="${complete%% *}" 44344 tmp="$complete EOL" 44345 arguments="${tmp#* }" 44346 44347 # Cannot rely on the command "which" here since it doesn't always work. 44348 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44349 if test -z "$is_absolute_path"; then 44350 # Path to executable is not absolute. Find it. 44351 IFS_save="$IFS" 44352 IFS=: 44353 for p in $PATH; do 44354 if test -f "$p/$path" && test -x "$p/$path"; then 44355 new_path="$p/$path" 44356 break 44357 fi 44358 done 44359 IFS="$IFS_save" 44360 else 44361 # This is an absolute path, we can use it without further modifications. 44362 new_path="$path" 44363 fi 44364 44365 if test "x$new_path" = x; then 44366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44367 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44368 has_space=`$ECHO "$complete" | $GREP " "` 44369 if test "x$has_space" != x; then 44370 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44371 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44372 fi 44373 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44374 fi 44375 fi 44376 44377 # Now join together the path and the arguments once again 44378 if test "x$arguments" != xEOL; then 44379 new_complete="$new_path ${arguments% *}" 44380 else 44381 new_complete="$new_path" 44382 fi 44383 44384 if test "x$complete" != "x$new_complete"; then 44385 NM="$new_complete" 44386 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 44387 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 44388 fi 44389 fi 44390 44391 GNM="$NM" 44392 44393 fi 44394 44395 # objcopy is used for moving debug symbols to separate files when 44396 # full debug symbols are enabled. 44397 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 44398 44399 44400 # Publish this variable in the help. 44401 44402 44403 if [ -z "${OBJCOPY+x}" ]; then 44404 # The variable is not set by user, try to locate tool using the code snippet 44405 if test -n "$ac_tool_prefix"; then 44406 for ac_prog in gobjcopy objcopy 44407 do 44408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44411 $as_echo_n "checking for $ac_word... " >&6; } 44412 if ${ac_cv_prog_OBJCOPY+:} false; then : 44413 $as_echo_n "(cached) " >&6 44414 else 44415 if test -n "$OBJCOPY"; then 44416 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 44417 else 44418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44419 for as_dir in $PATH 44420 do 44421 IFS=$as_save_IFS 44422 test -z "$as_dir" && as_dir=. 44423 for ac_exec_ext in '' $ac_executable_extensions; do 44424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44425 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 44426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44427 break 2 44428 fi 44429 done 44430 done 44431 IFS=$as_save_IFS 44432 44433 fi 44434 fi 44435 OBJCOPY=$ac_cv_prog_OBJCOPY 44436 if test -n "$OBJCOPY"; then 44437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44438 $as_echo "$OBJCOPY" >&6; } 44439 else 44440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44441 $as_echo "no" >&6; } 44442 fi 44443 44444 44445 test -n "$OBJCOPY" && break 44446 done 44447 fi 44448 if test -z "$OBJCOPY"; then 44449 ac_ct_OBJCOPY=$OBJCOPY 44450 for ac_prog in gobjcopy objcopy 44451 do 44452 # Extract the first word of "$ac_prog", so it can be a program name with args. 44453 set dummy $ac_prog; ac_word=$2 44454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44455 $as_echo_n "checking for $ac_word... " >&6; } 44456 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 44457 $as_echo_n "(cached) " >&6 44458 else 44459 if test -n "$ac_ct_OBJCOPY"; then 44460 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 44461 else 44462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44463 for as_dir in $PATH 44464 do 44465 IFS=$as_save_IFS 44466 test -z "$as_dir" && as_dir=. 44467 for ac_exec_ext in '' $ac_executable_extensions; do 44468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44469 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 44470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44471 break 2 44472 fi 44473 done 44474 done 44475 IFS=$as_save_IFS 44476 44477 fi 44478 fi 44479 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 44480 if test -n "$ac_ct_OBJCOPY"; then 44481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 44482 $as_echo "$ac_ct_OBJCOPY" >&6; } 44483 else 44484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44485 $as_echo "no" >&6; } 44486 fi 44487 44488 44489 test -n "$ac_ct_OBJCOPY" && break 44490 done 44491 44492 if test "x$ac_ct_OBJCOPY" = x; then 44493 OBJCOPY="" 44494 else 44495 case $cross_compiling:$ac_tool_warned in 44496 yes:) 44497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44499 ac_tool_warned=yes ;; 44500 esac 44501 OBJCOPY=$ac_ct_OBJCOPY 44502 fi 44503 fi 44504 44505 else 44506 # The variable is set, but is it from the command line or the environment? 44507 44508 # Try to remove the string !OBJCOPY! from our list. 44509 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 44510 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44511 # If it failed, the variable was not from the command line. Ignore it, 44512 # but warn the user (except for BASH, which is always set by the calling BASH). 44513 if test "xOBJCOPY" != xBASH; then 44514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 44515 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 44516 fi 44517 # Try to locate tool using the code snippet 44518 if test -n "$ac_tool_prefix"; then 44519 for ac_prog in gobjcopy objcopy 44520 do 44521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44524 $as_echo_n "checking for $ac_word... " >&6; } 44525 if ${ac_cv_prog_OBJCOPY+:} false; then : 44526 $as_echo_n "(cached) " >&6 44527 else 44528 if test -n "$OBJCOPY"; then 44529 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 44530 else 44531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44532 for as_dir in $PATH 44533 do 44534 IFS=$as_save_IFS 44535 test -z "$as_dir" && as_dir=. 44536 for ac_exec_ext in '' $ac_executable_extensions; do 44537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44538 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 44539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44540 break 2 44541 fi 44542 done 44543 done 44544 IFS=$as_save_IFS 44545 44546 fi 44547 fi 44548 OBJCOPY=$ac_cv_prog_OBJCOPY 44549 if test -n "$OBJCOPY"; then 44550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44551 $as_echo "$OBJCOPY" >&6; } 44552 else 44553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44554 $as_echo "no" >&6; } 44555 fi 44556 44557 44558 test -n "$OBJCOPY" && break 44559 done 44560 fi 44561 if test -z "$OBJCOPY"; then 44562 ac_ct_OBJCOPY=$OBJCOPY 44563 for ac_prog in gobjcopy objcopy 44564 do 44565 # Extract the first word of "$ac_prog", so it can be a program name with args. 44566 set dummy $ac_prog; ac_word=$2 44567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44568 $as_echo_n "checking for $ac_word... " >&6; } 44569 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 44570 $as_echo_n "(cached) " >&6 44571 else 44572 if test -n "$ac_ct_OBJCOPY"; then 44573 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 44574 else 44575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44576 for as_dir in $PATH 44577 do 44578 IFS=$as_save_IFS 44579 test -z "$as_dir" && as_dir=. 44580 for ac_exec_ext in '' $ac_executable_extensions; do 44581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44582 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 44583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44584 break 2 44585 fi 44586 done 44587 done 44588 IFS=$as_save_IFS 44589 44590 fi 44591 fi 44592 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 44593 if test -n "$ac_ct_OBJCOPY"; then 44594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 44595 $as_echo "$ac_ct_OBJCOPY" >&6; } 44596 else 44597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44598 $as_echo "no" >&6; } 44599 fi 44600 44601 44602 test -n "$ac_ct_OBJCOPY" && break 44603 done 44604 44605 if test "x$ac_ct_OBJCOPY" = x; then 44606 OBJCOPY="" 44607 else 44608 case $cross_compiling:$ac_tool_warned in 44609 yes:) 44610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44612 ac_tool_warned=yes ;; 44613 esac 44614 OBJCOPY=$ac_ct_OBJCOPY 44615 fi 44616 fi 44617 44618 else 44619 # If it succeeded, then it was overridden by the user. We will use it 44620 # for the tool. 44621 44622 # First remove it from the list of overridden variables, so we can test 44623 # for unknown variables in the end. 44624 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44625 44626 # Check if we try to supply an empty value 44627 if test "x$OBJCOPY" = x; then 44628 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 44629 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 44630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 44631 $as_echo_n "checking for OBJCOPY... " >&6; } 44632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44633 $as_echo "disabled" >&6; } 44634 else 44635 # Check if the provided tool contains a complete path. 44636 tool_specified="$OBJCOPY" 44637 tool_basename="${tool_specified##*/}" 44638 if test "x$tool_basename" = "x$tool_specified"; then 44639 # A command without a complete path is provided, search $PATH. 44640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 44641 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 44642 # Extract the first word of "$tool_basename", so it can be a program name with args. 44643 set dummy $tool_basename; ac_word=$2 44644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44645 $as_echo_n "checking for $ac_word... " >&6; } 44646 if ${ac_cv_path_OBJCOPY+:} false; then : 44647 $as_echo_n "(cached) " >&6 44648 else 44649 case $OBJCOPY in 44650 [\\/]* | ?:[\\/]*) 44651 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 44652 ;; 44653 *) 44654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44655 for as_dir in $PATH 44656 do 44657 IFS=$as_save_IFS 44658 test -z "$as_dir" && as_dir=. 44659 for ac_exec_ext in '' $ac_executable_extensions; do 44660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44661 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 44662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44663 break 2 44664 fi 44665 done 44666 done 44667 IFS=$as_save_IFS 44668 44669 ;; 44670 esac 44671 fi 44672 OBJCOPY=$ac_cv_path_OBJCOPY 44673 if test -n "$OBJCOPY"; then 44674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44675 $as_echo "$OBJCOPY" >&6; } 44676 else 44677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44678 $as_echo "no" >&6; } 44679 fi 44680 44681 44682 if test "x$OBJCOPY" = x; then 44683 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44684 fi 44685 else 44686 # Otherwise we believe it is a complete path. Use it as it is. 44687 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 44688 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 44689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 44690 $as_echo_n "checking for OBJCOPY... " >&6; } 44691 if test ! -x "$tool_specified"; then 44692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44693 $as_echo "not found" >&6; } 44694 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 44695 fi 44696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44697 $as_echo "$tool_specified" >&6; } 44698 fi 44699 fi 44700 fi 44701 44702 fi 44703 44704 44705 # Only call fixup if objcopy was found. 44706 if test -n "$OBJCOPY"; then 44707 44708 # Only process if variable expands to non-empty 44709 44710 if test "x$OBJCOPY" != x; then 44711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44712 44713 # First separate the path from the arguments. This will split at the first 44714 # space. 44715 complete="$OBJCOPY" 44716 path="${complete%% *}" 44717 tmp="$complete EOL" 44718 arguments="${tmp#* }" 44719 44720 # Input might be given as Windows format, start by converting to 44721 # unix format. 44722 new_path=`$CYGPATH -u "$path"` 44723 44724 # Now try to locate executable using which 44725 new_path=`$WHICH "$new_path" 2> /dev/null` 44726 # bat and cmd files are not always considered executable in cygwin causing which 44727 # to not find them 44728 if test "x$new_path" = x \ 44729 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44730 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44731 new_path=`$CYGPATH -u "$path"` 44732 fi 44733 if test "x$new_path" = x; then 44734 # Oops. Which didn't find the executable. 44735 # The splitting of arguments from the executable at a space might have been incorrect, 44736 # since paths with space are more likely in Windows. Give it another try with the whole 44737 # argument. 44738 path="$complete" 44739 arguments="EOL" 44740 new_path=`$CYGPATH -u "$path"` 44741 new_path=`$WHICH "$new_path" 2> /dev/null` 44742 # bat and cmd files are not always considered executable in cygwin causing which 44743 # to not find them 44744 if test "x$new_path" = x \ 44745 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44746 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44747 new_path=`$CYGPATH -u "$path"` 44748 fi 44749 if test "x$new_path" = x; then 44750 # It's still not found. Now this is an unrecoverable error. 44751 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44752 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44753 has_space=`$ECHO "$complete" | $GREP " "` 44754 if test "x$has_space" != x; then 44755 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44756 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44757 fi 44758 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44759 fi 44760 fi 44761 44762 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44763 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44764 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44765 # "foo.exe" is OK but "foo" is an error. 44766 # 44767 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44768 # It is also a way to make sure we got the proper file name for the real test later on. 44769 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44770 if test "x$test_shortpath" = x; then 44771 # Short path failed, file does not exist as specified. 44772 # Try adding .exe or .cmd 44773 if test -f "${new_path}.exe"; then 44774 input_to_shortpath="${new_path}.exe" 44775 elif test -f "${new_path}.cmd"; then 44776 input_to_shortpath="${new_path}.cmd" 44777 else 44778 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 44779 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 44780 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44781 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44782 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44783 fi 44784 else 44785 input_to_shortpath="$new_path" 44786 fi 44787 44788 # Call helper function which possibly converts this using DOS-style short mode. 44789 # If so, the updated path is stored in $new_path. 44790 new_path="$input_to_shortpath" 44791 44792 input_path="$input_to_shortpath" 44793 # Check if we need to convert this using DOS-style short mode. If the path 44794 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44795 # take no chances and rewrite it. 44796 # Note: m4 eats our [], so we need to use [ and ] instead. 44797 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44798 if test "x$has_forbidden_chars" != x; then 44799 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44800 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44801 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44802 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44803 # Going to short mode and back again did indeed matter. Since short mode is 44804 # case insensitive, let's make it lowercase to improve readability. 44805 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44806 # Now convert it back to Unix-style (cygpath) 44807 input_path=`$CYGPATH -u "$shortmode_path"` 44808 new_path="$input_path" 44809 fi 44810 fi 44811 44812 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44813 if test "x$test_cygdrive_prefix" = x; then 44814 # As a simple fix, exclude /usr/bin since it's not a real path. 44815 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44816 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44817 # a path prefixed by /cygdrive for fixpath to work. 44818 new_path="$CYGWIN_ROOT_PATH$input_path" 44819 fi 44820 fi 44821 44822 # remove trailing .exe if any 44823 new_path="${new_path/%.exe/}" 44824 44825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44826 44827 # First separate the path from the arguments. This will split at the first 44828 # space. 44829 complete="$OBJCOPY" 44830 path="${complete%% *}" 44831 tmp="$complete EOL" 44832 arguments="${tmp#* }" 44833 44834 # Input might be given as Windows format, start by converting to 44835 # unix format. 44836 new_path="$path" 44837 44838 windows_path="$new_path" 44839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44840 unix_path=`$CYGPATH -u "$windows_path"` 44841 new_path="$unix_path" 44842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44844 new_path="$unix_path" 44845 fi 44846 44847 44848 # Now try to locate executable using which 44849 new_path=`$WHICH "$new_path" 2> /dev/null` 44850 44851 if test "x$new_path" = x; then 44852 # Oops. Which didn't find the executable. 44853 # The splitting of arguments from the executable at a space might have been incorrect, 44854 # since paths with space are more likely in Windows. Give it another try with the whole 44855 # argument. 44856 path="$complete" 44857 arguments="EOL" 44858 new_path="$path" 44859 44860 windows_path="$new_path" 44861 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44862 unix_path=`$CYGPATH -u "$windows_path"` 44863 new_path="$unix_path" 44864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44865 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44866 new_path="$unix_path" 44867 fi 44868 44869 44870 new_path=`$WHICH "$new_path" 2> /dev/null` 44871 # bat and cmd files are not always considered executable in MSYS causing which 44872 # to not find them 44873 if test "x$new_path" = x \ 44874 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44875 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44876 new_path="$path" 44877 44878 windows_path="$new_path" 44879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44880 unix_path=`$CYGPATH -u "$windows_path"` 44881 new_path="$unix_path" 44882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44883 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44884 new_path="$unix_path" 44885 fi 44886 44887 fi 44888 44889 if test "x$new_path" = x; then 44890 # It's still not found. Now this is an unrecoverable error. 44891 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44892 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44893 has_space=`$ECHO "$complete" | $GREP " "` 44894 if test "x$has_space" != x; then 44895 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44896 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44897 fi 44898 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44899 fi 44900 fi 44901 44902 # Now new_path has a complete unix path to the binary 44903 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44904 # Keep paths in /bin as-is, but remove trailing .exe if any 44905 new_path="${new_path/%.exe/}" 44906 # Do not save /bin paths to all_fixpath_prefixes! 44907 else 44908 # Not in mixed or Windows style, start by that. 44909 new_path=`cmd //c echo $new_path` 44910 44911 input_path="$new_path" 44912 # Check if we need to convert this using DOS-style short mode. If the path 44913 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44914 # take no chances and rewrite it. 44915 # Note: m4 eats our [], so we need to use [ and ] instead. 44916 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44917 if test "x$has_forbidden_chars" != x; then 44918 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44919 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44920 fi 44921 44922 # Output is in $new_path 44923 44924 windows_path="$new_path" 44925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44926 unix_path=`$CYGPATH -u "$windows_path"` 44927 new_path="$unix_path" 44928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44930 new_path="$unix_path" 44931 fi 44932 44933 # remove trailing .exe if any 44934 new_path="${new_path/%.exe/}" 44935 44936 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44937 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44938 fi 44939 44940 else 44941 # We're on a unix platform. Hooray! :) 44942 # First separate the path from the arguments. This will split at the first 44943 # space. 44944 complete="$OBJCOPY" 44945 path="${complete%% *}" 44946 tmp="$complete EOL" 44947 arguments="${tmp#* }" 44948 44949 # Cannot rely on the command "which" here since it doesn't always work. 44950 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44951 if test -z "$is_absolute_path"; then 44952 # Path to executable is not absolute. Find it. 44953 IFS_save="$IFS" 44954 IFS=: 44955 for p in $PATH; do 44956 if test -f "$p/$path" && test -x "$p/$path"; then 44957 new_path="$p/$path" 44958 break 44959 fi 44960 done 44961 IFS="$IFS_save" 44962 else 44963 # This is an absolute path, we can use it without further modifications. 44964 new_path="$path" 44965 fi 44966 44967 if test "x$new_path" = x; then 44968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44969 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44970 has_space=`$ECHO "$complete" | $GREP " "` 44971 if test "x$has_space" != x; then 44972 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44973 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44974 fi 44975 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44976 fi 44977 fi 44978 44979 # Now join together the path and the arguments once again 44980 if test "x$arguments" != xEOL; then 44981 new_complete="$new_path ${arguments% *}" 44982 else 44983 new_complete="$new_path" 44984 fi 44985 44986 if test "x$complete" != "x$new_complete"; then 44987 OBJCOPY="$new_complete" 44988 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 44989 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 44990 fi 44991 fi 44992 44993 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 44994 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 44995 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 44996 # - version number is last blank separate word on first line 44997 # - version number formats that have been seen: 44998 # - <major>.<minor> 44999 # - <major>.<minor>.<micro> 45000 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 45001 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 45002 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 45003 -e 's/.* //' \ 45004 -e '/^[01]\./b bad' \ 45005 -e '/^2\./{' \ 45006 -e ' s/^2\.//' \ 45007 -e ' /^[0-9]$/b bad' \ 45008 -e ' /^[0-9]\./b bad' \ 45009 -e ' /^1[0-9]$/b bad' \ 45010 -e ' /^1[0-9]\./b bad' \ 45011 -e ' /^20\./b bad' \ 45012 -e ' /^21\.0$/b bad' \ 45013 -e ' /^21\.0\./b bad' \ 45014 -e '}' \ 45015 -e ':good' \ 45016 -e 's/.*/VALID_VERSION/p' \ 45017 -e 'q' \ 45018 -e ':bad' \ 45019 -e 's/.*/BAD_VERSION/p' \ 45020 -e 'q'` 45021 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 45022 OBJCOPY= 45023 { $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 45024 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 45025 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 45026 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 45027 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 45028 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 45029 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 45030 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 45031 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 45032 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 45033 fi 45034 fi 45035 fi 45036 fi 45037 45038 45039 45040 # Publish this variable in the help. 45041 45042 45043 if [ -z "${OBJDUMP+x}" ]; then 45044 # The variable is not set by user, try to locate tool using the code snippet 45045 if test -n "$ac_tool_prefix"; then 45046 for ac_prog in gobjdump objdump 45047 do 45048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 45049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 45050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45051 $as_echo_n "checking for $ac_word... " >&6; } 45052 if ${ac_cv_prog_OBJDUMP+:} false; then : 45053 $as_echo_n "(cached) " >&6 45054 else 45055 if test -n "$OBJDUMP"; then 45056 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 45057 else 45058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45059 for as_dir in $PATH 45060 do 45061 IFS=$as_save_IFS 45062 test -z "$as_dir" && as_dir=. 45063 for ac_exec_ext in '' $ac_executable_extensions; do 45064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45065 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 45066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45067 break 2 45068 fi 45069 done 45070 done 45071 IFS=$as_save_IFS 45072 45073 fi 45074 fi 45075 OBJDUMP=$ac_cv_prog_OBJDUMP 45076 if test -n "$OBJDUMP"; then 45077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45078 $as_echo "$OBJDUMP" >&6; } 45079 else 45080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45081 $as_echo "no" >&6; } 45082 fi 45083 45084 45085 test -n "$OBJDUMP" && break 45086 done 45087 fi 45088 if test -z "$OBJDUMP"; then 45089 ac_ct_OBJDUMP=$OBJDUMP 45090 for ac_prog in gobjdump objdump 45091 do 45092 # Extract the first word of "$ac_prog", so it can be a program name with args. 45093 set dummy $ac_prog; ac_word=$2 45094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45095 $as_echo_n "checking for $ac_word... " >&6; } 45096 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 45097 $as_echo_n "(cached) " >&6 45098 else 45099 if test -n "$ac_ct_OBJDUMP"; then 45100 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 45101 else 45102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45103 for as_dir in $PATH 45104 do 45105 IFS=$as_save_IFS 45106 test -z "$as_dir" && as_dir=. 45107 for ac_exec_ext in '' $ac_executable_extensions; do 45108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45109 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 45110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45111 break 2 45112 fi 45113 done 45114 done 45115 IFS=$as_save_IFS 45116 45117 fi 45118 fi 45119 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 45120 if test -n "$ac_ct_OBJDUMP"; then 45121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 45122 $as_echo "$ac_ct_OBJDUMP" >&6; } 45123 else 45124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45125 $as_echo "no" >&6; } 45126 fi 45127 45128 45129 test -n "$ac_ct_OBJDUMP" && break 45130 done 45131 45132 if test "x$ac_ct_OBJDUMP" = x; then 45133 OBJDUMP="" 45134 else 45135 case $cross_compiling:$ac_tool_warned in 45136 yes:) 45137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45139 ac_tool_warned=yes ;; 45140 esac 45141 OBJDUMP=$ac_ct_OBJDUMP 45142 fi 45143 fi 45144 45145 else 45146 # The variable is set, but is it from the command line or the environment? 45147 45148 # Try to remove the string !OBJDUMP! from our list. 45149 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 45150 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45151 # If it failed, the variable was not from the command line. Ignore it, 45152 # but warn the user (except for BASH, which is always set by the calling BASH). 45153 if test "xOBJDUMP" != xBASH; then 45154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 45155 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 45156 fi 45157 # Try to locate tool using the code snippet 45158 if test -n "$ac_tool_prefix"; then 45159 for ac_prog in gobjdump objdump 45160 do 45161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 45162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 45163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45164 $as_echo_n "checking for $ac_word... " >&6; } 45165 if ${ac_cv_prog_OBJDUMP+:} false; then : 45166 $as_echo_n "(cached) " >&6 45167 else 45168 if test -n "$OBJDUMP"; then 45169 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 45170 else 45171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45172 for as_dir in $PATH 45173 do 45174 IFS=$as_save_IFS 45175 test -z "$as_dir" && as_dir=. 45176 for ac_exec_ext in '' $ac_executable_extensions; do 45177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45178 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 45179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45180 break 2 45181 fi 45182 done 45183 done 45184 IFS=$as_save_IFS 45185 45186 fi 45187 fi 45188 OBJDUMP=$ac_cv_prog_OBJDUMP 45189 if test -n "$OBJDUMP"; then 45190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45191 $as_echo "$OBJDUMP" >&6; } 45192 else 45193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45194 $as_echo "no" >&6; } 45195 fi 45196 45197 45198 test -n "$OBJDUMP" && break 45199 done 45200 fi 45201 if test -z "$OBJDUMP"; then 45202 ac_ct_OBJDUMP=$OBJDUMP 45203 for ac_prog in gobjdump objdump 45204 do 45205 # Extract the first word of "$ac_prog", so it can be a program name with args. 45206 set dummy $ac_prog; ac_word=$2 45207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45208 $as_echo_n "checking for $ac_word... " >&6; } 45209 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 45210 $as_echo_n "(cached) " >&6 45211 else 45212 if test -n "$ac_ct_OBJDUMP"; then 45213 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 45214 else 45215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45216 for as_dir in $PATH 45217 do 45218 IFS=$as_save_IFS 45219 test -z "$as_dir" && as_dir=. 45220 for ac_exec_ext in '' $ac_executable_extensions; do 45221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45222 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 45223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45224 break 2 45225 fi 45226 done 45227 done 45228 IFS=$as_save_IFS 45229 45230 fi 45231 fi 45232 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 45233 if test -n "$ac_ct_OBJDUMP"; then 45234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 45235 $as_echo "$ac_ct_OBJDUMP" >&6; } 45236 else 45237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45238 $as_echo "no" >&6; } 45239 fi 45240 45241 45242 test -n "$ac_ct_OBJDUMP" && break 45243 done 45244 45245 if test "x$ac_ct_OBJDUMP" = x; then 45246 OBJDUMP="" 45247 else 45248 case $cross_compiling:$ac_tool_warned in 45249 yes:) 45250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45252 ac_tool_warned=yes ;; 45253 esac 45254 OBJDUMP=$ac_ct_OBJDUMP 45255 fi 45256 fi 45257 45258 else 45259 # If it succeeded, then it was overridden by the user. We will use it 45260 # for the tool. 45261 45262 # First remove it from the list of overridden variables, so we can test 45263 # for unknown variables in the end. 45264 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45265 45266 # Check if we try to supply an empty value 45267 if test "x$OBJDUMP" = x; then 45268 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 45269 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 45270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 45271 $as_echo_n "checking for OBJDUMP... " >&6; } 45272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45273 $as_echo "disabled" >&6; } 45274 else 45275 # Check if the provided tool contains a complete path. 45276 tool_specified="$OBJDUMP" 45277 tool_basename="${tool_specified##*/}" 45278 if test "x$tool_basename" = "x$tool_specified"; then 45279 # A command without a complete path is provided, search $PATH. 45280 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 45281 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 45282 # Extract the first word of "$tool_basename", so it can be a program name with args. 45283 set dummy $tool_basename; ac_word=$2 45284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45285 $as_echo_n "checking for $ac_word... " >&6; } 45286 if ${ac_cv_path_OBJDUMP+:} false; then : 45287 $as_echo_n "(cached) " >&6 45288 else 45289 case $OBJDUMP in 45290 [\\/]* | ?:[\\/]*) 45291 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 45292 ;; 45293 *) 45294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45295 for as_dir in $PATH 45296 do 45297 IFS=$as_save_IFS 45298 test -z "$as_dir" && as_dir=. 45299 for ac_exec_ext in '' $ac_executable_extensions; do 45300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45301 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 45302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45303 break 2 45304 fi 45305 done 45306 done 45307 IFS=$as_save_IFS 45308 45309 ;; 45310 esac 45311 fi 45312 OBJDUMP=$ac_cv_path_OBJDUMP 45313 if test -n "$OBJDUMP"; then 45314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45315 $as_echo "$OBJDUMP" >&6; } 45316 else 45317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45318 $as_echo "no" >&6; } 45319 fi 45320 45321 45322 if test "x$OBJDUMP" = x; then 45323 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45324 fi 45325 else 45326 # Otherwise we believe it is a complete path. Use it as it is. 45327 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 45328 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 45329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 45330 $as_echo_n "checking for OBJDUMP... " >&6; } 45331 if test ! -x "$tool_specified"; then 45332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45333 $as_echo "not found" >&6; } 45334 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 45335 fi 45336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45337 $as_echo "$tool_specified" >&6; } 45338 fi 45339 fi 45340 fi 45341 45342 fi 45343 45344 45345 if test "x$OBJDUMP" != x; then 45346 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 45347 # bails if argument is missing. 45348 45349 # Only process if variable expands to non-empty 45350 45351 if test "x$OBJDUMP" != x; then 45352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45353 45354 # First separate the path from the arguments. This will split at the first 45355 # space. 45356 complete="$OBJDUMP" 45357 path="${complete%% *}" 45358 tmp="$complete EOL" 45359 arguments="${tmp#* }" 45360 45361 # Input might be given as Windows format, start by converting to 45362 # unix format. 45363 new_path=`$CYGPATH -u "$path"` 45364 45365 # Now try to locate executable using which 45366 new_path=`$WHICH "$new_path" 2> /dev/null` 45367 # bat and cmd files are not always considered executable in cygwin causing which 45368 # to not find them 45369 if test "x$new_path" = x \ 45370 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45371 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45372 new_path=`$CYGPATH -u "$path"` 45373 fi 45374 if test "x$new_path" = x; then 45375 # Oops. Which didn't find the executable. 45376 # The splitting of arguments from the executable at a space might have been incorrect, 45377 # since paths with space are more likely in Windows. Give it another try with the whole 45378 # argument. 45379 path="$complete" 45380 arguments="EOL" 45381 new_path=`$CYGPATH -u "$path"` 45382 new_path=`$WHICH "$new_path" 2> /dev/null` 45383 # bat and cmd files are not always considered executable in cygwin causing which 45384 # to not find them 45385 if test "x$new_path" = x \ 45386 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45387 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45388 new_path=`$CYGPATH -u "$path"` 45389 fi 45390 if test "x$new_path" = x; then 45391 # It's still not found. Now this is an unrecoverable error. 45392 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45393 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45394 has_space=`$ECHO "$complete" | $GREP " "` 45395 if test "x$has_space" != x; then 45396 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45397 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45398 fi 45399 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45400 fi 45401 fi 45402 45403 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45404 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45405 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45406 # "foo.exe" is OK but "foo" is an error. 45407 # 45408 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45409 # It is also a way to make sure we got the proper file name for the real test later on. 45410 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45411 if test "x$test_shortpath" = x; then 45412 # Short path failed, file does not exist as specified. 45413 # Try adding .exe or .cmd 45414 if test -f "${new_path}.exe"; then 45415 input_to_shortpath="${new_path}.exe" 45416 elif test -f "${new_path}.cmd"; then 45417 input_to_shortpath="${new_path}.cmd" 45418 else 45419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 45420 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 45421 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45422 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45423 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45424 fi 45425 else 45426 input_to_shortpath="$new_path" 45427 fi 45428 45429 # Call helper function which possibly converts this using DOS-style short mode. 45430 # If so, the updated path is stored in $new_path. 45431 new_path="$input_to_shortpath" 45432 45433 input_path="$input_to_shortpath" 45434 # Check if we need to convert this using DOS-style short mode. If the path 45435 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45436 # take no chances and rewrite it. 45437 # Note: m4 eats our [], so we need to use [ and ] instead. 45438 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45439 if test "x$has_forbidden_chars" != x; then 45440 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45441 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45442 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45443 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45444 # Going to short mode and back again did indeed matter. Since short mode is 45445 # case insensitive, let's make it lowercase to improve readability. 45446 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45447 # Now convert it back to Unix-style (cygpath) 45448 input_path=`$CYGPATH -u "$shortmode_path"` 45449 new_path="$input_path" 45450 fi 45451 fi 45452 45453 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45454 if test "x$test_cygdrive_prefix" = x; then 45455 # As a simple fix, exclude /usr/bin since it's not a real path. 45456 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45457 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45458 # a path prefixed by /cygdrive for fixpath to work. 45459 new_path="$CYGWIN_ROOT_PATH$input_path" 45460 fi 45461 fi 45462 45463 # remove trailing .exe if any 45464 new_path="${new_path/%.exe/}" 45465 45466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45467 45468 # First separate the path from the arguments. This will split at the first 45469 # space. 45470 complete="$OBJDUMP" 45471 path="${complete%% *}" 45472 tmp="$complete EOL" 45473 arguments="${tmp#* }" 45474 45475 # Input might be given as Windows format, start by converting to 45476 # unix format. 45477 new_path="$path" 45478 45479 windows_path="$new_path" 45480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45481 unix_path=`$CYGPATH -u "$windows_path"` 45482 new_path="$unix_path" 45483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45484 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45485 new_path="$unix_path" 45486 fi 45487 45488 45489 # Now try to locate executable using which 45490 new_path=`$WHICH "$new_path" 2> /dev/null` 45491 45492 if test "x$new_path" = x; then 45493 # Oops. Which didn't find the executable. 45494 # The splitting of arguments from the executable at a space might have been incorrect, 45495 # since paths with space are more likely in Windows. Give it another try with the whole 45496 # argument. 45497 path="$complete" 45498 arguments="EOL" 45499 new_path="$path" 45500 45501 windows_path="$new_path" 45502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45503 unix_path=`$CYGPATH -u "$windows_path"` 45504 new_path="$unix_path" 45505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45506 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45507 new_path="$unix_path" 45508 fi 45509 45510 45511 new_path=`$WHICH "$new_path" 2> /dev/null` 45512 # bat and cmd files are not always considered executable in MSYS causing which 45513 # to not find them 45514 if test "x$new_path" = x \ 45515 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45516 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45517 new_path="$path" 45518 45519 windows_path="$new_path" 45520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45521 unix_path=`$CYGPATH -u "$windows_path"` 45522 new_path="$unix_path" 45523 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45524 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45525 new_path="$unix_path" 45526 fi 45527 45528 fi 45529 45530 if test "x$new_path" = x; then 45531 # It's still not found. Now this is an unrecoverable error. 45532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45533 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45534 has_space=`$ECHO "$complete" | $GREP " "` 45535 if test "x$has_space" != x; then 45536 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45537 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45538 fi 45539 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45540 fi 45541 fi 45542 45543 # Now new_path has a complete unix path to the binary 45544 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45545 # Keep paths in /bin as-is, but remove trailing .exe if any 45546 new_path="${new_path/%.exe/}" 45547 # Do not save /bin paths to all_fixpath_prefixes! 45548 else 45549 # Not in mixed or Windows style, start by that. 45550 new_path=`cmd //c echo $new_path` 45551 45552 input_path="$new_path" 45553 # Check if we need to convert this using DOS-style short mode. If the path 45554 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45555 # take no chances and rewrite it. 45556 # Note: m4 eats our [], so we need to use [ and ] instead. 45557 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45558 if test "x$has_forbidden_chars" != x; then 45559 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45560 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45561 fi 45562 45563 # Output is in $new_path 45564 45565 windows_path="$new_path" 45566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45567 unix_path=`$CYGPATH -u "$windows_path"` 45568 new_path="$unix_path" 45569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45570 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45571 new_path="$unix_path" 45572 fi 45573 45574 # remove trailing .exe if any 45575 new_path="${new_path/%.exe/}" 45576 45577 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45578 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45579 fi 45580 45581 else 45582 # We're on a unix platform. Hooray! :) 45583 # First separate the path from the arguments. This will split at the first 45584 # space. 45585 complete="$OBJDUMP" 45586 path="${complete%% *}" 45587 tmp="$complete EOL" 45588 arguments="${tmp#* }" 45589 45590 # Cannot rely on the command "which" here since it doesn't always work. 45591 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45592 if test -z "$is_absolute_path"; then 45593 # Path to executable is not absolute. Find it. 45594 IFS_save="$IFS" 45595 IFS=: 45596 for p in $PATH; do 45597 if test -f "$p/$path" && test -x "$p/$path"; then 45598 new_path="$p/$path" 45599 break 45600 fi 45601 done 45602 IFS="$IFS_save" 45603 else 45604 # This is an absolute path, we can use it without further modifications. 45605 new_path="$path" 45606 fi 45607 45608 if test "x$new_path" = x; then 45609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45610 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45611 has_space=`$ECHO "$complete" | $GREP " "` 45612 if test "x$has_space" != x; then 45613 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45614 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45615 fi 45616 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45617 fi 45618 fi 45619 45620 # Now join together the path and the arguments once again 45621 if test "x$arguments" != xEOL; then 45622 new_complete="$new_path ${arguments% *}" 45623 else 45624 new_complete="$new_path" 45625 fi 45626 45627 if test "x$complete" != "x$new_complete"; then 45628 OBJDUMP="$new_complete" 45629 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 45630 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 45631 fi 45632 fi 45633 45634 fi 45635 45636 45637 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 45638 # to remain in place. Otherwise the compiler will not work in some siutations 45639 # in later configure checks. 45640 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 45641 PATH="$OLD_PATH" 45642 fi 45643 45644 # Restore the flags to the user specified values. 45645 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 45646 CFLAGS="$ORG_CFLAGS" 45647 CXXFLAGS="$ORG_CXXFLAGS" 45648 45649 45650 # Finally do some processing after the detection phase 45651 45652 if test "x$COMPILE_TYPE" = "xcross"; then 45653 # Now we need to find a C/C++ compiler that can build executables for the 45654 # build platform. We can't use the AC_PROG_CC macro, since it can only be 45655 # used once. Also, we need to do this without adding a tools dir to the 45656 # path, otherwise we might pick up cross-compilers which don't use standard 45657 # naming. 45658 45659 OLDPATH="$PATH" 45660 45661 45662 # Check whether --with-build-devkit was given. 45663 if test "${with_build_devkit+set}" = set; then : 45664 withval=$with_build_devkit; 45665 fi 45666 45667 if test "x$with_build_devkit" = "xyes"; then 45668 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 45669 elif test -n "$with_build_devkit"; then 45670 if test ! -d "$with_build_devkit"; then 45671 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 45672 else 45673 45674 # Only process if variable expands to non-empty 45675 45676 if test "x$with_build_devkit" != x; then 45677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45678 45679 # Input might be given as Windows format, start by converting to 45680 # unix format. 45681 path="$with_build_devkit" 45682 new_path=`$CYGPATH -u "$path"` 45683 45684 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45685 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45686 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45687 # "foo.exe" is OK but "foo" is an error. 45688 # 45689 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45690 # It is also a way to make sure we got the proper file name for the real test later on. 45691 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45692 if test "x$test_shortpath" = x; then 45693 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 45694 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 45695 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 45696 fi 45697 45698 # Call helper function which possibly converts this using DOS-style short mode. 45699 # If so, the updated path is stored in $new_path. 45700 45701 input_path="$new_path" 45702 # Check if we need to convert this using DOS-style short mode. If the path 45703 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45704 # take no chances and rewrite it. 45705 # Note: m4 eats our [], so we need to use [ and ] instead. 45706 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45707 if test "x$has_forbidden_chars" != x; then 45708 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45709 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45710 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45711 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45712 # Going to short mode and back again did indeed matter. Since short mode is 45713 # case insensitive, let's make it lowercase to improve readability. 45714 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45715 # Now convert it back to Unix-style (cygpath) 45716 input_path=`$CYGPATH -u "$shortmode_path"` 45717 new_path="$input_path" 45718 fi 45719 fi 45720 45721 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45722 if test "x$test_cygdrive_prefix" = x; then 45723 # As a simple fix, exclude /usr/bin since it's not a real path. 45724 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45725 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45726 # a path prefixed by /cygdrive for fixpath to work. 45727 new_path="$CYGWIN_ROOT_PATH$input_path" 45728 fi 45729 fi 45730 45731 45732 if test "x$path" != "x$new_path"; then 45733 with_build_devkit="$new_path" 45734 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 45735 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 45736 fi 45737 45738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45739 45740 path="$with_build_devkit" 45741 has_colon=`$ECHO $path | $GREP ^.:` 45742 new_path="$path" 45743 if test "x$has_colon" = x; then 45744 # Not in mixed or Windows style, start by that. 45745 new_path=`cmd //c echo $path` 45746 fi 45747 45748 45749 input_path="$new_path" 45750 # Check if we need to convert this using DOS-style short mode. If the path 45751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45752 # take no chances and rewrite it. 45753 # Note: m4 eats our [], so we need to use [ and ] instead. 45754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45755 if test "x$has_forbidden_chars" != x; then 45756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45757 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45758 fi 45759 45760 45761 windows_path="$new_path" 45762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45763 unix_path=`$CYGPATH -u "$windows_path"` 45764 new_path="$unix_path" 45765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45767 new_path="$unix_path" 45768 fi 45769 45770 if test "x$path" != "x$new_path"; then 45771 with_build_devkit="$new_path" 45772 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 45773 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 45774 fi 45775 45776 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45777 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45778 45779 else 45780 # We're on a unix platform. Hooray! :) 45781 path="$with_build_devkit" 45782 has_space=`$ECHO "$path" | $GREP " "` 45783 if test "x$has_space" != x; then 45784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 45785 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 45786 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45787 fi 45788 45789 # Use eval to expand a potential ~ 45790 eval path="$path" 45791 if test ! -f "$path" && test ! -d "$path"; then 45792 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 45793 fi 45794 45795 if test -d "$path"; then 45796 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 45797 else 45798 dir="`$DIRNAME "$path"`" 45799 base="`$BASENAME "$path"`" 45800 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 45801 fi 45802 fi 45803 fi 45804 45805 BUILD_DEVKIT_ROOT="$with_build_devkit" 45806 # Check for a meta data info file in the root of the devkit 45807 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 45808 # Process devkit.info so that existing devkit variables are not 45809 # modified by this 45810 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 45811 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 45812 -e "s/\$host/\$build/g" \ 45813 $BUILD_DEVKIT_ROOT/devkit.info \ 45814 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45815 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45816 # This potentially sets the following: 45817 # A descriptive name of the devkit 45818 45819 if test "x$BUILD_DEVKIT_NAME" = x; then 45820 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 45821 fi 45822 45823 # Corresponds to --with-extra-path 45824 45825 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 45826 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 45827 fi 45828 45829 # Corresponds to --with-toolchain-path 45830 45831 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45832 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 45833 fi 45834 45835 # Corresponds to --with-sysroot 45836 45837 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 45838 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 45839 fi 45840 45841 # Skip the Window specific parts 45842 fi 45843 45844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 45845 $as_echo_n "checking for build platform devkit... " >&6; } 45846 if test "x$BUILD_DEVKIT_NAME" != x; then 45847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 45848 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 45849 else 45850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 45851 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 45852 fi 45853 45854 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 45855 45856 if test "x$BUILD_SYSROOT" != "x"; then 45857 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 45858 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 45859 # Solaris Studio does not have a concept of sysroot. Instead we must 45860 # make sure the default include and lib dirs are appended to each 45861 # compile and link command line. Must also add -I-xbuiltin to enable 45862 # inlining of system functions and intrinsics. 45863 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 45864 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 45865 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 45866 fi 45867 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 45868 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 45869 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 45870 elif test "x$TOOLCHAIN_TYPE" = xclang; then 45871 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 45872 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 45873 fi 45874 # The global CFLAGS and LDFLAGS variables need these for configure to function 45875 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 45876 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 45877 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 45878 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 45879 fi 45880 45881 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 45882 # We also need -iframework<path>/System/Library/Frameworks 45883 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45884 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45885 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 45886 # set this here so it doesn't have to be peppered throughout the forest 45887 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45888 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45889 fi 45890 45891 45892 45893 45894 45895 # Fallback default of just /bin if DEVKIT_PATH is not defined 45896 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45897 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 45898 fi 45899 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 45900 fi 45901 fi 45902 45903 # FIXME: we should list the discovered compilers as an exclude pattern! 45904 # If we do that, we can do this detection before POST_DETECTION, and still 45905 # find the build compilers in the tools dir, if needed. 45906 45907 45908 45909 # Publish this variable in the help. 45910 45911 45912 if [ -z "${BUILD_CC+x}" ]; then 45913 # The variable is not set by user, try to locate tool using the code snippet 45914 for ac_prog in cl cc gcc 45915 do 45916 # Extract the first word of "$ac_prog", so it can be a program name with args. 45917 set dummy $ac_prog; ac_word=$2 45918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45919 $as_echo_n "checking for $ac_word... " >&6; } 45920 if ${ac_cv_path_BUILD_CC+:} false; then : 45921 $as_echo_n "(cached) " >&6 45922 else 45923 case $BUILD_CC in 45924 [\\/]* | ?:[\\/]*) 45925 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45926 ;; 45927 *) 45928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45929 for as_dir in $PATH 45930 do 45931 IFS=$as_save_IFS 45932 test -z "$as_dir" && as_dir=. 45933 for ac_exec_ext in '' $ac_executable_extensions; do 45934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45935 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45937 break 2 45938 fi 45939 done 45940 done 45941 IFS=$as_save_IFS 45942 45943 ;; 45944 esac 45945 fi 45946 BUILD_CC=$ac_cv_path_BUILD_CC 45947 if test -n "$BUILD_CC"; then 45948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45949 $as_echo "$BUILD_CC" >&6; } 45950 else 45951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45952 $as_echo "no" >&6; } 45953 fi 45954 45955 45956 test -n "$BUILD_CC" && break 45957 done 45958 45959 else 45960 # The variable is set, but is it from the command line or the environment? 45961 45962 # Try to remove the string !BUILD_CC! from our list. 45963 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 45964 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45965 # If it failed, the variable was not from the command line. Ignore it, 45966 # but warn the user (except for BASH, which is always set by the calling BASH). 45967 if test "xBUILD_CC" != xBASH; then 45968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 45969 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 45970 fi 45971 # Try to locate tool using the code snippet 45972 for ac_prog in cl cc gcc 45973 do 45974 # Extract the first word of "$ac_prog", so it can be a program name with args. 45975 set dummy $ac_prog; ac_word=$2 45976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45977 $as_echo_n "checking for $ac_word... " >&6; } 45978 if ${ac_cv_path_BUILD_CC+:} false; then : 45979 $as_echo_n "(cached) " >&6 45980 else 45981 case $BUILD_CC in 45982 [\\/]* | ?:[\\/]*) 45983 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45984 ;; 45985 *) 45986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45987 for as_dir in $PATH 45988 do 45989 IFS=$as_save_IFS 45990 test -z "$as_dir" && as_dir=. 45991 for ac_exec_ext in '' $ac_executable_extensions; do 45992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45993 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45995 break 2 45996 fi 45997 done 45998 done 45999 IFS=$as_save_IFS 46000 46001 ;; 46002 esac 46003 fi 46004 BUILD_CC=$ac_cv_path_BUILD_CC 46005 if test -n "$BUILD_CC"; then 46006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 46007 $as_echo "$BUILD_CC" >&6; } 46008 else 46009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46010 $as_echo "no" >&6; } 46011 fi 46012 46013 46014 test -n "$BUILD_CC" && break 46015 done 46016 46017 else 46018 # If it succeeded, then it was overridden by the user. We will use it 46019 # for the tool. 46020 46021 # First remove it from the list of overridden variables, so we can test 46022 # for unknown variables in the end. 46023 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46024 46025 # Check if we try to supply an empty value 46026 if test "x$BUILD_CC" = x; then 46027 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 46028 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 46029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 46030 $as_echo_n "checking for BUILD_CC... " >&6; } 46031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46032 $as_echo "disabled" >&6; } 46033 else 46034 # Check if the provided tool contains a complete path. 46035 tool_specified="$BUILD_CC" 46036 tool_basename="${tool_specified##*/}" 46037 if test "x$tool_basename" = "x$tool_specified"; then 46038 # A command without a complete path is provided, search $PATH. 46039 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 46040 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 46041 # Extract the first word of "$tool_basename", so it can be a program name with args. 46042 set dummy $tool_basename; ac_word=$2 46043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46044 $as_echo_n "checking for $ac_word... " >&6; } 46045 if ${ac_cv_path_BUILD_CC+:} false; then : 46046 $as_echo_n "(cached) " >&6 46047 else 46048 case $BUILD_CC in 46049 [\\/]* | ?:[\\/]*) 46050 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 46051 ;; 46052 *) 46053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46054 for as_dir in $PATH 46055 do 46056 IFS=$as_save_IFS 46057 test -z "$as_dir" && as_dir=. 46058 for ac_exec_ext in '' $ac_executable_extensions; do 46059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46060 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 46061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46062 break 2 46063 fi 46064 done 46065 done 46066 IFS=$as_save_IFS 46067 46068 ;; 46069 esac 46070 fi 46071 BUILD_CC=$ac_cv_path_BUILD_CC 46072 if test -n "$BUILD_CC"; then 46073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 46074 $as_echo "$BUILD_CC" >&6; } 46075 else 46076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46077 $as_echo "no" >&6; } 46078 fi 46079 46080 46081 if test "x$BUILD_CC" = x; then 46082 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46083 fi 46084 else 46085 # Otherwise we believe it is a complete path. Use it as it is. 46086 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 46087 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 46088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 46089 $as_echo_n "checking for BUILD_CC... " >&6; } 46090 if test ! -x "$tool_specified"; then 46091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46092 $as_echo "not found" >&6; } 46093 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 46094 fi 46095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46096 $as_echo "$tool_specified" >&6; } 46097 fi 46098 fi 46099 fi 46100 46101 fi 46102 46103 46104 46105 if test "x$BUILD_CC" = x; then 46106 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 46107 fi 46108 46109 46110 46111 # Only process if variable expands to non-empty 46112 46113 if test "x$BUILD_CC" != x; then 46114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46115 46116 # First separate the path from the arguments. This will split at the first 46117 # space. 46118 complete="$BUILD_CC" 46119 path="${complete%% *}" 46120 tmp="$complete EOL" 46121 arguments="${tmp#* }" 46122 46123 # Input might be given as Windows format, start by converting to 46124 # unix format. 46125 new_path=`$CYGPATH -u "$path"` 46126 46127 # Now try to locate executable using which 46128 new_path=`$WHICH "$new_path" 2> /dev/null` 46129 # bat and cmd files are not always considered executable in cygwin causing which 46130 # to not find them 46131 if test "x$new_path" = x \ 46132 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46133 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46134 new_path=`$CYGPATH -u "$path"` 46135 fi 46136 if test "x$new_path" = x; then 46137 # Oops. Which didn't find the executable. 46138 # The splitting of arguments from the executable at a space might have been incorrect, 46139 # since paths with space are more likely in Windows. Give it another try with the whole 46140 # argument. 46141 path="$complete" 46142 arguments="EOL" 46143 new_path=`$CYGPATH -u "$path"` 46144 new_path=`$WHICH "$new_path" 2> /dev/null` 46145 # bat and cmd files are not always considered executable in cygwin causing which 46146 # to not find them 46147 if test "x$new_path" = x \ 46148 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46149 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46150 new_path=`$CYGPATH -u "$path"` 46151 fi 46152 if test "x$new_path" = x; then 46153 # It's still not found. Now this is an unrecoverable error. 46154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46155 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46156 has_space=`$ECHO "$complete" | $GREP " "` 46157 if test "x$has_space" != x; then 46158 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46159 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46160 fi 46161 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46162 fi 46163 fi 46164 46165 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46166 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46167 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46168 # "foo.exe" is OK but "foo" is an error. 46169 # 46170 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46171 # It is also a way to make sure we got the proper file name for the real test later on. 46172 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46173 if test "x$test_shortpath" = x; then 46174 # Short path failed, file does not exist as specified. 46175 # Try adding .exe or .cmd 46176 if test -f "${new_path}.exe"; then 46177 input_to_shortpath="${new_path}.exe" 46178 elif test -f "${new_path}.cmd"; then 46179 input_to_shortpath="${new_path}.cmd" 46180 else 46181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 46182 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 46183 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46184 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46185 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46186 fi 46187 else 46188 input_to_shortpath="$new_path" 46189 fi 46190 46191 # Call helper function which possibly converts this using DOS-style short mode. 46192 # If so, the updated path is stored in $new_path. 46193 new_path="$input_to_shortpath" 46194 46195 input_path="$input_to_shortpath" 46196 # Check if we need to convert this using DOS-style short mode. If the path 46197 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46198 # take no chances and rewrite it. 46199 # Note: m4 eats our [], so we need to use [ and ] instead. 46200 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46201 if test "x$has_forbidden_chars" != x; then 46202 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46203 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46204 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46205 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46206 # Going to short mode and back again did indeed matter. Since short mode is 46207 # case insensitive, let's make it lowercase to improve readability. 46208 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46209 # Now convert it back to Unix-style (cygpath) 46210 input_path=`$CYGPATH -u "$shortmode_path"` 46211 new_path="$input_path" 46212 fi 46213 fi 46214 46215 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46216 if test "x$test_cygdrive_prefix" = x; then 46217 # As a simple fix, exclude /usr/bin since it's not a real path. 46218 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46219 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46220 # a path prefixed by /cygdrive for fixpath to work. 46221 new_path="$CYGWIN_ROOT_PATH$input_path" 46222 fi 46223 fi 46224 46225 # remove trailing .exe if any 46226 new_path="${new_path/%.exe/}" 46227 46228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46229 46230 # First separate the path from the arguments. This will split at the first 46231 # space. 46232 complete="$BUILD_CC" 46233 path="${complete%% *}" 46234 tmp="$complete EOL" 46235 arguments="${tmp#* }" 46236 46237 # Input might be given as Windows format, start by converting to 46238 # unix format. 46239 new_path="$path" 46240 46241 windows_path="$new_path" 46242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46243 unix_path=`$CYGPATH -u "$windows_path"` 46244 new_path="$unix_path" 46245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46246 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46247 new_path="$unix_path" 46248 fi 46249 46250 46251 # Now try to locate executable using which 46252 new_path=`$WHICH "$new_path" 2> /dev/null` 46253 46254 if test "x$new_path" = x; then 46255 # Oops. Which didn't find the executable. 46256 # The splitting of arguments from the executable at a space might have been incorrect, 46257 # since paths with space are more likely in Windows. Give it another try with the whole 46258 # argument. 46259 path="$complete" 46260 arguments="EOL" 46261 new_path="$path" 46262 46263 windows_path="$new_path" 46264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46265 unix_path=`$CYGPATH -u "$windows_path"` 46266 new_path="$unix_path" 46267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46269 new_path="$unix_path" 46270 fi 46271 46272 46273 new_path=`$WHICH "$new_path" 2> /dev/null` 46274 # bat and cmd files are not always considered executable in MSYS causing which 46275 # to not find them 46276 if test "x$new_path" = x \ 46277 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46278 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46279 new_path="$path" 46280 46281 windows_path="$new_path" 46282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46283 unix_path=`$CYGPATH -u "$windows_path"` 46284 new_path="$unix_path" 46285 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46286 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46287 new_path="$unix_path" 46288 fi 46289 46290 fi 46291 46292 if test "x$new_path" = x; then 46293 # It's still not found. Now this is an unrecoverable error. 46294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46295 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46296 has_space=`$ECHO "$complete" | $GREP " "` 46297 if test "x$has_space" != x; then 46298 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46299 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46300 fi 46301 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46302 fi 46303 fi 46304 46305 # Now new_path has a complete unix path to the binary 46306 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46307 # Keep paths in /bin as-is, but remove trailing .exe if any 46308 new_path="${new_path/%.exe/}" 46309 # Do not save /bin paths to all_fixpath_prefixes! 46310 else 46311 # Not in mixed or Windows style, start by that. 46312 new_path=`cmd //c echo $new_path` 46313 46314 input_path="$new_path" 46315 # Check if we need to convert this using DOS-style short mode. If the path 46316 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46317 # take no chances and rewrite it. 46318 # Note: m4 eats our [], so we need to use [ and ] instead. 46319 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46320 if test "x$has_forbidden_chars" != x; then 46321 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46322 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46323 fi 46324 46325 # Output is in $new_path 46326 46327 windows_path="$new_path" 46328 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46329 unix_path=`$CYGPATH -u "$windows_path"` 46330 new_path="$unix_path" 46331 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46332 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46333 new_path="$unix_path" 46334 fi 46335 46336 # remove trailing .exe if any 46337 new_path="${new_path/%.exe/}" 46338 46339 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46340 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46341 fi 46342 46343 else 46344 # We're on a unix platform. Hooray! :) 46345 # First separate the path from the arguments. This will split at the first 46346 # space. 46347 complete="$BUILD_CC" 46348 path="${complete%% *}" 46349 tmp="$complete EOL" 46350 arguments="${tmp#* }" 46351 46352 # Cannot rely on the command "which" here since it doesn't always work. 46353 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46354 if test -z "$is_absolute_path"; then 46355 # Path to executable is not absolute. Find it. 46356 IFS_save="$IFS" 46357 IFS=: 46358 for p in $PATH; do 46359 if test -f "$p/$path" && test -x "$p/$path"; then 46360 new_path="$p/$path" 46361 break 46362 fi 46363 done 46364 IFS="$IFS_save" 46365 else 46366 # This is an absolute path, we can use it without further modifications. 46367 new_path="$path" 46368 fi 46369 46370 if test "x$new_path" = x; then 46371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46372 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46373 has_space=`$ECHO "$complete" | $GREP " "` 46374 if test "x$has_space" != x; then 46375 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46376 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46377 fi 46378 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46379 fi 46380 fi 46381 46382 # Now join together the path and the arguments once again 46383 if test "x$arguments" != xEOL; then 46384 new_complete="$new_path ${arguments% *}" 46385 else 46386 new_complete="$new_path" 46387 fi 46388 46389 if test "x$complete" != "x$new_complete"; then 46390 BUILD_CC="$new_complete" 46391 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 46392 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 46393 fi 46394 fi 46395 46396 46397 46398 46399 # Publish this variable in the help. 46400 46401 46402 if [ -z "${BUILD_CXX+x}" ]; then 46403 # The variable is not set by user, try to locate tool using the code snippet 46404 for ac_prog in cl CC g++ 46405 do 46406 # Extract the first word of "$ac_prog", so it can be a program name with args. 46407 set dummy $ac_prog; ac_word=$2 46408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46409 $as_echo_n "checking for $ac_word... " >&6; } 46410 if ${ac_cv_path_BUILD_CXX+:} false; then : 46411 $as_echo_n "(cached) " >&6 46412 else 46413 case $BUILD_CXX in 46414 [\\/]* | ?:[\\/]*) 46415 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46416 ;; 46417 *) 46418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46419 for as_dir in $PATH 46420 do 46421 IFS=$as_save_IFS 46422 test -z "$as_dir" && as_dir=. 46423 for ac_exec_ext in '' $ac_executable_extensions; do 46424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46425 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46427 break 2 46428 fi 46429 done 46430 done 46431 IFS=$as_save_IFS 46432 46433 ;; 46434 esac 46435 fi 46436 BUILD_CXX=$ac_cv_path_BUILD_CXX 46437 if test -n "$BUILD_CXX"; then 46438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46439 $as_echo "$BUILD_CXX" >&6; } 46440 else 46441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46442 $as_echo "no" >&6; } 46443 fi 46444 46445 46446 test -n "$BUILD_CXX" && break 46447 done 46448 46449 else 46450 # The variable is set, but is it from the command line or the environment? 46451 46452 # Try to remove the string !BUILD_CXX! from our list. 46453 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 46454 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46455 # If it failed, the variable was not from the command line. Ignore it, 46456 # but warn the user (except for BASH, which is always set by the calling BASH). 46457 if test "xBUILD_CXX" != xBASH; then 46458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 46459 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 46460 fi 46461 # Try to locate tool using the code snippet 46462 for ac_prog in cl CC g++ 46463 do 46464 # Extract the first word of "$ac_prog", so it can be a program name with args. 46465 set dummy $ac_prog; ac_word=$2 46466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46467 $as_echo_n "checking for $ac_word... " >&6; } 46468 if ${ac_cv_path_BUILD_CXX+:} false; then : 46469 $as_echo_n "(cached) " >&6 46470 else 46471 case $BUILD_CXX in 46472 [\\/]* | ?:[\\/]*) 46473 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46474 ;; 46475 *) 46476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46477 for as_dir in $PATH 46478 do 46479 IFS=$as_save_IFS 46480 test -z "$as_dir" && as_dir=. 46481 for ac_exec_ext in '' $ac_executable_extensions; do 46482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46483 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46485 break 2 46486 fi 46487 done 46488 done 46489 IFS=$as_save_IFS 46490 46491 ;; 46492 esac 46493 fi 46494 BUILD_CXX=$ac_cv_path_BUILD_CXX 46495 if test -n "$BUILD_CXX"; then 46496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46497 $as_echo "$BUILD_CXX" >&6; } 46498 else 46499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46500 $as_echo "no" >&6; } 46501 fi 46502 46503 46504 test -n "$BUILD_CXX" && break 46505 done 46506 46507 else 46508 # If it succeeded, then it was overridden by the user. We will use it 46509 # for the tool. 46510 46511 # First remove it from the list of overridden variables, so we can test 46512 # for unknown variables in the end. 46513 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46514 46515 # Check if we try to supply an empty value 46516 if test "x$BUILD_CXX" = x; then 46517 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 46518 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 46519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 46520 $as_echo_n "checking for BUILD_CXX... " >&6; } 46521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46522 $as_echo "disabled" >&6; } 46523 else 46524 # Check if the provided tool contains a complete path. 46525 tool_specified="$BUILD_CXX" 46526 tool_basename="${tool_specified##*/}" 46527 if test "x$tool_basename" = "x$tool_specified"; then 46528 # A command without a complete path is provided, search $PATH. 46529 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 46530 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 46531 # Extract the first word of "$tool_basename", so it can be a program name with args. 46532 set dummy $tool_basename; ac_word=$2 46533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46534 $as_echo_n "checking for $ac_word... " >&6; } 46535 if ${ac_cv_path_BUILD_CXX+:} false; then : 46536 $as_echo_n "(cached) " >&6 46537 else 46538 case $BUILD_CXX in 46539 [\\/]* | ?:[\\/]*) 46540 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46541 ;; 46542 *) 46543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46544 for as_dir in $PATH 46545 do 46546 IFS=$as_save_IFS 46547 test -z "$as_dir" && as_dir=. 46548 for ac_exec_ext in '' $ac_executable_extensions; do 46549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46550 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46552 break 2 46553 fi 46554 done 46555 done 46556 IFS=$as_save_IFS 46557 46558 ;; 46559 esac 46560 fi 46561 BUILD_CXX=$ac_cv_path_BUILD_CXX 46562 if test -n "$BUILD_CXX"; then 46563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46564 $as_echo "$BUILD_CXX" >&6; } 46565 else 46566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46567 $as_echo "no" >&6; } 46568 fi 46569 46570 46571 if test "x$BUILD_CXX" = x; then 46572 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46573 fi 46574 else 46575 # Otherwise we believe it is a complete path. Use it as it is. 46576 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 46577 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 46578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 46579 $as_echo_n "checking for BUILD_CXX... " >&6; } 46580 if test ! -x "$tool_specified"; then 46581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46582 $as_echo "not found" >&6; } 46583 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 46584 fi 46585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46586 $as_echo "$tool_specified" >&6; } 46587 fi 46588 fi 46589 fi 46590 46591 fi 46592 46593 46594 46595 if test "x$BUILD_CXX" = x; then 46596 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 46597 fi 46598 46599 46600 46601 # Only process if variable expands to non-empty 46602 46603 if test "x$BUILD_CXX" != x; then 46604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46605 46606 # First separate the path from the arguments. This will split at the first 46607 # space. 46608 complete="$BUILD_CXX" 46609 path="${complete%% *}" 46610 tmp="$complete EOL" 46611 arguments="${tmp#* }" 46612 46613 # Input might be given as Windows format, start by converting to 46614 # unix format. 46615 new_path=`$CYGPATH -u "$path"` 46616 46617 # Now try to locate executable using which 46618 new_path=`$WHICH "$new_path" 2> /dev/null` 46619 # bat and cmd files are not always considered executable in cygwin causing which 46620 # to not find them 46621 if test "x$new_path" = x \ 46622 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46623 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46624 new_path=`$CYGPATH -u "$path"` 46625 fi 46626 if test "x$new_path" = x; then 46627 # Oops. Which didn't find the executable. 46628 # The splitting of arguments from the executable at a space might have been incorrect, 46629 # since paths with space are more likely in Windows. Give it another try with the whole 46630 # argument. 46631 path="$complete" 46632 arguments="EOL" 46633 new_path=`$CYGPATH -u "$path"` 46634 new_path=`$WHICH "$new_path" 2> /dev/null` 46635 # bat and cmd files are not always considered executable in cygwin causing which 46636 # to not find them 46637 if test "x$new_path" = x \ 46638 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46639 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46640 new_path=`$CYGPATH -u "$path"` 46641 fi 46642 if test "x$new_path" = x; then 46643 # It's still not found. Now this is an unrecoverable error. 46644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46645 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46646 has_space=`$ECHO "$complete" | $GREP " "` 46647 if test "x$has_space" != x; then 46648 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46649 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46650 fi 46651 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46652 fi 46653 fi 46654 46655 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46656 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46657 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46658 # "foo.exe" is OK but "foo" is an error. 46659 # 46660 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46661 # It is also a way to make sure we got the proper file name for the real test later on. 46662 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46663 if test "x$test_shortpath" = x; then 46664 # Short path failed, file does not exist as specified. 46665 # Try adding .exe or .cmd 46666 if test -f "${new_path}.exe"; then 46667 input_to_shortpath="${new_path}.exe" 46668 elif test -f "${new_path}.cmd"; then 46669 input_to_shortpath="${new_path}.cmd" 46670 else 46671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 46672 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 46673 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46674 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46675 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46676 fi 46677 else 46678 input_to_shortpath="$new_path" 46679 fi 46680 46681 # Call helper function which possibly converts this using DOS-style short mode. 46682 # If so, the updated path is stored in $new_path. 46683 new_path="$input_to_shortpath" 46684 46685 input_path="$input_to_shortpath" 46686 # Check if we need to convert this using DOS-style short mode. If the path 46687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46688 # take no chances and rewrite it. 46689 # Note: m4 eats our [], so we need to use [ and ] instead. 46690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46691 if test "x$has_forbidden_chars" != x; then 46692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46693 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46694 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46695 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46696 # Going to short mode and back again did indeed matter. Since short mode is 46697 # case insensitive, let's make it lowercase to improve readability. 46698 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46699 # Now convert it back to Unix-style (cygpath) 46700 input_path=`$CYGPATH -u "$shortmode_path"` 46701 new_path="$input_path" 46702 fi 46703 fi 46704 46705 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46706 if test "x$test_cygdrive_prefix" = x; then 46707 # As a simple fix, exclude /usr/bin since it's not a real path. 46708 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46709 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46710 # a path prefixed by /cygdrive for fixpath to work. 46711 new_path="$CYGWIN_ROOT_PATH$input_path" 46712 fi 46713 fi 46714 46715 # remove trailing .exe if any 46716 new_path="${new_path/%.exe/}" 46717 46718 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46719 46720 # First separate the path from the arguments. This will split at the first 46721 # space. 46722 complete="$BUILD_CXX" 46723 path="${complete%% *}" 46724 tmp="$complete EOL" 46725 arguments="${tmp#* }" 46726 46727 # Input might be given as Windows format, start by converting to 46728 # unix format. 46729 new_path="$path" 46730 46731 windows_path="$new_path" 46732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46733 unix_path=`$CYGPATH -u "$windows_path"` 46734 new_path="$unix_path" 46735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46737 new_path="$unix_path" 46738 fi 46739 46740 46741 # Now try to locate executable using which 46742 new_path=`$WHICH "$new_path" 2> /dev/null` 46743 46744 if test "x$new_path" = x; then 46745 # Oops. Which didn't find the executable. 46746 # The splitting of arguments from the executable at a space might have been incorrect, 46747 # since paths with space are more likely in Windows. Give it another try with the whole 46748 # argument. 46749 path="$complete" 46750 arguments="EOL" 46751 new_path="$path" 46752 46753 windows_path="$new_path" 46754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46755 unix_path=`$CYGPATH -u "$windows_path"` 46756 new_path="$unix_path" 46757 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46758 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46759 new_path="$unix_path" 46760 fi 46761 46762 46763 new_path=`$WHICH "$new_path" 2> /dev/null` 46764 # bat and cmd files are not always considered executable in MSYS causing which 46765 # to not find them 46766 if test "x$new_path" = x \ 46767 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46768 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46769 new_path="$path" 46770 46771 windows_path="$new_path" 46772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46773 unix_path=`$CYGPATH -u "$windows_path"` 46774 new_path="$unix_path" 46775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46776 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46777 new_path="$unix_path" 46778 fi 46779 46780 fi 46781 46782 if test "x$new_path" = x; then 46783 # It's still not found. Now this is an unrecoverable error. 46784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46785 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46786 has_space=`$ECHO "$complete" | $GREP " "` 46787 if test "x$has_space" != x; then 46788 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46789 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46790 fi 46791 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46792 fi 46793 fi 46794 46795 # Now new_path has a complete unix path to the binary 46796 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46797 # Keep paths in /bin as-is, but remove trailing .exe if any 46798 new_path="${new_path/%.exe/}" 46799 # Do not save /bin paths to all_fixpath_prefixes! 46800 else 46801 # Not in mixed or Windows style, start by that. 46802 new_path=`cmd //c echo $new_path` 46803 46804 input_path="$new_path" 46805 # Check if we need to convert this using DOS-style short mode. If the path 46806 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46807 # take no chances and rewrite it. 46808 # Note: m4 eats our [], so we need to use [ and ] instead. 46809 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46810 if test "x$has_forbidden_chars" != x; then 46811 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46812 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46813 fi 46814 46815 # Output is in $new_path 46816 46817 windows_path="$new_path" 46818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46819 unix_path=`$CYGPATH -u "$windows_path"` 46820 new_path="$unix_path" 46821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46822 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46823 new_path="$unix_path" 46824 fi 46825 46826 # remove trailing .exe if any 46827 new_path="${new_path/%.exe/}" 46828 46829 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46830 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46831 fi 46832 46833 else 46834 # We're on a unix platform. Hooray! :) 46835 # First separate the path from the arguments. This will split at the first 46836 # space. 46837 complete="$BUILD_CXX" 46838 path="${complete%% *}" 46839 tmp="$complete EOL" 46840 arguments="${tmp#* }" 46841 46842 # Cannot rely on the command "which" here since it doesn't always work. 46843 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46844 if test -z "$is_absolute_path"; then 46845 # Path to executable is not absolute. Find it. 46846 IFS_save="$IFS" 46847 IFS=: 46848 for p in $PATH; do 46849 if test -f "$p/$path" && test -x "$p/$path"; then 46850 new_path="$p/$path" 46851 break 46852 fi 46853 done 46854 IFS="$IFS_save" 46855 else 46856 # This is an absolute path, we can use it without further modifications. 46857 new_path="$path" 46858 fi 46859 46860 if test "x$new_path" = x; then 46861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46862 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46863 has_space=`$ECHO "$complete" | $GREP " "` 46864 if test "x$has_space" != x; then 46865 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46866 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46867 fi 46868 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46869 fi 46870 fi 46871 46872 # Now join together the path and the arguments once again 46873 if test "x$arguments" != xEOL; then 46874 new_complete="$new_path ${arguments% *}" 46875 else 46876 new_complete="$new_path" 46877 fi 46878 46879 if test "x$complete" != "x$new_complete"; then 46880 BUILD_CXX="$new_complete" 46881 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 46882 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 46883 fi 46884 fi 46885 46886 46887 46888 # Publish this variable in the help. 46889 46890 46891 if [ -z "${BUILD_NM+x}" ]; then 46892 # The variable is not set by user, try to locate tool using the code snippet 46893 for ac_prog in nm gcc-nm 46894 do 46895 # Extract the first word of "$ac_prog", so it can be a program name with args. 46896 set dummy $ac_prog; ac_word=$2 46897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46898 $as_echo_n "checking for $ac_word... " >&6; } 46899 if ${ac_cv_path_BUILD_NM+:} false; then : 46900 $as_echo_n "(cached) " >&6 46901 else 46902 case $BUILD_NM in 46903 [\\/]* | ?:[\\/]*) 46904 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46905 ;; 46906 *) 46907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46908 for as_dir in $PATH 46909 do 46910 IFS=$as_save_IFS 46911 test -z "$as_dir" && as_dir=. 46912 for ac_exec_ext in '' $ac_executable_extensions; do 46913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46914 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46916 break 2 46917 fi 46918 done 46919 done 46920 IFS=$as_save_IFS 46921 46922 ;; 46923 esac 46924 fi 46925 BUILD_NM=$ac_cv_path_BUILD_NM 46926 if test -n "$BUILD_NM"; then 46927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46928 $as_echo "$BUILD_NM" >&6; } 46929 else 46930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46931 $as_echo "no" >&6; } 46932 fi 46933 46934 46935 test -n "$BUILD_NM" && break 46936 done 46937 46938 else 46939 # The variable is set, but is it from the command line or the environment? 46940 46941 # Try to remove the string !BUILD_NM! from our list. 46942 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 46943 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46944 # If it failed, the variable was not from the command line. Ignore it, 46945 # but warn the user (except for BASH, which is always set by the calling BASH). 46946 if test "xBUILD_NM" != xBASH; then 46947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 46948 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 46949 fi 46950 # Try to locate tool using the code snippet 46951 for ac_prog in nm gcc-nm 46952 do 46953 # Extract the first word of "$ac_prog", so it can be a program name with args. 46954 set dummy $ac_prog; ac_word=$2 46955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46956 $as_echo_n "checking for $ac_word... " >&6; } 46957 if ${ac_cv_path_BUILD_NM+:} false; then : 46958 $as_echo_n "(cached) " >&6 46959 else 46960 case $BUILD_NM in 46961 [\\/]* | ?:[\\/]*) 46962 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46963 ;; 46964 *) 46965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46966 for as_dir in $PATH 46967 do 46968 IFS=$as_save_IFS 46969 test -z "$as_dir" && as_dir=. 46970 for ac_exec_ext in '' $ac_executable_extensions; do 46971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46972 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46974 break 2 46975 fi 46976 done 46977 done 46978 IFS=$as_save_IFS 46979 46980 ;; 46981 esac 46982 fi 46983 BUILD_NM=$ac_cv_path_BUILD_NM 46984 if test -n "$BUILD_NM"; then 46985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46986 $as_echo "$BUILD_NM" >&6; } 46987 else 46988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46989 $as_echo "no" >&6; } 46990 fi 46991 46992 46993 test -n "$BUILD_NM" && break 46994 done 46995 46996 else 46997 # If it succeeded, then it was overridden by the user. We will use it 46998 # for the tool. 46999 47000 # First remove it from the list of overridden variables, so we can test 47001 # for unknown variables in the end. 47002 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47003 47004 # Check if we try to supply an empty value 47005 if test "x$BUILD_NM" = x; then 47006 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 47007 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 47008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 47009 $as_echo_n "checking for BUILD_NM... " >&6; } 47010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47011 $as_echo "disabled" >&6; } 47012 else 47013 # Check if the provided tool contains a complete path. 47014 tool_specified="$BUILD_NM" 47015 tool_basename="${tool_specified##*/}" 47016 if test "x$tool_basename" = "x$tool_specified"; then 47017 # A command without a complete path is provided, search $PATH. 47018 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 47019 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 47020 # Extract the first word of "$tool_basename", so it can be a program name with args. 47021 set dummy $tool_basename; ac_word=$2 47022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47023 $as_echo_n "checking for $ac_word... " >&6; } 47024 if ${ac_cv_path_BUILD_NM+:} false; then : 47025 $as_echo_n "(cached) " >&6 47026 else 47027 case $BUILD_NM in 47028 [\\/]* | ?:[\\/]*) 47029 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 47030 ;; 47031 *) 47032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47033 for as_dir in $PATH 47034 do 47035 IFS=$as_save_IFS 47036 test -z "$as_dir" && as_dir=. 47037 for ac_exec_ext in '' $ac_executable_extensions; do 47038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47039 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 47040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47041 break 2 47042 fi 47043 done 47044 done 47045 IFS=$as_save_IFS 47046 47047 ;; 47048 esac 47049 fi 47050 BUILD_NM=$ac_cv_path_BUILD_NM 47051 if test -n "$BUILD_NM"; then 47052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 47053 $as_echo "$BUILD_NM" >&6; } 47054 else 47055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47056 $as_echo "no" >&6; } 47057 fi 47058 47059 47060 if test "x$BUILD_NM" = x; then 47061 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47062 fi 47063 else 47064 # Otherwise we believe it is a complete path. Use it as it is. 47065 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 47066 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 47067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 47068 $as_echo_n "checking for BUILD_NM... " >&6; } 47069 if test ! -x "$tool_specified"; then 47070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47071 $as_echo "not found" >&6; } 47072 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 47073 fi 47074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47075 $as_echo "$tool_specified" >&6; } 47076 fi 47077 fi 47078 fi 47079 47080 fi 47081 47082 47083 47084 # Only process if variable expands to non-empty 47085 47086 if test "x$BUILD_NM" != x; then 47087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47088 47089 # First separate the path from the arguments. This will split at the first 47090 # space. 47091 complete="$BUILD_NM" 47092 path="${complete%% *}" 47093 tmp="$complete EOL" 47094 arguments="${tmp#* }" 47095 47096 # Input might be given as Windows format, start by converting to 47097 # unix format. 47098 new_path=`$CYGPATH -u "$path"` 47099 47100 # Now try to locate executable using which 47101 new_path=`$WHICH "$new_path" 2> /dev/null` 47102 # bat and cmd files are not always considered executable in cygwin causing which 47103 # to not find them 47104 if test "x$new_path" = x \ 47105 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47106 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47107 new_path=`$CYGPATH -u "$path"` 47108 fi 47109 if test "x$new_path" = x; then 47110 # Oops. Which didn't find the executable. 47111 # The splitting of arguments from the executable at a space might have been incorrect, 47112 # since paths with space are more likely in Windows. Give it another try with the whole 47113 # argument. 47114 path="$complete" 47115 arguments="EOL" 47116 new_path=`$CYGPATH -u "$path"` 47117 new_path=`$WHICH "$new_path" 2> /dev/null` 47118 # bat and cmd files are not always considered executable in cygwin causing which 47119 # to not find them 47120 if test "x$new_path" = x \ 47121 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47122 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47123 new_path=`$CYGPATH -u "$path"` 47124 fi 47125 if test "x$new_path" = x; then 47126 # It's still not found. Now this is an unrecoverable error. 47127 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47128 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47129 has_space=`$ECHO "$complete" | $GREP " "` 47130 if test "x$has_space" != x; then 47131 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47132 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47133 fi 47134 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47135 fi 47136 fi 47137 47138 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47139 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47140 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47141 # "foo.exe" is OK but "foo" is an error. 47142 # 47143 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47144 # It is also a way to make sure we got the proper file name for the real test later on. 47145 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47146 if test "x$test_shortpath" = x; then 47147 # Short path failed, file does not exist as specified. 47148 # Try adding .exe or .cmd 47149 if test -f "${new_path}.exe"; then 47150 input_to_shortpath="${new_path}.exe" 47151 elif test -f "${new_path}.cmd"; then 47152 input_to_shortpath="${new_path}.cmd" 47153 else 47154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 47155 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 47156 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47157 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47158 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47159 fi 47160 else 47161 input_to_shortpath="$new_path" 47162 fi 47163 47164 # Call helper function which possibly converts this using DOS-style short mode. 47165 # If so, the updated path is stored in $new_path. 47166 new_path="$input_to_shortpath" 47167 47168 input_path="$input_to_shortpath" 47169 # Check if we need to convert this using DOS-style short mode. If the path 47170 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47171 # take no chances and rewrite it. 47172 # Note: m4 eats our [], so we need to use [ and ] instead. 47173 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47174 if test "x$has_forbidden_chars" != x; then 47175 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47176 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47177 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47178 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47179 # Going to short mode and back again did indeed matter. Since short mode is 47180 # case insensitive, let's make it lowercase to improve readability. 47181 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47182 # Now convert it back to Unix-style (cygpath) 47183 input_path=`$CYGPATH -u "$shortmode_path"` 47184 new_path="$input_path" 47185 fi 47186 fi 47187 47188 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47189 if test "x$test_cygdrive_prefix" = x; then 47190 # As a simple fix, exclude /usr/bin since it's not a real path. 47191 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47192 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47193 # a path prefixed by /cygdrive for fixpath to work. 47194 new_path="$CYGWIN_ROOT_PATH$input_path" 47195 fi 47196 fi 47197 47198 # remove trailing .exe if any 47199 new_path="${new_path/%.exe/}" 47200 47201 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47202 47203 # First separate the path from the arguments. This will split at the first 47204 # space. 47205 complete="$BUILD_NM" 47206 path="${complete%% *}" 47207 tmp="$complete EOL" 47208 arguments="${tmp#* }" 47209 47210 # Input might be given as Windows format, start by converting to 47211 # unix format. 47212 new_path="$path" 47213 47214 windows_path="$new_path" 47215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47216 unix_path=`$CYGPATH -u "$windows_path"` 47217 new_path="$unix_path" 47218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47219 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47220 new_path="$unix_path" 47221 fi 47222 47223 47224 # Now try to locate executable using which 47225 new_path=`$WHICH "$new_path" 2> /dev/null` 47226 47227 if test "x$new_path" = x; then 47228 # Oops. Which didn't find the executable. 47229 # The splitting of arguments from the executable at a space might have been incorrect, 47230 # since paths with space are more likely in Windows. Give it another try with the whole 47231 # argument. 47232 path="$complete" 47233 arguments="EOL" 47234 new_path="$path" 47235 47236 windows_path="$new_path" 47237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47238 unix_path=`$CYGPATH -u "$windows_path"` 47239 new_path="$unix_path" 47240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47242 new_path="$unix_path" 47243 fi 47244 47245 47246 new_path=`$WHICH "$new_path" 2> /dev/null` 47247 # bat and cmd files are not always considered executable in MSYS causing which 47248 # to not find them 47249 if test "x$new_path" = x \ 47250 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47251 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47252 new_path="$path" 47253 47254 windows_path="$new_path" 47255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47256 unix_path=`$CYGPATH -u "$windows_path"` 47257 new_path="$unix_path" 47258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47260 new_path="$unix_path" 47261 fi 47262 47263 fi 47264 47265 if test "x$new_path" = x; then 47266 # It's still not found. Now this is an unrecoverable error. 47267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47268 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47269 has_space=`$ECHO "$complete" | $GREP " "` 47270 if test "x$has_space" != x; then 47271 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47272 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47273 fi 47274 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47275 fi 47276 fi 47277 47278 # Now new_path has a complete unix path to the binary 47279 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47280 # Keep paths in /bin as-is, but remove trailing .exe if any 47281 new_path="${new_path/%.exe/}" 47282 # Do not save /bin paths to all_fixpath_prefixes! 47283 else 47284 # Not in mixed or Windows style, start by that. 47285 new_path=`cmd //c echo $new_path` 47286 47287 input_path="$new_path" 47288 # Check if we need to convert this using DOS-style short mode. If the path 47289 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47290 # take no chances and rewrite it. 47291 # Note: m4 eats our [], so we need to use [ and ] instead. 47292 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47293 if test "x$has_forbidden_chars" != x; then 47294 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47295 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47296 fi 47297 47298 # Output is in $new_path 47299 47300 windows_path="$new_path" 47301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47302 unix_path=`$CYGPATH -u "$windows_path"` 47303 new_path="$unix_path" 47304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47306 new_path="$unix_path" 47307 fi 47308 47309 # remove trailing .exe if any 47310 new_path="${new_path/%.exe/}" 47311 47312 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47313 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47314 fi 47315 47316 else 47317 # We're on a unix platform. Hooray! :) 47318 # First separate the path from the arguments. This will split at the first 47319 # space. 47320 complete="$BUILD_NM" 47321 path="${complete%% *}" 47322 tmp="$complete EOL" 47323 arguments="${tmp#* }" 47324 47325 # Cannot rely on the command "which" here since it doesn't always work. 47326 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47327 if test -z "$is_absolute_path"; then 47328 # Path to executable is not absolute. Find it. 47329 IFS_save="$IFS" 47330 IFS=: 47331 for p in $PATH; do 47332 if test -f "$p/$path" && test -x "$p/$path"; then 47333 new_path="$p/$path" 47334 break 47335 fi 47336 done 47337 IFS="$IFS_save" 47338 else 47339 # This is an absolute path, we can use it without further modifications. 47340 new_path="$path" 47341 fi 47342 47343 if test "x$new_path" = x; then 47344 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47345 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47346 has_space=`$ECHO "$complete" | $GREP " "` 47347 if test "x$has_space" != x; then 47348 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47349 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47350 fi 47351 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47352 fi 47353 fi 47354 47355 # Now join together the path and the arguments once again 47356 if test "x$arguments" != xEOL; then 47357 new_complete="$new_path ${arguments% *}" 47358 else 47359 new_complete="$new_path" 47360 fi 47361 47362 if test "x$complete" != "x$new_complete"; then 47363 BUILD_NM="$new_complete" 47364 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 47365 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 47366 fi 47367 fi 47368 47369 47370 47371 # Publish this variable in the help. 47372 47373 47374 if [ -z "${BUILD_AR+x}" ]; then 47375 # The variable is not set by user, try to locate tool using the code snippet 47376 for ac_prog in ar gcc-ar 47377 do 47378 # Extract the first word of "$ac_prog", so it can be a program name with args. 47379 set dummy $ac_prog; ac_word=$2 47380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47381 $as_echo_n "checking for $ac_word... " >&6; } 47382 if ${ac_cv_path_BUILD_AR+:} false; then : 47383 $as_echo_n "(cached) " >&6 47384 else 47385 case $BUILD_AR in 47386 [\\/]* | ?:[\\/]*) 47387 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47388 ;; 47389 *) 47390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47391 for as_dir in $PATH 47392 do 47393 IFS=$as_save_IFS 47394 test -z "$as_dir" && as_dir=. 47395 for ac_exec_ext in '' $ac_executable_extensions; do 47396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47397 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47399 break 2 47400 fi 47401 done 47402 done 47403 IFS=$as_save_IFS 47404 47405 ;; 47406 esac 47407 fi 47408 BUILD_AR=$ac_cv_path_BUILD_AR 47409 if test -n "$BUILD_AR"; then 47410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47411 $as_echo "$BUILD_AR" >&6; } 47412 else 47413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47414 $as_echo "no" >&6; } 47415 fi 47416 47417 47418 test -n "$BUILD_AR" && break 47419 done 47420 47421 else 47422 # The variable is set, but is it from the command line or the environment? 47423 47424 # Try to remove the string !BUILD_AR! from our list. 47425 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 47426 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47427 # If it failed, the variable was not from the command line. Ignore it, 47428 # but warn the user (except for BASH, which is always set by the calling BASH). 47429 if test "xBUILD_AR" != xBASH; then 47430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 47431 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 47432 fi 47433 # Try to locate tool using the code snippet 47434 for ac_prog in ar gcc-ar 47435 do 47436 # Extract the first word of "$ac_prog", so it can be a program name with args. 47437 set dummy $ac_prog; ac_word=$2 47438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47439 $as_echo_n "checking for $ac_word... " >&6; } 47440 if ${ac_cv_path_BUILD_AR+:} false; then : 47441 $as_echo_n "(cached) " >&6 47442 else 47443 case $BUILD_AR in 47444 [\\/]* | ?:[\\/]*) 47445 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47446 ;; 47447 *) 47448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47449 for as_dir in $PATH 47450 do 47451 IFS=$as_save_IFS 47452 test -z "$as_dir" && as_dir=. 47453 for ac_exec_ext in '' $ac_executable_extensions; do 47454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47455 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47457 break 2 47458 fi 47459 done 47460 done 47461 IFS=$as_save_IFS 47462 47463 ;; 47464 esac 47465 fi 47466 BUILD_AR=$ac_cv_path_BUILD_AR 47467 if test -n "$BUILD_AR"; then 47468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47469 $as_echo "$BUILD_AR" >&6; } 47470 else 47471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47472 $as_echo "no" >&6; } 47473 fi 47474 47475 47476 test -n "$BUILD_AR" && break 47477 done 47478 47479 else 47480 # If it succeeded, then it was overridden by the user. We will use it 47481 # for the tool. 47482 47483 # First remove it from the list of overridden variables, so we can test 47484 # for unknown variables in the end. 47485 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47486 47487 # Check if we try to supply an empty value 47488 if test "x$BUILD_AR" = x; then 47489 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 47490 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 47491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 47492 $as_echo_n "checking for BUILD_AR... " >&6; } 47493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47494 $as_echo "disabled" >&6; } 47495 else 47496 # Check if the provided tool contains a complete path. 47497 tool_specified="$BUILD_AR" 47498 tool_basename="${tool_specified##*/}" 47499 if test "x$tool_basename" = "x$tool_specified"; then 47500 # A command without a complete path is provided, search $PATH. 47501 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 47502 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 47503 # Extract the first word of "$tool_basename", so it can be a program name with args. 47504 set dummy $tool_basename; ac_word=$2 47505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47506 $as_echo_n "checking for $ac_word... " >&6; } 47507 if ${ac_cv_path_BUILD_AR+:} false; then : 47508 $as_echo_n "(cached) " >&6 47509 else 47510 case $BUILD_AR in 47511 [\\/]* | ?:[\\/]*) 47512 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47513 ;; 47514 *) 47515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47516 for as_dir in $PATH 47517 do 47518 IFS=$as_save_IFS 47519 test -z "$as_dir" && as_dir=. 47520 for ac_exec_ext in '' $ac_executable_extensions; do 47521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47522 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47524 break 2 47525 fi 47526 done 47527 done 47528 IFS=$as_save_IFS 47529 47530 ;; 47531 esac 47532 fi 47533 BUILD_AR=$ac_cv_path_BUILD_AR 47534 if test -n "$BUILD_AR"; then 47535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47536 $as_echo "$BUILD_AR" >&6; } 47537 else 47538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47539 $as_echo "no" >&6; } 47540 fi 47541 47542 47543 if test "x$BUILD_AR" = x; then 47544 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47545 fi 47546 else 47547 # Otherwise we believe it is a complete path. Use it as it is. 47548 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 47549 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 47550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 47551 $as_echo_n "checking for BUILD_AR... " >&6; } 47552 if test ! -x "$tool_specified"; then 47553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47554 $as_echo "not found" >&6; } 47555 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 47556 fi 47557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47558 $as_echo "$tool_specified" >&6; } 47559 fi 47560 fi 47561 fi 47562 47563 fi 47564 47565 47566 47567 # Only process if variable expands to non-empty 47568 47569 if test "x$BUILD_AR" != x; then 47570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47571 47572 # First separate the path from the arguments. This will split at the first 47573 # space. 47574 complete="$BUILD_AR" 47575 path="${complete%% *}" 47576 tmp="$complete EOL" 47577 arguments="${tmp#* }" 47578 47579 # Input might be given as Windows format, start by converting to 47580 # unix format. 47581 new_path=`$CYGPATH -u "$path"` 47582 47583 # Now try to locate executable using which 47584 new_path=`$WHICH "$new_path" 2> /dev/null` 47585 # bat and cmd files are not always considered executable in cygwin causing which 47586 # to not find them 47587 if test "x$new_path" = x \ 47588 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47589 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47590 new_path=`$CYGPATH -u "$path"` 47591 fi 47592 if test "x$new_path" = x; then 47593 # Oops. Which didn't find the executable. 47594 # The splitting of arguments from the executable at a space might have been incorrect, 47595 # since paths with space are more likely in Windows. Give it another try with the whole 47596 # argument. 47597 path="$complete" 47598 arguments="EOL" 47599 new_path=`$CYGPATH -u "$path"` 47600 new_path=`$WHICH "$new_path" 2> /dev/null` 47601 # bat and cmd files are not always considered executable in cygwin causing which 47602 # to not find them 47603 if test "x$new_path" = x \ 47604 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47605 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47606 new_path=`$CYGPATH -u "$path"` 47607 fi 47608 if test "x$new_path" = x; then 47609 # It's still not found. Now this is an unrecoverable error. 47610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47611 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47612 has_space=`$ECHO "$complete" | $GREP " "` 47613 if test "x$has_space" != x; then 47614 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47615 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47616 fi 47617 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47618 fi 47619 fi 47620 47621 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47622 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47623 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47624 # "foo.exe" is OK but "foo" is an error. 47625 # 47626 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47627 # It is also a way to make sure we got the proper file name for the real test later on. 47628 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47629 if test "x$test_shortpath" = x; then 47630 # Short path failed, file does not exist as specified. 47631 # Try adding .exe or .cmd 47632 if test -f "${new_path}.exe"; then 47633 input_to_shortpath="${new_path}.exe" 47634 elif test -f "${new_path}.cmd"; then 47635 input_to_shortpath="${new_path}.cmd" 47636 else 47637 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 47638 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 47639 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47640 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47641 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47642 fi 47643 else 47644 input_to_shortpath="$new_path" 47645 fi 47646 47647 # Call helper function which possibly converts this using DOS-style short mode. 47648 # If so, the updated path is stored in $new_path. 47649 new_path="$input_to_shortpath" 47650 47651 input_path="$input_to_shortpath" 47652 # Check if we need to convert this using DOS-style short mode. If the path 47653 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47654 # take no chances and rewrite it. 47655 # Note: m4 eats our [], so we need to use [ and ] instead. 47656 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47657 if test "x$has_forbidden_chars" != x; then 47658 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47659 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47660 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47661 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47662 # Going to short mode and back again did indeed matter. Since short mode is 47663 # case insensitive, let's make it lowercase to improve readability. 47664 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47665 # Now convert it back to Unix-style (cygpath) 47666 input_path=`$CYGPATH -u "$shortmode_path"` 47667 new_path="$input_path" 47668 fi 47669 fi 47670 47671 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47672 if test "x$test_cygdrive_prefix" = x; then 47673 # As a simple fix, exclude /usr/bin since it's not a real path. 47674 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47675 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47676 # a path prefixed by /cygdrive for fixpath to work. 47677 new_path="$CYGWIN_ROOT_PATH$input_path" 47678 fi 47679 fi 47680 47681 # remove trailing .exe if any 47682 new_path="${new_path/%.exe/}" 47683 47684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47685 47686 # First separate the path from the arguments. This will split at the first 47687 # space. 47688 complete="$BUILD_AR" 47689 path="${complete%% *}" 47690 tmp="$complete EOL" 47691 arguments="${tmp#* }" 47692 47693 # Input might be given as Windows format, start by converting to 47694 # unix format. 47695 new_path="$path" 47696 47697 windows_path="$new_path" 47698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47699 unix_path=`$CYGPATH -u "$windows_path"` 47700 new_path="$unix_path" 47701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47702 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47703 new_path="$unix_path" 47704 fi 47705 47706 47707 # Now try to locate executable using which 47708 new_path=`$WHICH "$new_path" 2> /dev/null` 47709 47710 if test "x$new_path" = x; then 47711 # Oops. Which didn't find the executable. 47712 # The splitting of arguments from the executable at a space might have been incorrect, 47713 # since paths with space are more likely in Windows. Give it another try with the whole 47714 # argument. 47715 path="$complete" 47716 arguments="EOL" 47717 new_path="$path" 47718 47719 windows_path="$new_path" 47720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47721 unix_path=`$CYGPATH -u "$windows_path"` 47722 new_path="$unix_path" 47723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47724 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47725 new_path="$unix_path" 47726 fi 47727 47728 47729 new_path=`$WHICH "$new_path" 2> /dev/null` 47730 # bat and cmd files are not always considered executable in MSYS causing which 47731 # to not find them 47732 if test "x$new_path" = x \ 47733 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47734 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47735 new_path="$path" 47736 47737 windows_path="$new_path" 47738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47739 unix_path=`$CYGPATH -u "$windows_path"` 47740 new_path="$unix_path" 47741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47743 new_path="$unix_path" 47744 fi 47745 47746 fi 47747 47748 if test "x$new_path" = x; then 47749 # It's still not found. Now this is an unrecoverable error. 47750 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47751 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47752 has_space=`$ECHO "$complete" | $GREP " "` 47753 if test "x$has_space" != x; then 47754 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47755 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47756 fi 47757 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47758 fi 47759 fi 47760 47761 # Now new_path has a complete unix path to the binary 47762 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47763 # Keep paths in /bin as-is, but remove trailing .exe if any 47764 new_path="${new_path/%.exe/}" 47765 # Do not save /bin paths to all_fixpath_prefixes! 47766 else 47767 # Not in mixed or Windows style, start by that. 47768 new_path=`cmd //c echo $new_path` 47769 47770 input_path="$new_path" 47771 # Check if we need to convert this using DOS-style short mode. If the path 47772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47773 # take no chances and rewrite it. 47774 # Note: m4 eats our [], so we need to use [ and ] instead. 47775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47776 if test "x$has_forbidden_chars" != x; then 47777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47778 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47779 fi 47780 47781 # Output is in $new_path 47782 47783 windows_path="$new_path" 47784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47785 unix_path=`$CYGPATH -u "$windows_path"` 47786 new_path="$unix_path" 47787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47789 new_path="$unix_path" 47790 fi 47791 47792 # remove trailing .exe if any 47793 new_path="${new_path/%.exe/}" 47794 47795 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47796 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47797 fi 47798 47799 else 47800 # We're on a unix platform. Hooray! :) 47801 # First separate the path from the arguments. This will split at the first 47802 # space. 47803 complete="$BUILD_AR" 47804 path="${complete%% *}" 47805 tmp="$complete EOL" 47806 arguments="${tmp#* }" 47807 47808 # Cannot rely on the command "which" here since it doesn't always work. 47809 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47810 if test -z "$is_absolute_path"; then 47811 # Path to executable is not absolute. Find it. 47812 IFS_save="$IFS" 47813 IFS=: 47814 for p in $PATH; do 47815 if test -f "$p/$path" && test -x "$p/$path"; then 47816 new_path="$p/$path" 47817 break 47818 fi 47819 done 47820 IFS="$IFS_save" 47821 else 47822 # This is an absolute path, we can use it without further modifications. 47823 new_path="$path" 47824 fi 47825 47826 if test "x$new_path" = x; then 47827 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47828 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47829 has_space=`$ECHO "$complete" | $GREP " "` 47830 if test "x$has_space" != x; then 47831 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47832 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47833 fi 47834 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47835 fi 47836 fi 47837 47838 # Now join together the path and the arguments once again 47839 if test "x$arguments" != xEOL; then 47840 new_complete="$new_path ${arguments% *}" 47841 else 47842 new_complete="$new_path" 47843 fi 47844 47845 if test "x$complete" != "x$new_complete"; then 47846 BUILD_AR="$new_complete" 47847 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 47848 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 47849 fi 47850 fi 47851 47852 47853 47854 # Publish this variable in the help. 47855 47856 47857 if [ -z "${BUILD_OBJCOPY+x}" ]; then 47858 # The variable is not set by user, try to locate tool using the code snippet 47859 for ac_prog in objcopy 47860 do 47861 # Extract the first word of "$ac_prog", so it can be a program name with args. 47862 set dummy $ac_prog; ac_word=$2 47863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47864 $as_echo_n "checking for $ac_word... " >&6; } 47865 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47866 $as_echo_n "(cached) " >&6 47867 else 47868 case $BUILD_OBJCOPY in 47869 [\\/]* | ?:[\\/]*) 47870 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47871 ;; 47872 *) 47873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47874 for as_dir in $PATH 47875 do 47876 IFS=$as_save_IFS 47877 test -z "$as_dir" && as_dir=. 47878 for ac_exec_ext in '' $ac_executable_extensions; do 47879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47880 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47882 break 2 47883 fi 47884 done 47885 done 47886 IFS=$as_save_IFS 47887 47888 ;; 47889 esac 47890 fi 47891 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47892 if test -n "$BUILD_OBJCOPY"; then 47893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47894 $as_echo "$BUILD_OBJCOPY" >&6; } 47895 else 47896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47897 $as_echo "no" >&6; } 47898 fi 47899 47900 47901 test -n "$BUILD_OBJCOPY" && break 47902 done 47903 47904 else 47905 # The variable is set, but is it from the command line or the environment? 47906 47907 # Try to remove the string !BUILD_OBJCOPY! from our list. 47908 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 47909 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47910 # If it failed, the variable was not from the command line. Ignore it, 47911 # but warn the user (except for BASH, which is always set by the calling BASH). 47912 if test "xBUILD_OBJCOPY" != xBASH; then 47913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 47914 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 47915 fi 47916 # Try to locate tool using the code snippet 47917 for ac_prog in objcopy 47918 do 47919 # Extract the first word of "$ac_prog", so it can be a program name with args. 47920 set dummy $ac_prog; ac_word=$2 47921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47922 $as_echo_n "checking for $ac_word... " >&6; } 47923 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47924 $as_echo_n "(cached) " >&6 47925 else 47926 case $BUILD_OBJCOPY in 47927 [\\/]* | ?:[\\/]*) 47928 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47929 ;; 47930 *) 47931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47932 for as_dir in $PATH 47933 do 47934 IFS=$as_save_IFS 47935 test -z "$as_dir" && as_dir=. 47936 for ac_exec_ext in '' $ac_executable_extensions; do 47937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47938 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47940 break 2 47941 fi 47942 done 47943 done 47944 IFS=$as_save_IFS 47945 47946 ;; 47947 esac 47948 fi 47949 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47950 if test -n "$BUILD_OBJCOPY"; then 47951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47952 $as_echo "$BUILD_OBJCOPY" >&6; } 47953 else 47954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47955 $as_echo "no" >&6; } 47956 fi 47957 47958 47959 test -n "$BUILD_OBJCOPY" && break 47960 done 47961 47962 else 47963 # If it succeeded, then it was overridden by the user. We will use it 47964 # for the tool. 47965 47966 # First remove it from the list of overridden variables, so we can test 47967 # for unknown variables in the end. 47968 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47969 47970 # Check if we try to supply an empty value 47971 if test "x$BUILD_OBJCOPY" = x; then 47972 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 47973 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 47974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47975 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47977 $as_echo "disabled" >&6; } 47978 else 47979 # Check if the provided tool contains a complete path. 47980 tool_specified="$BUILD_OBJCOPY" 47981 tool_basename="${tool_specified##*/}" 47982 if test "x$tool_basename" = "x$tool_specified"; then 47983 # A command without a complete path is provided, search $PATH. 47984 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 47985 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 47986 # Extract the first word of "$tool_basename", so it can be a program name with args. 47987 set dummy $tool_basename; ac_word=$2 47988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47989 $as_echo_n "checking for $ac_word... " >&6; } 47990 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47991 $as_echo_n "(cached) " >&6 47992 else 47993 case $BUILD_OBJCOPY in 47994 [\\/]* | ?:[\\/]*) 47995 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47996 ;; 47997 *) 47998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47999 for as_dir in $PATH 48000 do 48001 IFS=$as_save_IFS 48002 test -z "$as_dir" && as_dir=. 48003 for ac_exec_ext in '' $ac_executable_extensions; do 48004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48005 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 48006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48007 break 2 48008 fi 48009 done 48010 done 48011 IFS=$as_save_IFS 48012 48013 ;; 48014 esac 48015 fi 48016 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 48017 if test -n "$BUILD_OBJCOPY"; then 48018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 48019 $as_echo "$BUILD_OBJCOPY" >&6; } 48020 else 48021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48022 $as_echo "no" >&6; } 48023 fi 48024 48025 48026 if test "x$BUILD_OBJCOPY" = x; then 48027 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48028 fi 48029 else 48030 # Otherwise we believe it is a complete path. Use it as it is. 48031 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 48032 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 48033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 48034 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 48035 if test ! -x "$tool_specified"; then 48036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48037 $as_echo "not found" >&6; } 48038 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 48039 fi 48040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48041 $as_echo "$tool_specified" >&6; } 48042 fi 48043 fi 48044 fi 48045 48046 fi 48047 48048 48049 48050 # Only process if variable expands to non-empty 48051 48052 if test "x$BUILD_OBJCOPY" != x; then 48053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48054 48055 # First separate the path from the arguments. This will split at the first 48056 # space. 48057 complete="$BUILD_OBJCOPY" 48058 path="${complete%% *}" 48059 tmp="$complete EOL" 48060 arguments="${tmp#* }" 48061 48062 # Input might be given as Windows format, start by converting to 48063 # unix format. 48064 new_path=`$CYGPATH -u "$path"` 48065 48066 # Now try to locate executable using which 48067 new_path=`$WHICH "$new_path" 2> /dev/null` 48068 # bat and cmd files are not always considered executable in cygwin causing which 48069 # to not find them 48070 if test "x$new_path" = x \ 48071 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48072 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48073 new_path=`$CYGPATH -u "$path"` 48074 fi 48075 if test "x$new_path" = x; then 48076 # Oops. Which didn't find the executable. 48077 # The splitting of arguments from the executable at a space might have been incorrect, 48078 # since paths with space are more likely in Windows. Give it another try with the whole 48079 # argument. 48080 path="$complete" 48081 arguments="EOL" 48082 new_path=`$CYGPATH -u "$path"` 48083 new_path=`$WHICH "$new_path" 2> /dev/null` 48084 # bat and cmd files are not always considered executable in cygwin causing which 48085 # to not find them 48086 if test "x$new_path" = x \ 48087 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48088 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48089 new_path=`$CYGPATH -u "$path"` 48090 fi 48091 if test "x$new_path" = x; then 48092 # It's still not found. Now this is an unrecoverable error. 48093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48094 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48095 has_space=`$ECHO "$complete" | $GREP " "` 48096 if test "x$has_space" != x; then 48097 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48098 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48099 fi 48100 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48101 fi 48102 fi 48103 48104 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48105 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48106 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48107 # "foo.exe" is OK but "foo" is an error. 48108 # 48109 # This test is therefore slightly more accurate than "test -f" to check for file presence. 48110 # It is also a way to make sure we got the proper file name for the real test later on. 48111 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48112 if test "x$test_shortpath" = x; then 48113 # Short path failed, file does not exist as specified. 48114 # Try adding .exe or .cmd 48115 if test -f "${new_path}.exe"; then 48116 input_to_shortpath="${new_path}.exe" 48117 elif test -f "${new_path}.cmd"; then 48118 input_to_shortpath="${new_path}.cmd" 48119 else 48120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 48121 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 48122 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 48123 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 48124 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48125 fi 48126 else 48127 input_to_shortpath="$new_path" 48128 fi 48129 48130 # Call helper function which possibly converts this using DOS-style short mode. 48131 # If so, the updated path is stored in $new_path. 48132 new_path="$input_to_shortpath" 48133 48134 input_path="$input_to_shortpath" 48135 # Check if we need to convert this using DOS-style short mode. If the path 48136 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48137 # take no chances and rewrite it. 48138 # Note: m4 eats our [], so we need to use [ and ] instead. 48139 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48140 if test "x$has_forbidden_chars" != x; then 48141 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48142 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48143 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48144 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48145 # Going to short mode and back again did indeed matter. Since short mode is 48146 # case insensitive, let's make it lowercase to improve readability. 48147 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48148 # Now convert it back to Unix-style (cygpath) 48149 input_path=`$CYGPATH -u "$shortmode_path"` 48150 new_path="$input_path" 48151 fi 48152 fi 48153 48154 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48155 if test "x$test_cygdrive_prefix" = x; then 48156 # As a simple fix, exclude /usr/bin since it's not a real path. 48157 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 48158 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48159 # a path prefixed by /cygdrive for fixpath to work. 48160 new_path="$CYGWIN_ROOT_PATH$input_path" 48161 fi 48162 fi 48163 48164 # remove trailing .exe if any 48165 new_path="${new_path/%.exe/}" 48166 48167 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48168 48169 # First separate the path from the arguments. This will split at the first 48170 # space. 48171 complete="$BUILD_OBJCOPY" 48172 path="${complete%% *}" 48173 tmp="$complete EOL" 48174 arguments="${tmp#* }" 48175 48176 # Input might be given as Windows format, start by converting to 48177 # unix format. 48178 new_path="$path" 48179 48180 windows_path="$new_path" 48181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48182 unix_path=`$CYGPATH -u "$windows_path"` 48183 new_path="$unix_path" 48184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48185 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48186 new_path="$unix_path" 48187 fi 48188 48189 48190 # Now try to locate executable using which 48191 new_path=`$WHICH "$new_path" 2> /dev/null` 48192 48193 if test "x$new_path" = x; then 48194 # Oops. Which didn't find the executable. 48195 # The splitting of arguments from the executable at a space might have been incorrect, 48196 # since paths with space are more likely in Windows. Give it another try with the whole 48197 # argument. 48198 path="$complete" 48199 arguments="EOL" 48200 new_path="$path" 48201 48202 windows_path="$new_path" 48203 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48204 unix_path=`$CYGPATH -u "$windows_path"` 48205 new_path="$unix_path" 48206 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48207 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48208 new_path="$unix_path" 48209 fi 48210 48211 48212 new_path=`$WHICH "$new_path" 2> /dev/null` 48213 # bat and cmd files are not always considered executable in MSYS causing which 48214 # to not find them 48215 if test "x$new_path" = x \ 48216 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48217 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48218 new_path="$path" 48219 48220 windows_path="$new_path" 48221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48222 unix_path=`$CYGPATH -u "$windows_path"` 48223 new_path="$unix_path" 48224 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48225 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48226 new_path="$unix_path" 48227 fi 48228 48229 fi 48230 48231 if test "x$new_path" = x; then 48232 # It's still not found. Now this is an unrecoverable error. 48233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48234 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48235 has_space=`$ECHO "$complete" | $GREP " "` 48236 if test "x$has_space" != x; then 48237 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48238 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48239 fi 48240 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48241 fi 48242 fi 48243 48244 # Now new_path has a complete unix path to the binary 48245 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 48246 # Keep paths in /bin as-is, but remove trailing .exe if any 48247 new_path="${new_path/%.exe/}" 48248 # Do not save /bin paths to all_fixpath_prefixes! 48249 else 48250 # Not in mixed or Windows style, start by that. 48251 new_path=`cmd //c echo $new_path` 48252 48253 input_path="$new_path" 48254 # Check if we need to convert this using DOS-style short mode. If the path 48255 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48256 # take no chances and rewrite it. 48257 # Note: m4 eats our [], so we need to use [ and ] instead. 48258 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48259 if test "x$has_forbidden_chars" != x; then 48260 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48261 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48262 fi 48263 48264 # Output is in $new_path 48265 48266 windows_path="$new_path" 48267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48268 unix_path=`$CYGPATH -u "$windows_path"` 48269 new_path="$unix_path" 48270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48272 new_path="$unix_path" 48273 fi 48274 48275 # remove trailing .exe if any 48276 new_path="${new_path/%.exe/}" 48277 48278 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48279 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48280 fi 48281 48282 else 48283 # We're on a unix platform. Hooray! :) 48284 # First separate the path from the arguments. This will split at the first 48285 # space. 48286 complete="$BUILD_OBJCOPY" 48287 path="${complete%% *}" 48288 tmp="$complete EOL" 48289 arguments="${tmp#* }" 48290 48291 # Cannot rely on the command "which" here since it doesn't always work. 48292 is_absolute_path=`$ECHO "$path" | $GREP ^/` 48293 if test -z "$is_absolute_path"; then 48294 # Path to executable is not absolute. Find it. 48295 IFS_save="$IFS" 48296 IFS=: 48297 for p in $PATH; do 48298 if test -f "$p/$path" && test -x "$p/$path"; then 48299 new_path="$p/$path" 48300 break 48301 fi 48302 done 48303 IFS="$IFS_save" 48304 else 48305 # This is an absolute path, we can use it without further modifications. 48306 new_path="$path" 48307 fi 48308 48309 if test "x$new_path" = x; then 48310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48311 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48312 has_space=`$ECHO "$complete" | $GREP " "` 48313 if test "x$has_space" != x; then 48314 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 48315 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 48316 fi 48317 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48318 fi 48319 fi 48320 48321 # Now join together the path and the arguments once again 48322 if test "x$arguments" != xEOL; then 48323 new_complete="$new_path ${arguments% *}" 48324 else 48325 new_complete="$new_path" 48326 fi 48327 48328 if test "x$complete" != "x$new_complete"; then 48329 BUILD_OBJCOPY="$new_complete" 48330 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 48331 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 48332 fi 48333 fi 48334 48335 48336 48337 # Publish this variable in the help. 48338 48339 48340 if [ -z "${BUILD_STRIP+x}" ]; then 48341 # The variable is not set by user, try to locate tool using the code snippet 48342 for ac_prog in strip 48343 do 48344 # Extract the first word of "$ac_prog", so it can be a program name with args. 48345 set dummy $ac_prog; ac_word=$2 48346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48347 $as_echo_n "checking for $ac_word... " >&6; } 48348 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48349 $as_echo_n "(cached) " >&6 48350 else 48351 case $BUILD_STRIP in 48352 [\\/]* | ?:[\\/]*) 48353 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48354 ;; 48355 *) 48356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48357 for as_dir in $PATH 48358 do 48359 IFS=$as_save_IFS 48360 test -z "$as_dir" && as_dir=. 48361 for ac_exec_ext in '' $ac_executable_extensions; do 48362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48363 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48365 break 2 48366 fi 48367 done 48368 done 48369 IFS=$as_save_IFS 48370 48371 ;; 48372 esac 48373 fi 48374 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48375 if test -n "$BUILD_STRIP"; then 48376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48377 $as_echo "$BUILD_STRIP" >&6; } 48378 else 48379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48380 $as_echo "no" >&6; } 48381 fi 48382 48383 48384 test -n "$BUILD_STRIP" && break 48385 done 48386 48387 else 48388 # The variable is set, but is it from the command line or the environment? 48389 48390 # Try to remove the string !BUILD_STRIP! from our list. 48391 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 48392 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48393 # If it failed, the variable was not from the command line. Ignore it, 48394 # but warn the user (except for BASH, which is always set by the calling BASH). 48395 if test "xBUILD_STRIP" != xBASH; then 48396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 48397 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 48398 fi 48399 # Try to locate tool using the code snippet 48400 for ac_prog in strip 48401 do 48402 # Extract the first word of "$ac_prog", so it can be a program name with args. 48403 set dummy $ac_prog; ac_word=$2 48404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48405 $as_echo_n "checking for $ac_word... " >&6; } 48406 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48407 $as_echo_n "(cached) " >&6 48408 else 48409 case $BUILD_STRIP in 48410 [\\/]* | ?:[\\/]*) 48411 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48412 ;; 48413 *) 48414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48415 for as_dir in $PATH 48416 do 48417 IFS=$as_save_IFS 48418 test -z "$as_dir" && as_dir=. 48419 for ac_exec_ext in '' $ac_executable_extensions; do 48420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48421 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48423 break 2 48424 fi 48425 done 48426 done 48427 IFS=$as_save_IFS 48428 48429 ;; 48430 esac 48431 fi 48432 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48433 if test -n "$BUILD_STRIP"; then 48434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48435 $as_echo "$BUILD_STRIP" >&6; } 48436 else 48437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48438 $as_echo "no" >&6; } 48439 fi 48440 48441 48442 test -n "$BUILD_STRIP" && break 48443 done 48444 48445 else 48446 # If it succeeded, then it was overridden by the user. We will use it 48447 # for the tool. 48448 48449 # First remove it from the list of overridden variables, so we can test 48450 # for unknown variables in the end. 48451 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48452 48453 # Check if we try to supply an empty value 48454 if test "x$BUILD_STRIP" = x; then 48455 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 48456 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 48457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 48458 $as_echo_n "checking for BUILD_STRIP... " >&6; } 48459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48460 $as_echo "disabled" >&6; } 48461 else 48462 # Check if the provided tool contains a complete path. 48463 tool_specified="$BUILD_STRIP" 48464 tool_basename="${tool_specified##*/}" 48465 if test "x$tool_basename" = "x$tool_specified"; then 48466 # A command without a complete path is provided, search $PATH. 48467 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 48468 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 48469 # Extract the first word of "$tool_basename", so it can be a program name with args. 48470 set dummy $tool_basename; ac_word=$2 48471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48472 $as_echo_n "checking for $ac_word... " >&6; } 48473 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48474 $as_echo_n "(cached) " >&6 48475 else 48476 case $BUILD_STRIP in 48477 [\\/]* | ?:[\\/]*) 48478 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48479 ;; 48480 *) 48481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48482 for as_dir in $PATH 48483 do 48484 IFS=$as_save_IFS 48485 test -z "$as_dir" && as_dir=. 48486 for ac_exec_ext in '' $ac_executable_extensions; do 48487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48488 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48490 break 2 48491 fi 48492 done 48493 done 48494 IFS=$as_save_IFS 48495 48496 ;; 48497 esac 48498 fi 48499 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48500 if test -n "$BUILD_STRIP"; then 48501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48502 $as_echo "$BUILD_STRIP" >&6; } 48503 else 48504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48505 $as_echo "no" >&6; } 48506 fi 48507 48508 48509 if test "x$BUILD_STRIP" = x; then 48510 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48511 fi 48512 else 48513 # Otherwise we believe it is a complete path. Use it as it is. 48514 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 48515 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 48516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 48517 $as_echo_n "checking for BUILD_STRIP... " >&6; } 48518 if test ! -x "$tool_specified"; then 48519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48520 $as_echo "not found" >&6; } 48521 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 48522 fi 48523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48524 $as_echo "$tool_specified" >&6; } 48525 fi 48526 fi 48527 fi 48528 48529 fi 48530 48531 48532 48533 # Only process if variable expands to non-empty 48534 48535 if test "x$BUILD_STRIP" != x; then 48536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48537 48538 # First separate the path from the arguments. This will split at the first 48539 # space. 48540 complete="$BUILD_STRIP" 48541 path="${complete%% *}" 48542 tmp="$complete EOL" 48543 arguments="${tmp#* }" 48544 48545 # Input might be given as Windows format, start by converting to 48546 # unix format. 48547 new_path=`$CYGPATH -u "$path"` 48548 48549 # Now try to locate executable using which 48550 new_path=`$WHICH "$new_path" 2> /dev/null` 48551 # bat and cmd files are not always considered executable in cygwin causing which 48552 # to not find them 48553 if test "x$new_path" = x \ 48554 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48555 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48556 new_path=`$CYGPATH -u "$path"` 48557 fi 48558 if test "x$new_path" = x; then 48559 # Oops. Which didn't find the executable. 48560 # The splitting of arguments from the executable at a space might have been incorrect, 48561 # since paths with space are more likely in Windows. Give it another try with the whole 48562 # argument. 48563 path="$complete" 48564 arguments="EOL" 48565 new_path=`$CYGPATH -u "$path"` 48566 new_path=`$WHICH "$new_path" 2> /dev/null` 48567 # bat and cmd files are not always considered executable in cygwin causing which 48568 # to not find them 48569 if test "x$new_path" = x \ 48570 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48571 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48572 new_path=`$CYGPATH -u "$path"` 48573 fi 48574 if test "x$new_path" = x; then 48575 # It's still not found. Now this is an unrecoverable error. 48576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48577 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48578 has_space=`$ECHO "$complete" | $GREP " "` 48579 if test "x$has_space" != x; then 48580 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48581 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48582 fi 48583 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48584 fi 48585 fi 48586 48587 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48588 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48589 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48590 # "foo.exe" is OK but "foo" is an error. 48591 # 48592 # This test is therefore slightly more accurate than "test -f" to check for file presence. 48593 # It is also a way to make sure we got the proper file name for the real test later on. 48594 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48595 if test "x$test_shortpath" = x; then 48596 # Short path failed, file does not exist as specified. 48597 # Try adding .exe or .cmd 48598 if test -f "${new_path}.exe"; then 48599 input_to_shortpath="${new_path}.exe" 48600 elif test -f "${new_path}.cmd"; then 48601 input_to_shortpath="${new_path}.cmd" 48602 else 48603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 48604 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 48605 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 48606 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 48607 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48608 fi 48609 else 48610 input_to_shortpath="$new_path" 48611 fi 48612 48613 # Call helper function which possibly converts this using DOS-style short mode. 48614 # If so, the updated path is stored in $new_path. 48615 new_path="$input_to_shortpath" 48616 48617 input_path="$input_to_shortpath" 48618 # Check if we need to convert this using DOS-style short mode. If the path 48619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48620 # take no chances and rewrite it. 48621 # Note: m4 eats our [], so we need to use [ and ] instead. 48622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48623 if test "x$has_forbidden_chars" != x; then 48624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48625 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48626 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48627 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48628 # Going to short mode and back again did indeed matter. Since short mode is 48629 # case insensitive, let's make it lowercase to improve readability. 48630 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48631 # Now convert it back to Unix-style (cygpath) 48632 input_path=`$CYGPATH -u "$shortmode_path"` 48633 new_path="$input_path" 48634 fi 48635 fi 48636 48637 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48638 if test "x$test_cygdrive_prefix" = x; then 48639 # As a simple fix, exclude /usr/bin since it's not a real path. 48640 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 48641 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48642 # a path prefixed by /cygdrive for fixpath to work. 48643 new_path="$CYGWIN_ROOT_PATH$input_path" 48644 fi 48645 fi 48646 48647 # remove trailing .exe if any 48648 new_path="${new_path/%.exe/}" 48649 48650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48651 48652 # First separate the path from the arguments. This will split at the first 48653 # space. 48654 complete="$BUILD_STRIP" 48655 path="${complete%% *}" 48656 tmp="$complete EOL" 48657 arguments="${tmp#* }" 48658 48659 # Input might be given as Windows format, start by converting to 48660 # unix format. 48661 new_path="$path" 48662 48663 windows_path="$new_path" 48664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48665 unix_path=`$CYGPATH -u "$windows_path"` 48666 new_path="$unix_path" 48667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48668 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48669 new_path="$unix_path" 48670 fi 48671 48672 48673 # Now try to locate executable using which 48674 new_path=`$WHICH "$new_path" 2> /dev/null` 48675 48676 if test "x$new_path" = x; then 48677 # Oops. Which didn't find the executable. 48678 # The splitting of arguments from the executable at a space might have been incorrect, 48679 # since paths with space are more likely in Windows. Give it another try with the whole 48680 # argument. 48681 path="$complete" 48682 arguments="EOL" 48683 new_path="$path" 48684 48685 windows_path="$new_path" 48686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48687 unix_path=`$CYGPATH -u "$windows_path"` 48688 new_path="$unix_path" 48689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48690 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48691 new_path="$unix_path" 48692 fi 48693 48694 48695 new_path=`$WHICH "$new_path" 2> /dev/null` 48696 # bat and cmd files are not always considered executable in MSYS causing which 48697 # to not find them 48698 if test "x$new_path" = x \ 48699 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48700 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48701 new_path="$path" 48702 48703 windows_path="$new_path" 48704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48705 unix_path=`$CYGPATH -u "$windows_path"` 48706 new_path="$unix_path" 48707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48708 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48709 new_path="$unix_path" 48710 fi 48711 48712 fi 48713 48714 if test "x$new_path" = x; then 48715 # It's still not found. Now this is an unrecoverable error. 48716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48717 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48718 has_space=`$ECHO "$complete" | $GREP " "` 48719 if test "x$has_space" != x; then 48720 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48721 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48722 fi 48723 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48724 fi 48725 fi 48726 48727 # Now new_path has a complete unix path to the binary 48728 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 48729 # Keep paths in /bin as-is, but remove trailing .exe if any 48730 new_path="${new_path/%.exe/}" 48731 # Do not save /bin paths to all_fixpath_prefixes! 48732 else 48733 # Not in mixed or Windows style, start by that. 48734 new_path=`cmd //c echo $new_path` 48735 48736 input_path="$new_path" 48737 # Check if we need to convert this using DOS-style short mode. If the path 48738 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48739 # take no chances and rewrite it. 48740 # Note: m4 eats our [], so we need to use [ and ] instead. 48741 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48742 if test "x$has_forbidden_chars" != x; then 48743 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48744 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48745 fi 48746 48747 # Output is in $new_path 48748 48749 windows_path="$new_path" 48750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48751 unix_path=`$CYGPATH -u "$windows_path"` 48752 new_path="$unix_path" 48753 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48754 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48755 new_path="$unix_path" 48756 fi 48757 48758 # remove trailing .exe if any 48759 new_path="${new_path/%.exe/}" 48760 48761 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48762 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48763 fi 48764 48765 else 48766 # We're on a unix platform. Hooray! :) 48767 # First separate the path from the arguments. This will split at the first 48768 # space. 48769 complete="$BUILD_STRIP" 48770 path="${complete%% *}" 48771 tmp="$complete EOL" 48772 arguments="${tmp#* }" 48773 48774 # Cannot rely on the command "which" here since it doesn't always work. 48775 is_absolute_path=`$ECHO "$path" | $GREP ^/` 48776 if test -z "$is_absolute_path"; then 48777 # Path to executable is not absolute. Find it. 48778 IFS_save="$IFS" 48779 IFS=: 48780 for p in $PATH; do 48781 if test -f "$p/$path" && test -x "$p/$path"; then 48782 new_path="$p/$path" 48783 break 48784 fi 48785 done 48786 IFS="$IFS_save" 48787 else 48788 # This is an absolute path, we can use it without further modifications. 48789 new_path="$path" 48790 fi 48791 48792 if test "x$new_path" = x; then 48793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48794 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48795 has_space=`$ECHO "$complete" | $GREP " "` 48796 if test "x$has_space" != x; then 48797 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 48798 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 48799 fi 48800 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48801 fi 48802 fi 48803 48804 # Now join together the path and the arguments once again 48805 if test "x$arguments" != xEOL; then 48806 new_complete="$new_path ${arguments% *}" 48807 else 48808 new_complete="$new_path" 48809 fi 48810 48811 if test "x$complete" != "x$new_complete"; then 48812 BUILD_STRIP="$new_complete" 48813 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 48814 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 48815 fi 48816 fi 48817 48818 # Assume the C compiler is the assembler 48819 BUILD_AS="$BUILD_CC -c" 48820 # Just like for the target compiler, use the compiler as linker 48821 BUILD_LD="$BUILD_CC" 48822 BUILD_LDCXX="$BUILD_CXX" 48823 48824 PATH="$OLDPATH" 48825 48826 48827 COMPILER=$BUILD_CC 48828 COMPILER_NAME=BuildC 48829 48830 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48831 # cc -V output typically looks like 48832 # cc: Sun C 5.12 Linux_i386 2011/11/16 48833 # or 48834 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48835 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48836 # Check that this is likely to be the Solaris Studio cc. 48837 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48838 if test $? -ne 0; then 48839 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48840 { $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 48841 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48842 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48843 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48844 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48845 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48846 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48847 fi 48848 # Remove usage instructions (if present), and 48849 # collapse compiler output into a single line 48850 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48851 $SED -e 's/ *[Uu]sage:.*//'` 48852 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48853 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48854 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48855 # xlc -qversion output typically looks like 48856 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48857 # Version: 11.01.0000.0015 48858 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48859 # Check that this is likely to be the IBM XL C compiler. 48860 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48861 if test $? -ne 0; then 48862 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48863 { $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 48864 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48865 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48866 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48867 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48868 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48869 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48870 fi 48871 # Collapse compiler output into a single line 48872 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48873 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48874 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48875 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48876 # There is no specific version flag, but all output starts with a version string. 48877 # First line typically looks something like: 48878 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48879 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48880 # Check that this is likely to be Microsoft CL.EXE. 48881 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48882 if test $? -ne 0; then 48883 { $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 48884 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48885 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48886 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48887 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48888 fi 48889 # Collapse compiler output into a single line 48890 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48891 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48892 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48893 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48894 # gcc --version output typically looks like 48895 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48896 # Copyright (C) 2013 Free Software Foundation, Inc. 48897 # This is free software; see the source for copying conditions. There is NO 48898 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48899 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48900 # Check that this is likely to be GCC. 48901 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48902 if test $? -ne 0; then 48903 { $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 48904 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48905 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48906 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48907 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48908 fi 48909 # Remove Copyright and legalese from version string, and 48910 # collapse into a single line 48911 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48912 $SED -e 's/ *Copyright .*//'` 48913 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48914 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48915 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48916 # clang --version output typically looks like 48917 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48918 # clang version 3.3 (tags/RELEASE_33/final) 48919 # or 48920 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48921 # Target: x86_64-pc-linux-gnu 48922 # Thread model: posix 48923 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48924 # Check that this is likely to be clang 48925 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48926 if test $? -ne 0; then 48927 { $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 48928 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48929 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48930 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48931 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48932 fi 48933 # Collapse compiler output into a single line 48934 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48935 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48936 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48937 else 48938 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48939 fi 48940 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48941 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48942 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48943 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 48944 48945 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48946 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48947 48948 48949 COMPILER=$BUILD_CXX 48950 COMPILER_NAME=BuildC++ 48951 48952 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48953 # cc -V output typically looks like 48954 # cc: Sun C 5.12 Linux_i386 2011/11/16 48955 # or 48956 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48957 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48958 # Check that this is likely to be the Solaris Studio cc. 48959 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48960 if test $? -ne 0; then 48961 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48962 { $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 48963 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48964 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48965 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48966 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48967 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48968 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48969 fi 48970 # Remove usage instructions (if present), and 48971 # collapse compiler output into a single line 48972 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48973 $SED -e 's/ *[Uu]sage:.*//'` 48974 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48975 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48976 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48977 # xlc -qversion output typically looks like 48978 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48979 # Version: 11.01.0000.0015 48980 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48981 # Check that this is likely to be the IBM XL C compiler. 48982 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48983 if test $? -ne 0; then 48984 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48985 { $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 48986 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48987 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48988 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48989 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48990 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48991 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48992 fi 48993 # Collapse compiler output into a single line 48994 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48995 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48996 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48997 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48998 # There is no specific version flag, but all output starts with a version string. 48999 # First line typically looks something like: 49000 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 49001 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 49002 # Check that this is likely to be Microsoft CL.EXE. 49003 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 49004 if test $? -ne 0; then 49005 { $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 49006 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49007 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 49008 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 49009 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49010 fi 49011 # Collapse compiler output into a single line 49012 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 49013 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49014 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 49015 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 49016 # gcc --version output typically looks like 49017 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 49018 # Copyright (C) 2013 Free Software Foundation, Inc. 49019 # This is free software; see the source for copying conditions. There is NO 49020 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 49021 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 49022 # Check that this is likely to be GCC. 49023 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 49024 if test $? -ne 0; then 49025 { $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 49026 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49027 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 49028 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 49029 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49030 fi 49031 # Remove Copyright and legalese from version string, and 49032 # collapse into a single line 49033 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49034 $SED -e 's/ *Copyright .*//'` 49035 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49036 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 49037 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49038 # clang --version output typically looks like 49039 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 49040 # clang version 3.3 (tags/RELEASE_33/final) 49041 # or 49042 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 49043 # Target: x86_64-pc-linux-gnu 49044 # Thread model: posix 49045 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 49046 # Check that this is likely to be clang 49047 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 49048 if test $? -ne 0; then 49049 { $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 49050 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49051 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 49052 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 49053 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49054 fi 49055 # Collapse compiler output into a single line 49056 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 49057 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49058 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 49059 else 49060 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 49061 fi 49062 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 49063 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 49064 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 49065 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 49066 49067 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 49068 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 49069 49070 49071 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 49072 { $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 49073 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 49074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 49075 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 49076 fi 49077 49078 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 49079 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 49080 { $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 49081 $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;} 49082 fi 49083 49084 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 49085 { $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 49086 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49087 fi 49088 49089 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 49090 49091 else 49092 # If we are not cross compiling, use the normal target compilers for 49093 # building the build platform executables. 49094 BUILD_CC="$CC" 49095 BUILD_CXX="$CXX" 49096 BUILD_LD="$LD" 49097 BUILD_LDCXX="$LDCXX" 49098 BUILD_NM="$NM" 49099 BUILD_AS="$AS" 49100 BUILD_OBJCOPY="$OBJCOPY" 49101 BUILD_STRIP="$STRIP" 49102 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 49103 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 49104 BUILD_AR="$AR" 49105 49106 49107 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 49108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 49109 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 49110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 49111 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 49112 fi 49113 49114 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 49115 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 49116 { $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 49117 $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;} 49118 fi 49119 49120 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 49121 { $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 49122 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49123 fi 49124 49125 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 49126 49127 fi 49128 49129 49130 49131 49132 49133 49134 49135 49136 49137 49138 49139 49140 49141 49142 # The package path is used only on macosx? 49143 # FIXME: clean this up, and/or move it elsewhere. 49144 PACKAGE_PATH=/opt/local 49145 49146 49147 # Check for extra potential brokenness. 49148 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49149 # On Windows, double-check that we got the right compiler. 49150 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 49151 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 49152 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 49153 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 49154 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 49155 fi 49156 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 49157 if test "x$COMPILER_CPU_TEST" != "xx64"; then 49158 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 49159 fi 49160 fi 49161 fi 49162 49163 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49164 # If this is a --hash-style=gnu system, use --hash-style=both, why? 49165 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 49166 # This is later checked when setting flags. 49167 49168 # "-Og" suppported for GCC 4.8 and later 49169 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 49170 49171 49172 49173 49174 49175 49176 49177 49178 49179 49180 49181 49182 49183 49184 49185 49186 49187 49188 49189 49190 49191 49192 49193 49194 49195 49196 49197 49198 49199 49200 49201 49202 49203 49204 49205 49206 49207 49208 49209 49210 49211 49212 49213 49214 49215 49216 49217 # Execute function body 49218 49219 49220 49221 49222 49223 49224 49225 49226 49227 49228 49229 49230 49231 49232 49233 49234 49235 49236 49237 49238 49239 49240 49241 49242 49243 49244 49245 49246 49247 49248 49249 49250 49251 49252 49253 49254 49255 49256 49257 49258 49259 49260 49261 49262 49263 49264 49265 49266 # Execute function body 49267 49268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49269 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49270 supports=yes 49271 49272 saved_cflags="$CFLAGS" 49273 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 49274 ac_ext=c 49275 ac_cpp='$CPP $CPPFLAGS' 49276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49278 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49279 49280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49281 /* end confdefs.h. */ 49282 int i; 49283 _ACEOF 49284 if ac_fn_c_try_compile "$LINENO"; then : 49285 49286 else 49287 supports=no 49288 fi 49289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49290 ac_ext=cpp 49291 ac_cpp='$CXXCPP $CPPFLAGS' 49292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49295 49296 CFLAGS="$saved_cflags" 49297 49298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49299 $as_echo "$supports" >&6; } 49300 if test "x$supports" = "xyes" ; then 49301 : 49302 C_COMP_SUPPORTS="yes" 49303 else 49304 : 49305 C_COMP_SUPPORTS="no" 49306 fi 49307 49308 49309 49310 49311 49312 49313 49314 49315 49316 49317 49318 49319 49320 49321 49322 49323 49324 49325 49326 49327 49328 49329 49330 49331 49332 49333 49334 49335 49336 49337 49338 49339 49340 49341 49342 49343 49344 49345 49346 49347 49348 49349 49350 49351 49352 49353 49354 49355 49356 49357 49358 49359 49360 49361 49362 49363 49364 49365 49366 # Execute function body 49367 49368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49369 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49370 supports=yes 49371 49372 saved_cxxflags="$CXXFLAGS" 49373 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 49374 ac_ext=cpp 49375 ac_cpp='$CXXCPP $CPPFLAGS' 49376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49379 49380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49381 /* end confdefs.h. */ 49382 int i; 49383 _ACEOF 49384 if ac_fn_cxx_try_compile "$LINENO"; then : 49385 49386 else 49387 supports=no 49388 fi 49389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49390 ac_ext=cpp 49391 ac_cpp='$CXXCPP $CPPFLAGS' 49392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49395 49396 CXXFLAGS="$saved_cxxflags" 49397 49398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49399 $as_echo "$supports" >&6; } 49400 if test "x$supports" = "xyes" ; then 49401 : 49402 CXX_COMP_SUPPORTS="yes" 49403 else 49404 : 49405 CXX_COMP_SUPPORTS="no" 49406 fi 49407 49408 49409 49410 49411 49412 49413 49414 49415 49416 49417 49418 49419 49420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49421 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49422 supports=no 49423 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49424 49425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49426 $as_echo "$supports" >&6; } 49427 if test "x$supports" = "xyes" ; then 49428 : 49429 HAS_CFLAG_OPTIMIZE_DEBUG=true 49430 else 49431 : 49432 HAS_CFLAG_OPTIMIZE_DEBUG=false 49433 fi 49434 49435 49436 49437 49438 49439 49440 49441 # "-z relro" supported in GNU binutils 2.17 and later 49442 LINKER_RELRO_FLAG="-Wl,-z,relro" 49443 49444 49445 49446 49447 49448 49449 49450 49451 49452 49453 49454 49455 49456 49457 49458 49459 49460 49461 49462 49463 49464 49465 49466 49467 49468 49469 49470 49471 49472 49473 49474 49475 49476 49477 49478 49479 49480 49481 49482 49483 49484 49485 49486 49487 49488 49489 49490 # Execute function body 49491 49492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 49493 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 49494 supports=yes 49495 49496 saved_ldflags="$LDFLAGS" 49497 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 49498 ac_ext=c 49499 ac_cpp='$CPP $CPPFLAGS' 49500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49502 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49503 49504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49505 /* end confdefs.h. */ 49506 49507 int 49508 main () 49509 { 49510 49511 ; 49512 return 0; 49513 } 49514 _ACEOF 49515 if ac_fn_c_try_link "$LINENO"; then : 49516 49517 else 49518 supports=no 49519 fi 49520 rm -f core conftest.err conftest.$ac_objext \ 49521 conftest$ac_exeext conftest.$ac_ext 49522 ac_ext=cpp 49523 ac_cpp='$CXXCPP $CPPFLAGS' 49524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49527 49528 LDFLAGS="$saved_ldflags" 49529 49530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49531 $as_echo "$supports" >&6; } 49532 if test "x$supports" = "xyes" ; then 49533 : 49534 HAS_LINKER_RELRO=true 49535 else 49536 : 49537 HAS_LINKER_RELRO=false 49538 fi 49539 49540 49541 49542 49543 49544 49545 49546 49547 49548 49549 49550 49551 49552 # "-z now" supported in GNU binutils 2.11 and later 49553 LINKER_NOW_FLAG="-Wl,-z,now" 49554 49555 49556 49557 49558 49559 49560 49561 49562 49563 49564 49565 49566 49567 49568 49569 49570 49571 49572 49573 49574 49575 49576 49577 49578 49579 49580 49581 49582 49583 49584 49585 49586 49587 49588 49589 49590 49591 49592 49593 49594 49595 49596 49597 49598 49599 49600 49601 # Execute function body 49602 49603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 49604 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 49605 supports=yes 49606 49607 saved_ldflags="$LDFLAGS" 49608 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 49609 ac_ext=c 49610 ac_cpp='$CPP $CPPFLAGS' 49611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49613 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49614 49615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49616 /* end confdefs.h. */ 49617 49618 int 49619 main () 49620 { 49621 49622 ; 49623 return 0; 49624 } 49625 _ACEOF 49626 if ac_fn_c_try_link "$LINENO"; then : 49627 49628 else 49629 supports=no 49630 fi 49631 rm -f core conftest.err conftest.$ac_objext \ 49632 conftest$ac_exeext conftest.$ac_ext 49633 ac_ext=cpp 49634 ac_cpp='$CXXCPP $CPPFLAGS' 49635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49638 49639 LDFLAGS="$saved_ldflags" 49640 49641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49642 $as_echo "$supports" >&6; } 49643 if test "x$supports" = "xyes" ; then 49644 : 49645 HAS_LINKER_NOW=true 49646 else 49647 : 49648 HAS_LINKER_NOW=false 49649 fi 49650 49651 49652 49653 49654 49655 49656 49657 49658 49659 49660 49661 49662 fi 49663 49664 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 49665 # in executable.' 49666 USING_BROKEN_SUSE_LD=no 49667 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 49668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 49669 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 49670 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 49671 $ECHO "int main() { }" > main.c 49672 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 49673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49674 $as_echo "no" >&6; } 49675 USING_BROKEN_SUSE_LD=no 49676 else 49677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49678 $as_echo "yes" >&6; } 49679 USING_BROKEN_SUSE_LD=yes 49680 fi 49681 $RM version-script.map main.c a.out 49682 fi 49683 49684 49685 # Setup hotspot lecagy names for toolchains 49686 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 49687 if test "x$TOOLCHAIN_TYPE" = xclang; then 49688 HOTSPOT_TOOLCHAIN_TYPE=gcc 49689 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49690 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 49691 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49692 HOTSPOT_TOOLCHAIN_TYPE=visCPP 49693 fi 49694 49695 49696 49697 # Setup the JTReg Regression Test Harness. 49698 49699 49700 # Check whether --with-jtreg was given. 49701 if test "${with_jtreg+set}" = set; then : 49702 withval=$with_jtreg; 49703 fi 49704 49705 49706 if test "x$with_jtreg" = xno; then 49707 # jtreg disabled 49708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49709 $as_echo_n "checking for jtreg test harness... " >&6; } 49710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5 49711 $as_echo "no, disabled" >&6; } 49712 elif test "x$with_jtreg" != xyes && test "x$with_jtreg" != x; then 49713 # An explicit path is specified, use it. 49714 JT_HOME="$with_jtreg" 49715 49716 # Only process if variable expands to non-empty 49717 49718 if test "x$JT_HOME" != x; then 49719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49720 49721 # Input might be given as Windows format, start by converting to 49722 # unix format. 49723 path="$JT_HOME" 49724 new_path=`$CYGPATH -u "$path"` 49725 49726 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49727 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49728 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49729 # "foo.exe" is OK but "foo" is an error. 49730 # 49731 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49732 # It is also a way to make sure we got the proper file name for the real test later on. 49733 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49734 if test "x$test_shortpath" = x; then 49735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49736 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49737 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 49738 fi 49739 49740 # Call helper function which possibly converts this using DOS-style short mode. 49741 # If so, the updated path is stored in $new_path. 49742 49743 input_path="$new_path" 49744 # Check if we need to convert this using DOS-style short mode. If the path 49745 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49746 # take no chances and rewrite it. 49747 # Note: m4 eats our [], so we need to use [ and ] instead. 49748 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49749 if test "x$has_forbidden_chars" != x; then 49750 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49751 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49752 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49753 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49754 # Going to short mode and back again did indeed matter. Since short mode is 49755 # case insensitive, let's make it lowercase to improve readability. 49756 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49757 # Now convert it back to Unix-style (cygpath) 49758 input_path=`$CYGPATH -u "$shortmode_path"` 49759 new_path="$input_path" 49760 fi 49761 fi 49762 49763 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49764 if test "x$test_cygdrive_prefix" = x; then 49765 # As a simple fix, exclude /usr/bin since it's not a real path. 49766 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49767 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49768 # a path prefixed by /cygdrive for fixpath to work. 49769 new_path="$CYGWIN_ROOT_PATH$input_path" 49770 fi 49771 fi 49772 49773 49774 if test "x$path" != "x$new_path"; then 49775 JT_HOME="$new_path" 49776 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49777 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49778 fi 49779 49780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49781 49782 path="$JT_HOME" 49783 has_colon=`$ECHO $path | $GREP ^.:` 49784 new_path="$path" 49785 if test "x$has_colon" = x; then 49786 # Not in mixed or Windows style, start by that. 49787 new_path=`cmd //c echo $path` 49788 fi 49789 49790 49791 input_path="$new_path" 49792 # Check if we need to convert this using DOS-style short mode. If the path 49793 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49794 # take no chances and rewrite it. 49795 # Note: m4 eats our [], so we need to use [ and ] instead. 49796 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49797 if test "x$has_forbidden_chars" != x; then 49798 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49799 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49800 fi 49801 49802 49803 windows_path="$new_path" 49804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49805 unix_path=`$CYGPATH -u "$windows_path"` 49806 new_path="$unix_path" 49807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49808 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49809 new_path="$unix_path" 49810 fi 49811 49812 if test "x$path" != "x$new_path"; then 49813 JT_HOME="$new_path" 49814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49815 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49816 fi 49817 49818 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49819 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49820 49821 else 49822 # We're on a unix platform. Hooray! :) 49823 path="$JT_HOME" 49824 has_space=`$ECHO "$path" | $GREP " "` 49825 if test "x$has_space" != x; then 49826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49827 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49828 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49829 fi 49830 49831 # Use eval to expand a potential ~ 49832 eval path="$path" 49833 if test ! -f "$path" && test ! -d "$path"; then 49834 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 49835 fi 49836 49837 if test -d "$path"; then 49838 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 49839 else 49840 dir="`$DIRNAME "$path"`" 49841 base="`$BASENAME "$path"`" 49842 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 49843 fi 49844 fi 49845 fi 49846 49847 if test ! -d "$JT_HOME"; then 49848 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not exist" "$LINENO" 5 49849 fi 49850 49851 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49852 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg is not a valid jtreg home" "$LINENO" 5 49853 fi 49854 49855 JTREGEXE="$JT_HOME/bin/jtreg" 49856 if test ! -x "$JTREGEXE"; then 49857 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not contain valid jtreg executable" "$LINENO" 5 49858 fi 49859 49860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49861 $as_echo_n "checking for jtreg test harness... " >&6; } 49862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 49863 $as_echo "$JT_HOME" >&6; } 49864 else 49865 # Try to locate jtreg 49866 if test "x$JT_HOME" != x; then 49867 # JT_HOME set in environment, use it 49868 if test ! -d "$JT_HOME"; then 49869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&5 49870 $as_echo "$as_me: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&2;} 49871 JT_HOME= 49872 else 49873 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&5 49875 $as_echo "$as_me: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&2;} 49876 JT_HOME= 49877 elif test ! -x "$JT_HOME/bin/jtreg"; then 49878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&5 49879 $as_echo "$as_me: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&2;} 49880 JT_HOME= 49881 else 49882 JTREGEXE="$JT_HOME/bin/jtreg" 49883 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using JT_HOME from environment" >&5 49884 $as_echo "$as_me: Located jtreg using JT_HOME from environment" >&6;} 49885 fi 49886 fi 49887 fi 49888 49889 if test "x$JT_HOME" = x; then 49890 # JT_HOME is not set in environment, or was deemed invalid. 49891 # Try to find jtreg on path 49892 49893 49894 # Publish this variable in the help. 49895 49896 49897 if [ -z "${JTREGEXE+x}" ]; then 49898 # The variable is not set by user, try to locate tool using the code snippet 49899 for ac_prog in jtreg 49900 do 49901 # Extract the first word of "$ac_prog", so it can be a program name with args. 49902 set dummy $ac_prog; ac_word=$2 49903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49904 $as_echo_n "checking for $ac_word... " >&6; } 49905 if ${ac_cv_path_JTREGEXE+:} false; then : 49906 $as_echo_n "(cached) " >&6 49907 else 49908 case $JTREGEXE in 49909 [\\/]* | ?:[\\/]*) 49910 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49911 ;; 49912 *) 49913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49914 for as_dir in $PATH 49915 do 49916 IFS=$as_save_IFS 49917 test -z "$as_dir" && as_dir=. 49918 for ac_exec_ext in '' $ac_executable_extensions; do 49919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49920 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49922 break 2 49923 fi 49924 done 49925 done 49926 IFS=$as_save_IFS 49927 49928 ;; 49929 esac 49930 fi 49931 JTREGEXE=$ac_cv_path_JTREGEXE 49932 if test -n "$JTREGEXE"; then 49933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49934 $as_echo "$JTREGEXE" >&6; } 49935 else 49936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49937 $as_echo "no" >&6; } 49938 fi 49939 49940 49941 test -n "$JTREGEXE" && break 49942 done 49943 49944 else 49945 # The variable is set, but is it from the command line or the environment? 49946 49947 # Try to remove the string !JTREGEXE! from our list. 49948 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 49949 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 49950 # If it failed, the variable was not from the command line. Ignore it, 49951 # but warn the user (except for BASH, which is always set by the calling BASH). 49952 if test "xJTREGEXE" != xBASH; then 49953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 49954 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 49955 fi 49956 # Try to locate tool using the code snippet 49957 for ac_prog in jtreg 49958 do 49959 # Extract the first word of "$ac_prog", so it can be a program name with args. 49960 set dummy $ac_prog; ac_word=$2 49961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49962 $as_echo_n "checking for $ac_word... " >&6; } 49963 if ${ac_cv_path_JTREGEXE+:} false; then : 49964 $as_echo_n "(cached) " >&6 49965 else 49966 case $JTREGEXE in 49967 [\\/]* | ?:[\\/]*) 49968 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49969 ;; 49970 *) 49971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49972 for as_dir in $PATH 49973 do 49974 IFS=$as_save_IFS 49975 test -z "$as_dir" && as_dir=. 49976 for ac_exec_ext in '' $ac_executable_extensions; do 49977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49978 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49980 break 2 49981 fi 49982 done 49983 done 49984 IFS=$as_save_IFS 49985 49986 ;; 49987 esac 49988 fi 49989 JTREGEXE=$ac_cv_path_JTREGEXE 49990 if test -n "$JTREGEXE"; then 49991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49992 $as_echo "$JTREGEXE" >&6; } 49993 else 49994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49995 $as_echo "no" >&6; } 49996 fi 49997 49998 49999 test -n "$JTREGEXE" && break 50000 done 50001 50002 else 50003 # If it succeeded, then it was overridden by the user. We will use it 50004 # for the tool. 50005 50006 # First remove it from the list of overridden variables, so we can test 50007 # for unknown variables in the end. 50008 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 50009 50010 # Check if we try to supply an empty value 50011 if test "x$JTREGEXE" = x; then 50012 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 50013 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 50014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 50015 $as_echo_n "checking for JTREGEXE... " >&6; } 50016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 50017 $as_echo "disabled" >&6; } 50018 else 50019 # Check if the provided tool contains a complete path. 50020 tool_specified="$JTREGEXE" 50021 tool_basename="${tool_specified##*/}" 50022 if test "x$tool_basename" = "x$tool_specified"; then 50023 # A command without a complete path is provided, search $PATH. 50024 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 50025 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 50026 # Extract the first word of "$tool_basename", so it can be a program name with args. 50027 set dummy $tool_basename; ac_word=$2 50028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50029 $as_echo_n "checking for $ac_word... " >&6; } 50030 if ${ac_cv_path_JTREGEXE+:} false; then : 50031 $as_echo_n "(cached) " >&6 50032 else 50033 case $JTREGEXE in 50034 [\\/]* | ?:[\\/]*) 50035 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 50036 ;; 50037 *) 50038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50039 for as_dir in $PATH 50040 do 50041 IFS=$as_save_IFS 50042 test -z "$as_dir" && as_dir=. 50043 for ac_exec_ext in '' $ac_executable_extensions; do 50044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50045 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 50046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50047 break 2 50048 fi 50049 done 50050 done 50051 IFS=$as_save_IFS 50052 50053 ;; 50054 esac 50055 fi 50056 JTREGEXE=$ac_cv_path_JTREGEXE 50057 if test -n "$JTREGEXE"; then 50058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 50059 $as_echo "$JTREGEXE" >&6; } 50060 else 50061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50062 $as_echo "no" >&6; } 50063 fi 50064 50065 50066 if test "x$JTREGEXE" = x; then 50067 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 50068 fi 50069 else 50070 # Otherwise we believe it is a complete path. Use it as it is. 50071 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 50072 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 50073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 50074 $as_echo_n "checking for JTREGEXE... " >&6; } 50075 if test ! -x "$tool_specified"; then 50076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 50077 $as_echo "not found" >&6; } 50078 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 50079 fi 50080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 50081 $as_echo "$tool_specified" >&6; } 50082 fi 50083 fi 50084 fi 50085 50086 fi 50087 50088 50089 if test "x$JTREGEXE" != x; then 50090 # That's good, now try to derive JT_HOME 50091 JT_HOME=`(cd $($DIRNAME $JTREGEXE)/.. && pwd)` 50092 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 50093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&5 50094 $as_echo "$as_me: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&2;} 50095 JT_HOME= 50096 JTREGEXE= 50097 else 50098 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using jtreg executable in path" >&5 50099 $as_echo "$as_me: Located jtreg using jtreg executable in path" >&6;} 50100 fi 50101 fi 50102 fi 50103 50104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 50105 $as_echo_n "checking for jtreg test harness... " >&6; } 50106 if test "x$JT_HOME" != x; then 50107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 50108 $as_echo "$JT_HOME" >&6; } 50109 else 50110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found" >&5 50111 $as_echo "no, not found" >&6; } 50112 50113 if test "x$with_jtreg" = xyes; then 50114 as_fn_error $? "--with-jtreg was specified, but no jtreg found." "$LINENO" 5 50115 fi 50116 fi 50117 fi 50118 50119 50120 # Only process if variable expands to non-empty 50121 50122 if test "x$JTREGEXE" != x; then 50123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50124 50125 # First separate the path from the arguments. This will split at the first 50126 # space. 50127 complete="$JTREGEXE" 50128 path="${complete%% *}" 50129 tmp="$complete EOL" 50130 arguments="${tmp#* }" 50131 50132 # Input might be given as Windows format, start by converting to 50133 # unix format. 50134 new_path=`$CYGPATH -u "$path"` 50135 50136 # Now try to locate executable using which 50137 new_path=`$WHICH "$new_path" 2> /dev/null` 50138 # bat and cmd files are not always considered executable in cygwin causing which 50139 # to not find them 50140 if test "x$new_path" = x \ 50141 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50142 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50143 new_path=`$CYGPATH -u "$path"` 50144 fi 50145 if test "x$new_path" = x; then 50146 # Oops. Which didn't find the executable. 50147 # The splitting of arguments from the executable at a space might have been incorrect, 50148 # since paths with space are more likely in Windows. Give it another try with the whole 50149 # argument. 50150 path="$complete" 50151 arguments="EOL" 50152 new_path=`$CYGPATH -u "$path"` 50153 new_path=`$WHICH "$new_path" 2> /dev/null` 50154 # bat and cmd files are not always considered executable in cygwin causing which 50155 # to not find them 50156 if test "x$new_path" = x \ 50157 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50158 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50159 new_path=`$CYGPATH -u "$path"` 50160 fi 50161 if test "x$new_path" = x; then 50162 # It's still not found. Now this is an unrecoverable error. 50163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50164 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50165 has_space=`$ECHO "$complete" | $GREP " "` 50166 if test "x$has_space" != x; then 50167 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 50168 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 50169 fi 50170 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50171 fi 50172 fi 50173 50174 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50175 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50176 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50177 # "foo.exe" is OK but "foo" is an error. 50178 # 50179 # This test is therefore slightly more accurate than "test -f" to check for file presence. 50180 # It is also a way to make sure we got the proper file name for the real test later on. 50181 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50182 if test "x$test_shortpath" = x; then 50183 # Short path failed, file does not exist as specified. 50184 # Try adding .exe or .cmd 50185 if test -f "${new_path}.exe"; then 50186 input_to_shortpath="${new_path}.exe" 50187 elif test -f "${new_path}.cmd"; then 50188 input_to_shortpath="${new_path}.cmd" 50189 else 50190 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&5 50191 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&6;} 50192 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 50193 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 50194 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50195 fi 50196 else 50197 input_to_shortpath="$new_path" 50198 fi 50199 50200 # Call helper function which possibly converts this using DOS-style short mode. 50201 # If so, the updated path is stored in $new_path. 50202 new_path="$input_to_shortpath" 50203 50204 input_path="$input_to_shortpath" 50205 # Check if we need to convert this using DOS-style short mode. If the path 50206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50207 # take no chances and rewrite it. 50208 # Note: m4 eats our [], so we need to use [ and ] instead. 50209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50210 if test "x$has_forbidden_chars" != x; then 50211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50212 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50213 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50214 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50215 # Going to short mode and back again did indeed matter. Since short mode is 50216 # case insensitive, let's make it lowercase to improve readability. 50217 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50218 # Now convert it back to Unix-style (cygpath) 50219 input_path=`$CYGPATH -u "$shortmode_path"` 50220 new_path="$input_path" 50221 fi 50222 fi 50223 50224 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50225 if test "x$test_cygdrive_prefix" = x; then 50226 # As a simple fix, exclude /usr/bin since it's not a real path. 50227 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 50228 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50229 # a path prefixed by /cygdrive for fixpath to work. 50230 new_path="$CYGWIN_ROOT_PATH$input_path" 50231 fi 50232 fi 50233 50234 # remove trailing .exe if any 50235 new_path="${new_path/%.exe/}" 50236 50237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50238 50239 # First separate the path from the arguments. This will split at the first 50240 # space. 50241 complete="$JTREGEXE" 50242 path="${complete%% *}" 50243 tmp="$complete EOL" 50244 arguments="${tmp#* }" 50245 50246 # Input might be given as Windows format, start by converting to 50247 # unix format. 50248 new_path="$path" 50249 50250 windows_path="$new_path" 50251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50252 unix_path=`$CYGPATH -u "$windows_path"` 50253 new_path="$unix_path" 50254 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50255 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50256 new_path="$unix_path" 50257 fi 50258 50259 50260 # Now try to locate executable using which 50261 new_path=`$WHICH "$new_path" 2> /dev/null` 50262 50263 if test "x$new_path" = x; then 50264 # Oops. Which didn't find the executable. 50265 # The splitting of arguments from the executable at a space might have been incorrect, 50266 # since paths with space are more likely in Windows. Give it another try with the whole 50267 # argument. 50268 path="$complete" 50269 arguments="EOL" 50270 new_path="$path" 50271 50272 windows_path="$new_path" 50273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50274 unix_path=`$CYGPATH -u "$windows_path"` 50275 new_path="$unix_path" 50276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50277 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50278 new_path="$unix_path" 50279 fi 50280 50281 50282 new_path=`$WHICH "$new_path" 2> /dev/null` 50283 # bat and cmd files are not always considered executable in MSYS causing which 50284 # to not find them 50285 if test "x$new_path" = x \ 50286 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50287 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50288 new_path="$path" 50289 50290 windows_path="$new_path" 50291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50292 unix_path=`$CYGPATH -u "$windows_path"` 50293 new_path="$unix_path" 50294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50296 new_path="$unix_path" 50297 fi 50298 50299 fi 50300 50301 if test "x$new_path" = x; then 50302 # It's still not found. Now this is an unrecoverable error. 50303 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50304 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50305 has_space=`$ECHO "$complete" | $GREP " "` 50306 if test "x$has_space" != x; then 50307 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 50308 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 50309 fi 50310 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50311 fi 50312 fi 50313 50314 # Now new_path has a complete unix path to the binary 50315 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 50316 # Keep paths in /bin as-is, but remove trailing .exe if any 50317 new_path="${new_path/%.exe/}" 50318 # Do not save /bin paths to all_fixpath_prefixes! 50319 else 50320 # Not in mixed or Windows style, start by that. 50321 new_path=`cmd //c echo $new_path` 50322 50323 input_path="$new_path" 50324 # Check if we need to convert this using DOS-style short mode. If the path 50325 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50326 # take no chances and rewrite it. 50327 # Note: m4 eats our [], so we need to use [ and ] instead. 50328 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50329 if test "x$has_forbidden_chars" != x; then 50330 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50331 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50332 fi 50333 50334 # Output is in $new_path 50335 50336 windows_path="$new_path" 50337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50338 unix_path=`$CYGPATH -u "$windows_path"` 50339 new_path="$unix_path" 50340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50341 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50342 new_path="$unix_path" 50343 fi 50344 50345 # remove trailing .exe if any 50346 new_path="${new_path/%.exe/}" 50347 50348 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50349 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50350 fi 50351 50352 else 50353 # We're on a unix platform. Hooray! :) 50354 # First separate the path from the arguments. This will split at the first 50355 # space. 50356 complete="$JTREGEXE" 50357 path="${complete%% *}" 50358 tmp="$complete EOL" 50359 arguments="${tmp#* }" 50360 50361 # Cannot rely on the command "which" here since it doesn't always work. 50362 is_absolute_path=`$ECHO "$path" | $GREP ^/` 50363 if test -z "$is_absolute_path"; then 50364 # Path to executable is not absolute. Find it. 50365 IFS_save="$IFS" 50366 IFS=: 50367 for p in $PATH; do 50368 if test -f "$p/$path" && test -x "$p/$path"; then 50369 new_path="$p/$path" 50370 break 50371 fi 50372 done 50373 IFS="$IFS_save" 50374 else 50375 # This is an absolute path, we can use it without further modifications. 50376 new_path="$path" 50377 fi 50378 50379 if test "x$new_path" = x; then 50380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50381 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50382 has_space=`$ECHO "$complete" | $GREP " "` 50383 if test "x$has_space" != x; then 50384 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 50385 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 50386 fi 50387 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50388 fi 50389 fi 50390 50391 # Now join together the path and the arguments once again 50392 if test "x$arguments" != xEOL; then 50393 new_complete="$new_path ${arguments% *}" 50394 else 50395 new_complete="$new_path" 50396 fi 50397 50398 if test "x$complete" != "x$new_complete"; then 50399 JTREGEXE="$new_complete" 50400 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JTREGEXE to \"$new_complete\"" >&5 50401 $as_echo "$as_me: Rewriting JTREGEXE to \"$new_complete\"" >&6;} 50402 fi 50403 fi 50404 50405 50406 # Only process if variable expands to non-empty 50407 50408 if test "x$JT_HOME" != x; then 50409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50410 50411 # Input might be given as Windows format, start by converting to 50412 # unix format. 50413 path="$JT_HOME" 50414 new_path=`$CYGPATH -u "$path"` 50415 50416 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50417 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50418 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50419 # "foo.exe" is OK but "foo" is an error. 50420 # 50421 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50422 # It is also a way to make sure we got the proper file name for the real test later on. 50423 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50424 if test "x$test_shortpath" = x; then 50425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 50426 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 50427 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 50428 fi 50429 50430 # Call helper function which possibly converts this using DOS-style short mode. 50431 # If so, the updated path is stored in $new_path. 50432 50433 input_path="$new_path" 50434 # Check if we need to convert this using DOS-style short mode. If the path 50435 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50436 # take no chances and rewrite it. 50437 # Note: m4 eats our [], so we need to use [ and ] instead. 50438 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50439 if test "x$has_forbidden_chars" != x; then 50440 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50441 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50442 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50443 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50444 # Going to short mode and back again did indeed matter. Since short mode is 50445 # case insensitive, let's make it lowercase to improve readability. 50446 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50447 # Now convert it back to Unix-style (cygpath) 50448 input_path=`$CYGPATH -u "$shortmode_path"` 50449 new_path="$input_path" 50450 fi 50451 fi 50452 50453 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50454 if test "x$test_cygdrive_prefix" = x; then 50455 # As a simple fix, exclude /usr/bin since it's not a real path. 50456 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50457 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50458 # a path prefixed by /cygdrive for fixpath to work. 50459 new_path="$CYGWIN_ROOT_PATH$input_path" 50460 fi 50461 fi 50462 50463 50464 if test "x$path" != "x$new_path"; then 50465 JT_HOME="$new_path" 50466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 50467 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 50468 fi 50469 50470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50471 50472 path="$JT_HOME" 50473 has_colon=`$ECHO $path | $GREP ^.:` 50474 new_path="$path" 50475 if test "x$has_colon" = x; then 50476 # Not in mixed or Windows style, start by that. 50477 new_path=`cmd //c echo $path` 50478 fi 50479 50480 50481 input_path="$new_path" 50482 # Check if we need to convert this using DOS-style short mode. If the path 50483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50484 # take no chances and rewrite it. 50485 # Note: m4 eats our [], so we need to use [ and ] instead. 50486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50487 if test "x$has_forbidden_chars" != x; then 50488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50489 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50490 fi 50491 50492 50493 windows_path="$new_path" 50494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50495 unix_path=`$CYGPATH -u "$windows_path"` 50496 new_path="$unix_path" 50497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50499 new_path="$unix_path" 50500 fi 50501 50502 if test "x$path" != "x$new_path"; then 50503 JT_HOME="$new_path" 50504 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 50505 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 50506 fi 50507 50508 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50509 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50510 50511 else 50512 # We're on a unix platform. Hooray! :) 50513 path="$JT_HOME" 50514 has_space=`$ECHO "$path" | $GREP " "` 50515 if test "x$has_space" != x; then 50516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 50517 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 50518 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50519 fi 50520 50521 # Use eval to expand a potential ~ 50522 eval path="$path" 50523 if test ! -f "$path" && test ! -d "$path"; then 50524 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 50525 fi 50526 50527 if test -d "$path"; then 50528 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 50529 else 50530 dir="`$DIRNAME "$path"`" 50531 base="`$BASENAME "$path"`" 50532 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 50533 fi 50534 fi 50535 fi 50536 50537 50538 50539 50540 50541 # Setup Jib dependency tool 50542 50543 50544 # Check whether --with-jib was given. 50545 if test "${with_jib+set}" = set; then : 50546 withval=$with_jib; 50547 fi 50548 50549 50550 if test "x$with_jib" = xno || test "x$with_jib" = x; then 50551 # jib disabled 50552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 50553 $as_echo_n "checking for jib... " >&6; } 50554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50555 $as_echo "no" >&6; } 50556 elif test "x$with_jib" = xyes; then 50557 as_fn_error $? "Must supply a value to --with-jib" "$LINENO" 5 50558 else 50559 JIB_HOME="${with_jib}" 50560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 50561 $as_echo_n "checking for jib... " >&6; } 50562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JIB_HOME}" >&5 50563 $as_echo "${JIB_HOME}" >&6; } 50564 if test ! -d "${JIB_HOME}"; then 50565 as_fn_error $? "--with-jib must be a directory" "$LINENO" 5 50566 fi 50567 JIB_JAR=$(ls ${JIB_HOME}/lib/jib-*.jar) 50568 if test ! -f "${JIB_JAR}"; then 50569 as_fn_error $? "Could not find jib jar file in ${JIB_HOME}" "$LINENO" 5 50570 fi 50571 fi 50572 50573 50574 50575 50576 50577 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 50578 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 50579 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 50580 # commands produced by the link step (currently AIX only) 50581 if test "x$TOOLCHAIN_TYPE" = xxlc; then 50582 COMPILER_TARGET_BITS_FLAG="-q" 50583 COMPILER_COMMAND_FILE_FLAG="-f" 50584 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 50585 else 50586 COMPILER_TARGET_BITS_FLAG="-m" 50587 COMPILER_COMMAND_FILE_FLAG="@" 50588 COMPILER_BINDCMD_FILE_FLAG="" 50589 50590 # The solstudio linker does not support @-files. 50591 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50592 COMPILER_COMMAND_FILE_FLAG= 50593 fi 50594 50595 # Check if @file is supported by gcc 50596 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 50598 $as_echo_n "checking if @file is supported by gcc... " >&6; } 50599 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 50600 $ECHO "" "--version" > command.file 50601 if $CXX @command.file 2>&5 >&5; then 50602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50603 $as_echo "yes" >&6; } 50604 COMPILER_COMMAND_FILE_FLAG="@" 50605 else 50606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50607 $as_echo "no" >&6; } 50608 COMPILER_COMMAND_FILE_FLAG= 50609 fi 50610 $RM command.file 50611 fi 50612 fi 50613 50614 50615 50616 50617 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 50618 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50619 ARFLAGS="-r" 50620 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50621 ARFLAGS="-X64" 50622 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50623 # lib.exe is used as AR to create static libraries. 50624 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 50625 else 50626 ARFLAGS="" 50627 fi 50628 50629 50630 ## Setup strip. 50631 # FIXME: should this really be per platform, or should it be per toolchain type? 50632 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 50633 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 50634 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50635 STRIPFLAGS="-g" 50636 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50637 STRIPFLAGS="-x" 50638 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50639 STRIPFLAGS="-S" 50640 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50641 STRIPFLAGS="-X32_64" 50642 fi 50643 50644 50645 50646 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50647 CC_OUT_OPTION=-Fo 50648 EXE_OUT_OPTION=-out: 50649 LD_OUT_OPTION=-out: 50650 AR_OUT_OPTION=-out: 50651 else 50652 # The option used to specify the target .o,.a or .so file. 50653 # When compiling, how to specify the to be created object file. 50654 CC_OUT_OPTION='-o$(SPACE)' 50655 # When linking, how to specify the to be created executable. 50656 EXE_OUT_OPTION='-o$(SPACE)' 50657 # When linking, how to specify the to be created dynamically linkable library. 50658 LD_OUT_OPTION='-o$(SPACE)' 50659 # When archiving, how to specify the to be create static archive for object files. 50660 AR_OUT_OPTION='rcs$(SPACE)' 50661 fi 50662 50663 50664 50665 50666 50667 # On Windows, we need to set RC flags. 50668 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50669 RC_FLAGS="-nologo -l0x409" 50670 JVM_RCFLAGS="-nologo" 50671 if test "x$DEBUG_LEVEL" = xrelease; then 50672 RC_FLAGS="$RC_FLAGS -DNDEBUG" 50673 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 50674 fi 50675 50676 # The version variables used to create RC_FLAGS may be overridden 50677 # in a custom configure script, or possibly the command line. 50678 # Let those variables be expanded at make time in spec.gmk. 50679 # The \$ are escaped to the shell, and the $(...) variables 50680 # are evaluated by make. 50681 RC_FLAGS="$RC_FLAGS \ 50682 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 50683 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 50684 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 50685 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 50686 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 50687 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_FEATURE)\" \ 50688 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 50689 50690 JVM_RCFLAGS="$JVM_RCFLAGS \ 50691 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 50692 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 50693 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 50694 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 50695 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 50696 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 50697 -D\"HS_FNAME=jvm.dll\" \ 50698 -D\"HS_INTERNAL_NAME=jvm\"" 50699 fi 50700 50701 50702 50703 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50704 # silence copyright notice and other headers. 50705 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 50706 fi 50707 50708 50709 # Now we can test some aspects on the target using configure macros. 50710 50711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 50712 $as_echo_n "checking for ANSI C header files... " >&6; } 50713 if ${ac_cv_header_stdc+:} false; then : 50714 $as_echo_n "(cached) " >&6 50715 else 50716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50717 /* end confdefs.h. */ 50718 #include <stdlib.h> 50719 #include <stdarg.h> 50720 #include <string.h> 50721 #include <float.h> 50722 50723 int 50724 main () 50725 { 50726 50727 ; 50728 return 0; 50729 } 50730 _ACEOF 50731 if ac_fn_cxx_try_compile "$LINENO"; then : 50732 ac_cv_header_stdc=yes 50733 else 50734 ac_cv_header_stdc=no 50735 fi 50736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50737 50738 if test $ac_cv_header_stdc = yes; then 50739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 50740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50741 /* end confdefs.h. */ 50742 #include <string.h> 50743 50744 _ACEOF 50745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50746 $EGREP "memchr" >/dev/null 2>&1; then : 50747 50748 else 50749 ac_cv_header_stdc=no 50750 fi 50751 rm -f conftest* 50752 50753 fi 50754 50755 if test $ac_cv_header_stdc = yes; then 50756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 50757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50758 /* end confdefs.h. */ 50759 #include <stdlib.h> 50760 50761 _ACEOF 50762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50763 $EGREP "free" >/dev/null 2>&1; then : 50764 50765 else 50766 ac_cv_header_stdc=no 50767 fi 50768 rm -f conftest* 50769 50770 fi 50771 50772 if test $ac_cv_header_stdc = yes; then 50773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 50774 if test "$cross_compiling" = yes; then : 50775 : 50776 else 50777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50778 /* end confdefs.h. */ 50779 #include <ctype.h> 50780 #include <stdlib.h> 50781 #if ((' ' & 0x0FF) == 0x020) 50782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 50783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 50784 #else 50785 # define ISLOWER(c) \ 50786 (('a' <= (c) && (c) <= 'i') \ 50787 || ('j' <= (c) && (c) <= 'r') \ 50788 || ('s' <= (c) && (c) <= 'z')) 50789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 50790 #endif 50791 50792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 50793 int 50794 main () 50795 { 50796 int i; 50797 for (i = 0; i < 256; i++) 50798 if (XOR (islower (i), ISLOWER (i)) 50799 || toupper (i) != TOUPPER (i)) 50800 return 2; 50801 return 0; 50802 } 50803 _ACEOF 50804 if ac_fn_cxx_try_run "$LINENO"; then : 50805 50806 else 50807 ac_cv_header_stdc=no 50808 fi 50809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 50810 conftest.$ac_objext conftest.beam conftest.$ac_ext 50811 fi 50812 50813 fi 50814 fi 50815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 50816 $as_echo "$ac_cv_header_stdc" >&6; } 50817 if test $ac_cv_header_stdc = yes; then 50818 50819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 50820 50821 fi 50822 50823 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 50824 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 50825 inttypes.h stdint.h unistd.h 50826 do : 50827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 50828 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 50829 " 50830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 50831 cat >>confdefs.h <<_ACEOF 50832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 50833 _ACEOF 50834 50835 fi 50836 50837 done 50838 50839 50840 50841 ############################################################################### 50842 # 50843 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 50844 # (The JVM can use 32 or 64 bit Java pointers but that decision 50845 # is made at runtime.) 50846 # 50847 50848 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 50849 # Always specify -m flag on Solaris 50850 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 50851 50852 # When we add flags to the "official" CFLAGS etc, we need to 50853 # keep track of these additions in ADDED_CFLAGS etc. These 50854 # will later be checked to make sure only controlled additions 50855 # have been made to CFLAGS etc. 50856 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50857 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50858 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50859 50860 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50861 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50862 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50863 50864 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50865 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50866 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50867 50868 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50869 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50870 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50871 50872 elif test "x$COMPILE_TYPE" = xreduced; then 50873 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 50874 # Specify -m if running reduced on unix platforms 50875 50876 # When we add flags to the "official" CFLAGS etc, we need to 50877 # keep track of these additions in ADDED_CFLAGS etc. These 50878 # will later be checked to make sure only controlled additions 50879 # have been made to CFLAGS etc. 50880 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50881 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50882 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50883 50884 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50885 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50886 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50887 50888 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50889 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50890 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50891 50892 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50893 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50894 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50895 50896 fi 50897 fi 50898 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50899 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50900 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50901 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50902 fi 50903 50904 # Make compilation sanity check 50905 for ac_header in stdio.h 50906 do : 50907 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 50908 if test "x$ac_cv_header_stdio_h" = xyes; then : 50909 cat >>confdefs.h <<_ACEOF 50910 #define HAVE_STDIO_H 1 50911 _ACEOF 50912 50913 else 50914 50915 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 50916 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 50917 if test "x$COMPILE_TYPE" = xreduced; then 50918 50919 # Print a helpful message on how to acquire the necessary build dependency. 50920 # reduced is the help tag: freetype, cups, alsa etc 50921 MISSING_DEPENDENCY=reduced 50922 50923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50924 cygwin_help $MISSING_DEPENDENCY 50925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50926 msys_help $MISSING_DEPENDENCY 50927 else 50928 PKGHANDLER_COMMAND= 50929 50930 case $PKGHANDLER in 50931 apt-get) 50932 apt_help $MISSING_DEPENDENCY ;; 50933 yum) 50934 yum_help $MISSING_DEPENDENCY ;; 50935 brew) 50936 brew_help $MISSING_DEPENDENCY ;; 50937 port) 50938 port_help $MISSING_DEPENDENCY ;; 50939 pkgutil) 50940 pkgutil_help $MISSING_DEPENDENCY ;; 50941 pkgadd) 50942 pkgadd_help $MISSING_DEPENDENCY ;; 50943 esac 50944 50945 if test "x$PKGHANDLER_COMMAND" != x; then 50946 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 50947 fi 50948 fi 50949 50950 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50951 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50952 elif test "x$COMPILE_TYPE" = xcross; then 50953 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50954 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50955 fi 50956 as_fn_error $? "Cannot continue." "$LINENO" 5 50957 50958 fi 50959 50960 done 50961 50962 50963 # The cast to long int works around a bug in the HP C Compiler 50964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50966 # This bug is HP SR number 8606223364. 50967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50968 $as_echo_n "checking size of int *... " >&6; } 50969 if ${ac_cv_sizeof_int_p+:} false; then : 50970 $as_echo_n "(cached) " >&6 50971 else 50972 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50973 50974 else 50975 if test "$ac_cv_type_int_p" = yes; then 50976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50978 as_fn_error 77 "cannot compute sizeof (int *) 50979 See \`config.log' for more details" "$LINENO" 5; } 50980 else 50981 ac_cv_sizeof_int_p=0 50982 fi 50983 fi 50984 50985 fi 50986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50987 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50988 50989 50990 50991 cat >>confdefs.h <<_ACEOF 50992 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50993 _ACEOF 50994 50995 50996 50997 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 50998 if test "x$ac_cv_sizeof_int_p" = x; then 50999 # The test failed, lets stick to the assumed value. 51000 { $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 51001 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 51002 else 51003 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 51004 51005 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 51006 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 51007 # Let's try to implicitely set the compilers target architecture and retry the test 51008 { $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 51009 $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;} 51010 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 51011 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 51012 51013 # When we add flags to the "official" CFLAGS etc, we need to 51014 # keep track of these additions in ADDED_CFLAGS etc. These 51015 # will later be checked to make sure only controlled additions 51016 # have been made to CFLAGS etc. 51017 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51018 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51019 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51020 51021 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 51022 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 51023 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 51024 51025 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 51026 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 51027 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 51028 51029 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 51030 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 51031 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 51032 51033 51034 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 51035 unset ac_cv_sizeof_int_p 51036 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 51037 cat >>confdefs.h <<_ACEOF 51038 #undef SIZEOF_INT_P 51039 _ACEOF 51040 51041 # The cast to long int works around a bug in the HP C Compiler 51042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 51043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 51044 # This bug is HP SR number 8606223364. 51045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 51046 $as_echo_n "checking size of int *... " >&6; } 51047 if ${ac_cv_sizeof_int_p+:} false; then : 51048 $as_echo_n "(cached) " >&6 51049 else 51050 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 51051 51052 else 51053 if test "$ac_cv_type_int_p" = yes; then 51054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 51055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 51056 as_fn_error 77 "cannot compute sizeof (int *) 51057 See \`config.log' for more details" "$LINENO" 5; } 51058 else 51059 ac_cv_sizeof_int_p=0 51060 fi 51061 fi 51062 51063 fi 51064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 51065 $as_echo "$ac_cv_sizeof_int_p" >&6; } 51066 51067 51068 51069 cat >>confdefs.h <<_ACEOF 51070 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 51071 _ACEOF 51072 51073 51074 51075 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 51076 51077 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 51078 { $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 51079 $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;} 51080 if test "x$COMPILE_TYPE" = xreduced; then 51081 51082 # Print a helpful message on how to acquire the necessary build dependency. 51083 # reduced is the help tag: freetype, cups, alsa etc 51084 MISSING_DEPENDENCY=reduced 51085 51086 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51087 cygwin_help $MISSING_DEPENDENCY 51088 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51089 msys_help $MISSING_DEPENDENCY 51090 else 51091 PKGHANDLER_COMMAND= 51092 51093 case $PKGHANDLER in 51094 apt-get) 51095 apt_help $MISSING_DEPENDENCY ;; 51096 yum) 51097 yum_help $MISSING_DEPENDENCY ;; 51098 brew) 51099 brew_help $MISSING_DEPENDENCY ;; 51100 port) 51101 port_help $MISSING_DEPENDENCY ;; 51102 pkgutil) 51103 pkgutil_help $MISSING_DEPENDENCY ;; 51104 pkgadd) 51105 pkgadd_help $MISSING_DEPENDENCY ;; 51106 esac 51107 51108 if test "x$PKGHANDLER_COMMAND" != x; then 51109 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51110 fi 51111 fi 51112 51113 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 51114 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 51115 elif test "x$COMPILE_TYPE" = xcross; then 51116 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 51117 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 51118 fi 51119 as_fn_error $? "Cannot continue." "$LINENO" 5 51120 fi 51121 fi 51122 fi 51123 51124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 51125 $as_echo_n "checking for target address size... " >&6; } 51126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 51127 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 51128 51129 51130 ############################################################################### 51131 # 51132 # Is the target little of big endian? 51133 # 51134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 51135 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 51136 if ${ac_cv_c_bigendian+:} false; then : 51137 $as_echo_n "(cached) " >&6 51138 else 51139 ac_cv_c_bigendian=unknown 51140 # See if we're dealing with a universal compiler. 51141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51142 /* end confdefs.h. */ 51143 #ifndef __APPLE_CC__ 51144 not a universal capable compiler 51145 #endif 51146 typedef int dummy; 51147 51148 _ACEOF 51149 if ac_fn_cxx_try_compile "$LINENO"; then : 51150 51151 # Check for potential -arch flags. It is not universal unless 51152 # there are at least two -arch flags with different values. 51153 ac_arch= 51154 ac_prev= 51155 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 51156 if test -n "$ac_prev"; then 51157 case $ac_word in 51158 i?86 | x86_64 | ppc | ppc64) 51159 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 51160 ac_arch=$ac_word 51161 else 51162 ac_cv_c_bigendian=universal 51163 break 51164 fi 51165 ;; 51166 esac 51167 ac_prev= 51168 elif test "x$ac_word" = "x-arch"; then 51169 ac_prev=arch 51170 fi 51171 done 51172 fi 51173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51174 if test $ac_cv_c_bigendian = unknown; then 51175 # See if sys/param.h defines the BYTE_ORDER macro. 51176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51177 /* end confdefs.h. */ 51178 #include <sys/types.h> 51179 #include <sys/param.h> 51180 51181 int 51182 main () 51183 { 51184 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 51185 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 51186 && LITTLE_ENDIAN) 51187 bogus endian macros 51188 #endif 51189 51190 ; 51191 return 0; 51192 } 51193 _ACEOF 51194 if ac_fn_cxx_try_compile "$LINENO"; then : 51195 # It does; now see whether it defined to BIG_ENDIAN or not. 51196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51197 /* end confdefs.h. */ 51198 #include <sys/types.h> 51199 #include <sys/param.h> 51200 51201 int 51202 main () 51203 { 51204 #if BYTE_ORDER != BIG_ENDIAN 51205 not big endian 51206 #endif 51207 51208 ; 51209 return 0; 51210 } 51211 _ACEOF 51212 if ac_fn_cxx_try_compile "$LINENO"; then : 51213 ac_cv_c_bigendian=yes 51214 else 51215 ac_cv_c_bigendian=no 51216 fi 51217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51218 fi 51219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51220 fi 51221 if test $ac_cv_c_bigendian = unknown; then 51222 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 51223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51224 /* end confdefs.h. */ 51225 #include <limits.h> 51226 51227 int 51228 main () 51229 { 51230 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 51231 bogus endian macros 51232 #endif 51233 51234 ; 51235 return 0; 51236 } 51237 _ACEOF 51238 if ac_fn_cxx_try_compile "$LINENO"; then : 51239 # It does; now see whether it defined to _BIG_ENDIAN or not. 51240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51241 /* end confdefs.h. */ 51242 #include <limits.h> 51243 51244 int 51245 main () 51246 { 51247 #ifndef _BIG_ENDIAN 51248 not big endian 51249 #endif 51250 51251 ; 51252 return 0; 51253 } 51254 _ACEOF 51255 if ac_fn_cxx_try_compile "$LINENO"; then : 51256 ac_cv_c_bigendian=yes 51257 else 51258 ac_cv_c_bigendian=no 51259 fi 51260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51261 fi 51262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51263 fi 51264 if test $ac_cv_c_bigendian = unknown; then 51265 # Compile a test program. 51266 if test "$cross_compiling" = yes; then : 51267 # Try to guess by grepping values from an object file. 51268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51269 /* end confdefs.h. */ 51270 short int ascii_mm[] = 51271 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 51272 short int ascii_ii[] = 51273 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 51274 int use_ascii (int i) { 51275 return ascii_mm[i] + ascii_ii[i]; 51276 } 51277 short int ebcdic_ii[] = 51278 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 51279 short int ebcdic_mm[] = 51280 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 51281 int use_ebcdic (int i) { 51282 return ebcdic_mm[i] + ebcdic_ii[i]; 51283 } 51284 extern int foo; 51285 51286 int 51287 main () 51288 { 51289 return use_ascii (foo) == use_ebcdic (foo); 51290 ; 51291 return 0; 51292 } 51293 _ACEOF 51294 if ac_fn_cxx_try_compile "$LINENO"; then : 51295 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 51296 ac_cv_c_bigendian=yes 51297 fi 51298 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 51299 if test "$ac_cv_c_bigendian" = unknown; then 51300 ac_cv_c_bigendian=no 51301 else 51302 # finding both strings is unlikely to happen, but who knows? 51303 ac_cv_c_bigendian=unknown 51304 fi 51305 fi 51306 fi 51307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51308 else 51309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51310 /* end confdefs.h. */ 51311 $ac_includes_default 51312 int 51313 main () 51314 { 51315 51316 /* Are we little or big endian? From Harbison&Steele. */ 51317 union 51318 { 51319 long int l; 51320 char c[sizeof (long int)]; 51321 } u; 51322 u.l = 1; 51323 return u.c[sizeof (long int) - 1] == 1; 51324 51325 ; 51326 return 0; 51327 } 51328 _ACEOF 51329 if ac_fn_cxx_try_run "$LINENO"; then : 51330 ac_cv_c_bigendian=no 51331 else 51332 ac_cv_c_bigendian=yes 51333 fi 51334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 51335 conftest.$ac_objext conftest.beam conftest.$ac_ext 51336 fi 51337 51338 fi 51339 fi 51340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 51341 $as_echo "$ac_cv_c_bigendian" >&6; } 51342 case $ac_cv_c_bigendian in #( 51343 yes) 51344 ENDIAN="big";; #( 51345 no) 51346 ENDIAN="little" ;; #( 51347 universal) 51348 ENDIAN="universal_endianness" 51349 ;; #( 51350 *) 51351 ENDIAN="unknown" ;; 51352 esac 51353 51354 51355 if test "x$ENDIAN" = xuniversal_endianness; then 51356 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 51357 fi 51358 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 51359 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 51360 fi 51361 51362 51363 # Configure flags for the tools 51364 51365 ############################################################################### 51366 # 51367 # How to compile shared libraries. 51368 # 51369 51370 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51371 PICFLAG="-fPIC" 51372 C_FLAG_REORDER='' 51373 CXX_FLAG_REORDER='' 51374 51375 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51376 # Linking is different on MacOSX 51377 if test "x$STATIC_BUILD" = xtrue; then 51378 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 51379 else 51380 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 51381 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 51382 fi 51383 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 51384 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51385 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 51386 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 51387 else 51388 # Default works for linux, might work on other platforms as well. 51389 SHARED_LIBRARY_FLAGS='-shared' 51390 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 51391 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 51392 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 51393 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 51394 fi 51395 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51396 C_FLAG_REORDER='' 51397 CXX_FLAG_REORDER='' 51398 51399 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51400 # Linking is different on MacOSX 51401 PICFLAG='' 51402 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 51403 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 51404 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51405 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 51406 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 51407 51408 if test "x$STATIC_BUILD" = xfalse; then 51409 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 51410 fi 51411 else 51412 # Default works for linux, might work on other platforms as well. 51413 PICFLAG='-fPIC' 51414 SHARED_LIBRARY_FLAGS='-shared' 51415 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 51416 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 51417 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 51418 51419 # arm specific settings 51420 if test "x$OPENJDK_TARGET_CPU" = "xarm"; then 51421 # '-Wl,-z,origin' isn't used on arm. 51422 SET_SHARED_LIBRARY_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 51423 else 51424 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 51425 fi 51426 51427 fi 51428 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51429 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 51430 PICFLAG="-xcode=pic32" 51431 else 51432 PICFLAG="-KPIC" 51433 fi 51434 C_FLAG_REORDER='-xF' 51435 CXX_FLAG_REORDER='-xF' 51436 SHARED_LIBRARY_FLAGS="-G" 51437 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 51438 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51439 SET_SHARED_LIBRARY_NAME='-h $1' 51440 SET_SHARED_LIBRARY_MAPFILE='-M$1' 51441 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51442 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 51443 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 51444 # will have to patch this single instruction with a call to some out-of-order code which 51445 # does the load from the TOC. This is of course slow. But in that case we also would have 51446 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 51447 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 51448 # can be patched directly by the linker and does not require a jump to out-of-order code. 51449 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 51450 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 51451 # loads for accessing a global variable). But there are rumors that this may be seen as a 51452 # 'performance feature' because of improved code locality of the symbols used in a 51453 # compilation unit. 51454 PICFLAG="-qpic" 51455 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 51456 C_FLAG_REORDER='' 51457 CXX_FLAG_REORDER='' 51458 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 51459 SET_EXECUTABLE_ORIGIN="" 51460 SET_SHARED_LIBRARY_ORIGIN='' 51461 SET_SHARED_LIBRARY_NAME='' 51462 SET_SHARED_LIBRARY_MAPFILE='' 51463 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51464 PICFLAG="" 51465 C_FLAG_REORDER='' 51466 CXX_FLAG_REORDER='' 51467 SHARED_LIBRARY_FLAGS="-dll" 51468 SET_EXECUTABLE_ORIGIN='' 51469 SET_SHARED_LIBRARY_ORIGIN='' 51470 SET_SHARED_LIBRARY_NAME='' 51471 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 51472 fi 51473 51474 51475 51476 51477 51478 51479 51480 51481 51482 # The (cross) compiler is now configured, we can now test capabilities 51483 # of the target platform. 51484 51485 51486 51487 ############################################################################### 51488 # 51489 # Setup the opt flags for different compilers 51490 # and different operating systems. 51491 # 51492 51493 # FIXME: this was indirectly the old default, but just inherited. 51494 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51495 # C_FLAG_DEPS="-MMD -MF" 51496 # fi 51497 51498 # Generate make dependency files 51499 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51500 C_FLAG_DEPS="-MMD -MF" 51501 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51502 C_FLAG_DEPS="-MMD -MF" 51503 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51504 C_FLAG_DEPS="-xMMD -xMF" 51505 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51506 C_FLAG_DEPS="-qmakedep=gcc -MF" 51507 fi 51508 CXX_FLAG_DEPS="$C_FLAG_DEPS" 51509 51510 51511 51512 # Debug symbols 51513 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51514 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 51515 # reduce from default "-g2" option to save space 51516 CFLAGS_DEBUG_SYMBOLS="-g1" 51517 CXXFLAGS_DEBUG_SYMBOLS="-g1" 51518 else 51519 CFLAGS_DEBUG_SYMBOLS="-g" 51520 CXXFLAGS_DEBUG_SYMBOLS="-g" 51521 fi 51522 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51523 CFLAGS_DEBUG_SYMBOLS="-g" 51524 CXXFLAGS_DEBUG_SYMBOLS="-g" 51525 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51526 CFLAGS_DEBUG_SYMBOLS="-g -xs" 51527 # -g0 enables debug symbols without disabling inlining. 51528 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 51529 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51530 CFLAGS_DEBUG_SYMBOLS="-g" 51531 CXXFLAGS_DEBUG_SYMBOLS="-g" 51532 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51533 CFLAGS_DEBUG_SYMBOLS="-Zi" 51534 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 51535 fi 51536 51537 51538 51539 # Debug symbols for JVM_CFLAGS 51540 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51541 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 51542 if test "x$DEBUG_LEVEL" = xslowdebug; then 51543 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 51544 else 51545 # -g0 does not disable inlining, which -g does. 51546 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 51547 fi 51548 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51549 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 51550 else 51551 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 51552 fi 51553 51554 51555 # bounds, memory and behavior checking options 51556 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51557 case $DEBUG_LEVEL in 51558 release ) 51559 # no adjustment 51560 ;; 51561 fastdebug ) 51562 # no adjustment 51563 ;; 51564 slowdebug ) 51565 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 51566 # get's added conditionally on whether we produce debug symbols or not. 51567 # This is most likely not really correct. 51568 51569 # Add runtime stack smashing and undefined behavior checks. 51570 # Not all versions of gcc support -fstack-protector 51571 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 51572 51573 51574 51575 51576 51577 51578 51579 51580 51581 51582 51583 51584 51585 51586 51587 51588 51589 51590 51591 51592 51593 51594 51595 51596 51597 51598 51599 51600 51601 51602 51603 51604 51605 51606 51607 51608 51609 51610 51611 51612 51613 51614 # Execute function body 51615 51616 51617 51618 51619 51620 51621 51622 51623 51624 51625 51626 51627 51628 51629 51630 51631 51632 51633 51634 51635 51636 51637 51638 51639 51640 51641 51642 51643 51644 51645 51646 51647 51648 51649 51650 51651 51652 51653 51654 51655 51656 51657 51658 51659 51660 51661 51662 51663 # Execute function body 51664 51665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51666 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51667 supports=yes 51668 51669 saved_cflags="$CFLAGS" 51670 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 51671 ac_ext=c 51672 ac_cpp='$CPP $CPPFLAGS' 51673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51675 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51676 51677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51678 /* end confdefs.h. */ 51679 int i; 51680 _ACEOF 51681 if ac_fn_c_try_compile "$LINENO"; then : 51682 51683 else 51684 supports=no 51685 fi 51686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51687 ac_ext=cpp 51688 ac_cpp='$CXXCPP $CPPFLAGS' 51689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51692 51693 CFLAGS="$saved_cflags" 51694 51695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51696 $as_echo "$supports" >&6; } 51697 if test "x$supports" = "xyes" ; then 51698 : 51699 C_COMP_SUPPORTS="yes" 51700 else 51701 : 51702 C_COMP_SUPPORTS="no" 51703 fi 51704 51705 51706 51707 51708 51709 51710 51711 51712 51713 51714 51715 51716 51717 51718 51719 51720 51721 51722 51723 51724 51725 51726 51727 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 51741 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 51752 51753 51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 # Execute function body 51764 51765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51766 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51767 supports=yes 51768 51769 saved_cxxflags="$CXXFLAGS" 51770 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 51771 ac_ext=cpp 51772 ac_cpp='$CXXCPP $CPPFLAGS' 51773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51776 51777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51778 /* end confdefs.h. */ 51779 int i; 51780 _ACEOF 51781 if ac_fn_cxx_try_compile "$LINENO"; then : 51782 51783 else 51784 supports=no 51785 fi 51786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51787 ac_ext=cpp 51788 ac_cpp='$CXXCPP $CPPFLAGS' 51789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51792 51793 CXXFLAGS="$saved_cxxflags" 51794 51795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51796 $as_echo "$supports" >&6; } 51797 if test "x$supports" = "xyes" ; then 51798 : 51799 CXX_COMP_SUPPORTS="yes" 51800 else 51801 : 51802 CXX_COMP_SUPPORTS="no" 51803 fi 51804 51805 51806 51807 51808 51809 51810 51811 51812 51813 51814 51815 51816 51817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51818 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51819 supports=no 51820 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51821 51822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51823 $as_echo "$supports" >&6; } 51824 if test "x$supports" = "xyes" ; then 51825 : 51826 51827 else 51828 : 51829 STACK_PROTECTOR_CFLAG="" 51830 fi 51831 51832 51833 51834 51835 51836 51837 51838 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51839 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51840 if test "x$STACK_PROTECTOR_CFLAG" != x; then 51841 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51842 fi 51843 ;; 51844 esac 51845 fi 51846 51847 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51848 if test "x$DEBUG_LEVEL" != xrelease; then 51849 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51850 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 51851 fi 51852 fi 51853 fi 51854 51855 # Optimization levels 51856 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51857 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 51858 51859 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 51860 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 51861 C_O_FLAG_HIGHEST_JVM="-xO4" 51862 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 51863 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 51864 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 51865 C_O_FLAG_DEBUG="-xregs=no%frameptr" 51866 C_O_FLAG_DEBUG_JVM="" 51867 C_O_FLAG_NONE="-xregs=no%frameptr" 51868 CXX_O_FLAG_HIGHEST_JVM="-xO4" 51869 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 51870 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 51871 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 51872 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 51873 CXX_O_FLAG_DEBUG_JVM="" 51874 CXX_O_FLAG_NONE="-xregs=no%frameptr" 51875 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 51876 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 51877 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 51878 fi 51879 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 51880 C_O_FLAG_HIGHEST_JVM="-xO4" 51881 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 51882 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 51883 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 51884 C_O_FLAG_DEBUG="" 51885 C_O_FLAG_DEBUG_JVM="" 51886 C_O_FLAG_NONE="" 51887 CXX_O_FLAG_HIGHEST_JVM="-xO4" 51888 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 51889 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 51890 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 51891 CXX_O_FLAG_DEBUG="" 51892 CXX_O_FLAG_DEBUG_JVM="" 51893 CXX_O_FLAG_NONE="" 51894 fi 51895 else 51896 # The remaining toolchains share opt flags between CC and CXX; 51897 # setup for C and duplicate afterwards. 51898 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51899 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51900 # On MacOSX we optimize for size, something 51901 # we should do for all platforms? 51902 C_O_FLAG_HIGHEST_JVM="-Os" 51903 C_O_FLAG_HIGHEST="-Os" 51904 C_O_FLAG_HI="-Os" 51905 C_O_FLAG_NORM="-Os" 51906 C_O_FLAG_SIZE="-Os" 51907 else 51908 C_O_FLAG_HIGHEST_JVM="-O3" 51909 C_O_FLAG_HIGHEST="-O3" 51910 C_O_FLAG_HI="-O3" 51911 C_O_FLAG_NORM="-O2" 51912 C_O_FLAG_SIZE="-Os" 51913 fi 51914 C_O_FLAG_DEBUG="-O0" 51915 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51916 C_O_FLAG_DEBUG_JVM="" 51917 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51918 C_O_FLAG_DEBUG_JVM="-O0" 51919 fi 51920 C_O_FLAG_NONE="-O0" 51921 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51922 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51923 # On MacOSX we optimize for size, something 51924 # we should do for all platforms? 51925 C_O_FLAG_HIGHEST_JVM="-Os" 51926 C_O_FLAG_HIGHEST="-Os" 51927 C_O_FLAG_HI="-Os" 51928 C_O_FLAG_NORM="-Os" 51929 C_O_FLAG_SIZE="-Os" 51930 else 51931 C_O_FLAG_HIGHEST_JVM="-O3" 51932 C_O_FLAG_HIGHEST="-O3" 51933 C_O_FLAG_HI="-O3" 51934 C_O_FLAG_NORM="-O2" 51935 C_O_FLAG_SIZE="-Os" 51936 fi 51937 C_O_FLAG_DEBUG="-O0" 51938 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51939 C_O_FLAG_DEBUG_JVM="" 51940 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51941 C_O_FLAG_DEBUG_JVM="-O0" 51942 fi 51943 C_O_FLAG_NONE="-O0" 51944 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51945 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 51946 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 51947 C_O_FLAG_HI="-O3 -qinline -qinlglue" 51948 C_O_FLAG_NORM="-O2" 51949 C_O_FLAG_DEBUG="-qnoopt" 51950 # FIXME: Value below not verified. 51951 C_O_FLAG_DEBUG_JVM="" 51952 C_O_FLAG_NONE="-qnoopt" 51953 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51954 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 51955 C_O_FLAG_HIGHEST="-O2" 51956 C_O_FLAG_HI="-O1" 51957 C_O_FLAG_NORM="-O1" 51958 C_O_FLAG_DEBUG="-Od" 51959 C_O_FLAG_DEBUG_JVM="" 51960 C_O_FLAG_NONE="-Od" 51961 C_O_FLAG_SIZE="-Os" 51962 fi 51963 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 51964 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 51965 CXX_O_FLAG_HI="$C_O_FLAG_HI" 51966 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 51967 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 51968 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 51969 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 51970 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 51971 fi 51972 51973 # Adjust optimization flags according to debug level. 51974 case $DEBUG_LEVEL in 51975 release ) 51976 # no adjustment 51977 ;; 51978 fastdebug ) 51979 # Not quite so much optimization 51980 C_O_FLAG_HI="$C_O_FLAG_NORM" 51981 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 51982 ;; 51983 slowdebug ) 51984 # Disable optimization 51985 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 51986 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 51987 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 51988 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 51989 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 51990 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 51991 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 51992 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 51993 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 51994 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 51995 ;; 51996 esac 51997 51998 51999 52000 52001 52002 52003 52004 52005 52006 52007 52008 52009 52010 52011 52012 52013 52014 52015 52016 52017 # Check whether --with-abi-profile was given. 52018 if test "${with_abi_profile+set}" = set; then : 52019 withval=$with_abi_profile; 52020 fi 52021 52022 52023 if test "x$with_abi_profile" != x; then 52024 if test "x$OPENJDK_TARGET_CPU" != xarm && \ 52025 test "x$OPENJDK_TARGET_CPU" != xaarch64; then 52026 as_fn_error $? "--with-abi-profile only available on arm/aarch64" "$LINENO" 5 52027 fi 52028 52029 OPENJDK_TARGET_ABI_PROFILE=$with_abi_profile 52030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI profle" >&5 52031 $as_echo_n "checking for ABI profle... " >&6; } 52032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_ABI_PROFILE" >&5 52033 $as_echo "$OPENJDK_TARGET_ABI_PROFILE" >&6; } 52034 52035 if test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-sflt; then 52036 ARM_FLOAT_TYPE=vfp-sflt 52037 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 52038 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-hflt; then 52039 ARM_FLOAT_TYPE=vfp-hflt 52040 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 52041 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-sflt; then 52042 ARM_FLOAT_TYPE=sflt 52043 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 52044 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv5-vfp-sflt; then 52045 ARM_FLOAT_TYPE=vfp-sflt 52046 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 52047 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv6-vfp-hflt; then 52048 ARM_FLOAT_TYPE=vfp-hflt 52049 ARM_ARCH_TYPE_FLAGS='-march=armv6 -marm' 52050 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm64; then 52051 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 52052 ARM_FLOAT_TYPE= 52053 ARM_ARCH_TYPE_FLAGS= 52054 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xaarch64; then 52055 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 52056 ARM_FLOAT_TYPE= 52057 ARM_ARCH_TYPE_FLAGS= 52058 else 52059 as_fn_error $? "Invalid ABI profile: \"$OPENJDK_TARGET_ABI_PROFILE\"" "$LINENO" 5 52060 fi 52061 52062 if test "x$ARM_FLOAT_TYPE" = xvfp-sflt; then 52063 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt' 52064 elif test "x$ARM_FLOAT_TYPE" = xvfp-hflt; then 52065 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=hard -mfpu=vfp -DFLOAT_ARCH=-vfp-hflt' 52066 elif test "x$ARM_FLOAT_TYPE" = xsflt; then 52067 ARM_FLOAT_TYPE_FLAGS='-msoft-float -mfpu=vfp' 52068 fi 52069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ARM_FLOAT_TYPE floating point flags" >&5 52070 $as_echo_n "checking for $ARM_FLOAT_TYPE floating point flags... " >&6; } 52071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_FLOAT_TYPE_FLAGS" >&5 52072 $as_echo "$ARM_FLOAT_TYPE_FLAGS" >&6; } 52073 52074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arch type flags" >&5 52075 $as_echo_n "checking for arch type flags... " >&6; } 52076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_ARCH_TYPE_FLAGS" >&5 52077 $as_echo "$ARM_ARCH_TYPE_FLAGS" >&6; } 52078 52079 # Now set JDK_ARCH_ABI_PROP_NAME. This is equivalent to the last part of the 52080 # autoconf target triplet. 52081 JDK_ARCH_ABI_PROP_NAME=`$ECHO $OPENJDK_TARGET_AUTOCONF_NAME | $SED -e 's/.*-\([^-]*\)$/\1/'` 52082 # Sanity check that it is a known ABI. 52083 if test "x$JDK_ARCH_ABI_PROP_NAME" != xgnu && \ 52084 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabi && \ 52085 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabihf; then 52086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&5 52087 $as_echo "$as_me: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&2;} 52088 fi 52089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI property name" >&5 52090 $as_echo_n "checking for ABI property name... " >&6; } 52091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_ARCH_ABI_PROP_NAME" >&5 52092 $as_echo "$JDK_ARCH_ABI_PROP_NAME" >&6; } 52093 52094 52095 # Pass these on to the open part of configure as if they were set using 52096 # --with-extra-c[xx]flags. 52097 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52098 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52099 # Get rid of annoying "note: the mangling of 'va_list' has changed in GCC 4.4" 52100 # FIXME: This should not really be set using extra_cflags. 52101 if test "x$OPENJDK_TARGET_CPU" = xarm; then 52102 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-psabi" 52103 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -Wno-psabi" 52104 fi 52105 # Also add JDK_ARCH_ABI_PROP_NAME define, but only to CFLAGS. 52106 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'" 52107 # And pass the architecture flags to the linker as well 52108 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52109 fi 52110 52111 # When building with an abi profile, the name of that profile is appended on the 52112 # bundle platform, which is used in bundle names. 52113 if test "x$OPENJDK_TARGET_ABI_PROFILE" != x; then 52114 OPENJDK_TARGET_BUNDLE_PLATFORM="$OPENJDK_TARGET_OS_BUNDLE-$OPENJDK_TARGET_ABI_PROFILE" 52115 fi 52116 52117 52118 # Optional POSIX functionality needed by the JVM 52119 # 52120 # Check if clock_gettime is available and in which library. This indicates 52121 # availability of CLOCK_MONOTONIC for hotspot. But we don't need to link, so 52122 # don't let it update LIBS. 52123 save_LIBS="$LIBS" 52124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 52125 $as_echo_n "checking for library containing clock_gettime... " >&6; } 52126 if ${ac_cv_search_clock_gettime+:} false; then : 52127 $as_echo_n "(cached) " >&6 52128 else 52129 ac_func_search_save_LIBS=$LIBS 52130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52131 /* end confdefs.h. */ 52132 52133 /* Override any GCC internal prototype to avoid an error. 52134 Use char because int might match the return type of a GCC 52135 builtin and then its argument prototype would still apply. */ 52136 #ifdef __cplusplus 52137 extern "C" 52138 #endif 52139 char clock_gettime (); 52140 int 52141 main () 52142 { 52143 return clock_gettime (); 52144 ; 52145 return 0; 52146 } 52147 _ACEOF 52148 for ac_lib in '' rt; do 52149 if test -z "$ac_lib"; then 52150 ac_res="none required" 52151 else 52152 ac_res=-l$ac_lib 52153 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 52154 fi 52155 if ac_fn_cxx_try_link "$LINENO"; then : 52156 ac_cv_search_clock_gettime=$ac_res 52157 fi 52158 rm -f core conftest.err conftest.$ac_objext \ 52159 conftest$ac_exeext 52160 if ${ac_cv_search_clock_gettime+:} false; then : 52161 break 52162 fi 52163 done 52164 if ${ac_cv_search_clock_gettime+:} false; then : 52165 52166 else 52167 ac_cv_search_clock_gettime=no 52168 fi 52169 rm conftest.$ac_ext 52170 LIBS=$ac_func_search_save_LIBS 52171 fi 52172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 52173 $as_echo "$ac_cv_search_clock_gettime" >&6; } 52174 ac_res=$ac_cv_search_clock_gettime 52175 if test "$ac_res" != no; then : 52176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 52177 HAS_CLOCK_GETTIME=true 52178 fi 52179 52180 if test "x$LIBS" = "x-lrt "; then 52181 CLOCK_GETTIME_IN_LIBRT=true 52182 fi 52183 LIBS="$save_LIBS" 52184 52185 52186 # Special extras... 52187 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52188 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 52189 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52190 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52191 fi 52192 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52193 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52194 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52195 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52196 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52197 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52198 CXXSTD_CXXFLAG="-std=gnu++98" 52199 52200 52201 52202 52203 52204 52205 52206 52207 52208 52209 52210 52211 52212 52213 52214 52215 52216 52217 52218 52219 52220 52221 52222 52223 52224 52225 52226 52227 52228 52229 52230 52231 52232 52233 52234 52235 52236 52237 52238 52239 52240 52241 # Execute function body 52242 52243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 52244 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 52245 supports=yes 52246 52247 saved_cxxflags="$CXXFLAGS" 52248 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 52249 ac_ext=cpp 52250 ac_cpp='$CXXCPP $CPPFLAGS' 52251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52254 52255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52256 /* end confdefs.h. */ 52257 int i; 52258 _ACEOF 52259 if ac_fn_cxx_try_compile "$LINENO"; then : 52260 52261 else 52262 supports=no 52263 fi 52264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52265 ac_ext=cpp 52266 ac_cpp='$CXXCPP $CPPFLAGS' 52267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52270 52271 CXXFLAGS="$saved_cxxflags" 52272 52273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52274 $as_echo "$supports" >&6; } 52275 if test "x$supports" = "xyes" ; then 52276 : 52277 52278 else 52279 : 52280 CXXSTD_CXXFLAG="" 52281 fi 52282 52283 52284 52285 52286 52287 52288 52289 52290 52291 52292 52293 52294 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 52295 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 52296 52297 fi 52298 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52299 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 52300 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 52301 fi 52302 52303 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 52304 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 52305 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 52306 52307 ############################################################################### 52308 # 52309 # Now setup the CFLAGS and LDFLAGS for the JDK build. 52310 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 52311 # 52312 52313 # Setup compiler/platform specific flags into 52314 # CFLAGS_JDK - C Compiler flags 52315 # CXXFLAGS_JDK - C++ Compiler flags 52316 # COMMON_CCXXFLAGS_JDK - common to C and C++ 52317 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52318 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 52319 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 52320 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 52321 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52322 # Force compatibility with i586 on 32 bit intel platforms. 52323 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 52324 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 52325 fi 52326 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52327 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52328 case $OPENJDK_TARGET_CPU_ARCH in 52329 arm ) 52330 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52331 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52332 COMMON_CCXXFLAGS_JDK="${COMMON_CCXXFLAGS_JDK} -fsigned-char" 52333 ;; 52334 ppc ) 52335 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52336 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52337 ;; 52338 s390 ) 52339 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 52340 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52341 ;; 52342 * ) 52343 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52344 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52345 ;; 52346 esac 52347 52348 52349 52350 52351 52352 52353 52354 52355 52356 52357 52358 52359 52360 52361 52362 52363 52364 52365 52366 52367 52368 52369 52370 52371 52372 52373 52374 52375 52376 52377 52378 52379 52380 52381 52382 52383 52384 52385 52386 52387 52388 52389 52390 52391 52392 52393 52394 52395 52396 52397 52398 52399 52400 52401 # Execute function body 52402 52403 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52404 REFERENCE_VERSION=6 52405 52406 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52407 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52408 fi 52409 52410 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52411 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 52412 fi 52413 52414 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52415 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52416 52417 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52418 : 52419 52420 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 52421 # runs afoul of the more aggressive versions of these optimisations. 52422 # Notably, value range propagation now assumes that the this pointer of C++ 52423 # member functions is non-null. 52424 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 52425 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 52426 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 52427 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 52428 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52429 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52430 52431 else 52432 : 52433 52434 fi 52435 52436 52437 52438 52439 52440 52441 52442 52443 52444 52445 52446 52447 52448 52449 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52450 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 52451 52452 # Restrict the debug information created by Clang to avoid 52453 # too big object files and speed the build up a little bit 52454 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 52455 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 52456 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52457 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52458 # Force compatibility with i586 on 32 bit intel platforms. 52459 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 52460 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 52461 fi 52462 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 52463 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52464 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52465 case $OPENJDK_TARGET_CPU_ARCH in 52466 ppc ) 52467 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52468 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52469 ;; 52470 * ) 52471 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52472 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52473 ;; 52474 esac 52475 fi 52476 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52477 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 52478 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 52479 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 52480 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 52481 fi 52482 52483 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 52484 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 52485 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52486 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 52487 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52488 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52489 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52490 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 52491 -MD -Zc:wchar_t- -W3 -wd4800 \ 52492 -DWIN32_LEAN_AND_MEAN \ 52493 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 52494 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 52495 -DWIN32 -DIAL" 52496 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52497 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 52498 else 52499 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 52500 fi 52501 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 52502 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 52503 # studio. 52504 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 52505 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 52506 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 52507 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 52508 fi 52509 fi 52510 52511 ############################################################################### 52512 52513 # Adjust flags according to debug level. 52514 case $DEBUG_LEVEL in 52515 fastdebug | slowdebug ) 52516 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 52517 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 52518 ;; 52519 release ) 52520 ;; 52521 * ) 52522 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52523 ;; 52524 esac 52525 52526 # Set some common defines. These works for all compilers, but assume 52527 # -D is universally accepted. 52528 52529 # Setup endianness 52530 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 52531 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 52532 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 52533 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 52534 # Note: -Dmacro is the same as #define macro 1 52535 # -Dmacro= is the same as #define macro 52536 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52537 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 52538 else 52539 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 52540 fi 52541 else 52542 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 52543 # are defined in the system? 52544 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52545 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 52546 else 52547 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 52548 fi 52549 fi 52550 52551 # Always enable optional macros for VM. 52552 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_FORMAT_MACROS" 52553 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_LIMIT_MACROS" 52554 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 52555 52556 # Setup target OS define. Use OS target name but in upper case. 52557 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 52558 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 52559 52560 # Setup target CPU 52561 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52562 $OPENJDK_TARGET_ADD_LP64 \ 52563 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 52564 52565 # Setup debug/release defines 52566 if test "x$DEBUG_LEVEL" = xrelease; then 52567 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 52568 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52569 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 52570 fi 52571 else 52572 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 52573 fi 52574 52575 # Optional POSIX functionality needed by the VM 52576 52577 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 52578 JVM_CFLAGS="$JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 52579 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 52580 JVM_CFLAGS="$JVM_CFLAGS -DNEEDS_LIBRT" 52581 fi 52582 fi 52583 52584 52585 # Set some additional per-OS defines. 52586 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52587 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 52588 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 52589 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 52590 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 52591 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 52592 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 52593 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 52594 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52595 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 52596 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 52597 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 52598 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 52599 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 52600 -fno-omit-frame-pointer" 52601 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52602 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 52603 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 52604 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 52605 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 52606 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52607 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52608 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52609 if test "x$DEBUG_LEVEL" = xslowdebug; then 52610 JVM_CFLAGS="$JVM_CFLAGS -qpic=large" 52611 fi 52612 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 52613 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 52614 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 52615 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 52616 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 52617 fi 52618 52619 # Set some additional per-CPU defines. 52620 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 52621 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 52622 elif test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xsolaris-sparcv9; then 52623 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 52624 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 52625 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52626 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52627 # fixes `relocation truncated to fit' error for gcc 4.1. 52628 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 52629 # Use ppc64 instructions, but schedule for power5 52630 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 52631 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52632 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 52633 fi 52634 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 52635 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52636 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52637 # Little endian machine uses ELFv2 ABI. 52638 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 52639 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 52640 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 52641 fi 52642 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 52643 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52644 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 52645 fi 52646 fi 52647 52648 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 52649 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 52650 fi 52651 52652 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 52653 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 52654 # Solaris does not have _LP64=1 in the old build. 52655 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 52656 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 52657 fi 52658 fi 52659 52660 # Set JVM_CFLAGS warning handling 52661 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52662 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 52663 -Wunused-value -Woverloaded-virtual" 52664 52665 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52666 52667 52668 52669 52670 52671 52672 52673 52674 52675 52676 52677 52678 52679 52680 52681 52682 52683 52684 52685 52686 52687 52688 52689 52690 52691 52692 52693 52694 52695 52696 52697 52698 52699 52700 52701 52702 52703 52704 52705 52706 52707 52708 52709 52710 52711 52712 52713 52714 52715 52716 52717 52718 52719 52720 # Execute function body 52721 52722 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52723 REFERENCE_VERSION=4.8 52724 52725 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52726 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52727 fi 52728 52729 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52730 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 52731 fi 52732 52733 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52734 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52735 52736 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52737 : 52738 52739 # These flags either do not work or give spurious warnings prior to gcc 4.8. 52740 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 52741 52742 52743 else 52744 : 52745 52746 fi 52747 52748 52749 52750 52751 52752 52753 52754 52755 52756 52757 52758 52759 52760 52761 fi 52762 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 52763 # Non-zero builds have stricter warnings 52764 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 52765 else 52766 if test "x$TOOLCHAIN_TYPE" = xclang; then 52767 # Some versions of llvm do not like -Wundef 52768 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 52769 fi 52770 fi 52771 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52772 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 52773 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 52774 fi 52775 52776 # Additional macosx handling 52777 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52778 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 52779 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 52780 # JDK can be built and makes the linked binaries compatible even if built on 52781 # a newer version of the OS. 52782 MACOSX_VERSION_MIN=10.7.0 52783 52784 52785 # Setting --with-macosx-version-max=<version> makes it an error to build or 52786 # link to macosx APIs that are newer than the given OS version. The expected 52787 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 52788 52789 # Check whether --with-macosx-version-max was given. 52790 if test "${with_macosx_version_max+set}" = set; then : 52791 withval=$with_macosx_version_max; 52792 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 52793 MACOSX_VERSION_MAX=$with_macosx_version_max 52794 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 52795 MACOSX_VERSION_MAX=$with_macosx_version_max 52796 elif test "x$with_macosx_version_max" = "xno"; then 52797 # Use build system default 52798 MACOSX_VERSION_MAX= 52799 else 52800 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 52801 fi 52802 52803 else 52804 MACOSX_VERSION_MAX= 52805 52806 fi 52807 52808 52809 52810 # Let the flags variables get resolved in make for easier override on make 52811 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 52812 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52813 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52814 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52815 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52816 JVM_CFLAGS="$JVM_CFLAGS \ 52817 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52818 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52819 52820 if test -n "$MACOSX_VERSION_MAX"; then 52821 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52822 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52823 JVM_CFLAGS="$JVM_CFLAGS \ 52824 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52825 fi 52826 fi 52827 52828 # Setup some hard coded includes 52829 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52830 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 52831 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base/\$(OPENJDK_TARGET_OS_INCLUDE_SUBDIR) \ 52832 -I${TOPDIR}/src/java.base/share/native/libjava \ 52833 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava \ 52834 -I${TOPDIR}/src/hotspot/share/include \ 52835 -I${TOPDIR}/src/hotspot/os/${HOTSPOT_TARGET_OS_TYPE}/include" 52836 52837 # The shared libraries are compiled using the picflag. 52838 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 52839 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 52840 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 52841 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 52842 52843 # Executable flags 52844 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 52845 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 52846 52847 52848 52849 52850 52851 52852 # Setup LDFLAGS et al. 52853 # 52854 52855 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52856 LDFLAGS_MICROSOFT="-nologo -opt:ref" 52857 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 52858 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 52859 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 52860 LDFLAGS_SAFESH="-safeseh" 52861 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 52862 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 52863 # NOTE: Old build added -machine. Probably not needed. 52864 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 52865 else 52866 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 52867 fi 52868 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52869 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 52870 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52871 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 52872 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52873 fi 52874 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52875 # If this is a --hash-style=gnu system, use --hash-style=both, why? 52876 # We have previously set HAS_GNU_HASH if this is the case 52877 if test -n "$HAS_GNU_HASH"; then 52878 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 52879 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 52880 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 52881 fi 52882 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52883 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52884 fi 52885 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52886 # And since we now know that the linker is gnu, then add -z defs, to forbid 52887 # undefined symbols in object files. 52888 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 52889 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 52890 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 52891 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 52892 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 52893 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52894 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 52895 fi 52896 case $DEBUG_LEVEL in 52897 release ) 52898 # tell linker to optimize libraries. 52899 # Should this be supplied to the OSS linker as well? 52900 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 52901 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 52902 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 52903 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52904 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52905 fi 52906 ;; 52907 slowdebug ) 52908 # Hotspot always let the linker optimize 52909 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52910 if test "x$HAS_LINKER_NOW" = "xtrue"; then 52911 # do relocations at load 52912 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 52913 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 52914 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 52915 fi 52916 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52917 # mark relocations read only 52918 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52919 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52920 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52921 fi 52922 ;; 52923 fastdebug ) 52924 # Hotspot always let the linker optimize 52925 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52926 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52927 # mark relocations read only 52928 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52929 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52930 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52931 fi 52932 ;; 52933 * ) 52934 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52935 ;; 52936 esac 52937 fi 52938 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52939 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 52940 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 52941 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 52942 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 52943 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 52944 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 52945 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 52946 fi 52947 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52948 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K -bdatapsize:64K -bstackpsize:64K" 52949 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 52950 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 52951 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52952 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52953 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52954 if test "x$DEBUG_LEVEL" = xslowdebug; then 52955 JVM_LDFLAGS="$JVM_LDFLAGS -bbigtoc" 52956 fi 52957 fi 52958 52959 # Customize LDFLAGS for executables 52960 52961 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 52962 52963 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52964 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 52965 LDFLAGS_STACK_SIZE=1048576 52966 else 52967 LDFLAGS_STACK_SIZE=327680 52968 fi 52969 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 52970 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 52971 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 52972 fi 52973 52974 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 52975 52976 # Customize LDFLAGS for libs 52977 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 52978 52979 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 52980 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 52981 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52982 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52983 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 52984 JDKLIB_LIBS="" 52985 else 52986 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52987 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 52988 52989 if test "xTARGET" = "xTARGET"; then 52990 # On some platforms (mac) the linker warns about non existing -L dirs. 52991 # For any of the variants server, client or minimal, the dir matches the 52992 # variant name. The "main" variant should be used for linking. For the 52993 # rest, the dir is just server. 52994 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 52995 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 52996 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52997 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 52998 else 52999 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53000 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53001 fi 53002 elif test "xTARGET" = "xBUILD"; then 53003 # When building a buildjdk, it's always only the server variant 53004 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53005 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53006 fi 53007 53008 JDKLIB_LIBS="-ljava -ljvm" 53009 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53010 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 53011 fi 53012 53013 fi 53014 53015 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 53016 53017 # Set JVM_LIBS (per os) 53018 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53019 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 53020 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 53021 # FIXME: This hard-coded path is not really proper. 53022 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 53023 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 53024 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 53025 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 53026 fi 53027 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 53028 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 53029 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 53030 JVM_LIBS="$JVM_LIBS -lm" 53031 elif test "x$OPENJDK_TARGET_OS" = xaix; then 53032 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 53033 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 53034 JVM_LIBS="$JVM_LIBS -lm" 53035 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 53036 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 53037 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 53038 wsock32.lib winmm.lib version.lib psapi.lib" 53039 fi 53040 53041 # Set JVM_ASFLAGS 53042 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53043 if test "x$OPENJDK_TARGET_CPU" = xx86; then 53044 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 53045 fi 53046 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 53047 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 53048 fi 53049 53050 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 53051 53052 53053 53054 53055 53056 53057 53058 53059 53060 53061 53062 53063 53064 53065 53066 53067 # Special extras... 53068 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53069 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 53070 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 53071 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 53072 fi 53073 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 53074 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 53075 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53076 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 53077 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 53078 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 53079 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 53080 53081 53082 53083 53084 53085 53086 53087 53088 53089 53090 53091 53092 53093 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 # Execute function body 53123 53124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 53125 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 53126 supports=yes 53127 53128 saved_cxxflags="$CXXFLAGS" 53129 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 53130 ac_ext=cpp 53131 ac_cpp='$CXXCPP $CPPFLAGS' 53132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53135 53136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53137 /* end confdefs.h. */ 53138 int i; 53139 _ACEOF 53140 if ac_fn_cxx_try_compile "$LINENO"; then : 53141 53142 else 53143 supports=no 53144 fi 53145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53146 ac_ext=cpp 53147 ac_cpp='$CXXCPP $CPPFLAGS' 53148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53151 53152 CXXFLAGS="$saved_cxxflags" 53153 53154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53155 $as_echo "$supports" >&6; } 53156 if test "x$supports" = "xyes" ; then 53157 : 53158 53159 else 53160 : 53161 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 53162 fi 53163 53164 53165 53166 53167 53168 53169 53170 53171 53172 53173 53174 53175 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 53176 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 53177 53178 fi 53179 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 53180 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 53181 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 53182 fi 53183 53184 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 53185 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 53186 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 53187 53188 ############################################################################### 53189 # 53190 # Now setup the CFLAGS and LDFLAGS for the JDK build. 53191 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 53192 # 53193 53194 # Setup compiler/platform specific flags into 53195 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 53196 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 53197 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 53198 if test "x$TOOLCHAIN_TYPE" = xgcc; then 53199 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 53200 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 53201 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 53202 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53203 # Force compatibility with i586 on 32 bit intel platforms. 53204 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 53205 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 53206 fi 53207 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 53208 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 53209 case $OPENJDK_BUILD_CPU_ARCH in 53210 arm ) 53211 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53212 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53213 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="${OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK} -fsigned-char" 53214 ;; 53215 ppc ) 53216 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53217 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53218 ;; 53219 s390 ) 53220 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 53221 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53222 ;; 53223 * ) 53224 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 53225 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53226 ;; 53227 esac 53228 53229 53230 53231 53232 53233 53234 53235 53236 53237 53238 53239 53240 53241 53242 53243 53244 53245 53246 53247 53248 53249 53250 53251 53252 53253 53254 53255 53256 53257 53258 53259 53260 53261 53262 53263 53264 53265 53266 53267 53268 53269 53270 53271 53272 53273 53274 53275 53276 53277 53278 53279 53280 53281 53282 # Execute function body 53283 53284 # Need to assign to a variable since m4 is blocked from modifying parts in []. 53285 REFERENCE_VERSION=6 53286 53287 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 53288 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 53289 fi 53290 53291 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 53292 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 53293 fi 53294 53295 # Version comparison method inspired by http://stackoverflow.com/a/24067243 53296 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 53297 53298 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 53299 : 53300 53301 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 53302 # runs afoul of the more aggressive versions of these optimisations. 53303 # Notably, value range propagation now assumes that the this pointer of C++ 53304 # member functions is non-null. 53305 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 53306 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 53307 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 53308 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 53309 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 53310 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 53311 53312 else 53313 : 53314 53315 fi 53316 53317 53318 53319 53320 53321 53322 53323 53324 53325 53326 53327 53328 53329 53330 elif test "x$TOOLCHAIN_TYPE" = xclang; then 53331 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 53332 53333 # Restrict the debug information created by Clang to avoid 53334 # too big object files and speed the build up a little bit 53335 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 53336 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 53337 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53338 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53339 # Force compatibility with i586 on 32 bit intel platforms. 53340 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 53341 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 53342 fi 53343 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 53344 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 53345 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 53346 case $OPENJDK_BUILD_CPU_ARCH in 53347 ppc ) 53348 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53349 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53350 ;; 53351 * ) 53352 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 53353 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53354 ;; 53355 esac 53356 fi 53357 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53358 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 53359 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 53360 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 53361 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 53362 fi 53363 53364 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 53365 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 53366 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53367 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 53368 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 53369 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 53370 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53371 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53372 -MD -Zc:wchar_t- -W3 -wd4800 \ 53373 -DWIN32_LEAN_AND_MEAN \ 53374 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 53375 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 53376 -DWIN32 -DIAL" 53377 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 53378 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 53379 else 53380 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 53381 fi 53382 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 53383 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 53384 # studio. 53385 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 53386 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 53387 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 53388 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 53389 fi 53390 fi 53391 53392 ############################################################################### 53393 53394 # Adjust flags according to debug level. 53395 case $DEBUG_LEVEL in 53396 fastdebug | slowdebug ) 53397 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 53398 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 53399 ;; 53400 release ) 53401 ;; 53402 * ) 53403 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 53404 ;; 53405 esac 53406 53407 # Set some common defines. These works for all compilers, but assume 53408 # -D is universally accepted. 53409 53410 # Setup endianness 53411 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 53412 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 53413 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 53414 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 53415 # Note: -Dmacro is the same as #define macro 1 53416 # -Dmacro= is the same as #define macro 53417 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53418 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 53419 else 53420 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 53421 fi 53422 else 53423 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 53424 # are defined in the system? 53425 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53426 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 53427 else 53428 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 53429 fi 53430 fi 53431 53432 # Always enable optional macros for VM. 53433 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_FORMAT_MACROS" 53434 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_LIMIT_MACROS" 53435 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 53436 53437 # Setup target OS define. Use OS target name but in upper case. 53438 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 53439 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 53440 53441 # Setup target CPU 53442 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53443 $OPENJDK_BUILD_ADD_LP64 \ 53444 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 53445 53446 # Setup debug/release defines 53447 if test "x$DEBUG_LEVEL" = xrelease; then 53448 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 53449 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53450 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 53451 fi 53452 else 53453 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 53454 fi 53455 53456 # Optional POSIX functionality needed by the VM 53457 53458 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 53459 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 53460 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 53461 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DNEEDS_LIBRT" 53462 fi 53463 fi 53464 53465 53466 # Set some additional per-OS defines. 53467 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53468 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 53469 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 53470 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 53471 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 53472 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 53473 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 53474 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 53475 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53476 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 53477 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 53478 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 53479 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 53480 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 53481 -fno-omit-frame-pointer" 53482 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53483 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 53484 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 53485 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 53486 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 53487 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 53488 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 53489 # so for slowdebug we build with '-qpic=large -bbigtoc'. 53490 if test "x$DEBUG_LEVEL" = xslowdebug; then 53491 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qpic=large" 53492 fi 53493 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 53494 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 53495 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 53496 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 53497 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 53498 fi 53499 53500 # Set some additional per-CPU defines. 53501 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 53502 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 53503 elif test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xsolaris-sparcv9; then 53504 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 53505 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 53506 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53507 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 53508 # fixes `relocation truncated to fit' error for gcc 4.1. 53509 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 53510 # Use ppc64 instructions, but schedule for power5 53511 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 53512 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53513 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 53514 fi 53515 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 53516 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53517 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 53518 # Little endian machine uses ELFv2 ABI. 53519 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 53520 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 53521 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 53522 fi 53523 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 53524 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53525 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 53526 fi 53527 fi 53528 53529 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 53530 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 53531 fi 53532 53533 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 53534 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 53535 # Solaris does not have _LP64=1 in the old build. 53536 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 53537 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 53538 fi 53539 fi 53540 53541 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 53542 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53543 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 53544 -Wunused-value -Woverloaded-virtual" 53545 53546 if test "x$TOOLCHAIN_TYPE" = xgcc; then 53547 53548 53549 53550 53551 53552 53553 53554 53555 53556 53557 53558 53559 53560 53561 53562 53563 53564 53565 53566 53567 53568 53569 53570 53571 53572 53573 53574 53575 53576 53577 53578 53579 53580 53581 53582 53583 53584 53585 53586 53587 53588 53589 53590 53591 53592 53593 53594 53595 53596 53597 53598 53599 53600 53601 # Execute function body 53602 53603 # Need to assign to a variable since m4 is blocked from modifying parts in []. 53604 REFERENCE_VERSION=4.8 53605 53606 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 53607 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 53608 fi 53609 53610 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 53611 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 53612 fi 53613 53614 # Version comparison method inspired by http://stackoverflow.com/a/24067243 53615 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 53616 53617 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 53618 : 53619 53620 # These flags either do not work or give spurious warnings prior to gcc 4.8. 53621 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 53622 53623 53624 else 53625 : 53626 53627 fi 53628 53629 53630 53631 53632 53633 53634 53635 53636 53637 53638 53639 53640 53641 53642 fi 53643 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 53644 # Non-zero builds have stricter warnings 53645 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 53646 else 53647 if test "x$TOOLCHAIN_TYPE" = xclang; then 53648 # Some versions of llvm do not like -Wundef 53649 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 53650 fi 53651 fi 53652 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53653 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 53654 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 53655 fi 53656 53657 # Additional macosx handling 53658 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53659 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 53660 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 53661 # JDK can be built and makes the linked binaries compatible even if built on 53662 # a newer version of the OS. 53663 MACOSX_VERSION_MIN=10.7.0 53664 53665 53666 # Setting --with-macosx-version-max=<version> makes it an error to build or 53667 # link to macosx APIs that are newer than the given OS version. The expected 53668 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 53669 53670 # Check whether --with-macosx-version-max was given. 53671 if test "${with_macosx_version_max+set}" = set; then : 53672 withval=$with_macosx_version_max; 53673 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 53674 MACOSX_VERSION_MAX=$with_macosx_version_max 53675 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 53676 MACOSX_VERSION_MAX=$with_macosx_version_max 53677 elif test "x$with_macosx_version_max" = "xno"; then 53678 # Use build system default 53679 MACOSX_VERSION_MAX= 53680 else 53681 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 53682 fi 53683 53684 else 53685 MACOSX_VERSION_MAX= 53686 53687 fi 53688 53689 53690 53691 # Let the flags variables get resolved in make for easier override on make 53692 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 53693 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53694 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 53695 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53696 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53697 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 53698 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 53699 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53700 53701 if test -n "$MACOSX_VERSION_MAX"; then 53702 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53703 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 53704 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 53705 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 53706 fi 53707 fi 53708 53709 # Setup some hard coded includes 53710 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53711 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 53712 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base/\$(OPENJDK_TARGET_OS_INCLUDE_SUBDIR) \ 53713 -I${TOPDIR}/src/java.base/share/native/libjava \ 53714 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava \ 53715 -I${TOPDIR}/src/hotspot/share/include \ 53716 -I${TOPDIR}/src/hotspot/os/${HOTSPOT_BUILD_OS_TYPE}/include" 53717 53718 # The shared libraries are compiled using the picflag. 53719 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53720 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 53721 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53722 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 53723 53724 # Executable flags 53725 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 53726 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 53727 53728 53729 53730 53731 53732 53733 # Setup LDFLAGS et al. 53734 # 53735 53736 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53737 LDFLAGS_MICROSOFT="-nologo -opt:ref" 53738 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 53739 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 53740 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 53741 LDFLAGS_SAFESH="-safeseh" 53742 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 53743 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 53744 # NOTE: Old build added -machine. Probably not needed. 53745 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 53746 else 53747 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 53748 fi 53749 elif test "x$TOOLCHAIN_TYPE" = xclang; then 53750 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 53751 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53752 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 53753 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 53754 fi 53755 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 53756 # If this is a --hash-style=gnu system, use --hash-style=both, why? 53757 # We have previously set HAS_GNU_HASH if this is the case 53758 if test -n "$HAS_GNU_HASH"; then 53759 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 53760 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 53761 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 53762 fi 53763 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53764 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 53765 fi 53766 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53767 # And since we now know that the linker is gnu, then add -z defs, to forbid 53768 # undefined symbols in object files. 53769 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 53770 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 53771 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 53772 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 53773 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 53774 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53775 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 53776 fi 53777 case $DEBUG_LEVEL in 53778 release ) 53779 # tell linker to optimize libraries. 53780 # Should this be supplied to the OSS linker as well? 53781 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 53782 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 53783 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 53784 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53785 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53786 fi 53787 ;; 53788 slowdebug ) 53789 # Hotspot always let the linker optimize 53790 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 53791 if test "x$HAS_LINKER_NOW" = "xtrue"; then 53792 # do relocations at load 53793 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 53794 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 53795 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 53796 fi 53797 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53798 # mark relocations read only 53799 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 53800 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 53801 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53802 fi 53803 ;; 53804 fastdebug ) 53805 # Hotspot always let the linker optimize 53806 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 53807 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53808 # mark relocations read only 53809 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 53810 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 53811 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53812 fi 53813 ;; 53814 * ) 53815 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 53816 ;; 53817 esac 53818 fi 53819 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53820 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 53821 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 53822 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 53823 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 53824 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 53825 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 53826 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 53827 fi 53828 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53829 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K -bdatapsize:64K -bstackpsize:64K" 53830 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 53831 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 53832 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 53833 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 53834 # so for slowdebug we build with '-qpic=large -bbigtoc'. 53835 if test "x$DEBUG_LEVEL" = xslowdebug; then 53836 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -bbigtoc" 53837 fi 53838 fi 53839 53840 # Customize LDFLAGS for executables 53841 53842 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 53843 53844 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53845 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 53846 LDFLAGS_STACK_SIZE=1048576 53847 else 53848 LDFLAGS_STACK_SIZE=327680 53849 fi 53850 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 53851 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 53852 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 53853 fi 53854 53855 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53856 53857 # Customize LDFLAGS for libs 53858 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 53859 53860 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 53861 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 53862 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53863 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53864 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 53865 OPENJDK_BUILD_JDKLIB_LIBS="" 53866 else 53867 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53868 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 53869 53870 if test "xBUILD" = "xTARGET"; then 53871 # On some platforms (mac) the linker warns about non existing -L dirs. 53872 # For any of the variants server, client or minimal, the dir matches the 53873 # variant name. The "main" variant should be used for linking. For the 53874 # rest, the dir is just server. 53875 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 53876 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 53877 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53878 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 53879 else 53880 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53881 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53882 fi 53883 elif test "xBUILD" = "xBUILD"; then 53884 # When building a buildjdk, it's always only the server variant 53885 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53886 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53887 fi 53888 53889 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 53890 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53891 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 53892 fi 53893 53894 fi 53895 53896 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 53897 53898 # Set OPENJDK_BUILD_JVM_LIBS (per os) 53899 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53900 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 53901 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 53902 # FIXME: This hard-coded path is not really proper. 53903 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 53904 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 53905 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 53906 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 53907 fi 53908 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 53909 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 53910 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53911 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 53912 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53913 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 53914 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 53915 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 53916 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 53917 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 53918 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 53919 wsock32.lib winmm.lib version.lib psapi.lib" 53920 fi 53921 53922 # Set OPENJDK_BUILD_JVM_ASFLAGS 53923 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53924 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53925 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 53926 fi 53927 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53928 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 53929 fi 53930 53931 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53932 53933 53934 53935 53936 53937 53938 53939 53940 53941 53942 53943 53944 53945 53946 53947 53948 # Tests are only ever compiled for TARGET 53949 # Flags for compiling test libraries 53950 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 53951 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 53952 53953 # Flags for compiling test executables 53954 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 53955 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 53956 53957 53958 53959 53960 53961 53962 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 53963 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 53964 53965 53966 53967 53968 53969 53970 # Check that the compiler supports -mX (or -qX on AIX) flags 53971 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 53972 53973 53974 53975 53976 53977 53978 53979 53980 53981 53982 53983 53984 53985 53986 53987 53988 53989 53990 53991 53992 53993 53994 53995 53996 53997 53998 53999 54000 54001 54002 54003 54004 54005 54006 54007 54008 54009 54010 54011 54012 54013 54014 54015 54016 54017 54018 54019 # Execute function body 54020 54021 54022 54023 54024 54025 54026 54027 54028 54029 54030 54031 54032 54033 54034 54035 54036 54037 54038 54039 54040 54041 54042 54043 54044 54045 54046 54047 54048 54049 54050 54051 54052 54053 54054 54055 54056 54057 54058 54059 54060 54061 54062 54063 54064 54065 54066 54067 54068 # Execute function body 54069 54070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54071 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54072 supports=yes 54073 54074 saved_cflags="$CFLAGS" 54075 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 54076 ac_ext=c 54077 ac_cpp='$CPP $CPPFLAGS' 54078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54080 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54081 54082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54083 /* end confdefs.h. */ 54084 int i; 54085 _ACEOF 54086 if ac_fn_c_try_compile "$LINENO"; then : 54087 54088 else 54089 supports=no 54090 fi 54091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54092 ac_ext=cpp 54093 ac_cpp='$CXXCPP $CPPFLAGS' 54094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54097 54098 CFLAGS="$saved_cflags" 54099 54100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54101 $as_echo "$supports" >&6; } 54102 if test "x$supports" = "xyes" ; then 54103 : 54104 C_COMP_SUPPORTS="yes" 54105 else 54106 : 54107 C_COMP_SUPPORTS="no" 54108 fi 54109 54110 54111 54112 54113 54114 54115 54116 54117 54118 54119 54120 54121 54122 54123 54124 54125 54126 54127 54128 54129 54130 54131 54132 54133 54134 54135 54136 54137 54138 54139 54140 54141 54142 54143 54144 54145 54146 54147 54148 54149 54150 54151 54152 54153 54154 54155 54156 54157 54158 54159 54160 54161 54162 54163 54164 54165 54166 54167 54168 # Execute function body 54169 54170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54171 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54172 supports=yes 54173 54174 saved_cxxflags="$CXXFLAGS" 54175 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 54176 ac_ext=cpp 54177 ac_cpp='$CXXCPP $CPPFLAGS' 54178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54181 54182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54183 /* end confdefs.h. */ 54184 int i; 54185 _ACEOF 54186 if ac_fn_cxx_try_compile "$LINENO"; then : 54187 54188 else 54189 supports=no 54190 fi 54191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54192 ac_ext=cpp 54193 ac_cpp='$CXXCPP $CPPFLAGS' 54194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54197 54198 CXXFLAGS="$saved_cxxflags" 54199 54200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54201 $as_echo "$supports" >&6; } 54202 if test "x$supports" = "xyes" ; then 54203 : 54204 CXX_COMP_SUPPORTS="yes" 54205 else 54206 : 54207 CXX_COMP_SUPPORTS="no" 54208 fi 54209 54210 54211 54212 54213 54214 54215 54216 54217 54218 54219 54220 54221 54222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54223 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54224 supports=no 54225 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54226 54227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54228 $as_echo "$supports" >&6; } 54229 if test "x$supports" = "xyes" ; then 54230 : 54231 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 54232 else 54233 : 54234 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 54235 fi 54236 54237 54238 54239 54240 54241 54242 54243 54244 # Check whether --enable-warnings-as-errors was given. 54245 if test "${enable_warnings_as_errors+set}" = set; then : 54246 enableval=$enable_warnings_as_errors; 54247 fi 54248 54249 54250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 54251 $as_echo_n "checking if native warnings are errors... " >&6; } 54252 if test "x$enable_warnings_as_errors" = "xyes"; then 54253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 54254 $as_echo "yes (explicitly set)" >&6; } 54255 WARNINGS_AS_ERRORS=true 54256 elif test "x$enable_warnings_as_errors" = "xno"; then 54257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54258 $as_echo "no" >&6; } 54259 WARNINGS_AS_ERRORS=false 54260 elif test "x$enable_warnings_as_errors" = "x"; then 54261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 54262 $as_echo "yes (default)" >&6; } 54263 WARNINGS_AS_ERRORS=true 54264 else 54265 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 54266 fi 54267 54268 54269 54270 case "${TOOLCHAIN_TYPE}" in 54271 microsoft) 54272 DISABLE_WARNING_PREFIX="-wd" 54273 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 54274 ;; 54275 solstudio) 54276 DISABLE_WARNING_PREFIX="-erroff=" 54277 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 54278 ;; 54279 gcc) 54280 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 54281 54282 54283 54284 54285 54286 54287 54288 54289 54290 54291 54292 54293 54294 54295 54296 54297 54298 54299 54300 54301 54302 54303 54304 54305 54306 54307 54308 54309 54310 54311 54312 54313 54314 54315 54316 54317 54318 54319 54320 54321 54322 54323 54324 54325 54326 54327 54328 # Execute function body 54329 54330 54331 54332 54333 54334 54335 54336 54337 54338 54339 54340 54341 54342 54343 54344 54345 54346 54347 54348 54349 54350 54351 54352 54353 54354 54355 54356 54357 54358 54359 54360 54361 54362 54363 54364 54365 54366 54367 54368 54369 54370 54371 54372 54373 54374 54375 54376 54377 # Execute function body 54378 54379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54380 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54381 supports=yes 54382 54383 saved_cflags="$CFLAGS" 54384 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 54385 ac_ext=c 54386 ac_cpp='$CPP $CPPFLAGS' 54387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54389 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54390 54391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54392 /* end confdefs.h. */ 54393 int i; 54394 _ACEOF 54395 if ac_fn_c_try_compile "$LINENO"; then : 54396 54397 else 54398 supports=no 54399 fi 54400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54401 ac_ext=cpp 54402 ac_cpp='$CXXCPP $CPPFLAGS' 54403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54406 54407 CFLAGS="$saved_cflags" 54408 54409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54410 $as_echo "$supports" >&6; } 54411 if test "x$supports" = "xyes" ; then 54412 : 54413 C_COMP_SUPPORTS="yes" 54414 else 54415 : 54416 C_COMP_SUPPORTS="no" 54417 fi 54418 54419 54420 54421 54422 54423 54424 54425 54426 54427 54428 54429 54430 54431 54432 54433 54434 54435 54436 54437 54438 54439 54440 54441 54442 54443 54444 54445 54446 54447 54448 54449 54450 54451 54452 54453 54454 54455 54456 54457 54458 54459 54460 54461 54462 54463 54464 54465 54466 54467 54468 54469 54470 54471 54472 54473 54474 54475 54476 54477 # Execute function body 54478 54479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54480 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54481 supports=yes 54482 54483 saved_cxxflags="$CXXFLAGS" 54484 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 54485 ac_ext=cpp 54486 ac_cpp='$CXXCPP $CPPFLAGS' 54487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54490 54491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54492 /* end confdefs.h. */ 54493 int i; 54494 _ACEOF 54495 if ac_fn_cxx_try_compile "$LINENO"; then : 54496 54497 else 54498 supports=no 54499 fi 54500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54501 ac_ext=cpp 54502 ac_cpp='$CXXCPP $CPPFLAGS' 54503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54506 54507 CXXFLAGS="$saved_cxxflags" 54508 54509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54510 $as_echo "$supports" >&6; } 54511 if test "x$supports" = "xyes" ; then 54512 : 54513 CXX_COMP_SUPPORTS="yes" 54514 else 54515 : 54516 CXX_COMP_SUPPORTS="no" 54517 fi 54518 54519 54520 54521 54522 54523 54524 54525 54526 54527 54528 54529 54530 54531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54532 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54533 supports=no 54534 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54535 54536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54537 $as_echo "$supports" >&6; } 54538 if test "x$supports" = "xyes" ; then 54539 : 54540 GCC_CAN_DISABLE_WARNINGS=true 54541 else 54542 : 54543 GCC_CAN_DISABLE_WARNINGS=false 54544 54545 fi 54546 54547 54548 54549 54550 54551 54552 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 54553 DISABLE_WARNING_PREFIX="-Wno-" 54554 else 54555 DISABLE_WARNING_PREFIX= 54556 fi 54557 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 54558 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 54559 # CFLAGS since any target specific flags will likely not work with the 54560 # build compiler 54561 CC_OLD="$CC" 54562 CXX_OLD="$CXX" 54563 CC="$BUILD_CC" 54564 CXX="$BUILD_CXX" 54565 CFLAGS_OLD="$CFLAGS" 54566 CFLAGS="" 54567 54568 54569 54570 54571 54572 54573 54574 54575 54576 54577 54578 54579 54580 54581 54582 54583 54584 54585 54586 54587 54588 54589 54590 54591 54592 54593 54594 54595 54596 54597 54598 54599 54600 54601 54602 54603 54604 54605 54606 54607 54608 54609 54610 54611 54612 54613 54614 # Execute function body 54615 54616 54617 54618 54619 54620 54621 54622 54623 54624 54625 54626 54627 54628 54629 54630 54631 54632 54633 54634 54635 54636 54637 54638 54639 54640 54641 54642 54643 54644 54645 54646 54647 54648 54649 54650 54651 54652 54653 54654 54655 54656 54657 54658 54659 54660 54661 54662 54663 # Execute function body 54664 54665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54666 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54667 supports=yes 54668 54669 saved_cflags="$CFLAGS" 54670 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 54671 ac_ext=c 54672 ac_cpp='$CPP $CPPFLAGS' 54673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54675 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54676 54677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54678 /* end confdefs.h. */ 54679 int i; 54680 _ACEOF 54681 if ac_fn_c_try_compile "$LINENO"; then : 54682 54683 else 54684 supports=no 54685 fi 54686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54687 ac_ext=cpp 54688 ac_cpp='$CXXCPP $CPPFLAGS' 54689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54692 54693 CFLAGS="$saved_cflags" 54694 54695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54696 $as_echo "$supports" >&6; } 54697 if test "x$supports" = "xyes" ; then 54698 : 54699 C_COMP_SUPPORTS="yes" 54700 else 54701 : 54702 C_COMP_SUPPORTS="no" 54703 fi 54704 54705 54706 54707 54708 54709 54710 54711 54712 54713 54714 54715 54716 54717 54718 54719 54720 54721 54722 54723 54724 54725 54726 54727 54728 54729 54730 54731 54732 54733 54734 54735 54736 54737 54738 54739 54740 54741 54742 54743 54744 54745 54746 54747 54748 54749 54750 54751 54752 54753 54754 54755 54756 54757 54758 54759 54760 54761 54762 54763 # Execute function body 54764 54765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54766 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54767 supports=yes 54768 54769 saved_cxxflags="$CXXFLAGS" 54770 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 54771 ac_ext=cpp 54772 ac_cpp='$CXXCPP $CPPFLAGS' 54773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54776 54777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54778 /* end confdefs.h. */ 54779 int i; 54780 _ACEOF 54781 if ac_fn_cxx_try_compile "$LINENO"; then : 54782 54783 else 54784 supports=no 54785 fi 54786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54787 ac_ext=cpp 54788 ac_cpp='$CXXCPP $CPPFLAGS' 54789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54792 54793 CXXFLAGS="$saved_cxxflags" 54794 54795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54796 $as_echo "$supports" >&6; } 54797 if test "x$supports" = "xyes" ; then 54798 : 54799 CXX_COMP_SUPPORTS="yes" 54800 else 54801 : 54802 CXX_COMP_SUPPORTS="no" 54803 fi 54804 54805 54806 54807 54808 54809 54810 54811 54812 54813 54814 54815 54816 54817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54818 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54819 supports=no 54820 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54821 54822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54823 $as_echo "$supports" >&6; } 54824 if test "x$supports" = "xyes" ; then 54825 : 54826 BUILD_CC_CAN_DISABLE_WARNINGS=true 54827 else 54828 : 54829 BUILD_CC_CAN_DISABLE_WARNINGS=false 54830 54831 fi 54832 54833 54834 54835 54836 54837 54838 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 54839 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 54840 else 54841 BUILD_CC_DISABLE_WARNING_PREFIX= 54842 fi 54843 CC="$CC_OLD" 54844 CXX="$CXX_OLD" 54845 CFLAGS="$CFLAGS_OLD" 54846 ;; 54847 clang) 54848 DISABLE_WARNING_PREFIX="-Wno-" 54849 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 54850 ;; 54851 xlc) 54852 DISABLE_WARNING_PREFIX="-qsuppress=" 54853 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 54854 ;; 54855 esac 54856 54857 54858 54859 54860 54861 # Setup debug symbols (need objcopy from the toolchain for that) 54862 54863 # 54864 # NATIVE_DEBUG_SYMBOLS 54865 # This must be done after the toolchain is setup, since we're looking at objcopy. 54866 # 54867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 54868 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 54869 54870 # Check whether --with-native-debug-symbols was given. 54871 if test "${with_native_debug_symbols+set}" = set; then : 54872 withval=$with_native_debug_symbols; 54873 if test "x$OPENJDK_TARGET_OS" = xaix; then 54874 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 54875 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 54876 fi 54877 fi 54878 54879 else 54880 54881 if test "x$OPENJDK_TARGET_OS" = xaix; then 54882 # AIX doesn't support 'external' so use 'internal' as default 54883 with_native_debug_symbols="internal" 54884 else 54885 if test "x$STATIC_BUILD" = xtrue; then 54886 with_native_debug_symbols="none" 54887 else 54888 with_native_debug_symbols="external" 54889 fi 54890 fi 54891 54892 fi 54893 54894 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 54895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 54896 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 54897 54898 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 54899 54900 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 54901 if test "x$OBJCOPY" = x; then 54902 # enabling of enable-debug-symbols and can't find objcopy 54903 # this is an error 54904 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54905 fi 54906 fi 54907 54908 COMPILE_WITH_DEBUG_SYMBOLS=true 54909 COPY_DEBUG_SYMBOLS=true 54910 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 54911 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 54912 COMPILE_WITH_DEBUG_SYMBOLS=false 54913 COPY_DEBUG_SYMBOLS=false 54914 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54915 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 54916 COMPILE_WITH_DEBUG_SYMBOLS=true 54917 COPY_DEBUG_SYMBOLS=false 54918 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54919 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 54920 54921 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 54922 if test "x$OBJCOPY" = x; then 54923 # enabling of enable-debug-symbols and can't find objcopy 54924 # this is an error 54925 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54926 fi 54927 fi 54928 54929 COMPILE_WITH_DEBUG_SYMBOLS=true 54930 COPY_DEBUG_SYMBOLS=true 54931 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54932 else 54933 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 54934 fi 54935 54936 # --enable-debug-symbols is deprecated. 54937 # Please use --with-native-debug-symbols=[internal,external,zipped] . 54938 54939 # Check whether --enable-debug-symbols was given. 54940 if test "${enable_debug_symbols+set}" = set; then : 54941 enableval=$enable_debug_symbols; 54942 fi 54943 54944 if test "x$enable_debug_symbols" != x; then 54945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 54946 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 54947 54948 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 54949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 54950 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 54951 fi 54952 54953 fi 54954 54955 54956 # --enable-zip-debug-info is deprecated. 54957 # Please use --with-native-debug-symbols=zipped . 54958 54959 # Check whether --enable-zip-debug-info was given. 54960 if test "${enable_zip_debug_info+set}" = set; then : 54961 enableval=$enable_zip_debug_info; 54962 fi 54963 54964 if test "x$enable_zip_debug_info" != x; then 54965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 54966 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 54967 54968 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 54969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 54970 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 54971 fi 54972 54973 fi 54974 54975 54976 54977 54978 54979 54980 54981 # Check whether --enable-native-coverage was given. 54982 if test "${enable_native_coverage+set}" = set; then : 54983 enableval=$enable_native_coverage; 54984 fi 54985 54986 GCOV_ENABLED="false" 54987 if test "x$enable_native_coverage" = "xyes"; then 54988 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 54989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54990 $as_echo_n "checking if native coverage is enabled... " >&6; } 54991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54992 $as_echo "yes" >&6; } 54993 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 54994 GCOV_LDFLAGS="-fprofile-arcs" 54995 JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" 54996 JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" 54997 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 54998 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 54999 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 55000 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 55001 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 55002 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 55003 GCOV_ENABLED="true" 55004 else 55005 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 55006 fi 55007 elif test "x$enable_native_coverage" = "xno"; then 55008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 55009 $as_echo_n "checking if native coverage is enabled... " >&6; } 55010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55011 $as_echo "no" >&6; } 55012 elif test "x$enable_native_coverage" != "x"; then 55013 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 55014 fi 55015 55016 55017 55018 55019 # AddressSanitizer 55020 55021 # Check whether --enable-asan was given. 55022 if test "${enable_asan+set}" = set; then : 55023 enableval=$enable_asan; 55024 fi 55025 55026 ASAN_ENABLED="no" 55027 if test "x$enable_asan" = "xyes"; then 55028 case $TOOLCHAIN_TYPE in 55029 gcc | clang) 55030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asan is enabled" >&5 55031 $as_echo_n "checking if asan is enabled... " >&6; } 55032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55033 $as_echo "yes" >&6; } 55034 ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" 55035 ASAN_LDFLAGS="-fsanitize=address" 55036 JVM_CFLAGS="$JVM_CFLAGS $ASAN_CFLAGS" 55037 JVM_LDFLAGS="$JVM_LDFLAGS $ASAN_LDFLAGS" 55038 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $ASAN_CFLAGS" 55039 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $ASAN_CFLAGS" 55040 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $ASAN_CFLAGS" 55041 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $ASAN_CFLAGS" 55042 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $ASAN_LDFLAGS" 55043 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $ASAN_LDFLAGS" 55044 ASAN_ENABLED="yes" 55045 ;; 55046 *) 55047 as_fn_error $? "--enable-asan only works with toolchain type gcc or clang" "$LINENO" 5 55048 ;; 55049 esac 55050 elif test "x$enable_asan" = "xno"; then 55051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asan is enabled" >&5 55052 $as_echo_n "checking if asan is enabled... " >&6; } 55053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55054 $as_echo "no" >&6; } 55055 elif test "x$enable_asan" != "x"; then 55056 as_fn_error $? "--enable-asan can only be assigned \"yes\" or \"no\"" "$LINENO" 5 55057 fi 55058 55059 55060 55061 55062 # Need toolchain to setup dtrace 55063 55064 # Test for dtrace dependencies 55065 # Check whether --enable-dtrace was given. 55066 if test "${enable_dtrace+set}" = set; then : 55067 enableval=$enable_dtrace; 55068 fi 55069 55070 55071 DTRACE_DEP_MISSING=false 55072 55073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 55074 $as_echo_n "checking for dtrace tool... " >&6; } 55075 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 55076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 55077 $as_echo "$DTRACE" >&6; } 55078 else 55079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 55080 $as_echo "not found, cannot build dtrace" >&6; } 55081 DTRACE_DEP_MISSING=true 55082 fi 55083 55084 for ac_header in sys/sdt.h 55085 do : 55086 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 55087 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 55088 cat >>confdefs.h <<_ACEOF 55089 #define HAVE_SYS_SDT_H 1 55090 _ACEOF 55091 DTRACE_HEADERS_OK=yes 55092 else 55093 DTRACE_HEADERS_OK=no 55094 fi 55095 55096 done 55097 55098 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 55099 DTRACE_DEP_MISSING=true 55100 fi 55101 55102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 55103 $as_echo_n "checking if dtrace should be built... " >&6; } 55104 if test "x$enable_dtrace" = "xyes"; then 55105 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 55106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 55107 $as_echo "no, missing dependencies" >&6; } 55108 55109 # Print a helpful message on how to acquire the necessary build dependency. 55110 # dtrace is the help tag: freetype, cups, alsa etc 55111 MISSING_DEPENDENCY=dtrace 55112 55113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55114 cygwin_help $MISSING_DEPENDENCY 55115 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55116 msys_help $MISSING_DEPENDENCY 55117 else 55118 PKGHANDLER_COMMAND= 55119 55120 case $PKGHANDLER in 55121 apt-get) 55122 apt_help $MISSING_DEPENDENCY ;; 55123 yum) 55124 yum_help $MISSING_DEPENDENCY ;; 55125 brew) 55126 brew_help $MISSING_DEPENDENCY ;; 55127 port) 55128 port_help $MISSING_DEPENDENCY ;; 55129 pkgutil) 55130 pkgutil_help $MISSING_DEPENDENCY ;; 55131 pkgadd) 55132 pkgadd_help $MISSING_DEPENDENCY ;; 55133 esac 55134 55135 if test "x$PKGHANDLER_COMMAND" != x; then 55136 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 55137 fi 55138 fi 55139 55140 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 55141 else 55142 INCLUDE_DTRACE=true 55143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 55144 $as_echo "yes, forced" >&6; } 55145 fi 55146 elif test "x$enable_dtrace" = "xno"; then 55147 INCLUDE_DTRACE=false 55148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55149 $as_echo "no, forced" >&6; } 55150 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 55151 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 55152 INCLUDE_DTRACE=false 55153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 55154 $as_echo "no, missing dependencies" >&6; } 55155 else 55156 INCLUDE_DTRACE=true 55157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 55158 $as_echo "yes, dependencies present" >&6; } 55159 fi 55160 else 55161 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 55162 fi 55163 55164 55165 # Check whether --enable-aot was given. 55166 if test "${enable_aot+set}" = set; then : 55167 enableval=$enable_aot; 55168 fi 55169 55170 55171 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then 55172 ENABLE_AOT="true" 55173 elif test "x$enable_aot" = "xyes"; then 55174 ENABLE_AOT="true" 55175 elif test "x$enable_aot" = "xno"; then 55176 ENABLE_AOT="false" 55177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 55178 $as_echo_n "checking if aot should be enabled... " >&6; } 55179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55180 $as_echo "no, forced" >&6; } 55181 else 55182 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5 55183 fi 55184 55185 if test "x$ENABLE_AOT" = "xtrue"; then 55186 # Only enable AOT on X64 platforms. 55187 if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 55188 if test -e "${TOPDIR}/src/jdk.aot"; then 55189 if test -e "${TOPDIR}/src/jdk.internal.vm.compiler"; then 55190 ENABLE_AOT="true" 55191 else 55192 ENABLE_AOT="false" 55193 if test "x$enable_aot" = "xyes"; then 55194 as_fn_error $? "Cannot build AOT without src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5 55195 fi 55196 fi 55197 else 55198 ENABLE_AOT="false" 55199 if test "x$enable_aot" = "xyes"; then 55200 as_fn_error $? "Cannot build AOT without src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5 55201 fi 55202 fi 55203 else 55204 ENABLE_AOT="false" 55205 if test "x$enable_aot" = "xyes"; then 55206 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5 55207 fi 55208 fi 55209 fi 55210 55211 55212 55213 55214 # Check whether --enable-cds was given. 55215 if test "${enable_cds+set}" = set; then : 55216 enableval=$enable_cds; 55217 fi 55218 55219 55220 if test "x$enable_cds" = "x" || test "x$enable_cds" = "xyes"; then 55221 ENABLE_CDS="true" 55222 elif test "x$enable_cds" = "xno"; then 55223 ENABLE_CDS="false" 55224 else 55225 as_fn_error $? "Invalid value for --enable-cds: $enable_cds" "$LINENO" 5 55226 fi 55227 55228 55229 55230 55231 # Check whether --enable-hotspot-gtest was given. 55232 if test "${enable_hotspot_gtest+set}" = set; then : 55233 enableval=$enable_hotspot_gtest; 55234 fi 55235 55236 55237 if test -e "${TOPDIR}/test/hotspot/gtest"; then 55238 GTEST_DIR_EXISTS="true" 55239 else 55240 GTEST_DIR_EXISTS="false" 55241 fi 55242 55243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 55244 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 55245 if test "x$enable_hotspot_gtest" = "xyes"; then 55246 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 55247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 55248 $as_echo "yes, forced" >&6; } 55249 BUILD_GTEST="true" 55250 else 55251 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 55252 fi 55253 elif test "x$enable_hotspot_gtest" = "xno"; then 55254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55255 $as_echo "no, forced" >&6; } 55256 BUILD_GTEST="false" 55257 elif test "x$enable_hotspot_gtest" = "x"; then 55258 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 55259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55260 $as_echo "yes" >&6; } 55261 BUILD_GTEST="true" 55262 else 55263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55264 $as_echo "no" >&6; } 55265 BUILD_GTEST="false" 55266 fi 55267 else 55268 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 55269 fi 55270 55271 55272 55273 55274 ############################################################################### 55275 # 55276 # Check dependencies for external and internal libraries. 55277 # 55278 ############################################################################### 55279 55280 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 55281 55282 # When using cygwin or msys, we need a wrapper binary that renames 55283 # /cygdrive/c/ arguments into c:/ arguments and peeks into 55284 # @files and rewrites these too! This wrapper binary is 55285 # called fixpath. 55286 FIXPATH= 55287 if test "x$OPENJDK_BUILD_OS" = xwindows; then 55288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 55289 $as_echo_n "checking if fixpath can be created... " >&6; } 55290 FIXPATH_SRC="$TOPDIR/make/src/native/fixpath.c" 55291 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 55292 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 55293 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 55294 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 55295 FIXPATH="$FIXPATH_BIN -c" 55296 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 55297 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 55298 # @ was chosen as separator to minimize risk of other tools messing around with it 55299 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 55300 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 55301 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 55302 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 55303 fi 55304 FIXPATH_SRC_W="$FIXPATH_SRC" 55305 FIXPATH_BIN_W="$FIXPATH_BIN" 55306 55307 unix_path="$FIXPATH_SRC_W" 55308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55309 windows_path=`$CYGPATH -m "$unix_path"` 55310 FIXPATH_SRC_W="$windows_path" 55311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55312 windows_path=`cmd //c echo $unix_path` 55313 FIXPATH_SRC_W="$windows_path" 55314 fi 55315 55316 55317 unix_path="$FIXPATH_BIN_W" 55318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55319 windows_path=`$CYGPATH -m "$unix_path"` 55320 FIXPATH_BIN_W="$windows_path" 55321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55322 windows_path=`cmd //c echo $unix_path` 55323 FIXPATH_BIN_W="$windows_path" 55324 fi 55325 55326 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 55327 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 55328 cd $FIXPATH_DIR 55329 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 55330 cd $CURDIR 55331 55332 if test ! -x $FIXPATH_BIN; then 55333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55334 $as_echo "no" >&6; } 55335 cat $FIXPATH_DIR/fixpath1.log 55336 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 55337 fi 55338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55339 $as_echo "yes" >&6; } 55340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 55341 $as_echo_n "checking if fixpath.exe works... " >&6; } 55342 cd $FIXPATH_DIR 55343 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 55344 > $FIXPATH_DIR/fixpath2.log 2>&1 55345 cd $CURDIR 55346 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 55347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55348 $as_echo "no" >&6; } 55349 cat $FIXPATH_DIR/fixpath2.log 55350 as_fn_error $? "fixpath did not work!" "$LINENO" 5 55351 fi 55352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55353 $as_echo "yes" >&6; } 55354 55355 FIXPATH_DETACH_FLAG="--detach" 55356 fi 55357 55358 55359 55360 55361 55362 55363 # Check if X11 is needed 55364 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 55365 # No X11 support on windows or macosx 55366 NEEDS_LIB_X11=false 55367 else 55368 # All other instances need X11, even if building headless only, libawt still 55369 # needs X11 headers. 55370 NEEDS_LIB_X11=true 55371 fi 55372 55373 # Check if fontconfig is needed 55374 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 55375 # No fontconfig support on windows or macosx 55376 NEEDS_LIB_FONTCONFIG=false 55377 else 55378 # All other instances need fontconfig, even if building headless only, 55379 # libawt still needs fontconfig headers. 55380 NEEDS_LIB_FONTCONFIG=true 55381 fi 55382 55383 # Check if cups is needed 55384 if test "x$OPENJDK_TARGET_OS" = xwindows; then 55385 # Windows have a separate print system 55386 NEEDS_LIB_CUPS=false 55387 else 55388 NEEDS_LIB_CUPS=true 55389 fi 55390 55391 # A custom hook may have set this already 55392 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 55393 NEEDS_LIB_FREETYPE=true 55394 fi 55395 55396 # Check if alsa is needed 55397 if test "x$OPENJDK_TARGET_OS" = xlinux; then 55398 NEEDS_LIB_ALSA=true 55399 else 55400 NEEDS_LIB_ALSA=false 55401 fi 55402 55403 # Check if ffi is needed 55404 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 55405 NEEDS_LIB_FFI=true 55406 else 55407 NEEDS_LIB_FFI=false 55408 fi 55409 55410 55411 # statically link libstdc++ before C++ ABI is stablized on Linux unless 55412 # dynamic build is configured on command line. 55413 55414 # Check whether --with-stdc++lib was given. 55415 if test "${with_stdc__lib+set}" = set; then : 55416 withval=$with_stdc__lib; 55417 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 55418 && test "x$with_stdc__lib" != xdefault; then 55419 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 55420 fi 55421 55422 else 55423 with_stdc__lib=default 55424 55425 fi 55426 55427 55428 if test "x$OPENJDK_TARGET_OS" = xlinux; then 55429 # Test if stdc++ can be linked statically. 55430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 55431 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 55432 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 55433 ac_ext=cpp 55434 ac_cpp='$CXXCPP $CPPFLAGS' 55435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 55436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 55437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 55438 55439 OLD_LIBS="$LIBS" 55440 LIBS="$STATIC_STDCXX_FLAGS" 55441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55442 /* end confdefs.h. */ 55443 55444 int 55445 main () 55446 { 55447 return 0; 55448 ; 55449 return 0; 55450 } 55451 _ACEOF 55452 if ac_fn_cxx_try_link "$LINENO"; then : 55453 has_static_libstdcxx=yes 55454 else 55455 has_static_libstdcxx=no 55456 fi 55457 rm -f core conftest.err conftest.$ac_objext \ 55458 conftest$ac_exeext conftest.$ac_ext 55459 LIBS="$OLD_LIBS" 55460 ac_ext=cpp 55461 ac_cpp='$CXXCPP $CPPFLAGS' 55462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 55463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 55464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 55465 55466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 55467 $as_echo "$has_static_libstdcxx" >&6; } 55468 55469 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 55470 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 55471 fi 55472 55473 # If dynamic was requested, it's available since it would fail above otherwise. 55474 # If dynamic wasn't requested, go with static unless it isn't available. 55475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 55476 $as_echo_n "checking how to link with libstdc++... " >&6; } 55477 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno ; then 55478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 55479 $as_echo "dynamic" >&6; } 55480 else 55481 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 55482 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 55483 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 55484 # just use the same setting as for the TARGET toolchain. 55485 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 55486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 55487 $as_echo "static" >&6; } 55488 fi 55489 fi 55490 55491 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 55492 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 55493 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 55494 fi 55495 55496 55497 55498 # Setup Windows runtime dlls 55499 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 55500 55501 55502 # Check whether --with-msvcr-dll was given. 55503 if test "${with_msvcr_dll+set}" = set; then : 55504 withval=$with_msvcr_dll; 55505 fi 55506 55507 55508 if test "x$with_msvcr_dll" != x; then 55509 # If given explicitly by user, do not probe. If not present, fail directly. 55510 55511 DLL_NAME="$MSVCR_NAME" 55512 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 55513 METHOD="--with-msvcr-dll" 55514 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55515 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55516 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55517 55518 # Need to check if the found msvcr is correct architecture 55519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55520 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55521 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55523 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55524 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55525 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55526 CORRECT_MSVCR_ARCH="PE32 executable" 55527 else 55528 CORRECT_MSVCR_ARCH="PE32+ executable" 55529 fi 55530 else 55531 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55532 CORRECT_MSVCR_ARCH=386 55533 else 55534 CORRECT_MSVCR_ARCH=x86-64 55535 fi 55536 fi 55537 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55539 $as_echo "ok" >&6; } 55540 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55541 55542 # Only process if variable expands to non-empty 55543 55544 if test "x$MSVC_DLL" != x; then 55545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55546 55547 # Input might be given as Windows format, start by converting to 55548 # unix format. 55549 path="$MSVC_DLL" 55550 new_path=`$CYGPATH -u "$path"` 55551 55552 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55553 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55554 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55555 # "foo.exe" is OK but "foo" is an error. 55556 # 55557 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55558 # It is also a way to make sure we got the proper file name for the real test later on. 55559 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55560 if test "x$test_shortpath" = x; then 55561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55562 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55563 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55564 fi 55565 55566 # Call helper function which possibly converts this using DOS-style short mode. 55567 # If so, the updated path is stored in $new_path. 55568 55569 input_path="$new_path" 55570 # Check if we need to convert this using DOS-style short mode. If the path 55571 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55572 # take no chances and rewrite it. 55573 # Note: m4 eats our [], so we need to use [ and ] instead. 55574 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55575 if test "x$has_forbidden_chars" != x; then 55576 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55577 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55578 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55579 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55580 # Going to short mode and back again did indeed matter. Since short mode is 55581 # case insensitive, let's make it lowercase to improve readability. 55582 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55583 # Now convert it back to Unix-style (cygpath) 55584 input_path=`$CYGPATH -u "$shortmode_path"` 55585 new_path="$input_path" 55586 fi 55587 fi 55588 55589 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55590 if test "x$test_cygdrive_prefix" = x; then 55591 # As a simple fix, exclude /usr/bin since it's not a real path. 55592 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55593 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55594 # a path prefixed by /cygdrive for fixpath to work. 55595 new_path="$CYGWIN_ROOT_PATH$input_path" 55596 fi 55597 fi 55598 55599 55600 if test "x$path" != "x$new_path"; then 55601 MSVC_DLL="$new_path" 55602 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55603 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55604 fi 55605 55606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55607 55608 path="$MSVC_DLL" 55609 has_colon=`$ECHO $path | $GREP ^.:` 55610 new_path="$path" 55611 if test "x$has_colon" = x; then 55612 # Not in mixed or Windows style, start by that. 55613 new_path=`cmd //c echo $path` 55614 fi 55615 55616 55617 input_path="$new_path" 55618 # Check if we need to convert this using DOS-style short mode. If the path 55619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55620 # take no chances and rewrite it. 55621 # Note: m4 eats our [], so we need to use [ and ] instead. 55622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55623 if test "x$has_forbidden_chars" != x; then 55624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55625 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55626 fi 55627 55628 55629 windows_path="$new_path" 55630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55631 unix_path=`$CYGPATH -u "$windows_path"` 55632 new_path="$unix_path" 55633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55634 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55635 new_path="$unix_path" 55636 fi 55637 55638 if test "x$path" != "x$new_path"; then 55639 MSVC_DLL="$new_path" 55640 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55641 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55642 fi 55643 55644 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55645 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55646 55647 else 55648 # We're on a unix platform. Hooray! :) 55649 path="$MSVC_DLL" 55650 has_space=`$ECHO "$path" | $GREP " "` 55651 if test "x$has_space" != x; then 55652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55653 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55654 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55655 fi 55656 55657 # Use eval to expand a potential ~ 55658 eval path="$path" 55659 if test ! -f "$path" && test ! -d "$path"; then 55660 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55661 fi 55662 55663 if test -d "$path"; then 55664 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55665 else 55666 dir="`$DIRNAME "$path"`" 55667 base="`$BASENAME "$path"`" 55668 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55669 fi 55670 fi 55671 fi 55672 55673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55674 $as_echo_n "checking for $DLL_NAME... " >&6; } 55675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55676 $as_echo "$MSVC_DLL" >&6; } 55677 else 55678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55679 $as_echo "incorrect, ignoring" >&6; } 55680 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55681 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55682 fi 55683 fi 55684 55685 if test "x$MSVC_DLL" = x; then 55686 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 55687 fi 55688 MSVCR_DLL="$MSVC_DLL" 55689 elif test "x$DEVKIT_MSVCR_DLL" != x; then 55690 55691 DLL_NAME="$MSVCR_NAME" 55692 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 55693 METHOD="devkit" 55694 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55695 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55696 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55697 55698 # Need to check if the found msvcr is correct architecture 55699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55700 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55701 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55703 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55704 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55705 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55706 CORRECT_MSVCR_ARCH="PE32 executable" 55707 else 55708 CORRECT_MSVCR_ARCH="PE32+ executable" 55709 fi 55710 else 55711 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55712 CORRECT_MSVCR_ARCH=386 55713 else 55714 CORRECT_MSVCR_ARCH=x86-64 55715 fi 55716 fi 55717 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55719 $as_echo "ok" >&6; } 55720 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55721 55722 # Only process if variable expands to non-empty 55723 55724 if test "x$MSVC_DLL" != x; then 55725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55726 55727 # Input might be given as Windows format, start by converting to 55728 # unix format. 55729 path="$MSVC_DLL" 55730 new_path=`$CYGPATH -u "$path"` 55731 55732 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55733 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55734 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55735 # "foo.exe" is OK but "foo" is an error. 55736 # 55737 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55738 # It is also a way to make sure we got the proper file name for the real test later on. 55739 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55740 if test "x$test_shortpath" = x; then 55741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55742 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55743 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55744 fi 55745 55746 # Call helper function which possibly converts this using DOS-style short mode. 55747 # If so, the updated path is stored in $new_path. 55748 55749 input_path="$new_path" 55750 # Check if we need to convert this using DOS-style short mode. If the path 55751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55752 # take no chances and rewrite it. 55753 # Note: m4 eats our [], so we need to use [ and ] instead. 55754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55755 if test "x$has_forbidden_chars" != x; then 55756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55757 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55758 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55759 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55760 # Going to short mode and back again did indeed matter. Since short mode is 55761 # case insensitive, let's make it lowercase to improve readability. 55762 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55763 # Now convert it back to Unix-style (cygpath) 55764 input_path=`$CYGPATH -u "$shortmode_path"` 55765 new_path="$input_path" 55766 fi 55767 fi 55768 55769 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55770 if test "x$test_cygdrive_prefix" = x; then 55771 # As a simple fix, exclude /usr/bin since it's not a real path. 55772 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55773 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55774 # a path prefixed by /cygdrive for fixpath to work. 55775 new_path="$CYGWIN_ROOT_PATH$input_path" 55776 fi 55777 fi 55778 55779 55780 if test "x$path" != "x$new_path"; then 55781 MSVC_DLL="$new_path" 55782 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55783 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55784 fi 55785 55786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55787 55788 path="$MSVC_DLL" 55789 has_colon=`$ECHO $path | $GREP ^.:` 55790 new_path="$path" 55791 if test "x$has_colon" = x; then 55792 # Not in mixed or Windows style, start by that. 55793 new_path=`cmd //c echo $path` 55794 fi 55795 55796 55797 input_path="$new_path" 55798 # Check if we need to convert this using DOS-style short mode. If the path 55799 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55800 # take no chances and rewrite it. 55801 # Note: m4 eats our [], so we need to use [ and ] instead. 55802 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55803 if test "x$has_forbidden_chars" != x; then 55804 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55805 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55806 fi 55807 55808 55809 windows_path="$new_path" 55810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55811 unix_path=`$CYGPATH -u "$windows_path"` 55812 new_path="$unix_path" 55813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55814 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55815 new_path="$unix_path" 55816 fi 55817 55818 if test "x$path" != "x$new_path"; then 55819 MSVC_DLL="$new_path" 55820 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55821 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55822 fi 55823 55824 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55825 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55826 55827 else 55828 # We're on a unix platform. Hooray! :) 55829 path="$MSVC_DLL" 55830 has_space=`$ECHO "$path" | $GREP " "` 55831 if test "x$has_space" != x; then 55832 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55833 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55834 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55835 fi 55836 55837 # Use eval to expand a potential ~ 55838 eval path="$path" 55839 if test ! -f "$path" && test ! -d "$path"; then 55840 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55841 fi 55842 55843 if test -d "$path"; then 55844 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55845 else 55846 dir="`$DIRNAME "$path"`" 55847 base="`$BASENAME "$path"`" 55848 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55849 fi 55850 fi 55851 fi 55852 55853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55854 $as_echo_n "checking for $DLL_NAME... " >&6; } 55855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55856 $as_echo "$MSVC_DLL" >&6; } 55857 else 55858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55859 $as_echo "incorrect, ignoring" >&6; } 55860 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55861 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55862 fi 55863 fi 55864 55865 if test "x$MSVC_DLL" = x; then 55866 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 55867 fi 55868 MSVCR_DLL="$MSVC_DLL" 55869 else 55870 55871 DLL_NAME="${MSVCR_NAME}" 55872 MSVC_DLL= 55873 55874 if test "x$MSVC_DLL" = x; then 55875 # Probe: Using well-known location from Visual Studio 10.0 55876 if test "x$VCINSTALLDIR" != x; then 55877 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 55878 55879 windows_path="$CYGWIN_VC_INSTALL_DIR" 55880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55881 unix_path=`$CYGPATH -u "$windows_path"` 55882 CYGWIN_VC_INSTALL_DIR="$unix_path" 55883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55884 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55885 CYGWIN_VC_INSTALL_DIR="$unix_path" 55886 fi 55887 55888 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55889 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55890 else 55891 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55892 fi 55893 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 55894 55895 DLL_NAME="$DLL_NAME" 55896 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55897 METHOD="well-known location in VCINSTALLDIR" 55898 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55899 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55900 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55901 55902 # Need to check if the found msvcr is correct architecture 55903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55904 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55905 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55906 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55907 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55908 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55909 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55910 CORRECT_MSVCR_ARCH="PE32 executable" 55911 else 55912 CORRECT_MSVCR_ARCH="PE32+ executable" 55913 fi 55914 else 55915 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55916 CORRECT_MSVCR_ARCH=386 55917 else 55918 CORRECT_MSVCR_ARCH=x86-64 55919 fi 55920 fi 55921 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55923 $as_echo "ok" >&6; } 55924 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55925 55926 # Only process if variable expands to non-empty 55927 55928 if test "x$MSVC_DLL" != x; then 55929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55930 55931 # Input might be given as Windows format, start by converting to 55932 # unix format. 55933 path="$MSVC_DLL" 55934 new_path=`$CYGPATH -u "$path"` 55935 55936 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55937 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55938 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55939 # "foo.exe" is OK but "foo" is an error. 55940 # 55941 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55942 # It is also a way to make sure we got the proper file name for the real test later on. 55943 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55944 if test "x$test_shortpath" = x; then 55945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55946 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55947 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55948 fi 55949 55950 # Call helper function which possibly converts this using DOS-style short mode. 55951 # If so, the updated path is stored in $new_path. 55952 55953 input_path="$new_path" 55954 # Check if we need to convert this using DOS-style short mode. If the path 55955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55956 # take no chances and rewrite it. 55957 # Note: m4 eats our [], so we need to use [ and ] instead. 55958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55959 if test "x$has_forbidden_chars" != x; then 55960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55961 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55962 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55963 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55964 # Going to short mode and back again did indeed matter. Since short mode is 55965 # case insensitive, let's make it lowercase to improve readability. 55966 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55967 # Now convert it back to Unix-style (cygpath) 55968 input_path=`$CYGPATH -u "$shortmode_path"` 55969 new_path="$input_path" 55970 fi 55971 fi 55972 55973 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55974 if test "x$test_cygdrive_prefix" = x; then 55975 # As a simple fix, exclude /usr/bin since it's not a real path. 55976 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55977 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55978 # a path prefixed by /cygdrive for fixpath to work. 55979 new_path="$CYGWIN_ROOT_PATH$input_path" 55980 fi 55981 fi 55982 55983 55984 if test "x$path" != "x$new_path"; then 55985 MSVC_DLL="$new_path" 55986 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55987 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55988 fi 55989 55990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55991 55992 path="$MSVC_DLL" 55993 has_colon=`$ECHO $path | $GREP ^.:` 55994 new_path="$path" 55995 if test "x$has_colon" = x; then 55996 # Not in mixed or Windows style, start by that. 55997 new_path=`cmd //c echo $path` 55998 fi 55999 56000 56001 input_path="$new_path" 56002 # Check if we need to convert this using DOS-style short mode. If the path 56003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56004 # take no chances and rewrite it. 56005 # Note: m4 eats our [], so we need to use [ and ] instead. 56006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56007 if test "x$has_forbidden_chars" != x; then 56008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56009 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56010 fi 56011 56012 56013 windows_path="$new_path" 56014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56015 unix_path=`$CYGPATH -u "$windows_path"` 56016 new_path="$unix_path" 56017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56019 new_path="$unix_path" 56020 fi 56021 56022 if test "x$path" != "x$new_path"; then 56023 MSVC_DLL="$new_path" 56024 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56025 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56026 fi 56027 56028 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56029 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56030 56031 else 56032 # We're on a unix platform. Hooray! :) 56033 path="$MSVC_DLL" 56034 has_space=`$ECHO "$path" | $GREP " "` 56035 if test "x$has_space" != x; then 56036 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56037 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56038 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56039 fi 56040 56041 # Use eval to expand a potential ~ 56042 eval path="$path" 56043 if test ! -f "$path" && test ! -d "$path"; then 56044 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56045 fi 56046 56047 if test -d "$path"; then 56048 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56049 else 56050 dir="`$DIRNAME "$path"`" 56051 base="`$BASENAME "$path"`" 56052 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56053 fi 56054 fi 56055 fi 56056 56057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56058 $as_echo_n "checking for $DLL_NAME... " >&6; } 56059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56060 $as_echo "$MSVC_DLL" >&6; } 56061 else 56062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56063 $as_echo "incorrect, ignoring" >&6; } 56064 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56065 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56066 fi 56067 fi 56068 56069 fi 56070 fi 56071 56072 if test "x$MSVC_DLL" = x; then 56073 # Probe: Check in the Boot JDK directory. 56074 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 56075 56076 DLL_NAME="$DLL_NAME" 56077 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56078 METHOD="well-known location in Boot JDK" 56079 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56080 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56081 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56082 56083 # Need to check if the found msvcr is correct architecture 56084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56085 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56086 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56088 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56089 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56090 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56091 CORRECT_MSVCR_ARCH="PE32 executable" 56092 else 56093 CORRECT_MSVCR_ARCH="PE32+ executable" 56094 fi 56095 else 56096 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56097 CORRECT_MSVCR_ARCH=386 56098 else 56099 CORRECT_MSVCR_ARCH=x86-64 56100 fi 56101 fi 56102 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56104 $as_echo "ok" >&6; } 56105 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56106 56107 # Only process if variable expands to non-empty 56108 56109 if test "x$MSVC_DLL" != x; then 56110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56111 56112 # Input might be given as Windows format, start by converting to 56113 # unix format. 56114 path="$MSVC_DLL" 56115 new_path=`$CYGPATH -u "$path"` 56116 56117 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56118 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56119 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56120 # "foo.exe" is OK but "foo" is an error. 56121 # 56122 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56123 # It is also a way to make sure we got the proper file name for the real test later on. 56124 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56125 if test "x$test_shortpath" = x; then 56126 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56127 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56128 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56129 fi 56130 56131 # Call helper function which possibly converts this using DOS-style short mode. 56132 # If so, the updated path is stored in $new_path. 56133 56134 input_path="$new_path" 56135 # Check if we need to convert this using DOS-style short mode. If the path 56136 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56137 # take no chances and rewrite it. 56138 # Note: m4 eats our [], so we need to use [ and ] instead. 56139 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56140 if test "x$has_forbidden_chars" != x; then 56141 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56142 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56143 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56144 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56145 # Going to short mode and back again did indeed matter. Since short mode is 56146 # case insensitive, let's make it lowercase to improve readability. 56147 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56148 # Now convert it back to Unix-style (cygpath) 56149 input_path=`$CYGPATH -u "$shortmode_path"` 56150 new_path="$input_path" 56151 fi 56152 fi 56153 56154 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56155 if test "x$test_cygdrive_prefix" = x; then 56156 # As a simple fix, exclude /usr/bin since it's not a real path. 56157 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56158 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56159 # a path prefixed by /cygdrive for fixpath to work. 56160 new_path="$CYGWIN_ROOT_PATH$input_path" 56161 fi 56162 fi 56163 56164 56165 if test "x$path" != "x$new_path"; then 56166 MSVC_DLL="$new_path" 56167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56168 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56169 fi 56170 56171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56172 56173 path="$MSVC_DLL" 56174 has_colon=`$ECHO $path | $GREP ^.:` 56175 new_path="$path" 56176 if test "x$has_colon" = x; then 56177 # Not in mixed or Windows style, start by that. 56178 new_path=`cmd //c echo $path` 56179 fi 56180 56181 56182 input_path="$new_path" 56183 # Check if we need to convert this using DOS-style short mode. If the path 56184 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56185 # take no chances and rewrite it. 56186 # Note: m4 eats our [], so we need to use [ and ] instead. 56187 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56188 if test "x$has_forbidden_chars" != x; then 56189 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56190 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56191 fi 56192 56193 56194 windows_path="$new_path" 56195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56196 unix_path=`$CYGPATH -u "$windows_path"` 56197 new_path="$unix_path" 56198 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56199 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56200 new_path="$unix_path" 56201 fi 56202 56203 if test "x$path" != "x$new_path"; then 56204 MSVC_DLL="$new_path" 56205 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56206 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56207 fi 56208 56209 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56210 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56211 56212 else 56213 # We're on a unix platform. Hooray! :) 56214 path="$MSVC_DLL" 56215 has_space=`$ECHO "$path" | $GREP " "` 56216 if test "x$has_space" != x; then 56217 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56218 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56219 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56220 fi 56221 56222 # Use eval to expand a potential ~ 56223 eval path="$path" 56224 if test ! -f "$path" && test ! -d "$path"; then 56225 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56226 fi 56227 56228 if test -d "$path"; then 56229 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56230 else 56231 dir="`$DIRNAME "$path"`" 56232 base="`$BASENAME "$path"`" 56233 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56234 fi 56235 fi 56236 fi 56237 56238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56239 $as_echo_n "checking for $DLL_NAME... " >&6; } 56240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56241 $as_echo "$MSVC_DLL" >&6; } 56242 else 56243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56244 $as_echo "incorrect, ignoring" >&6; } 56245 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56246 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56247 fi 56248 fi 56249 56250 fi 56251 56252 if test "x$MSVC_DLL" = x; then 56253 # Probe: Look in the Windows system32 directory 56254 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 56255 56256 windows_path="$CYGWIN_SYSTEMROOT" 56257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56258 unix_path=`$CYGPATH -u "$windows_path"` 56259 CYGWIN_SYSTEMROOT="$unix_path" 56260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56262 CYGWIN_SYSTEMROOT="$unix_path" 56263 fi 56264 56265 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 56266 56267 DLL_NAME="$DLL_NAME" 56268 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56269 METHOD="well-known location in SYSTEMROOT" 56270 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56271 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56272 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56273 56274 # Need to check if the found msvcr is correct architecture 56275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56276 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56277 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56279 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56280 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56281 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56282 CORRECT_MSVCR_ARCH="PE32 executable" 56283 else 56284 CORRECT_MSVCR_ARCH="PE32+ executable" 56285 fi 56286 else 56287 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56288 CORRECT_MSVCR_ARCH=386 56289 else 56290 CORRECT_MSVCR_ARCH=x86-64 56291 fi 56292 fi 56293 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56295 $as_echo "ok" >&6; } 56296 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56297 56298 # Only process if variable expands to non-empty 56299 56300 if test "x$MSVC_DLL" != x; then 56301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56302 56303 # Input might be given as Windows format, start by converting to 56304 # unix format. 56305 path="$MSVC_DLL" 56306 new_path=`$CYGPATH -u "$path"` 56307 56308 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56309 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56310 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56311 # "foo.exe" is OK but "foo" is an error. 56312 # 56313 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56314 # It is also a way to make sure we got the proper file name for the real test later on. 56315 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56316 if test "x$test_shortpath" = x; then 56317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56318 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56319 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56320 fi 56321 56322 # Call helper function which possibly converts this using DOS-style short mode. 56323 # If so, the updated path is stored in $new_path. 56324 56325 input_path="$new_path" 56326 # Check if we need to convert this using DOS-style short mode. If the path 56327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56328 # take no chances and rewrite it. 56329 # Note: m4 eats our [], so we need to use [ and ] instead. 56330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56331 if test "x$has_forbidden_chars" != x; then 56332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56333 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56334 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56335 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56336 # Going to short mode and back again did indeed matter. Since short mode is 56337 # case insensitive, let's make it lowercase to improve readability. 56338 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56339 # Now convert it back to Unix-style (cygpath) 56340 input_path=`$CYGPATH -u "$shortmode_path"` 56341 new_path="$input_path" 56342 fi 56343 fi 56344 56345 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56346 if test "x$test_cygdrive_prefix" = x; then 56347 # As a simple fix, exclude /usr/bin since it's not a real path. 56348 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56349 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56350 # a path prefixed by /cygdrive for fixpath to work. 56351 new_path="$CYGWIN_ROOT_PATH$input_path" 56352 fi 56353 fi 56354 56355 56356 if test "x$path" != "x$new_path"; then 56357 MSVC_DLL="$new_path" 56358 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56359 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56360 fi 56361 56362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56363 56364 path="$MSVC_DLL" 56365 has_colon=`$ECHO $path | $GREP ^.:` 56366 new_path="$path" 56367 if test "x$has_colon" = x; then 56368 # Not in mixed or Windows style, start by that. 56369 new_path=`cmd //c echo $path` 56370 fi 56371 56372 56373 input_path="$new_path" 56374 # Check if we need to convert this using DOS-style short mode. If the path 56375 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56376 # take no chances and rewrite it. 56377 # Note: m4 eats our [], so we need to use [ and ] instead. 56378 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56379 if test "x$has_forbidden_chars" != x; then 56380 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56381 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56382 fi 56383 56384 56385 windows_path="$new_path" 56386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56387 unix_path=`$CYGPATH -u "$windows_path"` 56388 new_path="$unix_path" 56389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56390 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56391 new_path="$unix_path" 56392 fi 56393 56394 if test "x$path" != "x$new_path"; then 56395 MSVC_DLL="$new_path" 56396 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56397 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56398 fi 56399 56400 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56401 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56402 56403 else 56404 # We're on a unix platform. Hooray! :) 56405 path="$MSVC_DLL" 56406 has_space=`$ECHO "$path" | $GREP " "` 56407 if test "x$has_space" != x; then 56408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56409 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56410 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56411 fi 56412 56413 # Use eval to expand a potential ~ 56414 eval path="$path" 56415 if test ! -f "$path" && test ! -d "$path"; then 56416 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56417 fi 56418 56419 if test -d "$path"; then 56420 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56421 else 56422 dir="`$DIRNAME "$path"`" 56423 base="`$BASENAME "$path"`" 56424 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56425 fi 56426 fi 56427 fi 56428 56429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56430 $as_echo_n "checking for $DLL_NAME... " >&6; } 56431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56432 $as_echo "$MSVC_DLL" >&6; } 56433 else 56434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56435 $as_echo "incorrect, ignoring" >&6; } 56436 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56437 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56438 fi 56439 fi 56440 56441 fi 56442 56443 if test "x$MSVC_DLL" = x; then 56444 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 56445 if test "x$VS100COMNTOOLS" != x; then 56446 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 56447 56448 windows_path="$CYGWIN_VS_TOOLS_DIR" 56449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56450 unix_path=`$CYGPATH -u "$windows_path"` 56451 CYGWIN_VS_TOOLS_DIR="$unix_path" 56452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56454 CYGWIN_VS_TOOLS_DIR="$unix_path" 56455 fi 56456 56457 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56458 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56459 | $GREP -i /x64/ | $HEAD --lines 1` 56460 else 56461 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56462 | $GREP -i /x86/ | $HEAD --lines 1` 56463 fi 56464 56465 DLL_NAME="$DLL_NAME" 56466 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56467 METHOD="search of VS100COMNTOOLS" 56468 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56469 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56470 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56471 56472 # Need to check if the found msvcr is correct architecture 56473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56474 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56475 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56477 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56478 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56479 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56480 CORRECT_MSVCR_ARCH="PE32 executable" 56481 else 56482 CORRECT_MSVCR_ARCH="PE32+ executable" 56483 fi 56484 else 56485 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56486 CORRECT_MSVCR_ARCH=386 56487 else 56488 CORRECT_MSVCR_ARCH=x86-64 56489 fi 56490 fi 56491 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56493 $as_echo "ok" >&6; } 56494 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56495 56496 # Only process if variable expands to non-empty 56497 56498 if test "x$MSVC_DLL" != x; then 56499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56500 56501 # Input might be given as Windows format, start by converting to 56502 # unix format. 56503 path="$MSVC_DLL" 56504 new_path=`$CYGPATH -u "$path"` 56505 56506 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56507 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56508 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56509 # "foo.exe" is OK but "foo" is an error. 56510 # 56511 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56512 # It is also a way to make sure we got the proper file name for the real test later on. 56513 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56514 if test "x$test_shortpath" = x; then 56515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56516 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56517 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56518 fi 56519 56520 # Call helper function which possibly converts this using DOS-style short mode. 56521 # If so, the updated path is stored in $new_path. 56522 56523 input_path="$new_path" 56524 # Check if we need to convert this using DOS-style short mode. If the path 56525 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56526 # take no chances and rewrite it. 56527 # Note: m4 eats our [], so we need to use [ and ] instead. 56528 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56529 if test "x$has_forbidden_chars" != x; then 56530 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56531 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56532 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56533 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56534 # Going to short mode and back again did indeed matter. Since short mode is 56535 # case insensitive, let's make it lowercase to improve readability. 56536 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56537 # Now convert it back to Unix-style (cygpath) 56538 input_path=`$CYGPATH -u "$shortmode_path"` 56539 new_path="$input_path" 56540 fi 56541 fi 56542 56543 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56544 if test "x$test_cygdrive_prefix" = x; then 56545 # As a simple fix, exclude /usr/bin since it's not a real path. 56546 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56547 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56548 # a path prefixed by /cygdrive for fixpath to work. 56549 new_path="$CYGWIN_ROOT_PATH$input_path" 56550 fi 56551 fi 56552 56553 56554 if test "x$path" != "x$new_path"; then 56555 MSVC_DLL="$new_path" 56556 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56557 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56558 fi 56559 56560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56561 56562 path="$MSVC_DLL" 56563 has_colon=`$ECHO $path | $GREP ^.:` 56564 new_path="$path" 56565 if test "x$has_colon" = x; then 56566 # Not in mixed or Windows style, start by that. 56567 new_path=`cmd //c echo $path` 56568 fi 56569 56570 56571 input_path="$new_path" 56572 # Check if we need to convert this using DOS-style short mode. If the path 56573 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56574 # take no chances and rewrite it. 56575 # Note: m4 eats our [], so we need to use [ and ] instead. 56576 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56577 if test "x$has_forbidden_chars" != x; then 56578 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56579 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56580 fi 56581 56582 56583 windows_path="$new_path" 56584 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56585 unix_path=`$CYGPATH -u "$windows_path"` 56586 new_path="$unix_path" 56587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56588 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56589 new_path="$unix_path" 56590 fi 56591 56592 if test "x$path" != "x$new_path"; then 56593 MSVC_DLL="$new_path" 56594 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56595 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56596 fi 56597 56598 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56599 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56600 56601 else 56602 # We're on a unix platform. Hooray! :) 56603 path="$MSVC_DLL" 56604 has_space=`$ECHO "$path" | $GREP " "` 56605 if test "x$has_space" != x; then 56606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56607 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56608 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56609 fi 56610 56611 # Use eval to expand a potential ~ 56612 eval path="$path" 56613 if test ! -f "$path" && test ! -d "$path"; then 56614 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56615 fi 56616 56617 if test -d "$path"; then 56618 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56619 else 56620 dir="`$DIRNAME "$path"`" 56621 base="`$BASENAME "$path"`" 56622 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56623 fi 56624 fi 56625 fi 56626 56627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56628 $as_echo_n "checking for $DLL_NAME... " >&6; } 56629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56630 $as_echo "$MSVC_DLL" >&6; } 56631 else 56632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56633 $as_echo "incorrect, ignoring" >&6; } 56634 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56635 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56636 fi 56637 fi 56638 56639 fi 56640 fi 56641 56642 if test "x$MSVC_DLL" = x; then 56643 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 56644 # (This was the original behaviour; kept since it might turn something up) 56645 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 56646 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56647 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56648 | $GREP x64 | $HEAD --lines 1` 56649 else 56650 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56651 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 56652 if test "x$POSSIBLE_MSVC_DLL" = x; then 56653 # We're grasping at straws now... 56654 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56655 | $HEAD --lines 1` 56656 fi 56657 fi 56658 56659 56660 DLL_NAME="$DLL_NAME" 56661 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56662 METHOD="search of VCINSTALLDIR" 56663 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56664 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56665 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56666 56667 # Need to check if the found msvcr is correct architecture 56668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56669 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56670 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56672 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56673 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56674 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56675 CORRECT_MSVCR_ARCH="PE32 executable" 56676 else 56677 CORRECT_MSVCR_ARCH="PE32+ executable" 56678 fi 56679 else 56680 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56681 CORRECT_MSVCR_ARCH=386 56682 else 56683 CORRECT_MSVCR_ARCH=x86-64 56684 fi 56685 fi 56686 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56688 $as_echo "ok" >&6; } 56689 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56690 56691 # Only process if variable expands to non-empty 56692 56693 if test "x$MSVC_DLL" != x; then 56694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56695 56696 # Input might be given as Windows format, start by converting to 56697 # unix format. 56698 path="$MSVC_DLL" 56699 new_path=`$CYGPATH -u "$path"` 56700 56701 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56702 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56703 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56704 # "foo.exe" is OK but "foo" is an error. 56705 # 56706 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56707 # It is also a way to make sure we got the proper file name for the real test later on. 56708 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56709 if test "x$test_shortpath" = x; then 56710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56711 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56712 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56713 fi 56714 56715 # Call helper function which possibly converts this using DOS-style short mode. 56716 # If so, the updated path is stored in $new_path. 56717 56718 input_path="$new_path" 56719 # Check if we need to convert this using DOS-style short mode. If the path 56720 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56721 # take no chances and rewrite it. 56722 # Note: m4 eats our [], so we need to use [ and ] instead. 56723 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56724 if test "x$has_forbidden_chars" != x; then 56725 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56726 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56727 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56728 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56729 # Going to short mode and back again did indeed matter. Since short mode is 56730 # case insensitive, let's make it lowercase to improve readability. 56731 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56732 # Now convert it back to Unix-style (cygpath) 56733 input_path=`$CYGPATH -u "$shortmode_path"` 56734 new_path="$input_path" 56735 fi 56736 fi 56737 56738 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56739 if test "x$test_cygdrive_prefix" = x; then 56740 # As a simple fix, exclude /usr/bin since it's not a real path. 56741 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56742 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56743 # a path prefixed by /cygdrive for fixpath to work. 56744 new_path="$CYGWIN_ROOT_PATH$input_path" 56745 fi 56746 fi 56747 56748 56749 if test "x$path" != "x$new_path"; then 56750 MSVC_DLL="$new_path" 56751 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56752 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56753 fi 56754 56755 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56756 56757 path="$MSVC_DLL" 56758 has_colon=`$ECHO $path | $GREP ^.:` 56759 new_path="$path" 56760 if test "x$has_colon" = x; then 56761 # Not in mixed or Windows style, start by that. 56762 new_path=`cmd //c echo $path` 56763 fi 56764 56765 56766 input_path="$new_path" 56767 # Check if we need to convert this using DOS-style short mode. If the path 56768 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56769 # take no chances and rewrite it. 56770 # Note: m4 eats our [], so we need to use [ and ] instead. 56771 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56772 if test "x$has_forbidden_chars" != x; then 56773 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56774 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56775 fi 56776 56777 56778 windows_path="$new_path" 56779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56780 unix_path=`$CYGPATH -u "$windows_path"` 56781 new_path="$unix_path" 56782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56783 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56784 new_path="$unix_path" 56785 fi 56786 56787 if test "x$path" != "x$new_path"; then 56788 MSVC_DLL="$new_path" 56789 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56790 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56791 fi 56792 56793 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56794 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56795 56796 else 56797 # We're on a unix platform. Hooray! :) 56798 path="$MSVC_DLL" 56799 has_space=`$ECHO "$path" | $GREP " "` 56800 if test "x$has_space" != x; then 56801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56802 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56803 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56804 fi 56805 56806 # Use eval to expand a potential ~ 56807 eval path="$path" 56808 if test ! -f "$path" && test ! -d "$path"; then 56809 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56810 fi 56811 56812 if test -d "$path"; then 56813 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56814 else 56815 dir="`$DIRNAME "$path"`" 56816 base="`$BASENAME "$path"`" 56817 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56818 fi 56819 fi 56820 fi 56821 56822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56823 $as_echo_n "checking for $DLL_NAME... " >&6; } 56824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56825 $as_echo "$MSVC_DLL" >&6; } 56826 else 56827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56828 $as_echo "incorrect, ignoring" >&6; } 56829 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56830 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56831 fi 56832 fi 56833 56834 fi 56835 fi 56836 56837 if test "x$MSVC_DLL" = x; then 56838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56839 $as_echo_n "checking for $DLL_NAME... " >&6; } 56840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56841 $as_echo "no" >&6; } 56842 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 56843 fi 56844 56845 MSVCR_DLL="$MSVC_DLL" 56846 fi 56847 56848 56849 56850 # Check whether --with-msvcp-dll was given. 56851 if test "${with_msvcp_dll+set}" = set; then : 56852 withval=$with_msvcp_dll; 56853 fi 56854 56855 56856 if test "x$MSVCP_NAME" != "x"; then 56857 if test "x$with_msvcp_dll" != x; then 56858 # If given explicitly by user, do not probe. If not present, fail directly. 56859 56860 DLL_NAME="$MSVCP_NAME" 56861 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 56862 METHOD="--with-msvcp-dll" 56863 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56864 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56865 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56866 56867 # Need to check if the found msvcr is correct architecture 56868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56869 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56870 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56872 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56873 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56874 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56875 CORRECT_MSVCR_ARCH="PE32 executable" 56876 else 56877 CORRECT_MSVCR_ARCH="PE32+ executable" 56878 fi 56879 else 56880 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56881 CORRECT_MSVCR_ARCH=386 56882 else 56883 CORRECT_MSVCR_ARCH=x86-64 56884 fi 56885 fi 56886 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56888 $as_echo "ok" >&6; } 56889 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56890 56891 # Only process if variable expands to non-empty 56892 56893 if test "x$MSVC_DLL" != x; then 56894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56895 56896 # Input might be given as Windows format, start by converting to 56897 # unix format. 56898 path="$MSVC_DLL" 56899 new_path=`$CYGPATH -u "$path"` 56900 56901 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56902 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56903 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56904 # "foo.exe" is OK but "foo" is an error. 56905 # 56906 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56907 # It is also a way to make sure we got the proper file name for the real test later on. 56908 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56909 if test "x$test_shortpath" = x; then 56910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56911 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56912 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56913 fi 56914 56915 # Call helper function which possibly converts this using DOS-style short mode. 56916 # If so, the updated path is stored in $new_path. 56917 56918 input_path="$new_path" 56919 # Check if we need to convert this using DOS-style short mode. If the path 56920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56921 # take no chances and rewrite it. 56922 # Note: m4 eats our [], so we need to use [ and ] instead. 56923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56924 if test "x$has_forbidden_chars" != x; then 56925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56926 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56927 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56928 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56929 # Going to short mode and back again did indeed matter. Since short mode is 56930 # case insensitive, let's make it lowercase to improve readability. 56931 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56932 # Now convert it back to Unix-style (cygpath) 56933 input_path=`$CYGPATH -u "$shortmode_path"` 56934 new_path="$input_path" 56935 fi 56936 fi 56937 56938 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56939 if test "x$test_cygdrive_prefix" = x; then 56940 # As a simple fix, exclude /usr/bin since it's not a real path. 56941 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56942 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56943 # a path prefixed by /cygdrive for fixpath to work. 56944 new_path="$CYGWIN_ROOT_PATH$input_path" 56945 fi 56946 fi 56947 56948 56949 if test "x$path" != "x$new_path"; then 56950 MSVC_DLL="$new_path" 56951 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56952 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56953 fi 56954 56955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56956 56957 path="$MSVC_DLL" 56958 has_colon=`$ECHO $path | $GREP ^.:` 56959 new_path="$path" 56960 if test "x$has_colon" = x; then 56961 # Not in mixed or Windows style, start by that. 56962 new_path=`cmd //c echo $path` 56963 fi 56964 56965 56966 input_path="$new_path" 56967 # Check if we need to convert this using DOS-style short mode. If the path 56968 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56969 # take no chances and rewrite it. 56970 # Note: m4 eats our [], so we need to use [ and ] instead. 56971 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56972 if test "x$has_forbidden_chars" != x; then 56973 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56974 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56975 fi 56976 56977 56978 windows_path="$new_path" 56979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56980 unix_path=`$CYGPATH -u "$windows_path"` 56981 new_path="$unix_path" 56982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56983 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56984 new_path="$unix_path" 56985 fi 56986 56987 if test "x$path" != "x$new_path"; then 56988 MSVC_DLL="$new_path" 56989 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56990 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56991 fi 56992 56993 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56994 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56995 56996 else 56997 # We're on a unix platform. Hooray! :) 56998 path="$MSVC_DLL" 56999 has_space=`$ECHO "$path" | $GREP " "` 57000 if test "x$has_space" != x; then 57001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57002 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57003 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57004 fi 57005 57006 # Use eval to expand a potential ~ 57007 eval path="$path" 57008 if test ! -f "$path" && test ! -d "$path"; then 57009 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57010 fi 57011 57012 if test -d "$path"; then 57013 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57014 else 57015 dir="`$DIRNAME "$path"`" 57016 base="`$BASENAME "$path"`" 57017 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57018 fi 57019 fi 57020 fi 57021 57022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57023 $as_echo_n "checking for $DLL_NAME... " >&6; } 57024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57025 $as_echo "$MSVC_DLL" >&6; } 57026 else 57027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57028 $as_echo "incorrect, ignoring" >&6; } 57029 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57030 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57031 fi 57032 fi 57033 57034 if test "x$MSVC_DLL" = x; then 57035 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 57036 fi 57037 MSVCP_DLL="$MSVC_DLL" 57038 elif test "x$DEVKIT_MSVCP_DLL" != x; then 57039 57040 DLL_NAME="$MSVCP_NAME" 57041 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 57042 METHOD="devkit" 57043 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57044 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57045 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57046 57047 # Need to check if the found msvcr is correct architecture 57048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57049 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57050 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57052 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57053 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57054 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57055 CORRECT_MSVCR_ARCH="PE32 executable" 57056 else 57057 CORRECT_MSVCR_ARCH="PE32+ executable" 57058 fi 57059 else 57060 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57061 CORRECT_MSVCR_ARCH=386 57062 else 57063 CORRECT_MSVCR_ARCH=x86-64 57064 fi 57065 fi 57066 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57068 $as_echo "ok" >&6; } 57069 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57070 57071 # Only process if variable expands to non-empty 57072 57073 if test "x$MSVC_DLL" != x; then 57074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57075 57076 # Input might be given as Windows format, start by converting to 57077 # unix format. 57078 path="$MSVC_DLL" 57079 new_path=`$CYGPATH -u "$path"` 57080 57081 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57082 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57083 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57084 # "foo.exe" is OK but "foo" is an error. 57085 # 57086 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57087 # It is also a way to make sure we got the proper file name for the real test later on. 57088 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57089 if test "x$test_shortpath" = x; then 57090 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57091 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57092 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57093 fi 57094 57095 # Call helper function which possibly converts this using DOS-style short mode. 57096 # If so, the updated path is stored in $new_path. 57097 57098 input_path="$new_path" 57099 # Check if we need to convert this using DOS-style short mode. If the path 57100 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57101 # take no chances and rewrite it. 57102 # Note: m4 eats our [], so we need to use [ and ] instead. 57103 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57104 if test "x$has_forbidden_chars" != x; then 57105 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57106 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57107 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57108 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57109 # Going to short mode and back again did indeed matter. Since short mode is 57110 # case insensitive, let's make it lowercase to improve readability. 57111 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57112 # Now convert it back to Unix-style (cygpath) 57113 input_path=`$CYGPATH -u "$shortmode_path"` 57114 new_path="$input_path" 57115 fi 57116 fi 57117 57118 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57119 if test "x$test_cygdrive_prefix" = x; then 57120 # As a simple fix, exclude /usr/bin since it's not a real path. 57121 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57122 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57123 # a path prefixed by /cygdrive for fixpath to work. 57124 new_path="$CYGWIN_ROOT_PATH$input_path" 57125 fi 57126 fi 57127 57128 57129 if test "x$path" != "x$new_path"; then 57130 MSVC_DLL="$new_path" 57131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57132 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57133 fi 57134 57135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57136 57137 path="$MSVC_DLL" 57138 has_colon=`$ECHO $path | $GREP ^.:` 57139 new_path="$path" 57140 if test "x$has_colon" = x; then 57141 # Not in mixed or Windows style, start by that. 57142 new_path=`cmd //c echo $path` 57143 fi 57144 57145 57146 input_path="$new_path" 57147 # Check if we need to convert this using DOS-style short mode. If the path 57148 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57149 # take no chances and rewrite it. 57150 # Note: m4 eats our [], so we need to use [ and ] instead. 57151 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57152 if test "x$has_forbidden_chars" != x; then 57153 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57154 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57155 fi 57156 57157 57158 windows_path="$new_path" 57159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57160 unix_path=`$CYGPATH -u "$windows_path"` 57161 new_path="$unix_path" 57162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57163 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57164 new_path="$unix_path" 57165 fi 57166 57167 if test "x$path" != "x$new_path"; then 57168 MSVC_DLL="$new_path" 57169 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57170 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57171 fi 57172 57173 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57174 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57175 57176 else 57177 # We're on a unix platform. Hooray! :) 57178 path="$MSVC_DLL" 57179 has_space=`$ECHO "$path" | $GREP " "` 57180 if test "x$has_space" != x; then 57181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57182 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57183 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57184 fi 57185 57186 # Use eval to expand a potential ~ 57187 eval path="$path" 57188 if test ! -f "$path" && test ! -d "$path"; then 57189 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57190 fi 57191 57192 if test -d "$path"; then 57193 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57194 else 57195 dir="`$DIRNAME "$path"`" 57196 base="`$BASENAME "$path"`" 57197 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57198 fi 57199 fi 57200 fi 57201 57202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57203 $as_echo_n "checking for $DLL_NAME... " >&6; } 57204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57205 $as_echo "$MSVC_DLL" >&6; } 57206 else 57207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57208 $as_echo "incorrect, ignoring" >&6; } 57209 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57210 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57211 fi 57212 fi 57213 57214 if test "x$MSVC_DLL" = x; then 57215 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 57216 fi 57217 MSVCP_DLL="$MSVC_DLL" 57218 else 57219 57220 DLL_NAME="${MSVCP_NAME}" 57221 MSVC_DLL= 57222 57223 if test "x$MSVC_DLL" = x; then 57224 # Probe: Using well-known location from Visual Studio 10.0 57225 if test "x$VCINSTALLDIR" != x; then 57226 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 57227 57228 windows_path="$CYGWIN_VC_INSTALL_DIR" 57229 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57230 unix_path=`$CYGPATH -u "$windows_path"` 57231 CYGWIN_VC_INSTALL_DIR="$unix_path" 57232 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57233 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57234 CYGWIN_VC_INSTALL_DIR="$unix_path" 57235 fi 57236 57237 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57238 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 57239 else 57240 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 57241 fi 57242 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 57243 57244 DLL_NAME="$DLL_NAME" 57245 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57246 METHOD="well-known location in VCINSTALLDIR" 57247 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57248 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57249 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57250 57251 # Need to check if the found msvcr is correct architecture 57252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57253 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57254 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57256 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57257 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57258 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57259 CORRECT_MSVCR_ARCH="PE32 executable" 57260 else 57261 CORRECT_MSVCR_ARCH="PE32+ executable" 57262 fi 57263 else 57264 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57265 CORRECT_MSVCR_ARCH=386 57266 else 57267 CORRECT_MSVCR_ARCH=x86-64 57268 fi 57269 fi 57270 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57272 $as_echo "ok" >&6; } 57273 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57274 57275 # Only process if variable expands to non-empty 57276 57277 if test "x$MSVC_DLL" != x; then 57278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57279 57280 # Input might be given as Windows format, start by converting to 57281 # unix format. 57282 path="$MSVC_DLL" 57283 new_path=`$CYGPATH -u "$path"` 57284 57285 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57286 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57287 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57288 # "foo.exe" is OK but "foo" is an error. 57289 # 57290 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57291 # It is also a way to make sure we got the proper file name for the real test later on. 57292 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57293 if test "x$test_shortpath" = x; then 57294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57295 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57296 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57297 fi 57298 57299 # Call helper function which possibly converts this using DOS-style short mode. 57300 # If so, the updated path is stored in $new_path. 57301 57302 input_path="$new_path" 57303 # Check if we need to convert this using DOS-style short mode. If the path 57304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57305 # take no chances and rewrite it. 57306 # Note: m4 eats our [], so we need to use [ and ] instead. 57307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57308 if test "x$has_forbidden_chars" != x; then 57309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57310 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57311 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57312 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57313 # Going to short mode and back again did indeed matter. Since short mode is 57314 # case insensitive, let's make it lowercase to improve readability. 57315 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57316 # Now convert it back to Unix-style (cygpath) 57317 input_path=`$CYGPATH -u "$shortmode_path"` 57318 new_path="$input_path" 57319 fi 57320 fi 57321 57322 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57323 if test "x$test_cygdrive_prefix" = x; then 57324 # As a simple fix, exclude /usr/bin since it's not a real path. 57325 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57326 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57327 # a path prefixed by /cygdrive for fixpath to work. 57328 new_path="$CYGWIN_ROOT_PATH$input_path" 57329 fi 57330 fi 57331 57332 57333 if test "x$path" != "x$new_path"; then 57334 MSVC_DLL="$new_path" 57335 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57336 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57337 fi 57338 57339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57340 57341 path="$MSVC_DLL" 57342 has_colon=`$ECHO $path | $GREP ^.:` 57343 new_path="$path" 57344 if test "x$has_colon" = x; then 57345 # Not in mixed or Windows style, start by that. 57346 new_path=`cmd //c echo $path` 57347 fi 57348 57349 57350 input_path="$new_path" 57351 # Check if we need to convert this using DOS-style short mode. If the path 57352 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57353 # take no chances and rewrite it. 57354 # Note: m4 eats our [], so we need to use [ and ] instead. 57355 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57356 if test "x$has_forbidden_chars" != x; then 57357 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57358 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57359 fi 57360 57361 57362 windows_path="$new_path" 57363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57364 unix_path=`$CYGPATH -u "$windows_path"` 57365 new_path="$unix_path" 57366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57368 new_path="$unix_path" 57369 fi 57370 57371 if test "x$path" != "x$new_path"; then 57372 MSVC_DLL="$new_path" 57373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57374 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57375 fi 57376 57377 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57378 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57379 57380 else 57381 # We're on a unix platform. Hooray! :) 57382 path="$MSVC_DLL" 57383 has_space=`$ECHO "$path" | $GREP " "` 57384 if test "x$has_space" != x; then 57385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57386 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57387 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57388 fi 57389 57390 # Use eval to expand a potential ~ 57391 eval path="$path" 57392 if test ! -f "$path" && test ! -d "$path"; then 57393 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57394 fi 57395 57396 if test -d "$path"; then 57397 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57398 else 57399 dir="`$DIRNAME "$path"`" 57400 base="`$BASENAME "$path"`" 57401 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57402 fi 57403 fi 57404 fi 57405 57406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57407 $as_echo_n "checking for $DLL_NAME... " >&6; } 57408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57409 $as_echo "$MSVC_DLL" >&6; } 57410 else 57411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57412 $as_echo "incorrect, ignoring" >&6; } 57413 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57414 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57415 fi 57416 fi 57417 57418 fi 57419 fi 57420 57421 if test "x$MSVC_DLL" = x; then 57422 # Probe: Check in the Boot JDK directory. 57423 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 57424 57425 DLL_NAME="$DLL_NAME" 57426 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57427 METHOD="well-known location in Boot JDK" 57428 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57429 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57430 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57431 57432 # Need to check if the found msvcr is correct architecture 57433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57434 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57435 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57437 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57438 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57439 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57440 CORRECT_MSVCR_ARCH="PE32 executable" 57441 else 57442 CORRECT_MSVCR_ARCH="PE32+ executable" 57443 fi 57444 else 57445 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57446 CORRECT_MSVCR_ARCH=386 57447 else 57448 CORRECT_MSVCR_ARCH=x86-64 57449 fi 57450 fi 57451 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57453 $as_echo "ok" >&6; } 57454 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57455 57456 # Only process if variable expands to non-empty 57457 57458 if test "x$MSVC_DLL" != x; then 57459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57460 57461 # Input might be given as Windows format, start by converting to 57462 # unix format. 57463 path="$MSVC_DLL" 57464 new_path=`$CYGPATH -u "$path"` 57465 57466 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57467 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57468 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57469 # "foo.exe" is OK but "foo" is an error. 57470 # 57471 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57472 # It is also a way to make sure we got the proper file name for the real test later on. 57473 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57474 if test "x$test_shortpath" = x; then 57475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57476 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57477 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57478 fi 57479 57480 # Call helper function which possibly converts this using DOS-style short mode. 57481 # If so, the updated path is stored in $new_path. 57482 57483 input_path="$new_path" 57484 # Check if we need to convert this using DOS-style short mode. If the path 57485 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57486 # take no chances and rewrite it. 57487 # Note: m4 eats our [], so we need to use [ and ] instead. 57488 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57489 if test "x$has_forbidden_chars" != x; then 57490 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57491 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57492 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57493 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57494 # Going to short mode and back again did indeed matter. Since short mode is 57495 # case insensitive, let's make it lowercase to improve readability. 57496 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57497 # Now convert it back to Unix-style (cygpath) 57498 input_path=`$CYGPATH -u "$shortmode_path"` 57499 new_path="$input_path" 57500 fi 57501 fi 57502 57503 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57504 if test "x$test_cygdrive_prefix" = x; then 57505 # As a simple fix, exclude /usr/bin since it's not a real path. 57506 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57507 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57508 # a path prefixed by /cygdrive for fixpath to work. 57509 new_path="$CYGWIN_ROOT_PATH$input_path" 57510 fi 57511 fi 57512 57513 57514 if test "x$path" != "x$new_path"; then 57515 MSVC_DLL="$new_path" 57516 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57517 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57518 fi 57519 57520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57521 57522 path="$MSVC_DLL" 57523 has_colon=`$ECHO $path | $GREP ^.:` 57524 new_path="$path" 57525 if test "x$has_colon" = x; then 57526 # Not in mixed or Windows style, start by that. 57527 new_path=`cmd //c echo $path` 57528 fi 57529 57530 57531 input_path="$new_path" 57532 # Check if we need to convert this using DOS-style short mode. If the path 57533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57534 # take no chances and rewrite it. 57535 # Note: m4 eats our [], so we need to use [ and ] instead. 57536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57537 if test "x$has_forbidden_chars" != x; then 57538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57539 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57540 fi 57541 57542 57543 windows_path="$new_path" 57544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57545 unix_path=`$CYGPATH -u "$windows_path"` 57546 new_path="$unix_path" 57547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57548 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57549 new_path="$unix_path" 57550 fi 57551 57552 if test "x$path" != "x$new_path"; then 57553 MSVC_DLL="$new_path" 57554 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57555 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57556 fi 57557 57558 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57559 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57560 57561 else 57562 # We're on a unix platform. Hooray! :) 57563 path="$MSVC_DLL" 57564 has_space=`$ECHO "$path" | $GREP " "` 57565 if test "x$has_space" != x; then 57566 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57567 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57568 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57569 fi 57570 57571 # Use eval to expand a potential ~ 57572 eval path="$path" 57573 if test ! -f "$path" && test ! -d "$path"; then 57574 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57575 fi 57576 57577 if test -d "$path"; then 57578 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57579 else 57580 dir="`$DIRNAME "$path"`" 57581 base="`$BASENAME "$path"`" 57582 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57583 fi 57584 fi 57585 fi 57586 57587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57588 $as_echo_n "checking for $DLL_NAME... " >&6; } 57589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57590 $as_echo "$MSVC_DLL" >&6; } 57591 else 57592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57593 $as_echo "incorrect, ignoring" >&6; } 57594 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57595 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57596 fi 57597 fi 57598 57599 fi 57600 57601 if test "x$MSVC_DLL" = x; then 57602 # Probe: Look in the Windows system32 directory 57603 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 57604 57605 windows_path="$CYGWIN_SYSTEMROOT" 57606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57607 unix_path=`$CYGPATH -u "$windows_path"` 57608 CYGWIN_SYSTEMROOT="$unix_path" 57609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57610 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57611 CYGWIN_SYSTEMROOT="$unix_path" 57612 fi 57613 57614 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 57615 57616 DLL_NAME="$DLL_NAME" 57617 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57618 METHOD="well-known location in SYSTEMROOT" 57619 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57620 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57621 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57622 57623 # Need to check if the found msvcr is correct architecture 57624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57625 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57626 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57628 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57629 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57630 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57631 CORRECT_MSVCR_ARCH="PE32 executable" 57632 else 57633 CORRECT_MSVCR_ARCH="PE32+ executable" 57634 fi 57635 else 57636 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57637 CORRECT_MSVCR_ARCH=386 57638 else 57639 CORRECT_MSVCR_ARCH=x86-64 57640 fi 57641 fi 57642 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57644 $as_echo "ok" >&6; } 57645 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57646 57647 # Only process if variable expands to non-empty 57648 57649 if test "x$MSVC_DLL" != x; then 57650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57651 57652 # Input might be given as Windows format, start by converting to 57653 # unix format. 57654 path="$MSVC_DLL" 57655 new_path=`$CYGPATH -u "$path"` 57656 57657 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57658 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57659 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57660 # "foo.exe" is OK but "foo" is an error. 57661 # 57662 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57663 # It is also a way to make sure we got the proper file name for the real test later on. 57664 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57665 if test "x$test_shortpath" = x; then 57666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57667 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57668 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57669 fi 57670 57671 # Call helper function which possibly converts this using DOS-style short mode. 57672 # If so, the updated path is stored in $new_path. 57673 57674 input_path="$new_path" 57675 # Check if we need to convert this using DOS-style short mode. If the path 57676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57677 # take no chances and rewrite it. 57678 # Note: m4 eats our [], so we need to use [ and ] instead. 57679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57680 if test "x$has_forbidden_chars" != x; then 57681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57682 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57683 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57684 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57685 # Going to short mode and back again did indeed matter. Since short mode is 57686 # case insensitive, let's make it lowercase to improve readability. 57687 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57688 # Now convert it back to Unix-style (cygpath) 57689 input_path=`$CYGPATH -u "$shortmode_path"` 57690 new_path="$input_path" 57691 fi 57692 fi 57693 57694 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57695 if test "x$test_cygdrive_prefix" = x; then 57696 # As a simple fix, exclude /usr/bin since it's not a real path. 57697 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57698 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57699 # a path prefixed by /cygdrive for fixpath to work. 57700 new_path="$CYGWIN_ROOT_PATH$input_path" 57701 fi 57702 fi 57703 57704 57705 if test "x$path" != "x$new_path"; then 57706 MSVC_DLL="$new_path" 57707 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57708 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57709 fi 57710 57711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57712 57713 path="$MSVC_DLL" 57714 has_colon=`$ECHO $path | $GREP ^.:` 57715 new_path="$path" 57716 if test "x$has_colon" = x; then 57717 # Not in mixed or Windows style, start by that. 57718 new_path=`cmd //c echo $path` 57719 fi 57720 57721 57722 input_path="$new_path" 57723 # Check if we need to convert this using DOS-style short mode. If the path 57724 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57725 # take no chances and rewrite it. 57726 # Note: m4 eats our [], so we need to use [ and ] instead. 57727 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57728 if test "x$has_forbidden_chars" != x; then 57729 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57730 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57731 fi 57732 57733 57734 windows_path="$new_path" 57735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57736 unix_path=`$CYGPATH -u "$windows_path"` 57737 new_path="$unix_path" 57738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57740 new_path="$unix_path" 57741 fi 57742 57743 if test "x$path" != "x$new_path"; then 57744 MSVC_DLL="$new_path" 57745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57746 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57747 fi 57748 57749 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57750 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57751 57752 else 57753 # We're on a unix platform. Hooray! :) 57754 path="$MSVC_DLL" 57755 has_space=`$ECHO "$path" | $GREP " "` 57756 if test "x$has_space" != x; then 57757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57758 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57759 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57760 fi 57761 57762 # Use eval to expand a potential ~ 57763 eval path="$path" 57764 if test ! -f "$path" && test ! -d "$path"; then 57765 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57766 fi 57767 57768 if test -d "$path"; then 57769 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57770 else 57771 dir="`$DIRNAME "$path"`" 57772 base="`$BASENAME "$path"`" 57773 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57774 fi 57775 fi 57776 fi 57777 57778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57779 $as_echo_n "checking for $DLL_NAME... " >&6; } 57780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57781 $as_echo "$MSVC_DLL" >&6; } 57782 else 57783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57784 $as_echo "incorrect, ignoring" >&6; } 57785 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57786 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57787 fi 57788 fi 57789 57790 fi 57791 57792 if test "x$MSVC_DLL" = x; then 57793 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 57794 if test "x$VS100COMNTOOLS" != x; then 57795 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 57796 57797 windows_path="$CYGWIN_VS_TOOLS_DIR" 57798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57799 unix_path=`$CYGPATH -u "$windows_path"` 57800 CYGWIN_VS_TOOLS_DIR="$unix_path" 57801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57803 CYGWIN_VS_TOOLS_DIR="$unix_path" 57804 fi 57805 57806 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57807 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 57808 | $GREP -i /x64/ | $HEAD --lines 1` 57809 else 57810 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 57811 | $GREP -i /x86/ | $HEAD --lines 1` 57812 fi 57813 57814 DLL_NAME="$DLL_NAME" 57815 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57816 METHOD="search of VS100COMNTOOLS" 57817 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57818 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57819 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57820 57821 # Need to check if the found msvcr is correct architecture 57822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57823 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57824 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57826 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57827 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57828 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57829 CORRECT_MSVCR_ARCH="PE32 executable" 57830 else 57831 CORRECT_MSVCR_ARCH="PE32+ executable" 57832 fi 57833 else 57834 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57835 CORRECT_MSVCR_ARCH=386 57836 else 57837 CORRECT_MSVCR_ARCH=x86-64 57838 fi 57839 fi 57840 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57842 $as_echo "ok" >&6; } 57843 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57844 57845 # Only process if variable expands to non-empty 57846 57847 if test "x$MSVC_DLL" != x; then 57848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57849 57850 # Input might be given as Windows format, start by converting to 57851 # unix format. 57852 path="$MSVC_DLL" 57853 new_path=`$CYGPATH -u "$path"` 57854 57855 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57856 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57857 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57858 # "foo.exe" is OK but "foo" is an error. 57859 # 57860 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57861 # It is also a way to make sure we got the proper file name for the real test later on. 57862 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57863 if test "x$test_shortpath" = x; then 57864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57865 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57866 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57867 fi 57868 57869 # Call helper function which possibly converts this using DOS-style short mode. 57870 # If so, the updated path is stored in $new_path. 57871 57872 input_path="$new_path" 57873 # Check if we need to convert this using DOS-style short mode. If the path 57874 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57875 # take no chances and rewrite it. 57876 # Note: m4 eats our [], so we need to use [ and ] instead. 57877 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57878 if test "x$has_forbidden_chars" != x; then 57879 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57880 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57881 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57882 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57883 # Going to short mode and back again did indeed matter. Since short mode is 57884 # case insensitive, let's make it lowercase to improve readability. 57885 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57886 # Now convert it back to Unix-style (cygpath) 57887 input_path=`$CYGPATH -u "$shortmode_path"` 57888 new_path="$input_path" 57889 fi 57890 fi 57891 57892 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57893 if test "x$test_cygdrive_prefix" = x; then 57894 # As a simple fix, exclude /usr/bin since it's not a real path. 57895 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57896 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57897 # a path prefixed by /cygdrive for fixpath to work. 57898 new_path="$CYGWIN_ROOT_PATH$input_path" 57899 fi 57900 fi 57901 57902 57903 if test "x$path" != "x$new_path"; then 57904 MSVC_DLL="$new_path" 57905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57906 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57907 fi 57908 57909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57910 57911 path="$MSVC_DLL" 57912 has_colon=`$ECHO $path | $GREP ^.:` 57913 new_path="$path" 57914 if test "x$has_colon" = x; then 57915 # Not in mixed or Windows style, start by that. 57916 new_path=`cmd //c echo $path` 57917 fi 57918 57919 57920 input_path="$new_path" 57921 # Check if we need to convert this using DOS-style short mode. If the path 57922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57923 # take no chances and rewrite it. 57924 # Note: m4 eats our [], so we need to use [ and ] instead. 57925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57926 if test "x$has_forbidden_chars" != x; then 57927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57928 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57929 fi 57930 57931 57932 windows_path="$new_path" 57933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57934 unix_path=`$CYGPATH -u "$windows_path"` 57935 new_path="$unix_path" 57936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57937 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57938 new_path="$unix_path" 57939 fi 57940 57941 if test "x$path" != "x$new_path"; then 57942 MSVC_DLL="$new_path" 57943 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57944 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57945 fi 57946 57947 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57948 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57949 57950 else 57951 # We're on a unix platform. Hooray! :) 57952 path="$MSVC_DLL" 57953 has_space=`$ECHO "$path" | $GREP " "` 57954 if test "x$has_space" != x; then 57955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57956 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57957 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57958 fi 57959 57960 # Use eval to expand a potential ~ 57961 eval path="$path" 57962 if test ! -f "$path" && test ! -d "$path"; then 57963 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57964 fi 57965 57966 if test -d "$path"; then 57967 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57968 else 57969 dir="`$DIRNAME "$path"`" 57970 base="`$BASENAME "$path"`" 57971 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57972 fi 57973 fi 57974 fi 57975 57976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57977 $as_echo_n "checking for $DLL_NAME... " >&6; } 57978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57979 $as_echo "$MSVC_DLL" >&6; } 57980 else 57981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57982 $as_echo "incorrect, ignoring" >&6; } 57983 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57984 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57985 fi 57986 fi 57987 57988 fi 57989 fi 57990 57991 if test "x$MSVC_DLL" = x; then 57992 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 57993 # (This was the original behaviour; kept since it might turn something up) 57994 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 57995 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57996 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57997 | $GREP x64 | $HEAD --lines 1` 57998 else 57999 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 58000 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 58001 if test "x$POSSIBLE_MSVC_DLL" = x; then 58002 # We're grasping at straws now... 58003 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 58004 | $HEAD --lines 1` 58005 fi 58006 fi 58007 58008 58009 DLL_NAME="$DLL_NAME" 58010 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 58011 METHOD="search of VCINSTALLDIR" 58012 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 58013 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 58014 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 58015 58016 # Need to check if the found msvcr is correct architecture 58017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 58018 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 58019 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 58020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58021 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 58022 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 58023 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 58024 CORRECT_MSVCR_ARCH="PE32 executable" 58025 else 58026 CORRECT_MSVCR_ARCH="PE32+ executable" 58027 fi 58028 else 58029 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 58030 CORRECT_MSVCR_ARCH=386 58031 else 58032 CORRECT_MSVCR_ARCH=x86-64 58033 fi 58034 fi 58035 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 58036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 58037 $as_echo "ok" >&6; } 58038 MSVC_DLL="$POSSIBLE_MSVC_DLL" 58039 58040 # Only process if variable expands to non-empty 58041 58042 if test "x$MSVC_DLL" != x; then 58043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58044 58045 # Input might be given as Windows format, start by converting to 58046 # unix format. 58047 path="$MSVC_DLL" 58048 new_path=`$CYGPATH -u "$path"` 58049 58050 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58051 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58052 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58053 # "foo.exe" is OK but "foo" is an error. 58054 # 58055 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58056 # It is also a way to make sure we got the proper file name for the real test later on. 58057 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58058 if test "x$test_shortpath" = x; then 58059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 58060 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 58061 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 58062 fi 58063 58064 # Call helper function which possibly converts this using DOS-style short mode. 58065 # If so, the updated path is stored in $new_path. 58066 58067 input_path="$new_path" 58068 # Check if we need to convert this using DOS-style short mode. If the path 58069 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58070 # take no chances and rewrite it. 58071 # Note: m4 eats our [], so we need to use [ and ] instead. 58072 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58073 if test "x$has_forbidden_chars" != x; then 58074 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58075 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58076 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58077 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58078 # Going to short mode and back again did indeed matter. Since short mode is 58079 # case insensitive, let's make it lowercase to improve readability. 58080 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58081 # Now convert it back to Unix-style (cygpath) 58082 input_path=`$CYGPATH -u "$shortmode_path"` 58083 new_path="$input_path" 58084 fi 58085 fi 58086 58087 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58088 if test "x$test_cygdrive_prefix" = x; then 58089 # As a simple fix, exclude /usr/bin since it's not a real path. 58090 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58091 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58092 # a path prefixed by /cygdrive for fixpath to work. 58093 new_path="$CYGWIN_ROOT_PATH$input_path" 58094 fi 58095 fi 58096 58097 58098 if test "x$path" != "x$new_path"; then 58099 MSVC_DLL="$new_path" 58100 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 58101 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 58102 fi 58103 58104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58105 58106 path="$MSVC_DLL" 58107 has_colon=`$ECHO $path | $GREP ^.:` 58108 new_path="$path" 58109 if test "x$has_colon" = x; then 58110 # Not in mixed or Windows style, start by that. 58111 new_path=`cmd //c echo $path` 58112 fi 58113 58114 58115 input_path="$new_path" 58116 # Check if we need to convert this using DOS-style short mode. If the path 58117 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58118 # take no chances and rewrite it. 58119 # Note: m4 eats our [], so we need to use [ and ] instead. 58120 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58121 if test "x$has_forbidden_chars" != x; then 58122 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58123 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58124 fi 58125 58126 58127 windows_path="$new_path" 58128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58129 unix_path=`$CYGPATH -u "$windows_path"` 58130 new_path="$unix_path" 58131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58133 new_path="$unix_path" 58134 fi 58135 58136 if test "x$path" != "x$new_path"; then 58137 MSVC_DLL="$new_path" 58138 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 58139 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 58140 fi 58141 58142 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58143 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58144 58145 else 58146 # We're on a unix platform. Hooray! :) 58147 path="$MSVC_DLL" 58148 has_space=`$ECHO "$path" | $GREP " "` 58149 if test "x$has_space" != x; then 58150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 58151 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 58152 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58153 fi 58154 58155 # Use eval to expand a potential ~ 58156 eval path="$path" 58157 if test ! -f "$path" && test ! -d "$path"; then 58158 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 58159 fi 58160 58161 if test -d "$path"; then 58162 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 58163 else 58164 dir="`$DIRNAME "$path"`" 58165 base="`$BASENAME "$path"`" 58166 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 58167 fi 58168 fi 58169 fi 58170 58171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 58172 $as_echo_n "checking for $DLL_NAME... " >&6; } 58173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 58174 $as_echo "$MSVC_DLL" >&6; } 58175 else 58176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 58177 $as_echo "incorrect, ignoring" >&6; } 58178 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 58179 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 58180 fi 58181 fi 58182 58183 fi 58184 fi 58185 58186 if test "x$MSVC_DLL" = x; then 58187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 58188 $as_echo_n "checking for $DLL_NAME... " >&6; } 58189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58190 $as_echo "no" >&6; } 58191 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 58192 fi 58193 58194 MSVCP_DLL="$MSVC_DLL" 58195 fi 58196 58197 fi 58198 58199 fi 58200 58201 58202 if test "x$NEEDS_LIB_X11" = xfalse; then 58203 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 58204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 58205 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 58206 fi 58207 X_CFLAGS= 58208 X_LIBS= 58209 else 58210 58211 if test "x${with_x}" = xno; then 58212 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 58213 fi 58214 58215 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 58216 # The user has specified a X11 base directory. Use it for includes and 58217 # libraries, unless explicitly overridden. 58218 if test "x$x_includes" = xNONE; then 58219 x_includes="${with_x}/include" 58220 fi 58221 if test "x$x_libraries" = xNONE; then 58222 x_libraries="${with_x}/lib" 58223 fi 58224 else 58225 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 58226 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 58227 # --x-libraries for the sysroot, if that seems to be correct. 58228 if test "x$SYSROOT" != "x"; then 58229 if test "x$x_includes" = xNONE; then 58230 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 58231 x_includes="$SYSROOT/usr/X11R6/include" 58232 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 58233 x_includes="$SYSROOT/usr/include" 58234 fi 58235 fi 58236 if test "x$x_libraries" = xNONE; then 58237 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 58238 x_libraries="$SYSROOT/usr/X11R6/lib" 58239 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58240 x_libraries="$SYSROOT/usr/lib64" 58241 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 58242 x_libraries="$SYSROOT/usr/lib" 58243 fi 58244 fi 58245 fi 58246 fi 58247 58248 # Now let autoconf do it's magic 58249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 58250 $as_echo_n "checking for X... " >&6; } 58251 58252 58253 # Check whether --with-x was given. 58254 if test "${with_x+set}" = set; then : 58255 withval=$with_x; 58256 fi 58257 58258 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 58259 if test "x$with_x" = xno; then 58260 # The user explicitly disabled X. 58261 have_x=disabled 58262 else 58263 case $x_includes,$x_libraries in #( 58264 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 58265 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 58266 $as_echo_n "(cached) " >&6 58267 else 58268 # One or both of the vars are not set, and there is no cached value. 58269 ac_x_includes=no ac_x_libraries=no 58270 rm -f -r conftest.dir 58271 if mkdir conftest.dir; then 58272 cd conftest.dir 58273 cat >Imakefile <<'_ACEOF' 58274 incroot: 58275 @echo incroot='${INCROOT}' 58276 usrlibdir: 58277 @echo usrlibdir='${USRLIBDIR}' 58278 libdir: 58279 @echo libdir='${LIBDIR}' 58280 _ACEOF 58281 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 58282 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 58283 for ac_var in incroot usrlibdir libdir; do 58284 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 58285 done 58286 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 58287 for ac_extension in a so sl dylib la dll; do 58288 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 58289 test -f "$ac_im_libdir/libX11.$ac_extension"; then 58290 ac_im_usrlibdir=$ac_im_libdir; break 58291 fi 58292 done 58293 # Screen out bogus values from the imake configuration. They are 58294 # bogus both because they are the default anyway, and because 58295 # using them would break gcc on systems where it needs fixed includes. 58296 case $ac_im_incroot in 58297 /usr/include) ac_x_includes= ;; 58298 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 58299 esac 58300 case $ac_im_usrlibdir in 58301 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 58302 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 58303 esac 58304 fi 58305 cd .. 58306 rm -f -r conftest.dir 58307 fi 58308 58309 # Standard set of common directories for X headers. 58310 # Check X11 before X11Rn because it is often a symlink to the current release. 58311 ac_x_header_dirs=' 58312 /usr/X11/include 58313 /usr/X11R7/include 58314 /usr/X11R6/include 58315 /usr/X11R5/include 58316 /usr/X11R4/include 58317 58318 /usr/include/X11 58319 /usr/include/X11R7 58320 /usr/include/X11R6 58321 /usr/include/X11R5 58322 /usr/include/X11R4 58323 58324 /usr/local/X11/include 58325 /usr/local/X11R7/include 58326 /usr/local/X11R6/include 58327 /usr/local/X11R5/include 58328 /usr/local/X11R4/include 58329 58330 /usr/local/include/X11 58331 /usr/local/include/X11R7 58332 /usr/local/include/X11R6 58333 /usr/local/include/X11R5 58334 /usr/local/include/X11R4 58335 58336 /usr/X386/include 58337 /usr/x386/include 58338 /usr/XFree86/include/X11 58339 58340 /usr/include 58341 /usr/local/include 58342 /usr/unsupported/include 58343 /usr/athena/include 58344 /usr/local/x11r5/include 58345 /usr/lpp/Xamples/include 58346 58347 /usr/openwin/include 58348 /usr/openwin/share/include' 58349 58350 if test "$ac_x_includes" = no; then 58351 # Guess where to find include files, by looking for Xlib.h. 58352 # First, try using that file with no special directory specified. 58353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58354 /* end confdefs.h. */ 58355 #include <X11/Xlib.h> 58356 _ACEOF 58357 if ac_fn_cxx_try_cpp "$LINENO"; then : 58358 # We can compile using X headers with no special include directory. 58359 ac_x_includes= 58360 else 58361 for ac_dir in $ac_x_header_dirs; do 58362 if test -r "$ac_dir/X11/Xlib.h"; then 58363 ac_x_includes=$ac_dir 58364 break 58365 fi 58366 done 58367 fi 58368 rm -f conftest.err conftest.i conftest.$ac_ext 58369 fi # $ac_x_includes = no 58370 58371 if test "$ac_x_libraries" = no; then 58372 # Check for the libraries. 58373 # See if we find them without any special options. 58374 # Don't add to $LIBS permanently. 58375 ac_save_LIBS=$LIBS 58376 LIBS="-lX11 $LIBS" 58377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58378 /* end confdefs.h. */ 58379 #include <X11/Xlib.h> 58380 int 58381 main () 58382 { 58383 XrmInitialize () 58384 ; 58385 return 0; 58386 } 58387 _ACEOF 58388 if ac_fn_cxx_try_link "$LINENO"; then : 58389 LIBS=$ac_save_LIBS 58390 # We can link X programs with no special library path. 58391 ac_x_libraries= 58392 else 58393 LIBS=$ac_save_LIBS 58394 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 58395 do 58396 # Don't even attempt the hair of trying to link an X program! 58397 for ac_extension in a so sl dylib la dll; do 58398 if test -r "$ac_dir/libX11.$ac_extension"; then 58399 ac_x_libraries=$ac_dir 58400 break 2 58401 fi 58402 done 58403 done 58404 fi 58405 rm -f core conftest.err conftest.$ac_objext \ 58406 conftest$ac_exeext conftest.$ac_ext 58407 fi # $ac_x_libraries = no 58408 58409 case $ac_x_includes,$ac_x_libraries in #( 58410 no,* | *,no | *\'*) 58411 # Didn't find X, or a directory has "'" in its name. 58412 ac_cv_have_x="have_x=no";; #( 58413 *) 58414 # Record where we found X for the cache. 58415 ac_cv_have_x="have_x=yes\ 58416 ac_x_includes='$ac_x_includes'\ 58417 ac_x_libraries='$ac_x_libraries'" 58418 esac 58419 fi 58420 ;; #( 58421 *) have_x=yes;; 58422 esac 58423 eval "$ac_cv_have_x" 58424 fi # $with_x != no 58425 58426 if test "$have_x" != yes; then 58427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 58428 $as_echo "$have_x" >&6; } 58429 no_x=yes 58430 else 58431 # If each of the values was on the command line, it overrides each guess. 58432 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 58433 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 58434 # Update the cache value to reflect the command line values. 58435 ac_cv_have_x="have_x=yes\ 58436 ac_x_includes='$x_includes'\ 58437 ac_x_libraries='$x_libraries'" 58438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 58439 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 58440 fi 58441 58442 if test "$no_x" = yes; then 58443 # Not all programs may use this symbol, but it does not hurt to define it. 58444 58445 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 58446 58447 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 58448 else 58449 if test -n "$x_includes"; then 58450 X_CFLAGS="$X_CFLAGS -I$x_includes" 58451 fi 58452 58453 # It would also be nice to do this for all -L options, not just this one. 58454 if test -n "$x_libraries"; then 58455 X_LIBS="$X_LIBS -L$x_libraries" 58456 # For Solaris; some versions of Sun CC require a space after -R and 58457 # others require no space. Words are not sufficient . . . . 58458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 58459 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 58460 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 58461 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 58462 ac_cxx_werror_flag=yes 58463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58464 /* end confdefs.h. */ 58465 58466 int 58467 main () 58468 { 58469 58470 ; 58471 return 0; 58472 } 58473 _ACEOF 58474 if ac_fn_cxx_try_link "$LINENO"; then : 58475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58476 $as_echo "no" >&6; } 58477 X_LIBS="$X_LIBS -R$x_libraries" 58478 else 58479 LIBS="$ac_xsave_LIBS -R $x_libraries" 58480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58481 /* end confdefs.h. */ 58482 58483 int 58484 main () 58485 { 58486 58487 ; 58488 return 0; 58489 } 58490 _ACEOF 58491 if ac_fn_cxx_try_link "$LINENO"; then : 58492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58493 $as_echo "yes" >&6; } 58494 X_LIBS="$X_LIBS -R $x_libraries" 58495 else 58496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 58497 $as_echo "neither works" >&6; } 58498 fi 58499 rm -f core conftest.err conftest.$ac_objext \ 58500 conftest$ac_exeext conftest.$ac_ext 58501 fi 58502 rm -f core conftest.err conftest.$ac_objext \ 58503 conftest$ac_exeext conftest.$ac_ext 58504 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 58505 LIBS=$ac_xsave_LIBS 58506 fi 58507 58508 # Check for system-dependent libraries X programs must link with. 58509 # Do this before checking for the system-independent R6 libraries 58510 # (-lICE), since we may need -lsocket or whatever for X linking. 58511 58512 if test "$ISC" = yes; then 58513 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 58514 else 58515 # Martyn Johnson says this is needed for Ultrix, if the X 58516 # libraries were built with DECnet support. And Karl Berry says 58517 # the Alpha needs dnet_stub (dnet does not exist). 58518 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 58519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58520 /* end confdefs.h. */ 58521 58522 /* Override any GCC internal prototype to avoid an error. 58523 Use char because int might match the return type of a GCC 58524 builtin and then its argument prototype would still apply. */ 58525 #ifdef __cplusplus 58526 extern "C" 58527 #endif 58528 char XOpenDisplay (); 58529 int 58530 main () 58531 { 58532 return XOpenDisplay (); 58533 ; 58534 return 0; 58535 } 58536 _ACEOF 58537 if ac_fn_cxx_try_link "$LINENO"; then : 58538 58539 else 58540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 58541 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 58542 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 58543 $as_echo_n "(cached) " >&6 58544 else 58545 ac_check_lib_save_LIBS=$LIBS 58546 LIBS="-ldnet $LIBS" 58547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58548 /* end confdefs.h. */ 58549 58550 /* Override any GCC internal prototype to avoid an error. 58551 Use char because int might match the return type of a GCC 58552 builtin and then its argument prototype would still apply. */ 58553 #ifdef __cplusplus 58554 extern "C" 58555 #endif 58556 char dnet_ntoa (); 58557 int 58558 main () 58559 { 58560 return dnet_ntoa (); 58561 ; 58562 return 0; 58563 } 58564 _ACEOF 58565 if ac_fn_cxx_try_link "$LINENO"; then : 58566 ac_cv_lib_dnet_dnet_ntoa=yes 58567 else 58568 ac_cv_lib_dnet_dnet_ntoa=no 58569 fi 58570 rm -f core conftest.err conftest.$ac_objext \ 58571 conftest$ac_exeext conftest.$ac_ext 58572 LIBS=$ac_check_lib_save_LIBS 58573 fi 58574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 58575 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 58576 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 58577 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 58578 fi 58579 58580 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 58581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 58582 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 58583 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 58584 $as_echo_n "(cached) " >&6 58585 else 58586 ac_check_lib_save_LIBS=$LIBS 58587 LIBS="-ldnet_stub $LIBS" 58588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58589 /* end confdefs.h. */ 58590 58591 /* Override any GCC internal prototype to avoid an error. 58592 Use char because int might match the return type of a GCC 58593 builtin and then its argument prototype would still apply. */ 58594 #ifdef __cplusplus 58595 extern "C" 58596 #endif 58597 char dnet_ntoa (); 58598 int 58599 main () 58600 { 58601 return dnet_ntoa (); 58602 ; 58603 return 0; 58604 } 58605 _ACEOF 58606 if ac_fn_cxx_try_link "$LINENO"; then : 58607 ac_cv_lib_dnet_stub_dnet_ntoa=yes 58608 else 58609 ac_cv_lib_dnet_stub_dnet_ntoa=no 58610 fi 58611 rm -f core conftest.err conftest.$ac_objext \ 58612 conftest$ac_exeext conftest.$ac_ext 58613 LIBS=$ac_check_lib_save_LIBS 58614 fi 58615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 58616 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 58617 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 58618 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 58619 fi 58620 58621 fi 58622 fi 58623 rm -f core conftest.err conftest.$ac_objext \ 58624 conftest$ac_exeext conftest.$ac_ext 58625 LIBS="$ac_xsave_LIBS" 58626 58627 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 58628 # to get the SysV transport functions. 58629 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 58630 # needs -lnsl. 58631 # The nsl library prevents programs from opening the X display 58632 # on Irix 5.2, according to T.E. Dickey. 58633 # The functions gethostbyname, getservbyname, and inet_addr are 58634 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 58635 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 58636 if test "x$ac_cv_func_gethostbyname" = xyes; then : 58637 58638 fi 58639 58640 if test $ac_cv_func_gethostbyname = no; then 58641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 58642 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 58643 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 58644 $as_echo_n "(cached) " >&6 58645 else 58646 ac_check_lib_save_LIBS=$LIBS 58647 LIBS="-lnsl $LIBS" 58648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58649 /* end confdefs.h. */ 58650 58651 /* Override any GCC internal prototype to avoid an error. 58652 Use char because int might match the return type of a GCC 58653 builtin and then its argument prototype would still apply. */ 58654 #ifdef __cplusplus 58655 extern "C" 58656 #endif 58657 char gethostbyname (); 58658 int 58659 main () 58660 { 58661 return gethostbyname (); 58662 ; 58663 return 0; 58664 } 58665 _ACEOF 58666 if ac_fn_cxx_try_link "$LINENO"; then : 58667 ac_cv_lib_nsl_gethostbyname=yes 58668 else 58669 ac_cv_lib_nsl_gethostbyname=no 58670 fi 58671 rm -f core conftest.err conftest.$ac_objext \ 58672 conftest$ac_exeext conftest.$ac_ext 58673 LIBS=$ac_check_lib_save_LIBS 58674 fi 58675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 58676 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 58677 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 58678 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 58679 fi 58680 58681 if test $ac_cv_lib_nsl_gethostbyname = no; then 58682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 58683 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 58684 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 58685 $as_echo_n "(cached) " >&6 58686 else 58687 ac_check_lib_save_LIBS=$LIBS 58688 LIBS="-lbsd $LIBS" 58689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58690 /* end confdefs.h. */ 58691 58692 /* Override any GCC internal prototype to avoid an error. 58693 Use char because int might match the return type of a GCC 58694 builtin and then its argument prototype would still apply. */ 58695 #ifdef __cplusplus 58696 extern "C" 58697 #endif 58698 char gethostbyname (); 58699 int 58700 main () 58701 { 58702 return gethostbyname (); 58703 ; 58704 return 0; 58705 } 58706 _ACEOF 58707 if ac_fn_cxx_try_link "$LINENO"; then : 58708 ac_cv_lib_bsd_gethostbyname=yes 58709 else 58710 ac_cv_lib_bsd_gethostbyname=no 58711 fi 58712 rm -f core conftest.err conftest.$ac_objext \ 58713 conftest$ac_exeext conftest.$ac_ext 58714 LIBS=$ac_check_lib_save_LIBS 58715 fi 58716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 58717 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 58718 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 58719 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 58720 fi 58721 58722 fi 58723 fi 58724 58725 # lieder@skyler.mavd.honeywell.com says without -lsocket, 58726 # socket/setsockopt and other routines are undefined under SCO ODT 58727 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 58728 # on later versions), says Simon Leinen: it contains gethostby* 58729 # variants that don't use the name server (or something). -lsocket 58730 # must be given before -lnsl if both are needed. We assume that 58731 # if connect needs -lnsl, so does gethostbyname. 58732 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 58733 if test "x$ac_cv_func_connect" = xyes; then : 58734 58735 fi 58736 58737 if test $ac_cv_func_connect = no; then 58738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 58739 $as_echo_n "checking for connect in -lsocket... " >&6; } 58740 if ${ac_cv_lib_socket_connect+:} false; then : 58741 $as_echo_n "(cached) " >&6 58742 else 58743 ac_check_lib_save_LIBS=$LIBS 58744 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 58745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58746 /* end confdefs.h. */ 58747 58748 /* Override any GCC internal prototype to avoid an error. 58749 Use char because int might match the return type of a GCC 58750 builtin and then its argument prototype would still apply. */ 58751 #ifdef __cplusplus 58752 extern "C" 58753 #endif 58754 char connect (); 58755 int 58756 main () 58757 { 58758 return connect (); 58759 ; 58760 return 0; 58761 } 58762 _ACEOF 58763 if ac_fn_cxx_try_link "$LINENO"; then : 58764 ac_cv_lib_socket_connect=yes 58765 else 58766 ac_cv_lib_socket_connect=no 58767 fi 58768 rm -f core conftest.err conftest.$ac_objext \ 58769 conftest$ac_exeext conftest.$ac_ext 58770 LIBS=$ac_check_lib_save_LIBS 58771 fi 58772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 58773 $as_echo "$ac_cv_lib_socket_connect" >&6; } 58774 if test "x$ac_cv_lib_socket_connect" = xyes; then : 58775 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 58776 fi 58777 58778 fi 58779 58780 # Guillermo Gomez says -lposix is necessary on A/UX. 58781 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 58782 if test "x$ac_cv_func_remove" = xyes; then : 58783 58784 fi 58785 58786 if test $ac_cv_func_remove = no; then 58787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 58788 $as_echo_n "checking for remove in -lposix... " >&6; } 58789 if ${ac_cv_lib_posix_remove+:} false; then : 58790 $as_echo_n "(cached) " >&6 58791 else 58792 ac_check_lib_save_LIBS=$LIBS 58793 LIBS="-lposix $LIBS" 58794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58795 /* end confdefs.h. */ 58796 58797 /* Override any GCC internal prototype to avoid an error. 58798 Use char because int might match the return type of a GCC 58799 builtin and then its argument prototype would still apply. */ 58800 #ifdef __cplusplus 58801 extern "C" 58802 #endif 58803 char remove (); 58804 int 58805 main () 58806 { 58807 return remove (); 58808 ; 58809 return 0; 58810 } 58811 _ACEOF 58812 if ac_fn_cxx_try_link "$LINENO"; then : 58813 ac_cv_lib_posix_remove=yes 58814 else 58815 ac_cv_lib_posix_remove=no 58816 fi 58817 rm -f core conftest.err conftest.$ac_objext \ 58818 conftest$ac_exeext conftest.$ac_ext 58819 LIBS=$ac_check_lib_save_LIBS 58820 fi 58821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 58822 $as_echo "$ac_cv_lib_posix_remove" >&6; } 58823 if test "x$ac_cv_lib_posix_remove" = xyes; then : 58824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 58825 fi 58826 58827 fi 58828 58829 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 58830 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 58831 if test "x$ac_cv_func_shmat" = xyes; then : 58832 58833 fi 58834 58835 if test $ac_cv_func_shmat = no; then 58836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 58837 $as_echo_n "checking for shmat in -lipc... " >&6; } 58838 if ${ac_cv_lib_ipc_shmat+:} false; then : 58839 $as_echo_n "(cached) " >&6 58840 else 58841 ac_check_lib_save_LIBS=$LIBS 58842 LIBS="-lipc $LIBS" 58843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58844 /* end confdefs.h. */ 58845 58846 /* Override any GCC internal prototype to avoid an error. 58847 Use char because int might match the return type of a GCC 58848 builtin and then its argument prototype would still apply. */ 58849 #ifdef __cplusplus 58850 extern "C" 58851 #endif 58852 char shmat (); 58853 int 58854 main () 58855 { 58856 return shmat (); 58857 ; 58858 return 0; 58859 } 58860 _ACEOF 58861 if ac_fn_cxx_try_link "$LINENO"; then : 58862 ac_cv_lib_ipc_shmat=yes 58863 else 58864 ac_cv_lib_ipc_shmat=no 58865 fi 58866 rm -f core conftest.err conftest.$ac_objext \ 58867 conftest$ac_exeext conftest.$ac_ext 58868 LIBS=$ac_check_lib_save_LIBS 58869 fi 58870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 58871 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 58872 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 58873 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 58874 fi 58875 58876 fi 58877 fi 58878 58879 # Check for libraries that X11R6 Xt/Xaw programs need. 58880 ac_save_LDFLAGS=$LDFLAGS 58881 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 58882 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 58883 # check for ICE first), but we must link in the order -lSM -lICE or 58884 # we get undefined symbols. So assume we have SM if we have ICE. 58885 # These have to be linked with before -lX11, unlike the other 58886 # libraries we check for below, so use a different variable. 58887 # John Interrante, Karl Berry 58888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 58889 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 58890 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 58891 $as_echo_n "(cached) " >&6 58892 else 58893 ac_check_lib_save_LIBS=$LIBS 58894 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 58895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58896 /* end confdefs.h. */ 58897 58898 /* Override any GCC internal prototype to avoid an error. 58899 Use char because int might match the return type of a GCC 58900 builtin and then its argument prototype would still apply. */ 58901 #ifdef __cplusplus 58902 extern "C" 58903 #endif 58904 char IceConnectionNumber (); 58905 int 58906 main () 58907 { 58908 return IceConnectionNumber (); 58909 ; 58910 return 0; 58911 } 58912 _ACEOF 58913 if ac_fn_cxx_try_link "$LINENO"; then : 58914 ac_cv_lib_ICE_IceConnectionNumber=yes 58915 else 58916 ac_cv_lib_ICE_IceConnectionNumber=no 58917 fi 58918 rm -f core conftest.err conftest.$ac_objext \ 58919 conftest$ac_exeext conftest.$ac_ext 58920 LIBS=$ac_check_lib_save_LIBS 58921 fi 58922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 58923 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 58924 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 58925 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 58926 fi 58927 58928 LDFLAGS=$ac_save_LDFLAGS 58929 58930 fi 58931 58932 58933 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 58934 # this doesn't make sense so we remove it. 58935 if test "x$COMPILE_TYPE" = xcross; then 58936 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 58937 fi 58938 58939 if test "x$no_x" = xyes; then 58940 58941 # Print a helpful message on how to acquire the necessary build dependency. 58942 # x11 is the help tag: freetype, cups, alsa etc 58943 MISSING_DEPENDENCY=x11 58944 58945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58946 cygwin_help $MISSING_DEPENDENCY 58947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58948 msys_help $MISSING_DEPENDENCY 58949 else 58950 PKGHANDLER_COMMAND= 58951 58952 case $PKGHANDLER in 58953 apt-get) 58954 apt_help $MISSING_DEPENDENCY ;; 58955 yum) 58956 yum_help $MISSING_DEPENDENCY ;; 58957 brew) 58958 brew_help $MISSING_DEPENDENCY ;; 58959 port) 58960 port_help $MISSING_DEPENDENCY ;; 58961 pkgutil) 58962 pkgutil_help $MISSING_DEPENDENCY ;; 58963 pkgadd) 58964 pkgadd_help $MISSING_DEPENDENCY ;; 58965 esac 58966 58967 if test "x$PKGHANDLER_COMMAND" != x; then 58968 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58969 fi 58970 fi 58971 58972 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 58973 fi 58974 58975 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 58976 OPENWIN_HOME="/usr/openwin" 58977 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 58978 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 58979 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 58980 fi 58981 58982 ac_ext=c 58983 ac_cpp='$CPP $CPPFLAGS' 58984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58986 ac_compiler_gnu=$ac_cv_c_compiler_gnu 58987 58988 OLD_CFLAGS="$CFLAGS" 58989 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 58990 58991 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 58992 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 58993 do : 58994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 58995 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 58996 # include <X11/Xlib.h> 58997 # include <X11/Xutil.h> 58998 58999 59000 " 59001 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 59002 cat >>confdefs.h <<_ACEOF 59003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 59004 _ACEOF 59005 X11_HEADERS_OK=yes 59006 else 59007 X11_HEADERS_OK=no; break 59008 fi 59009 59010 done 59011 59012 59013 if test "x$X11_HEADERS_OK" = xno; then 59014 59015 # Print a helpful message on how to acquire the necessary build dependency. 59016 # x11 is the help tag: freetype, cups, alsa etc 59017 MISSING_DEPENDENCY=x11 59018 59019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59020 cygwin_help $MISSING_DEPENDENCY 59021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59022 msys_help $MISSING_DEPENDENCY 59023 else 59024 PKGHANDLER_COMMAND= 59025 59026 case $PKGHANDLER in 59027 apt-get) 59028 apt_help $MISSING_DEPENDENCY ;; 59029 yum) 59030 yum_help $MISSING_DEPENDENCY ;; 59031 brew) 59032 brew_help $MISSING_DEPENDENCY ;; 59033 port) 59034 port_help $MISSING_DEPENDENCY ;; 59035 pkgutil) 59036 pkgutil_help $MISSING_DEPENDENCY ;; 59037 pkgadd) 59038 pkgadd_help $MISSING_DEPENDENCY ;; 59039 esac 59040 59041 if test "x$PKGHANDLER_COMMAND" != x; then 59042 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59043 fi 59044 fi 59045 59046 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 59047 fi 59048 59049 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 59050 # defined in libawt_xawt. 59051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 59052 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 59053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59054 /* end confdefs.h. */ 59055 #include <X11/extensions/Xrender.h> 59056 int 59057 main () 59058 { 59059 XLinearGradient x; 59060 ; 59061 return 0; 59062 } 59063 _ACEOF 59064 if ac_fn_c_try_compile "$LINENO"; then : 59065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 59066 $as_echo "yes" >&6; } 59067 else 59068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59069 $as_echo "no" >&6; } 59070 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 59071 fi 59072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59073 59074 CFLAGS="$OLD_CFLAGS" 59075 ac_ext=cpp 59076 ac_cpp='$CXXCPP $CPPFLAGS' 59077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 59078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 59079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 59080 59081 fi # NEEDS_LIB_X11 59082 59083 59084 59085 59086 59087 59088 # Check whether --with-cups was given. 59089 if test "${with_cups+set}" = set; then : 59090 withval=$with_cups; 59091 fi 59092 59093 59094 # Check whether --with-cups-include was given. 59095 if test "${with_cups_include+set}" = set; then : 59096 withval=$with_cups_include; 59097 fi 59098 59099 59100 if test "x$NEEDS_LIB_CUPS" = xfalse; then 59101 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 59102 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 59103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 59104 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 59105 fi 59106 CUPS_CFLAGS= 59107 else 59108 CUPS_FOUND=no 59109 59110 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 59111 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 59112 fi 59113 59114 if test "x${with_cups}" != x; then 59115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 59116 $as_echo_n "checking for cups headers... " >&6; } 59117 if test -s "${with_cups}/include/cups/cups.h"; then 59118 CUPS_CFLAGS="-I${with_cups}/include" 59119 CUPS_FOUND=yes 59120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 59121 $as_echo "$CUPS_FOUND" >&6; } 59122 else 59123 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 59124 fi 59125 fi 59126 if test "x${with_cups_include}" != x; then 59127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 59128 $as_echo_n "checking for cups headers... " >&6; } 59129 if test -s "${with_cups_include}/cups/cups.h"; then 59130 CUPS_CFLAGS="-I${with_cups_include}" 59131 CUPS_FOUND=yes 59132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 59133 $as_echo "$CUPS_FOUND" >&6; } 59134 else 59135 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 59136 fi 59137 fi 59138 if test "x$CUPS_FOUND" = xno; then 59139 # Are the cups headers installed in the default /usr/include location? 59140 for ac_header in cups/cups.h cups/ppd.h 59141 do : 59142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 59143 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 59144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 59145 cat >>confdefs.h <<_ACEOF 59146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 59147 _ACEOF 59148 59149 CUPS_FOUND=yes 59150 CUPS_CFLAGS= 59151 DEFAULT_CUPS=yes 59152 59153 fi 59154 59155 done 59156 59157 fi 59158 if test "x$CUPS_FOUND" = xno; then 59159 59160 # Print a helpful message on how to acquire the necessary build dependency. 59161 # cups is the help tag: freetype, cups, alsa etc 59162 MISSING_DEPENDENCY=cups 59163 59164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59165 cygwin_help $MISSING_DEPENDENCY 59166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59167 msys_help $MISSING_DEPENDENCY 59168 else 59169 PKGHANDLER_COMMAND= 59170 59171 case $PKGHANDLER in 59172 apt-get) 59173 apt_help $MISSING_DEPENDENCY ;; 59174 yum) 59175 yum_help $MISSING_DEPENDENCY ;; 59176 brew) 59177 brew_help $MISSING_DEPENDENCY ;; 59178 port) 59179 port_help $MISSING_DEPENDENCY ;; 59180 pkgutil) 59181 pkgutil_help $MISSING_DEPENDENCY ;; 59182 pkgadd) 59183 pkgadd_help $MISSING_DEPENDENCY ;; 59184 esac 59185 59186 if test "x$PKGHANDLER_COMMAND" != x; then 59187 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59188 fi 59189 fi 59190 59191 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 59192 fi 59193 fi 59194 59195 59196 59197 59198 59199 # Check whether --with-fontconfig was given. 59200 if test "${with_fontconfig+set}" = set; then : 59201 withval=$with_fontconfig; 59202 fi 59203 59204 59205 # Check whether --with-fontconfig-include was given. 59206 if test "${with_fontconfig_include+set}" = set; then : 59207 withval=$with_fontconfig_include; 59208 fi 59209 59210 59211 if test "x$NEEDS_LIB_FONTCONFIG" = xfalse; then 59212 if (test "x${with_fontconfig}" != x && test "x${with_fontconfig}" != xno) || \ 59213 (test "x${with_fontconfig_include}" != x && test "x${with_fontconfig_include}" != xno); then 59214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&5 59215 $as_echo "$as_me: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&2;} 59216 fi 59217 FONTCONFIG_CFLAGS= 59218 else 59219 FONTCONFIG_FOUND=no 59220 59221 if test "x${with_fontconfig}" = xno || test "x${with_fontconfig_include}" = xno; then 59222 as_fn_error $? "It is not possible to disable the use of fontconfig. Remove the --without-fontconfig option." "$LINENO" 5 59223 fi 59224 59225 if test "x${with_fontconfig}" != x; then 59226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 59227 $as_echo_n "checking for fontconfig headers... " >&6; } 59228 if test -s "${with_fontconfig}/include/fontconfig/fontconfig.h"; then 59229 FONTCONFIG_CFLAGS="-I${with_fontconfig}/include" 59230 FONTCONFIG_FOUND=yes 59231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 59232 $as_echo "$FONTCONFIG_FOUND" >&6; } 59233 else 59234 as_fn_error $? "Can't find 'include/fontconfig/fontconfig.h' under ${with_fontconfig} given with the --with-fontconfig option." "$LINENO" 5 59235 fi 59236 fi 59237 if test "x${with_fontconfig_include}" != x; then 59238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 59239 $as_echo_n "checking for fontconfig headers... " >&6; } 59240 if test -s "${with_fontconfig_include}/fontconfig/fontconfig.h"; then 59241 FONTCONFIG_CFLAGS="-I${with_fontconfig_include}" 59242 FONTCONFIG_FOUND=yes 59243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 59244 $as_echo "$FONTCONFIG_FOUND" >&6; } 59245 else 59246 as_fn_error $? "Can't find 'fontconfig/fontconfig.h' under ${with_fontconfig_include} given with the --with-fontconfig-include option." "$LINENO" 5 59247 fi 59248 fi 59249 if test "x$FONTCONFIG_FOUND" = xno; then 59250 # Are the fontconfig headers installed in the default /usr/include location? 59251 for ac_header in fontconfig/fontconfig.h 59252 do : 59253 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" 59254 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : 59255 cat >>confdefs.h <<_ACEOF 59256 #define HAVE_FONTCONFIG_FONTCONFIG_H 1 59257 _ACEOF 59258 59259 FONTCONFIG_FOUND=yes 59260 FONTCONFIG_CFLAGS= 59261 DEFAULT_FONTCONFIG=yes 59262 59263 fi 59264 59265 done 59266 59267 fi 59268 if test "x$FONTCONFIG_FOUND" = xno; then 59269 59270 # Print a helpful message on how to acquire the necessary build dependency. 59271 # fontconfig is the help tag: freetype, cups, alsa etc 59272 MISSING_DEPENDENCY=fontconfig 59273 59274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59275 cygwin_help $MISSING_DEPENDENCY 59276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59277 msys_help $MISSING_DEPENDENCY 59278 else 59279 PKGHANDLER_COMMAND= 59280 59281 case $PKGHANDLER in 59282 apt-get) 59283 apt_help $MISSING_DEPENDENCY ;; 59284 yum) 59285 yum_help $MISSING_DEPENDENCY ;; 59286 brew) 59287 brew_help $MISSING_DEPENDENCY ;; 59288 port) 59289 port_help $MISSING_DEPENDENCY ;; 59290 pkgutil) 59291 pkgutil_help $MISSING_DEPENDENCY ;; 59292 pkgadd) 59293 pkgadd_help $MISSING_DEPENDENCY ;; 59294 esac 59295 59296 if test "x$PKGHANDLER_COMMAND" != x; then 59297 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59298 fi 59299 fi 59300 59301 as_fn_error $? "Could not find fontconfig! $HELP_MSG " "$LINENO" 5 59302 fi 59303 fi 59304 59305 59306 59307 59308 59309 # Check whether --with-freetype was given. 59310 if test "${with_freetype+set}" = set; then : 59311 withval=$with_freetype; 59312 fi 59313 59314 59315 # Check whether --with-freetype-include was given. 59316 if test "${with_freetype_include+set}" = set; then : 59317 withval=$with_freetype_include; 59318 fi 59319 59320 59321 # Check whether --with-freetype-lib was given. 59322 if test "${with_freetype_lib+set}" = set; then : 59323 withval=$with_freetype_lib; 59324 fi 59325 59326 59327 # Check whether --with-freetype-src was given. 59328 if test "${with_freetype_src+set}" = set; then : 59329 withval=$with_freetype_src; 59330 fi 59331 59332 # Check whether --enable-freetype-bundling was given. 59333 if test "${enable_freetype_bundling+set}" = set; then : 59334 enableval=$enable_freetype_bundling; 59335 fi 59336 59337 59338 # Check whether --with-freetype-license was given. 59339 if test "${with_freetype_license+set}" = set; then : 59340 withval=$with_freetype_license; 59341 fi 59342 59343 59344 # Need to specify explicitly since it needs to be overridden on some versions of macosx 59345 FREETYPE_BASE_NAME=freetype 59346 FREETYPE_CFLAGS= 59347 FREETYPE_LIBS= 59348 FREETYPE_BUNDLE_LIB_PATH= 59349 59350 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 59351 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 59352 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 59353 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 59354 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 59355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 59356 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 59357 fi 59358 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 59359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 59360 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 59361 fi 59362 else 59363 # freetype is needed to build; go get it! 59364 59365 BUNDLE_FREETYPE="$enable_freetype_bundling" 59366 59367 if test "x$with_freetype_src" != x; then 59368 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59369 # Try to build freetype if --with-freetype-src was given on Windows 59370 59371 FREETYPE_SRC_PATH="$with_freetype_src" 59372 BUILD_FREETYPE=yes 59373 59374 # Check if the freetype sources are acessible.. 59375 if ! test -d $FREETYPE_SRC_PATH; then 59376 { $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 59377 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59378 BUILD_FREETYPE=no 59379 fi 59380 # ..and contain a vc2010 project file 59381 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59382 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59383 { $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 59384 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59385 BUILD_FREETYPE=no 59386 fi 59387 # Now check if configure found a version of 'msbuild.exe' 59388 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59389 { $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 59390 $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;} 59391 BUILD_FREETYPE=no 59392 fi 59393 59394 # Ready to go.. 59395 if test "x$BUILD_FREETYPE" = xyes; then 59396 # msbuild requires trailing slashes for output directories 59397 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59398 freetype_lib_path_unix="$freetype_lib_path" 59399 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59400 59401 unix_path="$vcxproj_path" 59402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59403 windows_path=`$CYGPATH -m "$unix_path"` 59404 vcxproj_path="$windows_path" 59405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59406 windows_path=`cmd //c echo $unix_path` 59407 vcxproj_path="$windows_path" 59408 fi 59409 59410 59411 unix_path="$freetype_lib_path" 59412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59413 windows_path=`$CYGPATH -m "$unix_path"` 59414 freetype_lib_path="$windows_path" 59415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59416 windows_path=`cmd //c echo $unix_path` 59417 freetype_lib_path="$windows_path" 59418 fi 59419 59420 59421 unix_path="$freetype_obj_path" 59422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59423 windows_path=`$CYGPATH -m "$unix_path"` 59424 freetype_obj_path="$windows_path" 59425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59426 windows_path=`cmd //c echo $unix_path` 59427 freetype_obj_path="$windows_path" 59428 fi 59429 59430 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59431 freetype_platform=x64 59432 else 59433 freetype_platform=win32 59434 fi 59435 59436 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59437 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59438 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59439 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59440 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59441 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59442 59443 # First we try to build the freetype.dll 59444 $ECHO -e "@echo off\n"\ 59445 "$MSBUILD $vcxproj_path "\ 59446 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59447 "/p:Configuration=\"Release Multithreaded\" "\ 59448 "/p:Platform=$freetype_platform "\ 59449 "/p:ConfigurationType=DynamicLibrary "\ 59450 "/p:TargetName=freetype "\ 59451 "/p:OutDir=\"$freetype_lib_path\" "\ 59452 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59453 cmd /c freetype.bat 59454 59455 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59456 # If that succeeds we also build freetype.lib 59457 $ECHO -e "@echo off\n"\ 59458 "$MSBUILD $vcxproj_path "\ 59459 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59460 "/p:Configuration=\"Release Multithreaded\" "\ 59461 "/p:Platform=$freetype_platform "\ 59462 "/p:ConfigurationType=StaticLibrary "\ 59463 "/p:TargetName=freetype "\ 59464 "/p:OutDir=\"$freetype_lib_path\" "\ 59465 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59466 cmd /c freetype.bat 59467 59468 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59469 # Once we build both, lib and dll, set freetype lib and include path appropriately 59470 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59471 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59472 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59473 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59474 else 59475 BUILD_FREETYPE=no 59476 fi 59477 else 59478 BUILD_FREETYPE=no 59479 fi 59480 fi 59481 59482 if test "x$BUILD_FREETYPE" = xyes; then 59483 # Okay, we built it. Check that it works. 59484 59485 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59486 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59487 METHOD="--with-freetype-src" 59488 59489 # Let's start with an optimistic view of the world :-) 59490 FOUND_FREETYPE=yes 59491 59492 # First look for the canonical freetype main include file ft2build.h. 59493 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59494 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59495 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59496 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59497 # Fail. 59498 FOUND_FREETYPE=no 59499 fi 59500 fi 59501 59502 if test "x$FOUND_FREETYPE" = xyes; then 59503 # Include file found, let's continue the sanity check. 59504 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59505 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59506 59507 # Reset to default value 59508 FREETYPE_BASE_NAME=freetype 59509 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59510 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59511 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59512 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59513 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59514 # for the .6 version explicitly. 59515 FREETYPE_BASE_NAME=freetype.6 59516 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59517 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59518 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59519 else 59520 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59521 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59522 FOUND_FREETYPE=no 59523 fi 59524 else 59525 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59526 # On Windows, we will need both .lib and .dll file. 59527 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59528 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59529 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59530 FOUND_FREETYPE=no 59531 fi 59532 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59533 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59534 # Found lib in isa dir, use that instead. 59535 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59536 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59537 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59538 fi 59539 fi 59540 fi 59541 59542 if test "x$FOUND_FREETYPE" = xyes; then 59543 59544 # Only process if variable expands to non-empty 59545 59546 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59547 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59548 59549 # Input might be given as Windows format, start by converting to 59550 # unix format. 59551 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59552 new_path=`$CYGPATH -u "$path"` 59553 59554 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59555 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59556 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59557 # "foo.exe" is OK but "foo" is an error. 59558 # 59559 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59560 # It is also a way to make sure we got the proper file name for the real test later on. 59561 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59562 if test "x$test_shortpath" = x; then 59563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59564 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59565 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59566 fi 59567 59568 # Call helper function which possibly converts this using DOS-style short mode. 59569 # If so, the updated path is stored in $new_path. 59570 59571 input_path="$new_path" 59572 # Check if we need to convert this using DOS-style short mode. If the path 59573 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59574 # take no chances and rewrite it. 59575 # Note: m4 eats our [], so we need to use [ and ] instead. 59576 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59577 if test "x$has_forbidden_chars" != x; then 59578 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59579 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59580 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59581 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59582 # Going to short mode and back again did indeed matter. Since short mode is 59583 # case insensitive, let's make it lowercase to improve readability. 59584 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59585 # Now convert it back to Unix-style (cygpath) 59586 input_path=`$CYGPATH -u "$shortmode_path"` 59587 new_path="$input_path" 59588 fi 59589 fi 59590 59591 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59592 if test "x$test_cygdrive_prefix" = x; then 59593 # As a simple fix, exclude /usr/bin since it's not a real path. 59594 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59595 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59596 # a path prefixed by /cygdrive for fixpath to work. 59597 new_path="$CYGWIN_ROOT_PATH$input_path" 59598 fi 59599 fi 59600 59601 59602 if test "x$path" != "x$new_path"; then 59603 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59604 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59605 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59606 fi 59607 59608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59609 59610 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59611 has_colon=`$ECHO $path | $GREP ^.:` 59612 new_path="$path" 59613 if test "x$has_colon" = x; then 59614 # Not in mixed or Windows style, start by that. 59615 new_path=`cmd //c echo $path` 59616 fi 59617 59618 59619 input_path="$new_path" 59620 # Check if we need to convert this using DOS-style short mode. If the path 59621 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59622 # take no chances and rewrite it. 59623 # Note: m4 eats our [], so we need to use [ and ] instead. 59624 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59625 if test "x$has_forbidden_chars" != x; then 59626 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59627 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59628 fi 59629 59630 59631 windows_path="$new_path" 59632 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59633 unix_path=`$CYGPATH -u "$windows_path"` 59634 new_path="$unix_path" 59635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59636 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59637 new_path="$unix_path" 59638 fi 59639 59640 if test "x$path" != "x$new_path"; then 59641 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59642 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59643 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59644 fi 59645 59646 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59647 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59648 59649 else 59650 # We're on a unix platform. Hooray! :) 59651 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59652 has_space=`$ECHO "$path" | $GREP " "` 59653 if test "x$has_space" != x; then 59654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59655 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59656 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59657 fi 59658 59659 # Use eval to expand a potential ~ 59660 eval path="$path" 59661 if test ! -f "$path" && test ! -d "$path"; then 59662 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59663 fi 59664 59665 if test -d "$path"; then 59666 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59667 else 59668 dir="`$DIRNAME "$path"`" 59669 base="`$BASENAME "$path"`" 59670 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59671 fi 59672 fi 59673 fi 59674 59675 59676 # Only process if variable expands to non-empty 59677 59678 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59680 59681 # Input might be given as Windows format, start by converting to 59682 # unix format. 59683 path="$POTENTIAL_FREETYPE_LIB_PATH" 59684 new_path=`$CYGPATH -u "$path"` 59685 59686 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59687 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59688 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59689 # "foo.exe" is OK but "foo" is an error. 59690 # 59691 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59692 # It is also a way to make sure we got the proper file name for the real test later on. 59693 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59694 if test "x$test_shortpath" = x; then 59695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59696 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59697 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59698 fi 59699 59700 # Call helper function which possibly converts this using DOS-style short mode. 59701 # If so, the updated path is stored in $new_path. 59702 59703 input_path="$new_path" 59704 # Check if we need to convert this using DOS-style short mode. If the path 59705 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59706 # take no chances and rewrite it. 59707 # Note: m4 eats our [], so we need to use [ and ] instead. 59708 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59709 if test "x$has_forbidden_chars" != x; then 59710 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59711 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59712 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59713 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59714 # Going to short mode and back again did indeed matter. Since short mode is 59715 # case insensitive, let's make it lowercase to improve readability. 59716 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59717 # Now convert it back to Unix-style (cygpath) 59718 input_path=`$CYGPATH -u "$shortmode_path"` 59719 new_path="$input_path" 59720 fi 59721 fi 59722 59723 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59724 if test "x$test_cygdrive_prefix" = x; then 59725 # As a simple fix, exclude /usr/bin since it's not a real path. 59726 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59727 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59728 # a path prefixed by /cygdrive for fixpath to work. 59729 new_path="$CYGWIN_ROOT_PATH$input_path" 59730 fi 59731 fi 59732 59733 59734 if test "x$path" != "x$new_path"; then 59735 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59736 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59737 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59738 fi 59739 59740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59741 59742 path="$POTENTIAL_FREETYPE_LIB_PATH" 59743 has_colon=`$ECHO $path | $GREP ^.:` 59744 new_path="$path" 59745 if test "x$has_colon" = x; then 59746 # Not in mixed or Windows style, start by that. 59747 new_path=`cmd //c echo $path` 59748 fi 59749 59750 59751 input_path="$new_path" 59752 # Check if we need to convert this using DOS-style short mode. If the path 59753 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59754 # take no chances and rewrite it. 59755 # Note: m4 eats our [], so we need to use [ and ] instead. 59756 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59757 if test "x$has_forbidden_chars" != x; then 59758 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59759 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59760 fi 59761 59762 59763 windows_path="$new_path" 59764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59765 unix_path=`$CYGPATH -u "$windows_path"` 59766 new_path="$unix_path" 59767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59768 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59769 new_path="$unix_path" 59770 fi 59771 59772 if test "x$path" != "x$new_path"; then 59773 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59774 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59775 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59776 fi 59777 59778 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59779 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59780 59781 else 59782 # We're on a unix platform. Hooray! :) 59783 path="$POTENTIAL_FREETYPE_LIB_PATH" 59784 has_space=`$ECHO "$path" | $GREP " "` 59785 if test "x$has_space" != x; then 59786 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59787 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59788 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59789 fi 59790 59791 # Use eval to expand a potential ~ 59792 eval path="$path" 59793 if test ! -f "$path" && test ! -d "$path"; then 59794 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59795 fi 59796 59797 if test -d "$path"; then 59798 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59799 else 59800 dir="`$DIRNAME "$path"`" 59801 base="`$BASENAME "$path"`" 59802 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59803 fi 59804 fi 59805 fi 59806 59807 59808 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59810 $as_echo_n "checking for freetype includes... " >&6; } 59811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59812 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59813 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59815 $as_echo_n "checking for freetype libraries... " >&6; } 59816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59817 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59818 fi 59819 59820 if test "x$FOUND_FREETYPE" != xyes; then 59821 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 59822 fi 59823 else 59824 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 59825 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 59826 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 59827 fi 59828 else 59829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 59830 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 59831 fi 59832 fi 59833 59834 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 59835 # User has specified settings 59836 59837 if test "x$BUNDLE_FREETYPE" = x; then 59838 # If not specified, default is to bundle freetype 59839 BUNDLE_FREETYPE=yes 59840 fi 59841 59842 if test "x$with_freetype" != x; then 59843 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 59844 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 59845 fi 59846 59847 # Allow --with-freetype-lib and --with-freetype-include to override 59848 if test "x$with_freetype_include" != x; then 59849 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 59850 fi 59851 if test "x$with_freetype_lib" != x; then 59852 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 59853 fi 59854 59855 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59856 # Okay, we got it. Check that it works. 59857 59858 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59859 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59860 METHOD="--with-freetype" 59861 59862 # Let's start with an optimistic view of the world :-) 59863 FOUND_FREETYPE=yes 59864 59865 # First look for the canonical freetype main include file ft2build.h. 59866 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59867 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59868 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59869 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59870 # Fail. 59871 FOUND_FREETYPE=no 59872 fi 59873 fi 59874 59875 if test "x$FOUND_FREETYPE" = xyes; then 59876 # Include file found, let's continue the sanity check. 59877 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59878 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59879 59880 # Reset to default value 59881 FREETYPE_BASE_NAME=freetype 59882 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59883 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59884 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59885 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59886 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59887 # for the .6 version explicitly. 59888 FREETYPE_BASE_NAME=freetype.6 59889 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59890 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59891 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59892 else 59893 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59894 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59895 FOUND_FREETYPE=no 59896 fi 59897 else 59898 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59899 # On Windows, we will need both .lib and .dll file. 59900 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59901 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59902 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59903 FOUND_FREETYPE=no 59904 fi 59905 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59906 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59907 # Found lib in isa dir, use that instead. 59908 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59909 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59910 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59911 fi 59912 fi 59913 fi 59914 59915 if test "x$FOUND_FREETYPE" = xyes; then 59916 59917 # Only process if variable expands to non-empty 59918 59919 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59921 59922 # Input might be given as Windows format, start by converting to 59923 # unix format. 59924 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59925 new_path=`$CYGPATH -u "$path"` 59926 59927 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59928 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59929 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59930 # "foo.exe" is OK but "foo" is an error. 59931 # 59932 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59933 # It is also a way to make sure we got the proper file name for the real test later on. 59934 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59935 if test "x$test_shortpath" = x; then 59936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59937 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59938 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59939 fi 59940 59941 # Call helper function which possibly converts this using DOS-style short mode. 59942 # If so, the updated path is stored in $new_path. 59943 59944 input_path="$new_path" 59945 # Check if we need to convert this using DOS-style short mode. If the path 59946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59947 # take no chances and rewrite it. 59948 # Note: m4 eats our [], so we need to use [ and ] instead. 59949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59950 if test "x$has_forbidden_chars" != x; then 59951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59952 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59953 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59954 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59955 # Going to short mode and back again did indeed matter. Since short mode is 59956 # case insensitive, let's make it lowercase to improve readability. 59957 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59958 # Now convert it back to Unix-style (cygpath) 59959 input_path=`$CYGPATH -u "$shortmode_path"` 59960 new_path="$input_path" 59961 fi 59962 fi 59963 59964 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59965 if test "x$test_cygdrive_prefix" = x; then 59966 # As a simple fix, exclude /usr/bin since it's not a real path. 59967 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59968 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59969 # a path prefixed by /cygdrive for fixpath to work. 59970 new_path="$CYGWIN_ROOT_PATH$input_path" 59971 fi 59972 fi 59973 59974 59975 if test "x$path" != "x$new_path"; then 59976 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59978 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59979 fi 59980 59981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59982 59983 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59984 has_colon=`$ECHO $path | $GREP ^.:` 59985 new_path="$path" 59986 if test "x$has_colon" = x; then 59987 # Not in mixed or Windows style, start by that. 59988 new_path=`cmd //c echo $path` 59989 fi 59990 59991 59992 input_path="$new_path" 59993 # Check if we need to convert this using DOS-style short mode. If the path 59994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59995 # take no chances and rewrite it. 59996 # Note: m4 eats our [], so we need to use [ and ] instead. 59997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59998 if test "x$has_forbidden_chars" != x; then 59999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60000 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60001 fi 60002 60003 60004 windows_path="$new_path" 60005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60006 unix_path=`$CYGPATH -u "$windows_path"` 60007 new_path="$unix_path" 60008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60010 new_path="$unix_path" 60011 fi 60012 60013 if test "x$path" != "x$new_path"; then 60014 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60015 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60016 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60017 fi 60018 60019 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60020 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60021 60022 else 60023 # We're on a unix platform. Hooray! :) 60024 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60025 has_space=`$ECHO "$path" | $GREP " "` 60026 if test "x$has_space" != x; then 60027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60028 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60029 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60030 fi 60031 60032 # Use eval to expand a potential ~ 60033 eval path="$path" 60034 if test ! -f "$path" && test ! -d "$path"; then 60035 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60036 fi 60037 60038 if test -d "$path"; then 60039 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60040 else 60041 dir="`$DIRNAME "$path"`" 60042 base="`$BASENAME "$path"`" 60043 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60044 fi 60045 fi 60046 fi 60047 60048 60049 # Only process if variable expands to non-empty 60050 60051 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60053 60054 # Input might be given as Windows format, start by converting to 60055 # unix format. 60056 path="$POTENTIAL_FREETYPE_LIB_PATH" 60057 new_path=`$CYGPATH -u "$path"` 60058 60059 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60060 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60061 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60062 # "foo.exe" is OK but "foo" is an error. 60063 # 60064 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60065 # It is also a way to make sure we got the proper file name for the real test later on. 60066 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60067 if test "x$test_shortpath" = x; then 60068 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60069 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60070 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60071 fi 60072 60073 # Call helper function which possibly converts this using DOS-style short mode. 60074 # If so, the updated path is stored in $new_path. 60075 60076 input_path="$new_path" 60077 # Check if we need to convert this using DOS-style short mode. If the path 60078 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60079 # take no chances and rewrite it. 60080 # Note: m4 eats our [], so we need to use [ and ] instead. 60081 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60082 if test "x$has_forbidden_chars" != x; then 60083 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60084 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60085 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60086 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60087 # Going to short mode and back again did indeed matter. Since short mode is 60088 # case insensitive, let's make it lowercase to improve readability. 60089 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60090 # Now convert it back to Unix-style (cygpath) 60091 input_path=`$CYGPATH -u "$shortmode_path"` 60092 new_path="$input_path" 60093 fi 60094 fi 60095 60096 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60097 if test "x$test_cygdrive_prefix" = x; then 60098 # As a simple fix, exclude /usr/bin since it's not a real path. 60099 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60100 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60101 # a path prefixed by /cygdrive for fixpath to work. 60102 new_path="$CYGWIN_ROOT_PATH$input_path" 60103 fi 60104 fi 60105 60106 60107 if test "x$path" != "x$new_path"; then 60108 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60109 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60110 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60111 fi 60112 60113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60114 60115 path="$POTENTIAL_FREETYPE_LIB_PATH" 60116 has_colon=`$ECHO $path | $GREP ^.:` 60117 new_path="$path" 60118 if test "x$has_colon" = x; then 60119 # Not in mixed or Windows style, start by that. 60120 new_path=`cmd //c echo $path` 60121 fi 60122 60123 60124 input_path="$new_path" 60125 # Check if we need to convert this using DOS-style short mode. If the path 60126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60127 # take no chances and rewrite it. 60128 # Note: m4 eats our [], so we need to use [ and ] instead. 60129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60130 if test "x$has_forbidden_chars" != x; then 60131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60132 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60133 fi 60134 60135 60136 windows_path="$new_path" 60137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60138 unix_path=`$CYGPATH -u "$windows_path"` 60139 new_path="$unix_path" 60140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60141 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60142 new_path="$unix_path" 60143 fi 60144 60145 if test "x$path" != "x$new_path"; then 60146 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60148 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60149 fi 60150 60151 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60152 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60153 60154 else 60155 # We're on a unix platform. Hooray! :) 60156 path="$POTENTIAL_FREETYPE_LIB_PATH" 60157 has_space=`$ECHO "$path" | $GREP " "` 60158 if test "x$has_space" != x; then 60159 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60160 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60161 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60162 fi 60163 60164 # Use eval to expand a potential ~ 60165 eval path="$path" 60166 if test ! -f "$path" && test ! -d "$path"; then 60167 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60168 fi 60169 60170 if test -d "$path"; then 60171 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60172 else 60173 dir="`$DIRNAME "$path"`" 60174 base="`$BASENAME "$path"`" 60175 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60176 fi 60177 fi 60178 fi 60179 60180 60181 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60183 $as_echo_n "checking for freetype includes... " >&6; } 60184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60185 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60186 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60188 $as_echo_n "checking for freetype libraries... " >&6; } 60189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60190 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60191 fi 60192 60193 if test "x$FOUND_FREETYPE" != xyes; then 60194 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 60195 fi 60196 else 60197 # User specified only one of lib or include. This is an error. 60198 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 60199 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 60200 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 60201 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 60202 else 60203 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 60204 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 60205 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 60206 fi 60207 fi 60208 else 60209 # User did not specify settings, but we need freetype. Try to locate it. 60210 60211 if test "x$BUNDLE_FREETYPE" = x; then 60212 # If not specified, default is to bundle freetype only on windows 60213 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60214 BUNDLE_FREETYPE=yes 60215 else 60216 BUNDLE_FREETYPE=no 60217 fi 60218 fi 60219 60220 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 60221 if test "x$SYSROOT" = x; then 60222 if test "x$FOUND_FREETYPE" != xyes; then 60223 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 60224 if test "x$PKG_CONFIG" != x; then 60225 60226 pkg_failed=no 60227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 60228 $as_echo_n "checking for FREETYPE... " >&6; } 60229 60230 if test -n "$FREETYPE_CFLAGS"; then 60231 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 60232 elif test -n "$PKG_CONFIG"; then 60233 if test -n "$PKG_CONFIG" && \ 60234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 60235 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 60236 ac_status=$? 60237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 60238 test $ac_status = 0; }; then 60239 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 60240 else 60241 pkg_failed=yes 60242 fi 60243 else 60244 pkg_failed=untried 60245 fi 60246 if test -n "$FREETYPE_LIBS"; then 60247 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 60248 elif test -n "$PKG_CONFIG"; then 60249 if test -n "$PKG_CONFIG" && \ 60250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 60251 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 60252 ac_status=$? 60253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 60254 test $ac_status = 0; }; then 60255 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 60256 else 60257 pkg_failed=yes 60258 fi 60259 else 60260 pkg_failed=untried 60261 fi 60262 60263 60264 60265 if test $pkg_failed = yes; then 60266 60267 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 60268 _pkg_short_errors_supported=yes 60269 else 60270 _pkg_short_errors_supported=no 60271 fi 60272 if test $_pkg_short_errors_supported = yes; then 60273 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 60274 else 60275 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 60276 fi 60277 # Put the nasty error message in config.log where it belongs 60278 echo "$FREETYPE_PKG_ERRORS" >&5 60279 60280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60281 $as_echo "no" >&6; } 60282 FOUND_FREETYPE=no 60283 elif test $pkg_failed = untried; then 60284 FOUND_FREETYPE=no 60285 else 60286 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 60287 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 60288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 60289 $as_echo "yes" >&6; } 60290 FOUND_FREETYPE=yes 60291 fi 60292 if test "x$FOUND_FREETYPE" = xyes; then 60293 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 60294 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 60295 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 60296 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 60297 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 60298 fi 60299 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 60300 if test "x$BUNDLE_FREETYPE" = xyes; then 60301 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 60302 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 60303 FOUND_FREETYPE=no 60304 else 60305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 60306 $as_echo_n "checking for freetype... " >&6; } 60307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 60308 $as_echo "yes (using pkg-config)" >&6; } 60309 fi 60310 fi 60311 fi 60312 fi 60313 fi 60314 60315 if test "x$FOUND_FREETYPE" != xyes; then 60316 # Check in well-known locations 60317 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60318 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 60319 60320 windows_path="$FREETYPE_BASE_DIR" 60321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60322 unix_path=`$CYGPATH -u "$windows_path"` 60323 FREETYPE_BASE_DIR="$unix_path" 60324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60325 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60326 FREETYPE_BASE_DIR="$unix_path" 60327 fi 60328 60329 60330 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60331 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60332 METHOD="well-known location" 60333 60334 # Let's start with an optimistic view of the world :-) 60335 FOUND_FREETYPE=yes 60336 60337 # First look for the canonical freetype main include file ft2build.h. 60338 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60339 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60340 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60341 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60342 # Fail. 60343 FOUND_FREETYPE=no 60344 fi 60345 fi 60346 60347 if test "x$FOUND_FREETYPE" = xyes; then 60348 # Include file found, let's continue the sanity check. 60349 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60350 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60351 60352 # Reset to default value 60353 FREETYPE_BASE_NAME=freetype 60354 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60355 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60356 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60357 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60358 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60359 # for the .6 version explicitly. 60360 FREETYPE_BASE_NAME=freetype.6 60361 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60362 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60363 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60364 else 60365 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60366 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60367 FOUND_FREETYPE=no 60368 fi 60369 else 60370 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60371 # On Windows, we will need both .lib and .dll file. 60372 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60373 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60374 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60375 FOUND_FREETYPE=no 60376 fi 60377 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60378 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60379 # Found lib in isa dir, use that instead. 60380 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60381 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60382 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60383 fi 60384 fi 60385 fi 60386 60387 if test "x$FOUND_FREETYPE" = xyes; then 60388 60389 # Only process if variable expands to non-empty 60390 60391 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60393 60394 # Input might be given as Windows format, start by converting to 60395 # unix format. 60396 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60397 new_path=`$CYGPATH -u "$path"` 60398 60399 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60400 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60401 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60402 # "foo.exe" is OK but "foo" is an error. 60403 # 60404 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60405 # It is also a way to make sure we got the proper file name for the real test later on. 60406 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60407 if test "x$test_shortpath" = x; then 60408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60409 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60410 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60411 fi 60412 60413 # Call helper function which possibly converts this using DOS-style short mode. 60414 # If so, the updated path is stored in $new_path. 60415 60416 input_path="$new_path" 60417 # Check if we need to convert this using DOS-style short mode. If the path 60418 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60419 # take no chances and rewrite it. 60420 # Note: m4 eats our [], so we need to use [ and ] instead. 60421 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60422 if test "x$has_forbidden_chars" != x; then 60423 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60424 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60425 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60426 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60427 # Going to short mode and back again did indeed matter. Since short mode is 60428 # case insensitive, let's make it lowercase to improve readability. 60429 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60430 # Now convert it back to Unix-style (cygpath) 60431 input_path=`$CYGPATH -u "$shortmode_path"` 60432 new_path="$input_path" 60433 fi 60434 fi 60435 60436 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60437 if test "x$test_cygdrive_prefix" = x; then 60438 # As a simple fix, exclude /usr/bin since it's not a real path. 60439 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60440 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60441 # a path prefixed by /cygdrive for fixpath to work. 60442 new_path="$CYGWIN_ROOT_PATH$input_path" 60443 fi 60444 fi 60445 60446 60447 if test "x$path" != "x$new_path"; then 60448 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60450 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60451 fi 60452 60453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60454 60455 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60456 has_colon=`$ECHO $path | $GREP ^.:` 60457 new_path="$path" 60458 if test "x$has_colon" = x; then 60459 # Not in mixed or Windows style, start by that. 60460 new_path=`cmd //c echo $path` 60461 fi 60462 60463 60464 input_path="$new_path" 60465 # Check if we need to convert this using DOS-style short mode. If the path 60466 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60467 # take no chances and rewrite it. 60468 # Note: m4 eats our [], so we need to use [ and ] instead. 60469 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60470 if test "x$has_forbidden_chars" != x; then 60471 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60472 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60473 fi 60474 60475 60476 windows_path="$new_path" 60477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60478 unix_path=`$CYGPATH -u "$windows_path"` 60479 new_path="$unix_path" 60480 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60481 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60482 new_path="$unix_path" 60483 fi 60484 60485 if test "x$path" != "x$new_path"; then 60486 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60487 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60488 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60489 fi 60490 60491 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60492 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60493 60494 else 60495 # We're on a unix platform. Hooray! :) 60496 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60497 has_space=`$ECHO "$path" | $GREP " "` 60498 if test "x$has_space" != x; then 60499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60500 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60501 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60502 fi 60503 60504 # Use eval to expand a potential ~ 60505 eval path="$path" 60506 if test ! -f "$path" && test ! -d "$path"; then 60507 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60508 fi 60509 60510 if test -d "$path"; then 60511 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60512 else 60513 dir="`$DIRNAME "$path"`" 60514 base="`$BASENAME "$path"`" 60515 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60516 fi 60517 fi 60518 fi 60519 60520 60521 # Only process if variable expands to non-empty 60522 60523 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60525 60526 # Input might be given as Windows format, start by converting to 60527 # unix format. 60528 path="$POTENTIAL_FREETYPE_LIB_PATH" 60529 new_path=`$CYGPATH -u "$path"` 60530 60531 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60532 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60533 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60534 # "foo.exe" is OK but "foo" is an error. 60535 # 60536 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60537 # It is also a way to make sure we got the proper file name for the real test later on. 60538 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60539 if test "x$test_shortpath" = x; then 60540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60541 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60542 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60543 fi 60544 60545 # Call helper function which possibly converts this using DOS-style short mode. 60546 # If so, the updated path is stored in $new_path. 60547 60548 input_path="$new_path" 60549 # Check if we need to convert this using DOS-style short mode. If the path 60550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60551 # take no chances and rewrite it. 60552 # Note: m4 eats our [], so we need to use [ and ] instead. 60553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60554 if test "x$has_forbidden_chars" != x; then 60555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60556 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60557 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60558 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60559 # Going to short mode and back again did indeed matter. Since short mode is 60560 # case insensitive, let's make it lowercase to improve readability. 60561 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60562 # Now convert it back to Unix-style (cygpath) 60563 input_path=`$CYGPATH -u "$shortmode_path"` 60564 new_path="$input_path" 60565 fi 60566 fi 60567 60568 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60569 if test "x$test_cygdrive_prefix" = x; then 60570 # As a simple fix, exclude /usr/bin since it's not a real path. 60571 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60572 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60573 # a path prefixed by /cygdrive for fixpath to work. 60574 new_path="$CYGWIN_ROOT_PATH$input_path" 60575 fi 60576 fi 60577 60578 60579 if test "x$path" != "x$new_path"; then 60580 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60582 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60583 fi 60584 60585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60586 60587 path="$POTENTIAL_FREETYPE_LIB_PATH" 60588 has_colon=`$ECHO $path | $GREP ^.:` 60589 new_path="$path" 60590 if test "x$has_colon" = x; then 60591 # Not in mixed or Windows style, start by that. 60592 new_path=`cmd //c echo $path` 60593 fi 60594 60595 60596 input_path="$new_path" 60597 # Check if we need to convert this using DOS-style short mode. If the path 60598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60599 # take no chances and rewrite it. 60600 # Note: m4 eats our [], so we need to use [ and ] instead. 60601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60602 if test "x$has_forbidden_chars" != x; then 60603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60604 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60605 fi 60606 60607 60608 windows_path="$new_path" 60609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60610 unix_path=`$CYGPATH -u "$windows_path"` 60611 new_path="$unix_path" 60612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60613 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60614 new_path="$unix_path" 60615 fi 60616 60617 if test "x$path" != "x$new_path"; then 60618 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60619 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60620 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60621 fi 60622 60623 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60624 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60625 60626 else 60627 # We're on a unix platform. Hooray! :) 60628 path="$POTENTIAL_FREETYPE_LIB_PATH" 60629 has_space=`$ECHO "$path" | $GREP " "` 60630 if test "x$has_space" != x; then 60631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60632 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60633 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60634 fi 60635 60636 # Use eval to expand a potential ~ 60637 eval path="$path" 60638 if test ! -f "$path" && test ! -d "$path"; then 60639 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60640 fi 60641 60642 if test -d "$path"; then 60643 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60644 else 60645 dir="`$DIRNAME "$path"`" 60646 base="`$BASENAME "$path"`" 60647 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60648 fi 60649 fi 60650 fi 60651 60652 60653 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60655 $as_echo_n "checking for freetype includes... " >&6; } 60656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60657 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60658 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60660 $as_echo_n "checking for freetype libraries... " >&6; } 60661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60662 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60663 fi 60664 60665 if test "x$FOUND_FREETYPE" != xyes; then 60666 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 60667 60668 windows_path="$FREETYPE_BASE_DIR" 60669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60670 unix_path=`$CYGPATH -u "$windows_path"` 60671 FREETYPE_BASE_DIR="$unix_path" 60672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60673 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60674 FREETYPE_BASE_DIR="$unix_path" 60675 fi 60676 60677 60678 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60679 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60680 METHOD="well-known location" 60681 60682 # Let's start with an optimistic view of the world :-) 60683 FOUND_FREETYPE=yes 60684 60685 # First look for the canonical freetype main include file ft2build.h. 60686 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60687 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60688 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60689 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60690 # Fail. 60691 FOUND_FREETYPE=no 60692 fi 60693 fi 60694 60695 if test "x$FOUND_FREETYPE" = xyes; then 60696 # Include file found, let's continue the sanity check. 60697 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60698 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60699 60700 # Reset to default value 60701 FREETYPE_BASE_NAME=freetype 60702 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60703 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60704 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60705 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60706 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60707 # for the .6 version explicitly. 60708 FREETYPE_BASE_NAME=freetype.6 60709 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60710 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60711 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60712 else 60713 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60714 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60715 FOUND_FREETYPE=no 60716 fi 60717 else 60718 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60719 # On Windows, we will need both .lib and .dll file. 60720 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60721 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60722 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60723 FOUND_FREETYPE=no 60724 fi 60725 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60726 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60727 # Found lib in isa dir, use that instead. 60728 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60729 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60730 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60731 fi 60732 fi 60733 fi 60734 60735 if test "x$FOUND_FREETYPE" = xyes; then 60736 60737 # Only process if variable expands to non-empty 60738 60739 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60741 60742 # Input might be given as Windows format, start by converting to 60743 # unix format. 60744 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60745 new_path=`$CYGPATH -u "$path"` 60746 60747 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60748 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60749 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60750 # "foo.exe" is OK but "foo" is an error. 60751 # 60752 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60753 # It is also a way to make sure we got the proper file name for the real test later on. 60754 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60755 if test "x$test_shortpath" = x; then 60756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60757 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60758 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60759 fi 60760 60761 # Call helper function which possibly converts this using DOS-style short mode. 60762 # If so, the updated path is stored in $new_path. 60763 60764 input_path="$new_path" 60765 # Check if we need to convert this using DOS-style short mode. If the path 60766 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60767 # take no chances and rewrite it. 60768 # Note: m4 eats our [], so we need to use [ and ] instead. 60769 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60770 if test "x$has_forbidden_chars" != x; then 60771 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60772 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60773 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60774 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60775 # Going to short mode and back again did indeed matter. Since short mode is 60776 # case insensitive, let's make it lowercase to improve readability. 60777 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60778 # Now convert it back to Unix-style (cygpath) 60779 input_path=`$CYGPATH -u "$shortmode_path"` 60780 new_path="$input_path" 60781 fi 60782 fi 60783 60784 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60785 if test "x$test_cygdrive_prefix" = x; then 60786 # As a simple fix, exclude /usr/bin since it's not a real path. 60787 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60788 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60789 # a path prefixed by /cygdrive for fixpath to work. 60790 new_path="$CYGWIN_ROOT_PATH$input_path" 60791 fi 60792 fi 60793 60794 60795 if test "x$path" != "x$new_path"; then 60796 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60797 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60798 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60799 fi 60800 60801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60802 60803 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60804 has_colon=`$ECHO $path | $GREP ^.:` 60805 new_path="$path" 60806 if test "x$has_colon" = x; then 60807 # Not in mixed or Windows style, start by that. 60808 new_path=`cmd //c echo $path` 60809 fi 60810 60811 60812 input_path="$new_path" 60813 # Check if we need to convert this using DOS-style short mode. If the path 60814 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60815 # take no chances and rewrite it. 60816 # Note: m4 eats our [], so we need to use [ and ] instead. 60817 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60818 if test "x$has_forbidden_chars" != x; then 60819 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60820 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60821 fi 60822 60823 60824 windows_path="$new_path" 60825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60826 unix_path=`$CYGPATH -u "$windows_path"` 60827 new_path="$unix_path" 60828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60829 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60830 new_path="$unix_path" 60831 fi 60832 60833 if test "x$path" != "x$new_path"; then 60834 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60835 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60836 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60837 fi 60838 60839 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60840 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60841 60842 else 60843 # We're on a unix platform. Hooray! :) 60844 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60845 has_space=`$ECHO "$path" | $GREP " "` 60846 if test "x$has_space" != x; then 60847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60848 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60849 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60850 fi 60851 60852 # Use eval to expand a potential ~ 60853 eval path="$path" 60854 if test ! -f "$path" && test ! -d "$path"; then 60855 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60856 fi 60857 60858 if test -d "$path"; then 60859 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60860 else 60861 dir="`$DIRNAME "$path"`" 60862 base="`$BASENAME "$path"`" 60863 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60864 fi 60865 fi 60866 fi 60867 60868 60869 # Only process if variable expands to non-empty 60870 60871 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60873 60874 # Input might be given as Windows format, start by converting to 60875 # unix format. 60876 path="$POTENTIAL_FREETYPE_LIB_PATH" 60877 new_path=`$CYGPATH -u "$path"` 60878 60879 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60880 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60881 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60882 # "foo.exe" is OK but "foo" is an error. 60883 # 60884 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60885 # It is also a way to make sure we got the proper file name for the real test later on. 60886 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60887 if test "x$test_shortpath" = x; then 60888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60889 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60890 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60891 fi 60892 60893 # Call helper function which possibly converts this using DOS-style short mode. 60894 # If so, the updated path is stored in $new_path. 60895 60896 input_path="$new_path" 60897 # Check if we need to convert this using DOS-style short mode. If the path 60898 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60899 # take no chances and rewrite it. 60900 # Note: m4 eats our [], so we need to use [ and ] instead. 60901 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60902 if test "x$has_forbidden_chars" != x; then 60903 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60904 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60905 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60906 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60907 # Going to short mode and back again did indeed matter. Since short mode is 60908 # case insensitive, let's make it lowercase to improve readability. 60909 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60910 # Now convert it back to Unix-style (cygpath) 60911 input_path=`$CYGPATH -u "$shortmode_path"` 60912 new_path="$input_path" 60913 fi 60914 fi 60915 60916 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60917 if test "x$test_cygdrive_prefix" = x; then 60918 # As a simple fix, exclude /usr/bin since it's not a real path. 60919 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60920 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60921 # a path prefixed by /cygdrive for fixpath to work. 60922 new_path="$CYGWIN_ROOT_PATH$input_path" 60923 fi 60924 fi 60925 60926 60927 if test "x$path" != "x$new_path"; then 60928 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60930 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60931 fi 60932 60933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60934 60935 path="$POTENTIAL_FREETYPE_LIB_PATH" 60936 has_colon=`$ECHO $path | $GREP ^.:` 60937 new_path="$path" 60938 if test "x$has_colon" = x; then 60939 # Not in mixed or Windows style, start by that. 60940 new_path=`cmd //c echo $path` 60941 fi 60942 60943 60944 input_path="$new_path" 60945 # Check if we need to convert this using DOS-style short mode. If the path 60946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60947 # take no chances and rewrite it. 60948 # Note: m4 eats our [], so we need to use [ and ] instead. 60949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60950 if test "x$has_forbidden_chars" != x; then 60951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60952 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60953 fi 60954 60955 60956 windows_path="$new_path" 60957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60958 unix_path=`$CYGPATH -u "$windows_path"` 60959 new_path="$unix_path" 60960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60962 new_path="$unix_path" 60963 fi 60964 60965 if test "x$path" != "x$new_path"; then 60966 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60967 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60968 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60969 fi 60970 60971 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60972 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60973 60974 else 60975 # We're on a unix platform. Hooray! :) 60976 path="$POTENTIAL_FREETYPE_LIB_PATH" 60977 has_space=`$ECHO "$path" | $GREP " "` 60978 if test "x$has_space" != x; then 60979 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60980 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60981 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60982 fi 60983 60984 # Use eval to expand a potential ~ 60985 eval path="$path" 60986 if test ! -f "$path" && test ! -d "$path"; then 60987 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60988 fi 60989 60990 if test -d "$path"; then 60991 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60992 else 60993 dir="`$DIRNAME "$path"`" 60994 base="`$BASENAME "$path"`" 60995 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60996 fi 60997 fi 60998 fi 60999 61000 61001 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61003 $as_echo_n "checking for freetype includes... " >&6; } 61004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61005 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61006 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61008 $as_echo_n "checking for freetype libraries... " >&6; } 61009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61010 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61011 fi 61012 61013 fi 61014 if test "x$FOUND_FREETYPE" != xyes; then 61015 FREETYPE_BASE_DIR="$HOME/freetype" 61016 61017 windows_path="$FREETYPE_BASE_DIR" 61018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61019 unix_path=`$CYGPATH -u "$windows_path"` 61020 FREETYPE_BASE_DIR="$unix_path" 61021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61022 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61023 FREETYPE_BASE_DIR="$unix_path" 61024 fi 61025 61026 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61027 61028 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61029 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 61030 METHOD="well-known location" 61031 61032 # Let's start with an optimistic view of the world :-) 61033 FOUND_FREETYPE=yes 61034 61035 # First look for the canonical freetype main include file ft2build.h. 61036 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61037 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61038 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61039 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61040 # Fail. 61041 FOUND_FREETYPE=no 61042 fi 61043 fi 61044 61045 if test "x$FOUND_FREETYPE" = xyes; then 61046 # Include file found, let's continue the sanity check. 61047 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61048 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61049 61050 # Reset to default value 61051 FREETYPE_BASE_NAME=freetype 61052 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61053 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61054 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61055 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61056 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61057 # for the .6 version explicitly. 61058 FREETYPE_BASE_NAME=freetype.6 61059 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61060 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61061 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61062 else 61063 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61064 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61065 FOUND_FREETYPE=no 61066 fi 61067 else 61068 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61069 # On Windows, we will need both .lib and .dll file. 61070 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61071 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61072 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61073 FOUND_FREETYPE=no 61074 fi 61075 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61076 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61077 # Found lib in isa dir, use that instead. 61078 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61080 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61081 fi 61082 fi 61083 fi 61084 61085 if test "x$FOUND_FREETYPE" = xyes; then 61086 61087 # Only process if variable expands to non-empty 61088 61089 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61091 61092 # Input might be given as Windows format, start by converting to 61093 # unix format. 61094 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61095 new_path=`$CYGPATH -u "$path"` 61096 61097 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61098 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61099 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61100 # "foo.exe" is OK but "foo" is an error. 61101 # 61102 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61103 # It is also a way to make sure we got the proper file name for the real test later on. 61104 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61105 if test "x$test_shortpath" = x; then 61106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61107 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61108 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61109 fi 61110 61111 # Call helper function which possibly converts this using DOS-style short mode. 61112 # If so, the updated path is stored in $new_path. 61113 61114 input_path="$new_path" 61115 # Check if we need to convert this using DOS-style short mode. If the path 61116 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61117 # take no chances and rewrite it. 61118 # Note: m4 eats our [], so we need to use [ and ] instead. 61119 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61120 if test "x$has_forbidden_chars" != x; then 61121 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61122 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61123 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61124 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61125 # Going to short mode and back again did indeed matter. Since short mode is 61126 # case insensitive, let's make it lowercase to improve readability. 61127 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61128 # Now convert it back to Unix-style (cygpath) 61129 input_path=`$CYGPATH -u "$shortmode_path"` 61130 new_path="$input_path" 61131 fi 61132 fi 61133 61134 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61135 if test "x$test_cygdrive_prefix" = x; then 61136 # As a simple fix, exclude /usr/bin since it's not a real path. 61137 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61138 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61139 # a path prefixed by /cygdrive for fixpath to work. 61140 new_path="$CYGWIN_ROOT_PATH$input_path" 61141 fi 61142 fi 61143 61144 61145 if test "x$path" != "x$new_path"; then 61146 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61148 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61149 fi 61150 61151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61152 61153 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61154 has_colon=`$ECHO $path | $GREP ^.:` 61155 new_path="$path" 61156 if test "x$has_colon" = x; then 61157 # Not in mixed or Windows style, start by that. 61158 new_path=`cmd //c echo $path` 61159 fi 61160 61161 61162 input_path="$new_path" 61163 # Check if we need to convert this using DOS-style short mode. If the path 61164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61165 # take no chances and rewrite it. 61166 # Note: m4 eats our [], so we need to use [ and ] instead. 61167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61168 if test "x$has_forbidden_chars" != x; then 61169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61170 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61171 fi 61172 61173 61174 windows_path="$new_path" 61175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61176 unix_path=`$CYGPATH -u "$windows_path"` 61177 new_path="$unix_path" 61178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61180 new_path="$unix_path" 61181 fi 61182 61183 if test "x$path" != "x$new_path"; then 61184 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61185 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61186 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61187 fi 61188 61189 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61190 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61191 61192 else 61193 # We're on a unix platform. Hooray! :) 61194 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61195 has_space=`$ECHO "$path" | $GREP " "` 61196 if test "x$has_space" != x; then 61197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61198 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61199 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61200 fi 61201 61202 # Use eval to expand a potential ~ 61203 eval path="$path" 61204 if test ! -f "$path" && test ! -d "$path"; then 61205 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61206 fi 61207 61208 if test -d "$path"; then 61209 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61210 else 61211 dir="`$DIRNAME "$path"`" 61212 base="`$BASENAME "$path"`" 61213 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61214 fi 61215 fi 61216 fi 61217 61218 61219 # Only process if variable expands to non-empty 61220 61221 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61223 61224 # Input might be given as Windows format, start by converting to 61225 # unix format. 61226 path="$POTENTIAL_FREETYPE_LIB_PATH" 61227 new_path=`$CYGPATH -u "$path"` 61228 61229 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61230 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61231 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61232 # "foo.exe" is OK but "foo" is an error. 61233 # 61234 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61235 # It is also a way to make sure we got the proper file name for the real test later on. 61236 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61237 if test "x$test_shortpath" = x; then 61238 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61239 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61240 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61241 fi 61242 61243 # Call helper function which possibly converts this using DOS-style short mode. 61244 # If so, the updated path is stored in $new_path. 61245 61246 input_path="$new_path" 61247 # Check if we need to convert this using DOS-style short mode. If the path 61248 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61249 # take no chances and rewrite it. 61250 # Note: m4 eats our [], so we need to use [ and ] instead. 61251 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61252 if test "x$has_forbidden_chars" != x; then 61253 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61254 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61255 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61256 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61257 # Going to short mode and back again did indeed matter. Since short mode is 61258 # case insensitive, let's make it lowercase to improve readability. 61259 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61260 # Now convert it back to Unix-style (cygpath) 61261 input_path=`$CYGPATH -u "$shortmode_path"` 61262 new_path="$input_path" 61263 fi 61264 fi 61265 61266 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61267 if test "x$test_cygdrive_prefix" = x; then 61268 # As a simple fix, exclude /usr/bin since it's not a real path. 61269 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61270 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61271 # a path prefixed by /cygdrive for fixpath to work. 61272 new_path="$CYGWIN_ROOT_PATH$input_path" 61273 fi 61274 fi 61275 61276 61277 if test "x$path" != "x$new_path"; then 61278 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61279 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61280 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61281 fi 61282 61283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61284 61285 path="$POTENTIAL_FREETYPE_LIB_PATH" 61286 has_colon=`$ECHO $path | $GREP ^.:` 61287 new_path="$path" 61288 if test "x$has_colon" = x; then 61289 # Not in mixed or Windows style, start by that. 61290 new_path=`cmd //c echo $path` 61291 fi 61292 61293 61294 input_path="$new_path" 61295 # Check if we need to convert this using DOS-style short mode. If the path 61296 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61297 # take no chances and rewrite it. 61298 # Note: m4 eats our [], so we need to use [ and ] instead. 61299 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61300 if test "x$has_forbidden_chars" != x; then 61301 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61302 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61303 fi 61304 61305 61306 windows_path="$new_path" 61307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61308 unix_path=`$CYGPATH -u "$windows_path"` 61309 new_path="$unix_path" 61310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61311 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61312 new_path="$unix_path" 61313 fi 61314 61315 if test "x$path" != "x$new_path"; then 61316 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61317 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61318 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61319 fi 61320 61321 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61322 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61323 61324 else 61325 # We're on a unix platform. Hooray! :) 61326 path="$POTENTIAL_FREETYPE_LIB_PATH" 61327 has_space=`$ECHO "$path" | $GREP " "` 61328 if test "x$has_space" != x; then 61329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61330 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61331 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61332 fi 61333 61334 # Use eval to expand a potential ~ 61335 eval path="$path" 61336 if test ! -f "$path" && test ! -d "$path"; then 61337 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61338 fi 61339 61340 if test -d "$path"; then 61341 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61342 else 61343 dir="`$DIRNAME "$path"`" 61344 base="`$BASENAME "$path"`" 61345 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61346 fi 61347 fi 61348 fi 61349 61350 61351 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61353 $as_echo_n "checking for freetype includes... " >&6; } 61354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61355 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61356 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61358 $as_echo_n "checking for freetype libraries... " >&6; } 61359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61360 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61361 fi 61362 61363 else 61364 61365 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61366 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61367 METHOD="well-known location" 61368 61369 # Let's start with an optimistic view of the world :-) 61370 FOUND_FREETYPE=yes 61371 61372 # First look for the canonical freetype main include file ft2build.h. 61373 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61374 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61375 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61376 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61377 # Fail. 61378 FOUND_FREETYPE=no 61379 fi 61380 fi 61381 61382 if test "x$FOUND_FREETYPE" = xyes; then 61383 # Include file found, let's continue the sanity check. 61384 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61385 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61386 61387 # Reset to default value 61388 FREETYPE_BASE_NAME=freetype 61389 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61390 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61391 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61392 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61393 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61394 # for the .6 version explicitly. 61395 FREETYPE_BASE_NAME=freetype.6 61396 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61397 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61398 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61399 else 61400 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61401 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61402 FOUND_FREETYPE=no 61403 fi 61404 else 61405 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61406 # On Windows, we will need both .lib and .dll file. 61407 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61408 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61409 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61410 FOUND_FREETYPE=no 61411 fi 61412 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61413 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61414 # Found lib in isa dir, use that instead. 61415 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61417 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61418 fi 61419 fi 61420 fi 61421 61422 if test "x$FOUND_FREETYPE" = xyes; then 61423 61424 # Only process if variable expands to non-empty 61425 61426 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61428 61429 # Input might be given as Windows format, start by converting to 61430 # unix format. 61431 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61432 new_path=`$CYGPATH -u "$path"` 61433 61434 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61435 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61436 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61437 # "foo.exe" is OK but "foo" is an error. 61438 # 61439 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61440 # It is also a way to make sure we got the proper file name for the real test later on. 61441 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61442 if test "x$test_shortpath" = x; then 61443 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61444 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61445 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61446 fi 61447 61448 # Call helper function which possibly converts this using DOS-style short mode. 61449 # If so, the updated path is stored in $new_path. 61450 61451 input_path="$new_path" 61452 # Check if we need to convert this using DOS-style short mode. If the path 61453 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61454 # take no chances and rewrite it. 61455 # Note: m4 eats our [], so we need to use [ and ] instead. 61456 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61457 if test "x$has_forbidden_chars" != x; then 61458 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61459 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61460 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61461 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61462 # Going to short mode and back again did indeed matter. Since short mode is 61463 # case insensitive, let's make it lowercase to improve readability. 61464 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61465 # Now convert it back to Unix-style (cygpath) 61466 input_path=`$CYGPATH -u "$shortmode_path"` 61467 new_path="$input_path" 61468 fi 61469 fi 61470 61471 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61472 if test "x$test_cygdrive_prefix" = x; then 61473 # As a simple fix, exclude /usr/bin since it's not a real path. 61474 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61475 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61476 # a path prefixed by /cygdrive for fixpath to work. 61477 new_path="$CYGWIN_ROOT_PATH$input_path" 61478 fi 61479 fi 61480 61481 61482 if test "x$path" != "x$new_path"; then 61483 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61484 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61485 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61486 fi 61487 61488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61489 61490 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61491 has_colon=`$ECHO $path | $GREP ^.:` 61492 new_path="$path" 61493 if test "x$has_colon" = x; then 61494 # Not in mixed or Windows style, start by that. 61495 new_path=`cmd //c echo $path` 61496 fi 61497 61498 61499 input_path="$new_path" 61500 # Check if we need to convert this using DOS-style short mode. If the path 61501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61502 # take no chances and rewrite it. 61503 # Note: m4 eats our [], so we need to use [ and ] instead. 61504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61505 if test "x$has_forbidden_chars" != x; then 61506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61507 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61508 fi 61509 61510 61511 windows_path="$new_path" 61512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61513 unix_path=`$CYGPATH -u "$windows_path"` 61514 new_path="$unix_path" 61515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61517 new_path="$unix_path" 61518 fi 61519 61520 if test "x$path" != "x$new_path"; then 61521 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61522 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61523 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61524 fi 61525 61526 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61527 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61528 61529 else 61530 # We're on a unix platform. Hooray! :) 61531 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61532 has_space=`$ECHO "$path" | $GREP " "` 61533 if test "x$has_space" != x; then 61534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61535 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61536 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61537 fi 61538 61539 # Use eval to expand a potential ~ 61540 eval path="$path" 61541 if test ! -f "$path" && test ! -d "$path"; then 61542 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61543 fi 61544 61545 if test -d "$path"; then 61546 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61547 else 61548 dir="`$DIRNAME "$path"`" 61549 base="`$BASENAME "$path"`" 61550 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61551 fi 61552 fi 61553 fi 61554 61555 61556 # Only process if variable expands to non-empty 61557 61558 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61560 61561 # Input might be given as Windows format, start by converting to 61562 # unix format. 61563 path="$POTENTIAL_FREETYPE_LIB_PATH" 61564 new_path=`$CYGPATH -u "$path"` 61565 61566 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61567 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61568 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61569 # "foo.exe" is OK but "foo" is an error. 61570 # 61571 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61572 # It is also a way to make sure we got the proper file name for the real test later on. 61573 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61574 if test "x$test_shortpath" = x; then 61575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61576 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61577 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61578 fi 61579 61580 # Call helper function which possibly converts this using DOS-style short mode. 61581 # If so, the updated path is stored in $new_path. 61582 61583 input_path="$new_path" 61584 # Check if we need to convert this using DOS-style short mode. If the path 61585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61586 # take no chances and rewrite it. 61587 # Note: m4 eats our [], so we need to use [ and ] instead. 61588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61589 if test "x$has_forbidden_chars" != x; then 61590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61591 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61592 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61593 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61594 # Going to short mode and back again did indeed matter. Since short mode is 61595 # case insensitive, let's make it lowercase to improve readability. 61596 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61597 # Now convert it back to Unix-style (cygpath) 61598 input_path=`$CYGPATH -u "$shortmode_path"` 61599 new_path="$input_path" 61600 fi 61601 fi 61602 61603 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61604 if test "x$test_cygdrive_prefix" = x; then 61605 # As a simple fix, exclude /usr/bin since it's not a real path. 61606 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61607 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61608 # a path prefixed by /cygdrive for fixpath to work. 61609 new_path="$CYGWIN_ROOT_PATH$input_path" 61610 fi 61611 fi 61612 61613 61614 if test "x$path" != "x$new_path"; then 61615 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61617 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61618 fi 61619 61620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61621 61622 path="$POTENTIAL_FREETYPE_LIB_PATH" 61623 has_colon=`$ECHO $path | $GREP ^.:` 61624 new_path="$path" 61625 if test "x$has_colon" = x; then 61626 # Not in mixed or Windows style, start by that. 61627 new_path=`cmd //c echo $path` 61628 fi 61629 61630 61631 input_path="$new_path" 61632 # Check if we need to convert this using DOS-style short mode. If the path 61633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61634 # take no chances and rewrite it. 61635 # Note: m4 eats our [], so we need to use [ and ] instead. 61636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61637 if test "x$has_forbidden_chars" != x; then 61638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61639 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61640 fi 61641 61642 61643 windows_path="$new_path" 61644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61645 unix_path=`$CYGPATH -u "$windows_path"` 61646 new_path="$unix_path" 61647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61649 new_path="$unix_path" 61650 fi 61651 61652 if test "x$path" != "x$new_path"; then 61653 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61655 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61656 fi 61657 61658 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61659 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61660 61661 else 61662 # We're on a unix platform. Hooray! :) 61663 path="$POTENTIAL_FREETYPE_LIB_PATH" 61664 has_space=`$ECHO "$path" | $GREP " "` 61665 if test "x$has_space" != x; then 61666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61667 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61668 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61669 fi 61670 61671 # Use eval to expand a potential ~ 61672 eval path="$path" 61673 if test ! -f "$path" && test ! -d "$path"; then 61674 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61675 fi 61676 61677 if test -d "$path"; then 61678 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61679 else 61680 dir="`$DIRNAME "$path"`" 61681 base="`$BASENAME "$path"`" 61682 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61683 fi 61684 fi 61685 fi 61686 61687 61688 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61690 $as_echo_n "checking for freetype includes... " >&6; } 61691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61692 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61693 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61695 $as_echo_n "checking for freetype libraries... " >&6; } 61696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61697 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61698 fi 61699 61700 fi 61701 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 61702 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 61703 # Source is available, as a last resort try to build freetype in default location 61704 61705 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 61706 BUILD_FREETYPE=yes 61707 61708 # Check if the freetype sources are acessible.. 61709 if ! test -d $FREETYPE_SRC_PATH; then 61710 { $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 61711 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 61712 BUILD_FREETYPE=no 61713 fi 61714 # ..and contain a vc2010 project file 61715 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 61716 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 61717 { $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 61718 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 61719 BUILD_FREETYPE=no 61720 fi 61721 # Now check if configure found a version of 'msbuild.exe' 61722 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 61723 { $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 61724 $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;} 61725 BUILD_FREETYPE=no 61726 fi 61727 61728 # Ready to go.. 61729 if test "x$BUILD_FREETYPE" = xyes; then 61730 # msbuild requires trailing slashes for output directories 61731 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 61732 freetype_lib_path_unix="$freetype_lib_path" 61733 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 61734 61735 unix_path="$vcxproj_path" 61736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61737 windows_path=`$CYGPATH -m "$unix_path"` 61738 vcxproj_path="$windows_path" 61739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61740 windows_path=`cmd //c echo $unix_path` 61741 vcxproj_path="$windows_path" 61742 fi 61743 61744 61745 unix_path="$freetype_lib_path" 61746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61747 windows_path=`$CYGPATH -m "$unix_path"` 61748 freetype_lib_path="$windows_path" 61749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61750 windows_path=`cmd //c echo $unix_path` 61751 freetype_lib_path="$windows_path" 61752 fi 61753 61754 61755 unix_path="$freetype_obj_path" 61756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61757 windows_path=`$CYGPATH -m "$unix_path"` 61758 freetype_obj_path="$windows_path" 61759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61760 windows_path=`cmd //c echo $unix_path` 61761 freetype_obj_path="$windows_path" 61762 fi 61763 61764 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61765 freetype_platform=x64 61766 else 61767 freetype_platform=win32 61768 fi 61769 61770 # The original freetype project file is for VS 2010 (i.e. 'v100'), 61771 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 61772 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 61773 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 61774 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 61775 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 61776 61777 # First we try to build the freetype.dll 61778 $ECHO -e "@echo off\n"\ 61779 "$MSBUILD $vcxproj_path "\ 61780 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 61781 "/p:Configuration=\"Release Multithreaded\" "\ 61782 "/p:Platform=$freetype_platform "\ 61783 "/p:ConfigurationType=DynamicLibrary "\ 61784 "/p:TargetName=freetype "\ 61785 "/p:OutDir=\"$freetype_lib_path\" "\ 61786 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 61787 cmd /c freetype.bat 61788 61789 if test -s "$freetype_lib_path_unix/freetype.dll"; then 61790 # If that succeeds we also build freetype.lib 61791 $ECHO -e "@echo off\n"\ 61792 "$MSBUILD $vcxproj_path "\ 61793 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 61794 "/p:Configuration=\"Release Multithreaded\" "\ 61795 "/p:Platform=$freetype_platform "\ 61796 "/p:ConfigurationType=StaticLibrary "\ 61797 "/p:TargetName=freetype "\ 61798 "/p:OutDir=\"$freetype_lib_path\" "\ 61799 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 61800 cmd /c freetype.bat 61801 61802 if test -s "$freetype_lib_path_unix/freetype.lib"; then 61803 # Once we build both, lib and dll, set freetype lib and include path appropriately 61804 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 61805 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 61806 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 61807 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 61808 else 61809 BUILD_FREETYPE=no 61810 fi 61811 else 61812 BUILD_FREETYPE=no 61813 fi 61814 fi 61815 61816 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61817 61818 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61819 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 61820 METHOD="well-known location" 61821 61822 # Let's start with an optimistic view of the world :-) 61823 FOUND_FREETYPE=yes 61824 61825 # First look for the canonical freetype main include file ft2build.h. 61826 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61827 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61828 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61829 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61830 # Fail. 61831 FOUND_FREETYPE=no 61832 fi 61833 fi 61834 61835 if test "x$FOUND_FREETYPE" = xyes; then 61836 # Include file found, let's continue the sanity check. 61837 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61838 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61839 61840 # Reset to default value 61841 FREETYPE_BASE_NAME=freetype 61842 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61843 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61844 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61845 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61846 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61847 # for the .6 version explicitly. 61848 FREETYPE_BASE_NAME=freetype.6 61849 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61850 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61851 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61852 else 61853 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61854 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61855 FOUND_FREETYPE=no 61856 fi 61857 else 61858 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61859 # On Windows, we will need both .lib and .dll file. 61860 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61861 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61862 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61863 FOUND_FREETYPE=no 61864 fi 61865 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61866 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61867 # Found lib in isa dir, use that instead. 61868 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61869 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61870 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61871 fi 61872 fi 61873 fi 61874 61875 if test "x$FOUND_FREETYPE" = xyes; then 61876 61877 # Only process if variable expands to non-empty 61878 61879 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61881 61882 # Input might be given as Windows format, start by converting to 61883 # unix format. 61884 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61885 new_path=`$CYGPATH -u "$path"` 61886 61887 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61888 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61889 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61890 # "foo.exe" is OK but "foo" is an error. 61891 # 61892 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61893 # It is also a way to make sure we got the proper file name for the real test later on. 61894 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61895 if test "x$test_shortpath" = x; then 61896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61897 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61898 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61899 fi 61900 61901 # Call helper function which possibly converts this using DOS-style short mode. 61902 # If so, the updated path is stored in $new_path. 61903 61904 input_path="$new_path" 61905 # Check if we need to convert this using DOS-style short mode. If the path 61906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61907 # take no chances and rewrite it. 61908 # Note: m4 eats our [], so we need to use [ and ] instead. 61909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61910 if test "x$has_forbidden_chars" != x; then 61911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61912 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61913 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61914 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61915 # Going to short mode and back again did indeed matter. Since short mode is 61916 # case insensitive, let's make it lowercase to improve readability. 61917 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61918 # Now convert it back to Unix-style (cygpath) 61919 input_path=`$CYGPATH -u "$shortmode_path"` 61920 new_path="$input_path" 61921 fi 61922 fi 61923 61924 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61925 if test "x$test_cygdrive_prefix" = x; then 61926 # As a simple fix, exclude /usr/bin since it's not a real path. 61927 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61928 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61929 # a path prefixed by /cygdrive for fixpath to work. 61930 new_path="$CYGWIN_ROOT_PATH$input_path" 61931 fi 61932 fi 61933 61934 61935 if test "x$path" != "x$new_path"; then 61936 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61937 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61938 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61939 fi 61940 61941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61942 61943 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61944 has_colon=`$ECHO $path | $GREP ^.:` 61945 new_path="$path" 61946 if test "x$has_colon" = x; then 61947 # Not in mixed or Windows style, start by that. 61948 new_path=`cmd //c echo $path` 61949 fi 61950 61951 61952 input_path="$new_path" 61953 # Check if we need to convert this using DOS-style short mode. If the path 61954 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61955 # take no chances and rewrite it. 61956 # Note: m4 eats our [], so we need to use [ and ] instead. 61957 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61958 if test "x$has_forbidden_chars" != x; then 61959 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61960 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61961 fi 61962 61963 61964 windows_path="$new_path" 61965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61966 unix_path=`$CYGPATH -u "$windows_path"` 61967 new_path="$unix_path" 61968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61969 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61970 new_path="$unix_path" 61971 fi 61972 61973 if test "x$path" != "x$new_path"; then 61974 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61976 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61977 fi 61978 61979 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61980 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61981 61982 else 61983 # We're on a unix platform. Hooray! :) 61984 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61985 has_space=`$ECHO "$path" | $GREP " "` 61986 if test "x$has_space" != x; then 61987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61988 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61989 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61990 fi 61991 61992 # Use eval to expand a potential ~ 61993 eval path="$path" 61994 if test ! -f "$path" && test ! -d "$path"; then 61995 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61996 fi 61997 61998 if test -d "$path"; then 61999 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62000 else 62001 dir="`$DIRNAME "$path"`" 62002 base="`$BASENAME "$path"`" 62003 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62004 fi 62005 fi 62006 fi 62007 62008 62009 # Only process if variable expands to non-empty 62010 62011 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62013 62014 # Input might be given as Windows format, start by converting to 62015 # unix format. 62016 path="$POTENTIAL_FREETYPE_LIB_PATH" 62017 new_path=`$CYGPATH -u "$path"` 62018 62019 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62020 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62021 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62022 # "foo.exe" is OK but "foo" is an error. 62023 # 62024 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62025 # It is also a way to make sure we got the proper file name for the real test later on. 62026 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62027 if test "x$test_shortpath" = x; then 62028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62029 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62030 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62031 fi 62032 62033 # Call helper function which possibly converts this using DOS-style short mode. 62034 # If so, the updated path is stored in $new_path. 62035 62036 input_path="$new_path" 62037 # Check if we need to convert this using DOS-style short mode. If the path 62038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62039 # take no chances and rewrite it. 62040 # Note: m4 eats our [], so we need to use [ and ] instead. 62041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62042 if test "x$has_forbidden_chars" != x; then 62043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62044 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62045 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62046 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62047 # Going to short mode and back again did indeed matter. Since short mode is 62048 # case insensitive, let's make it lowercase to improve readability. 62049 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62050 # Now convert it back to Unix-style (cygpath) 62051 input_path=`$CYGPATH -u "$shortmode_path"` 62052 new_path="$input_path" 62053 fi 62054 fi 62055 62056 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62057 if test "x$test_cygdrive_prefix" = x; then 62058 # As a simple fix, exclude /usr/bin since it's not a real path. 62059 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62060 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62061 # a path prefixed by /cygdrive for fixpath to work. 62062 new_path="$CYGWIN_ROOT_PATH$input_path" 62063 fi 62064 fi 62065 62066 62067 if test "x$path" != "x$new_path"; then 62068 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62069 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62070 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62071 fi 62072 62073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62074 62075 path="$POTENTIAL_FREETYPE_LIB_PATH" 62076 has_colon=`$ECHO $path | $GREP ^.:` 62077 new_path="$path" 62078 if test "x$has_colon" = x; then 62079 # Not in mixed or Windows style, start by that. 62080 new_path=`cmd //c echo $path` 62081 fi 62082 62083 62084 input_path="$new_path" 62085 # Check if we need to convert this using DOS-style short mode. If the path 62086 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62087 # take no chances and rewrite it. 62088 # Note: m4 eats our [], so we need to use [ and ] instead. 62089 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62090 if test "x$has_forbidden_chars" != x; then 62091 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62092 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62093 fi 62094 62095 62096 windows_path="$new_path" 62097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62098 unix_path=`$CYGPATH -u "$windows_path"` 62099 new_path="$unix_path" 62100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62101 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62102 new_path="$unix_path" 62103 fi 62104 62105 if test "x$path" != "x$new_path"; then 62106 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62107 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62108 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62109 fi 62110 62111 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62112 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62113 62114 else 62115 # We're on a unix platform. Hooray! :) 62116 path="$POTENTIAL_FREETYPE_LIB_PATH" 62117 has_space=`$ECHO "$path" | $GREP " "` 62118 if test "x$has_space" != x; then 62119 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62120 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62121 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62122 fi 62123 62124 # Use eval to expand a potential ~ 62125 eval path="$path" 62126 if test ! -f "$path" && test ! -d "$path"; then 62127 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62128 fi 62129 62130 if test -d "$path"; then 62131 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62132 else 62133 dir="`$DIRNAME "$path"`" 62134 base="`$BASENAME "$path"`" 62135 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62136 fi 62137 fi 62138 fi 62139 62140 62141 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62143 $as_echo_n "checking for freetype includes... " >&6; } 62144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62145 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62146 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62148 $as_echo_n "checking for freetype libraries... " >&6; } 62149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62150 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62151 fi 62152 62153 else 62154 62155 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62156 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 62157 METHOD="well-known location" 62158 62159 # Let's start with an optimistic view of the world :-) 62160 FOUND_FREETYPE=yes 62161 62162 # First look for the canonical freetype main include file ft2build.h. 62163 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62164 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62165 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62166 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62167 # Fail. 62168 FOUND_FREETYPE=no 62169 fi 62170 fi 62171 62172 if test "x$FOUND_FREETYPE" = xyes; then 62173 # Include file found, let's continue the sanity check. 62174 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62175 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62176 62177 # Reset to default value 62178 FREETYPE_BASE_NAME=freetype 62179 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62180 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62181 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62182 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62183 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62184 # for the .6 version explicitly. 62185 FREETYPE_BASE_NAME=freetype.6 62186 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62187 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62188 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62189 else 62190 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62191 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62192 FOUND_FREETYPE=no 62193 fi 62194 else 62195 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62196 # On Windows, we will need both .lib and .dll file. 62197 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62198 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62199 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62200 FOUND_FREETYPE=no 62201 fi 62202 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62203 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62204 # Found lib in isa dir, use that instead. 62205 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62207 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62208 fi 62209 fi 62210 fi 62211 62212 if test "x$FOUND_FREETYPE" = xyes; then 62213 62214 # Only process if variable expands to non-empty 62215 62216 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62218 62219 # Input might be given as Windows format, start by converting to 62220 # unix format. 62221 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62222 new_path=`$CYGPATH -u "$path"` 62223 62224 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62225 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62226 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62227 # "foo.exe" is OK but "foo" is an error. 62228 # 62229 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62230 # It is also a way to make sure we got the proper file name for the real test later on. 62231 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62232 if test "x$test_shortpath" = x; then 62233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62234 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62235 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62236 fi 62237 62238 # Call helper function which possibly converts this using DOS-style short mode. 62239 # If so, the updated path is stored in $new_path. 62240 62241 input_path="$new_path" 62242 # Check if we need to convert this using DOS-style short mode. If the path 62243 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62244 # take no chances and rewrite it. 62245 # Note: m4 eats our [], so we need to use [ and ] instead. 62246 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62247 if test "x$has_forbidden_chars" != x; then 62248 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62249 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62250 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62251 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62252 # Going to short mode and back again did indeed matter. Since short mode is 62253 # case insensitive, let's make it lowercase to improve readability. 62254 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62255 # Now convert it back to Unix-style (cygpath) 62256 input_path=`$CYGPATH -u "$shortmode_path"` 62257 new_path="$input_path" 62258 fi 62259 fi 62260 62261 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62262 if test "x$test_cygdrive_prefix" = x; then 62263 # As a simple fix, exclude /usr/bin since it's not a real path. 62264 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62265 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62266 # a path prefixed by /cygdrive for fixpath to work. 62267 new_path="$CYGWIN_ROOT_PATH$input_path" 62268 fi 62269 fi 62270 62271 62272 if test "x$path" != "x$new_path"; then 62273 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62274 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62275 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62276 fi 62277 62278 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62279 62280 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62281 has_colon=`$ECHO $path | $GREP ^.:` 62282 new_path="$path" 62283 if test "x$has_colon" = x; then 62284 # Not in mixed or Windows style, start by that. 62285 new_path=`cmd //c echo $path` 62286 fi 62287 62288 62289 input_path="$new_path" 62290 # Check if we need to convert this using DOS-style short mode. If the path 62291 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62292 # take no chances and rewrite it. 62293 # Note: m4 eats our [], so we need to use [ and ] instead. 62294 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62295 if test "x$has_forbidden_chars" != x; then 62296 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62297 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62298 fi 62299 62300 62301 windows_path="$new_path" 62302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62303 unix_path=`$CYGPATH -u "$windows_path"` 62304 new_path="$unix_path" 62305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62307 new_path="$unix_path" 62308 fi 62309 62310 if test "x$path" != "x$new_path"; then 62311 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62312 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62313 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62314 fi 62315 62316 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62317 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62318 62319 else 62320 # We're on a unix platform. Hooray! :) 62321 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62322 has_space=`$ECHO "$path" | $GREP " "` 62323 if test "x$has_space" != x; then 62324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62325 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62326 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62327 fi 62328 62329 # Use eval to expand a potential ~ 62330 eval path="$path" 62331 if test ! -f "$path" && test ! -d "$path"; then 62332 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62333 fi 62334 62335 if test -d "$path"; then 62336 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62337 else 62338 dir="`$DIRNAME "$path"`" 62339 base="`$BASENAME "$path"`" 62340 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62341 fi 62342 fi 62343 fi 62344 62345 62346 # Only process if variable expands to non-empty 62347 62348 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62350 62351 # Input might be given as Windows format, start by converting to 62352 # unix format. 62353 path="$POTENTIAL_FREETYPE_LIB_PATH" 62354 new_path=`$CYGPATH -u "$path"` 62355 62356 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62357 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62358 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62359 # "foo.exe" is OK but "foo" is an error. 62360 # 62361 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62362 # It is also a way to make sure we got the proper file name for the real test later on. 62363 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62364 if test "x$test_shortpath" = x; then 62365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62366 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62367 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62368 fi 62369 62370 # Call helper function which possibly converts this using DOS-style short mode. 62371 # If so, the updated path is stored in $new_path. 62372 62373 input_path="$new_path" 62374 # Check if we need to convert this using DOS-style short mode. If the path 62375 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62376 # take no chances and rewrite it. 62377 # Note: m4 eats our [], so we need to use [ and ] instead. 62378 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62379 if test "x$has_forbidden_chars" != x; then 62380 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62381 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62382 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62383 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62384 # Going to short mode and back again did indeed matter. Since short mode is 62385 # case insensitive, let's make it lowercase to improve readability. 62386 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62387 # Now convert it back to Unix-style (cygpath) 62388 input_path=`$CYGPATH -u "$shortmode_path"` 62389 new_path="$input_path" 62390 fi 62391 fi 62392 62393 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62394 if test "x$test_cygdrive_prefix" = x; then 62395 # As a simple fix, exclude /usr/bin since it's not a real path. 62396 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62397 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62398 # a path prefixed by /cygdrive for fixpath to work. 62399 new_path="$CYGWIN_ROOT_PATH$input_path" 62400 fi 62401 fi 62402 62403 62404 if test "x$path" != "x$new_path"; then 62405 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62406 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62407 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62408 fi 62409 62410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62411 62412 path="$POTENTIAL_FREETYPE_LIB_PATH" 62413 has_colon=`$ECHO $path | $GREP ^.:` 62414 new_path="$path" 62415 if test "x$has_colon" = x; then 62416 # Not in mixed or Windows style, start by that. 62417 new_path=`cmd //c echo $path` 62418 fi 62419 62420 62421 input_path="$new_path" 62422 # Check if we need to convert this using DOS-style short mode. If the path 62423 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62424 # take no chances and rewrite it. 62425 # Note: m4 eats our [], so we need to use [ and ] instead. 62426 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62427 if test "x$has_forbidden_chars" != x; then 62428 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62429 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62430 fi 62431 62432 62433 windows_path="$new_path" 62434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62435 unix_path=`$CYGPATH -u "$windows_path"` 62436 new_path="$unix_path" 62437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62438 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62439 new_path="$unix_path" 62440 fi 62441 62442 if test "x$path" != "x$new_path"; then 62443 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62444 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62445 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62446 fi 62447 62448 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62449 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62450 62451 else 62452 # We're on a unix platform. Hooray! :) 62453 path="$POTENTIAL_FREETYPE_LIB_PATH" 62454 has_space=`$ECHO "$path" | $GREP " "` 62455 if test "x$has_space" != x; then 62456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62457 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62458 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62459 fi 62460 62461 # Use eval to expand a potential ~ 62462 eval path="$path" 62463 if test ! -f "$path" && test ! -d "$path"; then 62464 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62465 fi 62466 62467 if test -d "$path"; then 62468 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62469 else 62470 dir="`$DIRNAME "$path"`" 62471 base="`$BASENAME "$path"`" 62472 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62473 fi 62474 fi 62475 fi 62476 62477 62478 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62480 $as_echo_n "checking for freetype includes... " >&6; } 62481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62482 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62483 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62485 $as_echo_n "checking for freetype libraries... " >&6; } 62486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62487 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62488 fi 62489 62490 fi 62491 fi 62492 fi 62493 else 62494 FREETYPE_BASE_DIR="$SYSROOT/usr" 62495 62496 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62497 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62498 METHOD="well-known location" 62499 62500 # Let's start with an optimistic view of the world :-) 62501 FOUND_FREETYPE=yes 62502 62503 # First look for the canonical freetype main include file ft2build.h. 62504 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62505 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62506 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62507 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62508 # Fail. 62509 FOUND_FREETYPE=no 62510 fi 62511 fi 62512 62513 if test "x$FOUND_FREETYPE" = xyes; then 62514 # Include file found, let's continue the sanity check. 62515 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62516 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62517 62518 # Reset to default value 62519 FREETYPE_BASE_NAME=freetype 62520 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62521 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62522 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62523 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62524 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62525 # for the .6 version explicitly. 62526 FREETYPE_BASE_NAME=freetype.6 62527 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62528 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62529 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62530 else 62531 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62532 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62533 FOUND_FREETYPE=no 62534 fi 62535 else 62536 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62537 # On Windows, we will need both .lib and .dll file. 62538 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62539 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62540 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62541 FOUND_FREETYPE=no 62542 fi 62543 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62544 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62545 # Found lib in isa dir, use that instead. 62546 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62547 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62548 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62549 fi 62550 fi 62551 fi 62552 62553 if test "x$FOUND_FREETYPE" = xyes; then 62554 62555 # Only process if variable expands to non-empty 62556 62557 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62559 62560 # Input might be given as Windows format, start by converting to 62561 # unix format. 62562 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62563 new_path=`$CYGPATH -u "$path"` 62564 62565 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62566 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62567 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62568 # "foo.exe" is OK but "foo" is an error. 62569 # 62570 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62571 # It is also a way to make sure we got the proper file name for the real test later on. 62572 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62573 if test "x$test_shortpath" = x; then 62574 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62575 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62576 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62577 fi 62578 62579 # Call helper function which possibly converts this using DOS-style short mode. 62580 # If so, the updated path is stored in $new_path. 62581 62582 input_path="$new_path" 62583 # Check if we need to convert this using DOS-style short mode. If the path 62584 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62585 # take no chances and rewrite it. 62586 # Note: m4 eats our [], so we need to use [ and ] instead. 62587 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62588 if test "x$has_forbidden_chars" != x; then 62589 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62590 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62591 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62592 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62593 # Going to short mode and back again did indeed matter. Since short mode is 62594 # case insensitive, let's make it lowercase to improve readability. 62595 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62596 # Now convert it back to Unix-style (cygpath) 62597 input_path=`$CYGPATH -u "$shortmode_path"` 62598 new_path="$input_path" 62599 fi 62600 fi 62601 62602 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62603 if test "x$test_cygdrive_prefix" = x; then 62604 # As a simple fix, exclude /usr/bin since it's not a real path. 62605 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62606 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62607 # a path prefixed by /cygdrive for fixpath to work. 62608 new_path="$CYGWIN_ROOT_PATH$input_path" 62609 fi 62610 fi 62611 62612 62613 if test "x$path" != "x$new_path"; then 62614 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62615 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62616 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62617 fi 62618 62619 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62620 62621 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62622 has_colon=`$ECHO $path | $GREP ^.:` 62623 new_path="$path" 62624 if test "x$has_colon" = x; then 62625 # Not in mixed or Windows style, start by that. 62626 new_path=`cmd //c echo $path` 62627 fi 62628 62629 62630 input_path="$new_path" 62631 # Check if we need to convert this using DOS-style short mode. If the path 62632 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62633 # take no chances and rewrite it. 62634 # Note: m4 eats our [], so we need to use [ and ] instead. 62635 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62636 if test "x$has_forbidden_chars" != x; then 62637 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62638 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62639 fi 62640 62641 62642 windows_path="$new_path" 62643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62644 unix_path=`$CYGPATH -u "$windows_path"` 62645 new_path="$unix_path" 62646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62647 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62648 new_path="$unix_path" 62649 fi 62650 62651 if test "x$path" != "x$new_path"; then 62652 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62653 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62654 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62655 fi 62656 62657 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62658 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62659 62660 else 62661 # We're on a unix platform. Hooray! :) 62662 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62663 has_space=`$ECHO "$path" | $GREP " "` 62664 if test "x$has_space" != x; then 62665 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62666 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62667 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62668 fi 62669 62670 # Use eval to expand a potential ~ 62671 eval path="$path" 62672 if test ! -f "$path" && test ! -d "$path"; then 62673 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62674 fi 62675 62676 if test -d "$path"; then 62677 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62678 else 62679 dir="`$DIRNAME "$path"`" 62680 base="`$BASENAME "$path"`" 62681 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62682 fi 62683 fi 62684 fi 62685 62686 62687 # Only process if variable expands to non-empty 62688 62689 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62691 62692 # Input might be given as Windows format, start by converting to 62693 # unix format. 62694 path="$POTENTIAL_FREETYPE_LIB_PATH" 62695 new_path=`$CYGPATH -u "$path"` 62696 62697 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62698 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62699 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62700 # "foo.exe" is OK but "foo" is an error. 62701 # 62702 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62703 # It is also a way to make sure we got the proper file name for the real test later on. 62704 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62705 if test "x$test_shortpath" = x; then 62706 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62707 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62708 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62709 fi 62710 62711 # Call helper function which possibly converts this using DOS-style short mode. 62712 # If so, the updated path is stored in $new_path. 62713 62714 input_path="$new_path" 62715 # Check if we need to convert this using DOS-style short mode. If the path 62716 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62717 # take no chances and rewrite it. 62718 # Note: m4 eats our [], so we need to use [ and ] instead. 62719 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62720 if test "x$has_forbidden_chars" != x; then 62721 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62722 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62723 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62724 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62725 # Going to short mode and back again did indeed matter. Since short mode is 62726 # case insensitive, let's make it lowercase to improve readability. 62727 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62728 # Now convert it back to Unix-style (cygpath) 62729 input_path=`$CYGPATH -u "$shortmode_path"` 62730 new_path="$input_path" 62731 fi 62732 fi 62733 62734 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62735 if test "x$test_cygdrive_prefix" = x; then 62736 # As a simple fix, exclude /usr/bin since it's not a real path. 62737 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62738 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62739 # a path prefixed by /cygdrive for fixpath to work. 62740 new_path="$CYGWIN_ROOT_PATH$input_path" 62741 fi 62742 fi 62743 62744 62745 if test "x$path" != "x$new_path"; then 62746 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62747 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62748 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62749 fi 62750 62751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62752 62753 path="$POTENTIAL_FREETYPE_LIB_PATH" 62754 has_colon=`$ECHO $path | $GREP ^.:` 62755 new_path="$path" 62756 if test "x$has_colon" = x; then 62757 # Not in mixed or Windows style, start by that. 62758 new_path=`cmd //c echo $path` 62759 fi 62760 62761 62762 input_path="$new_path" 62763 # Check if we need to convert this using DOS-style short mode. If the path 62764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62765 # take no chances and rewrite it. 62766 # Note: m4 eats our [], so we need to use [ and ] instead. 62767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62768 if test "x$has_forbidden_chars" != x; then 62769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62770 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62771 fi 62772 62773 62774 windows_path="$new_path" 62775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62776 unix_path=`$CYGPATH -u "$windows_path"` 62777 new_path="$unix_path" 62778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62779 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62780 new_path="$unix_path" 62781 fi 62782 62783 if test "x$path" != "x$new_path"; then 62784 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62785 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62786 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62787 fi 62788 62789 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62790 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62791 62792 else 62793 # We're on a unix platform. Hooray! :) 62794 path="$POTENTIAL_FREETYPE_LIB_PATH" 62795 has_space=`$ECHO "$path" | $GREP " "` 62796 if test "x$has_space" != x; then 62797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62798 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62799 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62800 fi 62801 62802 # Use eval to expand a potential ~ 62803 eval path="$path" 62804 if test ! -f "$path" && test ! -d "$path"; then 62805 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62806 fi 62807 62808 if test -d "$path"; then 62809 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62810 else 62811 dir="`$DIRNAME "$path"`" 62812 base="`$BASENAME "$path"`" 62813 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62814 fi 62815 fi 62816 fi 62817 62818 62819 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62821 $as_echo_n "checking for freetype includes... " >&6; } 62822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62823 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62824 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62826 $as_echo_n "checking for freetype libraries... " >&6; } 62827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62828 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62829 fi 62830 62831 62832 if test "x$FOUND_FREETYPE" != xyes; then 62833 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 62834 62835 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62836 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62837 METHOD="well-known location" 62838 62839 # Let's start with an optimistic view of the world :-) 62840 FOUND_FREETYPE=yes 62841 62842 # First look for the canonical freetype main include file ft2build.h. 62843 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62844 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62845 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62846 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62847 # Fail. 62848 FOUND_FREETYPE=no 62849 fi 62850 fi 62851 62852 if test "x$FOUND_FREETYPE" = xyes; then 62853 # Include file found, let's continue the sanity check. 62854 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62855 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62856 62857 # Reset to default value 62858 FREETYPE_BASE_NAME=freetype 62859 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62860 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62861 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62862 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62863 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62864 # for the .6 version explicitly. 62865 FREETYPE_BASE_NAME=freetype.6 62866 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62867 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62868 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62869 else 62870 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62871 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62872 FOUND_FREETYPE=no 62873 fi 62874 else 62875 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62876 # On Windows, we will need both .lib and .dll file. 62877 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62878 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62879 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62880 FOUND_FREETYPE=no 62881 fi 62882 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62883 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62884 # Found lib in isa dir, use that instead. 62885 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62886 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62887 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62888 fi 62889 fi 62890 fi 62891 62892 if test "x$FOUND_FREETYPE" = xyes; then 62893 62894 # Only process if variable expands to non-empty 62895 62896 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62898 62899 # Input might be given as Windows format, start by converting to 62900 # unix format. 62901 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62902 new_path=`$CYGPATH -u "$path"` 62903 62904 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62905 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62906 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62907 # "foo.exe" is OK but "foo" is an error. 62908 # 62909 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62910 # It is also a way to make sure we got the proper file name for the real test later on. 62911 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62912 if test "x$test_shortpath" = x; then 62913 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62914 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62915 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62916 fi 62917 62918 # Call helper function which possibly converts this using DOS-style short mode. 62919 # If so, the updated path is stored in $new_path. 62920 62921 input_path="$new_path" 62922 # Check if we need to convert this using DOS-style short mode. If the path 62923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62924 # take no chances and rewrite it. 62925 # Note: m4 eats our [], so we need to use [ and ] instead. 62926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62927 if test "x$has_forbidden_chars" != x; then 62928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62929 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62930 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62931 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62932 # Going to short mode and back again did indeed matter. Since short mode is 62933 # case insensitive, let's make it lowercase to improve readability. 62934 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62935 # Now convert it back to Unix-style (cygpath) 62936 input_path=`$CYGPATH -u "$shortmode_path"` 62937 new_path="$input_path" 62938 fi 62939 fi 62940 62941 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62942 if test "x$test_cygdrive_prefix" = x; then 62943 # As a simple fix, exclude /usr/bin since it's not a real path. 62944 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62945 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62946 # a path prefixed by /cygdrive for fixpath to work. 62947 new_path="$CYGWIN_ROOT_PATH$input_path" 62948 fi 62949 fi 62950 62951 62952 if test "x$path" != "x$new_path"; then 62953 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62954 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62955 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62956 fi 62957 62958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62959 62960 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62961 has_colon=`$ECHO $path | $GREP ^.:` 62962 new_path="$path" 62963 if test "x$has_colon" = x; then 62964 # Not in mixed or Windows style, start by that. 62965 new_path=`cmd //c echo $path` 62966 fi 62967 62968 62969 input_path="$new_path" 62970 # Check if we need to convert this using DOS-style short mode. If the path 62971 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62972 # take no chances and rewrite it. 62973 # Note: m4 eats our [], so we need to use [ and ] instead. 62974 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62975 if test "x$has_forbidden_chars" != x; then 62976 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62977 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62978 fi 62979 62980 62981 windows_path="$new_path" 62982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62983 unix_path=`$CYGPATH -u "$windows_path"` 62984 new_path="$unix_path" 62985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62987 new_path="$unix_path" 62988 fi 62989 62990 if test "x$path" != "x$new_path"; then 62991 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62992 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62993 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62994 fi 62995 62996 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62997 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62998 62999 else 63000 # We're on a unix platform. Hooray! :) 63001 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63002 has_space=`$ECHO "$path" | $GREP " "` 63003 if test "x$has_space" != x; then 63004 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63005 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63006 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63007 fi 63008 63009 # Use eval to expand a potential ~ 63010 eval path="$path" 63011 if test ! -f "$path" && test ! -d "$path"; then 63012 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63013 fi 63014 63015 if test -d "$path"; then 63016 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63017 else 63018 dir="`$DIRNAME "$path"`" 63019 base="`$BASENAME "$path"`" 63020 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63021 fi 63022 fi 63023 fi 63024 63025 63026 # Only process if variable expands to non-empty 63027 63028 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63029 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63030 63031 # Input might be given as Windows format, start by converting to 63032 # unix format. 63033 path="$POTENTIAL_FREETYPE_LIB_PATH" 63034 new_path=`$CYGPATH -u "$path"` 63035 63036 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63037 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63038 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63039 # "foo.exe" is OK but "foo" is an error. 63040 # 63041 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63042 # It is also a way to make sure we got the proper file name for the real test later on. 63043 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63044 if test "x$test_shortpath" = x; then 63045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63046 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63047 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63048 fi 63049 63050 # Call helper function which possibly converts this using DOS-style short mode. 63051 # If so, the updated path is stored in $new_path. 63052 63053 input_path="$new_path" 63054 # Check if we need to convert this using DOS-style short mode. If the path 63055 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63056 # take no chances and rewrite it. 63057 # Note: m4 eats our [], so we need to use [ and ] instead. 63058 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63059 if test "x$has_forbidden_chars" != x; then 63060 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63061 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63062 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63063 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63064 # Going to short mode and back again did indeed matter. Since short mode is 63065 # case insensitive, let's make it lowercase to improve readability. 63066 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63067 # Now convert it back to Unix-style (cygpath) 63068 input_path=`$CYGPATH -u "$shortmode_path"` 63069 new_path="$input_path" 63070 fi 63071 fi 63072 63073 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63074 if test "x$test_cygdrive_prefix" = x; then 63075 # As a simple fix, exclude /usr/bin since it's not a real path. 63076 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63077 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63078 # a path prefixed by /cygdrive for fixpath to work. 63079 new_path="$CYGWIN_ROOT_PATH$input_path" 63080 fi 63081 fi 63082 63083 63084 if test "x$path" != "x$new_path"; then 63085 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63086 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63087 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63088 fi 63089 63090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63091 63092 path="$POTENTIAL_FREETYPE_LIB_PATH" 63093 has_colon=`$ECHO $path | $GREP ^.:` 63094 new_path="$path" 63095 if test "x$has_colon" = x; then 63096 # Not in mixed or Windows style, start by that. 63097 new_path=`cmd //c echo $path` 63098 fi 63099 63100 63101 input_path="$new_path" 63102 # Check if we need to convert this using DOS-style short mode. If the path 63103 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63104 # take no chances and rewrite it. 63105 # Note: m4 eats our [], so we need to use [ and ] instead. 63106 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63107 if test "x$has_forbidden_chars" != x; then 63108 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63109 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63110 fi 63111 63112 63113 windows_path="$new_path" 63114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63115 unix_path=`$CYGPATH -u "$windows_path"` 63116 new_path="$unix_path" 63117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63118 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63119 new_path="$unix_path" 63120 fi 63121 63122 if test "x$path" != "x$new_path"; then 63123 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63124 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63125 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63126 fi 63127 63128 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63129 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63130 63131 else 63132 # We're on a unix platform. Hooray! :) 63133 path="$POTENTIAL_FREETYPE_LIB_PATH" 63134 has_space=`$ECHO "$path" | $GREP " "` 63135 if test "x$has_space" != x; then 63136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63137 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63138 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63139 fi 63140 63141 # Use eval to expand a potential ~ 63142 eval path="$path" 63143 if test ! -f "$path" && test ! -d "$path"; then 63144 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63145 fi 63146 63147 if test -d "$path"; then 63148 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63149 else 63150 dir="`$DIRNAME "$path"`" 63151 base="`$BASENAME "$path"`" 63152 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63153 fi 63154 fi 63155 fi 63156 63157 63158 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63160 $as_echo_n "checking for freetype includes... " >&6; } 63161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63162 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63163 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63165 $as_echo_n "checking for freetype libraries... " >&6; } 63166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63167 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63168 fi 63169 63170 fi 63171 if test "x$FOUND_FREETYPE" != xyes; then 63172 FREETYPE_BASE_DIR="$SYSROOT/usr/local" 63173 63174 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63175 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 63176 METHOD="well-known location" 63177 63178 # Let's start with an optimistic view of the world :-) 63179 FOUND_FREETYPE=yes 63180 63181 # First look for the canonical freetype main include file ft2build.h. 63182 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63183 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63184 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63185 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63186 # Fail. 63187 FOUND_FREETYPE=no 63188 fi 63189 fi 63190 63191 if test "x$FOUND_FREETYPE" = xyes; then 63192 # Include file found, let's continue the sanity check. 63193 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63194 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63195 63196 # Reset to default value 63197 FREETYPE_BASE_NAME=freetype 63198 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63199 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63200 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63201 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63202 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63203 # for the .6 version explicitly. 63204 FREETYPE_BASE_NAME=freetype.6 63205 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63206 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63207 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63208 else 63209 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63210 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63211 FOUND_FREETYPE=no 63212 fi 63213 else 63214 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63215 # On Windows, we will need both .lib and .dll file. 63216 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63217 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63218 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63219 FOUND_FREETYPE=no 63220 fi 63221 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63222 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63223 # Found lib in isa dir, use that instead. 63224 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63225 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63226 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63227 fi 63228 fi 63229 fi 63230 63231 if test "x$FOUND_FREETYPE" = xyes; then 63232 63233 # Only process if variable expands to non-empty 63234 63235 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63237 63238 # Input might be given as Windows format, start by converting to 63239 # unix format. 63240 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63241 new_path=`$CYGPATH -u "$path"` 63242 63243 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63244 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63245 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63246 # "foo.exe" is OK but "foo" is an error. 63247 # 63248 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63249 # It is also a way to make sure we got the proper file name for the real test later on. 63250 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63251 if test "x$test_shortpath" = x; then 63252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63253 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63254 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63255 fi 63256 63257 # Call helper function which possibly converts this using DOS-style short mode. 63258 # If so, the updated path is stored in $new_path. 63259 63260 input_path="$new_path" 63261 # Check if we need to convert this using DOS-style short mode. If the path 63262 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63263 # take no chances and rewrite it. 63264 # Note: m4 eats our [], so we need to use [ and ] instead. 63265 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63266 if test "x$has_forbidden_chars" != x; then 63267 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63268 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63269 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63270 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63271 # Going to short mode and back again did indeed matter. Since short mode is 63272 # case insensitive, let's make it lowercase to improve readability. 63273 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63274 # Now convert it back to Unix-style (cygpath) 63275 input_path=`$CYGPATH -u "$shortmode_path"` 63276 new_path="$input_path" 63277 fi 63278 fi 63279 63280 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63281 if test "x$test_cygdrive_prefix" = x; then 63282 # As a simple fix, exclude /usr/bin since it's not a real path. 63283 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63284 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63285 # a path prefixed by /cygdrive for fixpath to work. 63286 new_path="$CYGWIN_ROOT_PATH$input_path" 63287 fi 63288 fi 63289 63290 63291 if test "x$path" != "x$new_path"; then 63292 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63294 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63295 fi 63296 63297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63298 63299 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63300 has_colon=`$ECHO $path | $GREP ^.:` 63301 new_path="$path" 63302 if test "x$has_colon" = x; then 63303 # Not in mixed or Windows style, start by that. 63304 new_path=`cmd //c echo $path` 63305 fi 63306 63307 63308 input_path="$new_path" 63309 # Check if we need to convert this using DOS-style short mode. If the path 63310 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63311 # take no chances and rewrite it. 63312 # Note: m4 eats our [], so we need to use [ and ] instead. 63313 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63314 if test "x$has_forbidden_chars" != x; then 63315 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63316 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63317 fi 63318 63319 63320 windows_path="$new_path" 63321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63322 unix_path=`$CYGPATH -u "$windows_path"` 63323 new_path="$unix_path" 63324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63325 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63326 new_path="$unix_path" 63327 fi 63328 63329 if test "x$path" != "x$new_path"; then 63330 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63331 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63332 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63333 fi 63334 63335 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63336 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63337 63338 else 63339 # We're on a unix platform. Hooray! :) 63340 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63341 has_space=`$ECHO "$path" | $GREP " "` 63342 if test "x$has_space" != x; then 63343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63344 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63345 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63346 fi 63347 63348 # Use eval to expand a potential ~ 63349 eval path="$path" 63350 if test ! -f "$path" && test ! -d "$path"; then 63351 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63352 fi 63353 63354 if test -d "$path"; then 63355 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63356 else 63357 dir="`$DIRNAME "$path"`" 63358 base="`$BASENAME "$path"`" 63359 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63360 fi 63361 fi 63362 fi 63363 63364 63365 # Only process if variable expands to non-empty 63366 63367 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63368 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63369 63370 # Input might be given as Windows format, start by converting to 63371 # unix format. 63372 path="$POTENTIAL_FREETYPE_LIB_PATH" 63373 new_path=`$CYGPATH -u "$path"` 63374 63375 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63376 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63377 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63378 # "foo.exe" is OK but "foo" is an error. 63379 # 63380 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63381 # It is also a way to make sure we got the proper file name for the real test later on. 63382 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63383 if test "x$test_shortpath" = x; then 63384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63385 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63386 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63387 fi 63388 63389 # Call helper function which possibly converts this using DOS-style short mode. 63390 # If so, the updated path is stored in $new_path. 63391 63392 input_path="$new_path" 63393 # Check if we need to convert this using DOS-style short mode. If the path 63394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63395 # take no chances and rewrite it. 63396 # Note: m4 eats our [], so we need to use [ and ] instead. 63397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63398 if test "x$has_forbidden_chars" != x; then 63399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63400 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63401 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63402 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63403 # Going to short mode and back again did indeed matter. Since short mode is 63404 # case insensitive, let's make it lowercase to improve readability. 63405 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63406 # Now convert it back to Unix-style (cygpath) 63407 input_path=`$CYGPATH -u "$shortmode_path"` 63408 new_path="$input_path" 63409 fi 63410 fi 63411 63412 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63413 if test "x$test_cygdrive_prefix" = x; then 63414 # As a simple fix, exclude /usr/bin since it's not a real path. 63415 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63416 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63417 # a path prefixed by /cygdrive for fixpath to work. 63418 new_path="$CYGWIN_ROOT_PATH$input_path" 63419 fi 63420 fi 63421 63422 63423 if test "x$path" != "x$new_path"; then 63424 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63425 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63426 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63427 fi 63428 63429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63430 63431 path="$POTENTIAL_FREETYPE_LIB_PATH" 63432 has_colon=`$ECHO $path | $GREP ^.:` 63433 new_path="$path" 63434 if test "x$has_colon" = x; then 63435 # Not in mixed or Windows style, start by that. 63436 new_path=`cmd //c echo $path` 63437 fi 63438 63439 63440 input_path="$new_path" 63441 # Check if we need to convert this using DOS-style short mode. If the path 63442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63443 # take no chances and rewrite it. 63444 # Note: m4 eats our [], so we need to use [ and ] instead. 63445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63446 if test "x$has_forbidden_chars" != x; then 63447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63448 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63449 fi 63450 63451 63452 windows_path="$new_path" 63453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63454 unix_path=`$CYGPATH -u "$windows_path"` 63455 new_path="$unix_path" 63456 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63457 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63458 new_path="$unix_path" 63459 fi 63460 63461 if test "x$path" != "x$new_path"; then 63462 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63463 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63464 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63465 fi 63466 63467 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63468 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63469 63470 else 63471 # We're on a unix platform. Hooray! :) 63472 path="$POTENTIAL_FREETYPE_LIB_PATH" 63473 has_space=`$ECHO "$path" | $GREP " "` 63474 if test "x$has_space" != x; then 63475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63476 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63477 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63478 fi 63479 63480 # Use eval to expand a potential ~ 63481 eval path="$path" 63482 if test ! -f "$path" && test ! -d "$path"; then 63483 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63484 fi 63485 63486 if test -d "$path"; then 63487 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63488 else 63489 dir="`$DIRNAME "$path"`" 63490 base="`$BASENAME "$path"`" 63491 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63492 fi 63493 fi 63494 fi 63495 63496 63497 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63499 $as_echo_n "checking for freetype includes... " >&6; } 63500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63501 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63502 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63504 $as_echo_n "checking for freetype libraries... " >&6; } 63505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63506 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63507 fi 63508 63509 fi 63510 63511 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 63512 if test "x$FOUND_FREETYPE" != xyes; then 63513 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 63514 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 63515 63516 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63517 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 63518 METHOD="well-known location" 63519 63520 # Let's start with an optimistic view of the world :-) 63521 FOUND_FREETYPE=yes 63522 63523 # First look for the canonical freetype main include file ft2build.h. 63524 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63525 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63526 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63527 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63528 # Fail. 63529 FOUND_FREETYPE=no 63530 fi 63531 fi 63532 63533 if test "x$FOUND_FREETYPE" = xyes; then 63534 # Include file found, let's continue the sanity check. 63535 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63536 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63537 63538 # Reset to default value 63539 FREETYPE_BASE_NAME=freetype 63540 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63541 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63542 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63543 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63544 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63545 # for the .6 version explicitly. 63546 FREETYPE_BASE_NAME=freetype.6 63547 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63548 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63549 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63550 else 63551 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63552 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63553 FOUND_FREETYPE=no 63554 fi 63555 else 63556 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63557 # On Windows, we will need both .lib and .dll file. 63558 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63559 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63560 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63561 FOUND_FREETYPE=no 63562 fi 63563 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63564 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63565 # Found lib in isa dir, use that instead. 63566 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63567 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63568 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63569 fi 63570 fi 63571 fi 63572 63573 if test "x$FOUND_FREETYPE" = xyes; then 63574 63575 # Only process if variable expands to non-empty 63576 63577 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63579 63580 # Input might be given as Windows format, start by converting to 63581 # unix format. 63582 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63583 new_path=`$CYGPATH -u "$path"` 63584 63585 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63586 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63587 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63588 # "foo.exe" is OK but "foo" is an error. 63589 # 63590 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63591 # It is also a way to make sure we got the proper file name for the real test later on. 63592 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63593 if test "x$test_shortpath" = x; then 63594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63595 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63596 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63597 fi 63598 63599 # Call helper function which possibly converts this using DOS-style short mode. 63600 # If so, the updated path is stored in $new_path. 63601 63602 input_path="$new_path" 63603 # Check if we need to convert this using DOS-style short mode. If the path 63604 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63605 # take no chances and rewrite it. 63606 # Note: m4 eats our [], so we need to use [ and ] instead. 63607 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63608 if test "x$has_forbidden_chars" != x; then 63609 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63610 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63611 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63612 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63613 # Going to short mode and back again did indeed matter. Since short mode is 63614 # case insensitive, let's make it lowercase to improve readability. 63615 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63616 # Now convert it back to Unix-style (cygpath) 63617 input_path=`$CYGPATH -u "$shortmode_path"` 63618 new_path="$input_path" 63619 fi 63620 fi 63621 63622 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63623 if test "x$test_cygdrive_prefix" = x; then 63624 # As a simple fix, exclude /usr/bin since it's not a real path. 63625 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63626 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63627 # a path prefixed by /cygdrive for fixpath to work. 63628 new_path="$CYGWIN_ROOT_PATH$input_path" 63629 fi 63630 fi 63631 63632 63633 if test "x$path" != "x$new_path"; then 63634 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63635 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63636 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63637 fi 63638 63639 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63640 63641 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63642 has_colon=`$ECHO $path | $GREP ^.:` 63643 new_path="$path" 63644 if test "x$has_colon" = x; then 63645 # Not in mixed or Windows style, start by that. 63646 new_path=`cmd //c echo $path` 63647 fi 63648 63649 63650 input_path="$new_path" 63651 # Check if we need to convert this using DOS-style short mode. If the path 63652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63653 # take no chances and rewrite it. 63654 # Note: m4 eats our [], so we need to use [ and ] instead. 63655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63656 if test "x$has_forbidden_chars" != x; then 63657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63658 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63659 fi 63660 63661 63662 windows_path="$new_path" 63663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63664 unix_path=`$CYGPATH -u "$windows_path"` 63665 new_path="$unix_path" 63666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63667 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63668 new_path="$unix_path" 63669 fi 63670 63671 if test "x$path" != "x$new_path"; then 63672 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63674 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63675 fi 63676 63677 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63678 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63679 63680 else 63681 # We're on a unix platform. Hooray! :) 63682 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63683 has_space=`$ECHO "$path" | $GREP " "` 63684 if test "x$has_space" != x; then 63685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63686 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63687 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63688 fi 63689 63690 # Use eval to expand a potential ~ 63691 eval path="$path" 63692 if test ! -f "$path" && test ! -d "$path"; then 63693 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63694 fi 63695 63696 if test -d "$path"; then 63697 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63698 else 63699 dir="`$DIRNAME "$path"`" 63700 base="`$BASENAME "$path"`" 63701 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63702 fi 63703 fi 63704 fi 63705 63706 63707 # Only process if variable expands to non-empty 63708 63709 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63711 63712 # Input might be given as Windows format, start by converting to 63713 # unix format. 63714 path="$POTENTIAL_FREETYPE_LIB_PATH" 63715 new_path=`$CYGPATH -u "$path"` 63716 63717 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63718 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63719 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63720 # "foo.exe" is OK but "foo" is an error. 63721 # 63722 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63723 # It is also a way to make sure we got the proper file name for the real test later on. 63724 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63725 if test "x$test_shortpath" = x; then 63726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63727 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63728 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63729 fi 63730 63731 # Call helper function which possibly converts this using DOS-style short mode. 63732 # If so, the updated path is stored in $new_path. 63733 63734 input_path="$new_path" 63735 # Check if we need to convert this using DOS-style short mode. If the path 63736 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63737 # take no chances and rewrite it. 63738 # Note: m4 eats our [], so we need to use [ and ] instead. 63739 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63740 if test "x$has_forbidden_chars" != x; then 63741 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63742 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63743 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63744 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63745 # Going to short mode and back again did indeed matter. Since short mode is 63746 # case insensitive, let's make it lowercase to improve readability. 63747 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63748 # Now convert it back to Unix-style (cygpath) 63749 input_path=`$CYGPATH -u "$shortmode_path"` 63750 new_path="$input_path" 63751 fi 63752 fi 63753 63754 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63755 if test "x$test_cygdrive_prefix" = x; then 63756 # As a simple fix, exclude /usr/bin since it's not a real path. 63757 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63758 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63759 # a path prefixed by /cygdrive for fixpath to work. 63760 new_path="$CYGWIN_ROOT_PATH$input_path" 63761 fi 63762 fi 63763 63764 63765 if test "x$path" != "x$new_path"; then 63766 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63768 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63769 fi 63770 63771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63772 63773 path="$POTENTIAL_FREETYPE_LIB_PATH" 63774 has_colon=`$ECHO $path | $GREP ^.:` 63775 new_path="$path" 63776 if test "x$has_colon" = x; then 63777 # Not in mixed or Windows style, start by that. 63778 new_path=`cmd //c echo $path` 63779 fi 63780 63781 63782 input_path="$new_path" 63783 # Check if we need to convert this using DOS-style short mode. If the path 63784 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63785 # take no chances and rewrite it. 63786 # Note: m4 eats our [], so we need to use [ and ] instead. 63787 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63788 if test "x$has_forbidden_chars" != x; then 63789 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63790 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63791 fi 63792 63793 63794 windows_path="$new_path" 63795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63796 unix_path=`$CYGPATH -u "$windows_path"` 63797 new_path="$unix_path" 63798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63799 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63800 new_path="$unix_path" 63801 fi 63802 63803 if test "x$path" != "x$new_path"; then 63804 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63805 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63806 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63807 fi 63808 63809 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63810 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63811 63812 else 63813 # We're on a unix platform. Hooray! :) 63814 path="$POTENTIAL_FREETYPE_LIB_PATH" 63815 has_space=`$ECHO "$path" | $GREP " "` 63816 if test "x$has_space" != x; then 63817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63818 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63819 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63820 fi 63821 63822 # Use eval to expand a potential ~ 63823 eval path="$path" 63824 if test ! -f "$path" && test ! -d "$path"; then 63825 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63826 fi 63827 63828 if test -d "$path"; then 63829 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63830 else 63831 dir="`$DIRNAME "$path"`" 63832 base="`$BASENAME "$path"`" 63833 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63834 fi 63835 fi 63836 fi 63837 63838 63839 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63841 $as_echo_n "checking for freetype includes... " >&6; } 63842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63843 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63844 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63846 $as_echo_n "checking for freetype libraries... " >&6; } 63847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63848 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63849 fi 63850 63851 fi 63852 fi 63853 63854 if test "x$FOUND_FREETYPE" != xyes; then 63855 FREETYPE_BASE_DIR="$SYSROOT/usr" 63856 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 63857 63858 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63859 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/$OPENJDK_TARGET_CPU-linux-gnu" 63860 METHOD="well-known location" 63861 63862 # Let's start with an optimistic view of the world :-) 63863 FOUND_FREETYPE=yes 63864 63865 # First look for the canonical freetype main include file ft2build.h. 63866 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63867 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63868 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63869 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63870 # Fail. 63871 FOUND_FREETYPE=no 63872 fi 63873 fi 63874 63875 if test "x$FOUND_FREETYPE" = xyes; then 63876 # Include file found, let's continue the sanity check. 63877 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63878 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63879 63880 # Reset to default value 63881 FREETYPE_BASE_NAME=freetype 63882 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63883 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63884 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63885 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63886 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63887 # for the .6 version explicitly. 63888 FREETYPE_BASE_NAME=freetype.6 63889 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63890 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63891 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63892 else 63893 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63894 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63895 FOUND_FREETYPE=no 63896 fi 63897 else 63898 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63899 # On Windows, we will need both .lib and .dll file. 63900 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63901 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63902 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63903 FOUND_FREETYPE=no 63904 fi 63905 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63906 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63907 # Found lib in isa dir, use that instead. 63908 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63909 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63910 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63911 fi 63912 fi 63913 fi 63914 63915 if test "x$FOUND_FREETYPE" = xyes; then 63916 63917 # Only process if variable expands to non-empty 63918 63919 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63921 63922 # Input might be given as Windows format, start by converting to 63923 # unix format. 63924 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63925 new_path=`$CYGPATH -u "$path"` 63926 63927 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63928 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63929 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63930 # "foo.exe" is OK but "foo" is an error. 63931 # 63932 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63933 # It is also a way to make sure we got the proper file name for the real test later on. 63934 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63935 if test "x$test_shortpath" = x; then 63936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63937 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63938 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63939 fi 63940 63941 # Call helper function which possibly converts this using DOS-style short mode. 63942 # If so, the updated path is stored in $new_path. 63943 63944 input_path="$new_path" 63945 # Check if we need to convert this using DOS-style short mode. If the path 63946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63947 # take no chances and rewrite it. 63948 # Note: m4 eats our [], so we need to use [ and ] instead. 63949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63950 if test "x$has_forbidden_chars" != x; then 63951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63952 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63953 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63954 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63955 # Going to short mode and back again did indeed matter. Since short mode is 63956 # case insensitive, let's make it lowercase to improve readability. 63957 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63958 # Now convert it back to Unix-style (cygpath) 63959 input_path=`$CYGPATH -u "$shortmode_path"` 63960 new_path="$input_path" 63961 fi 63962 fi 63963 63964 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63965 if test "x$test_cygdrive_prefix" = x; then 63966 # As a simple fix, exclude /usr/bin since it's not a real path. 63967 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63968 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63969 # a path prefixed by /cygdrive for fixpath to work. 63970 new_path="$CYGWIN_ROOT_PATH$input_path" 63971 fi 63972 fi 63973 63974 63975 if test "x$path" != "x$new_path"; then 63976 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63978 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63979 fi 63980 63981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63982 63983 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63984 has_colon=`$ECHO $path | $GREP ^.:` 63985 new_path="$path" 63986 if test "x$has_colon" = x; then 63987 # Not in mixed or Windows style, start by that. 63988 new_path=`cmd //c echo $path` 63989 fi 63990 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64001 fi 64002 64003 64004 windows_path="$new_path" 64005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64006 unix_path=`$CYGPATH -u "$windows_path"` 64007 new_path="$unix_path" 64008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64010 new_path="$unix_path" 64011 fi 64012 64013 if test "x$path" != "x$new_path"; then 64014 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64015 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64016 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64017 fi 64018 64019 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64020 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64021 64022 else 64023 # We're on a unix platform. Hooray! :) 64024 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64025 has_space=`$ECHO "$path" | $GREP " "` 64026 if test "x$has_space" != x; then 64027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64028 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64029 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64030 fi 64031 64032 # Use eval to expand a potential ~ 64033 eval path="$path" 64034 if test ! -f "$path" && test ! -d "$path"; then 64035 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64036 fi 64037 64038 if test -d "$path"; then 64039 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64040 else 64041 dir="`$DIRNAME "$path"`" 64042 base="`$BASENAME "$path"`" 64043 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64044 fi 64045 fi 64046 fi 64047 64048 64049 # Only process if variable expands to non-empty 64050 64051 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64053 64054 # Input might be given as Windows format, start by converting to 64055 # unix format. 64056 path="$POTENTIAL_FREETYPE_LIB_PATH" 64057 new_path=`$CYGPATH -u "$path"` 64058 64059 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64060 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64061 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64062 # "foo.exe" is OK but "foo" is an error. 64063 # 64064 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64065 # It is also a way to make sure we got the proper file name for the real test later on. 64066 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64067 if test "x$test_shortpath" = x; then 64068 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64069 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64070 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64071 fi 64072 64073 # Call helper function which possibly converts this using DOS-style short mode. 64074 # If so, the updated path is stored in $new_path. 64075 64076 input_path="$new_path" 64077 # Check if we need to convert this using DOS-style short mode. If the path 64078 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64079 # take no chances and rewrite it. 64080 # Note: m4 eats our [], so we need to use [ and ] instead. 64081 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64082 if test "x$has_forbidden_chars" != x; then 64083 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64084 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64085 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64086 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64087 # Going to short mode and back again did indeed matter. Since short mode is 64088 # case insensitive, let's make it lowercase to improve readability. 64089 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64090 # Now convert it back to Unix-style (cygpath) 64091 input_path=`$CYGPATH -u "$shortmode_path"` 64092 new_path="$input_path" 64093 fi 64094 fi 64095 64096 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64097 if test "x$test_cygdrive_prefix" = x; then 64098 # As a simple fix, exclude /usr/bin since it's not a real path. 64099 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64100 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64101 # a path prefixed by /cygdrive for fixpath to work. 64102 new_path="$CYGWIN_ROOT_PATH$input_path" 64103 fi 64104 fi 64105 64106 64107 if test "x$path" != "x$new_path"; then 64108 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64109 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64110 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64111 fi 64112 64113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64114 64115 path="$POTENTIAL_FREETYPE_LIB_PATH" 64116 has_colon=`$ECHO $path | $GREP ^.:` 64117 new_path="$path" 64118 if test "x$has_colon" = x; then 64119 # Not in mixed or Windows style, start by that. 64120 new_path=`cmd //c echo $path` 64121 fi 64122 64123 64124 input_path="$new_path" 64125 # Check if we need to convert this using DOS-style short mode. If the path 64126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64127 # take no chances and rewrite it. 64128 # Note: m4 eats our [], so we need to use [ and ] instead. 64129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64130 if test "x$has_forbidden_chars" != x; then 64131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64132 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64133 fi 64134 64135 64136 windows_path="$new_path" 64137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64138 unix_path=`$CYGPATH -u "$windows_path"` 64139 new_path="$unix_path" 64140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64141 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64142 new_path="$unix_path" 64143 fi 64144 64145 if test "x$path" != "x$new_path"; then 64146 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64148 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64149 fi 64150 64151 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64152 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64153 64154 else 64155 # We're on a unix platform. Hooray! :) 64156 path="$POTENTIAL_FREETYPE_LIB_PATH" 64157 has_space=`$ECHO "$path" | $GREP " "` 64158 if test "x$has_space" != x; then 64159 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64160 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64161 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64162 fi 64163 64164 # Use eval to expand a potential ~ 64165 eval path="$path" 64166 if test ! -f "$path" && test ! -d "$path"; then 64167 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64168 fi 64169 64170 if test -d "$path"; then 64171 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64172 else 64173 dir="`$DIRNAME "$path"`" 64174 base="`$BASENAME "$path"`" 64175 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64176 fi 64177 fi 64178 fi 64179 64180 64181 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64183 $as_echo_n "checking for freetype includes... " >&6; } 64184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64185 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64186 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64188 $as_echo_n "checking for freetype libraries... " >&6; } 64189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64190 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64191 fi 64192 64193 else 64194 64195 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 64196 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 64197 METHOD="well-known location" 64198 64199 # Let's start with an optimistic view of the world :-) 64200 FOUND_FREETYPE=yes 64201 64202 # First look for the canonical freetype main include file ft2build.h. 64203 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64204 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 64205 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 64206 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64207 # Fail. 64208 FOUND_FREETYPE=no 64209 fi 64210 fi 64211 64212 if test "x$FOUND_FREETYPE" = xyes; then 64213 # Include file found, let's continue the sanity check. 64214 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 64215 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 64216 64217 # Reset to default value 64218 FREETYPE_BASE_NAME=freetype 64219 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64220 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 64221 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 64222 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 64223 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 64224 # for the .6 version explicitly. 64225 FREETYPE_BASE_NAME=freetype.6 64226 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64227 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 64228 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 64229 else 64230 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 64231 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 64232 FOUND_FREETYPE=no 64233 fi 64234 else 64235 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64236 # On Windows, we will need both .lib and .dll file. 64237 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 64238 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 64239 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 64240 FOUND_FREETYPE=no 64241 fi 64242 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 64243 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 64244 # Found lib in isa dir, use that instead. 64245 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 64246 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 64247 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 64248 fi 64249 fi 64250 fi 64251 64252 if test "x$FOUND_FREETYPE" = xyes; then 64253 64254 # Only process if variable expands to non-empty 64255 64256 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 64257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64258 64259 # Input might be given as Windows format, start by converting to 64260 # unix format. 64261 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64262 new_path=`$CYGPATH -u "$path"` 64263 64264 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64265 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64266 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64267 # "foo.exe" is OK but "foo" is an error. 64268 # 64269 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64270 # It is also a way to make sure we got the proper file name for the real test later on. 64271 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64272 if test "x$test_shortpath" = x; then 64273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64274 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64275 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 64276 fi 64277 64278 # Call helper function which possibly converts this using DOS-style short mode. 64279 # If so, the updated path is stored in $new_path. 64280 64281 input_path="$new_path" 64282 # Check if we need to convert this using DOS-style short mode. If the path 64283 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64284 # take no chances and rewrite it. 64285 # Note: m4 eats our [], so we need to use [ and ] instead. 64286 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64287 if test "x$has_forbidden_chars" != x; then 64288 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64289 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64290 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64291 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64292 # Going to short mode and back again did indeed matter. Since short mode is 64293 # case insensitive, let's make it lowercase to improve readability. 64294 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64295 # Now convert it back to Unix-style (cygpath) 64296 input_path=`$CYGPATH -u "$shortmode_path"` 64297 new_path="$input_path" 64298 fi 64299 fi 64300 64301 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64302 if test "x$test_cygdrive_prefix" = x; then 64303 # As a simple fix, exclude /usr/bin since it's not a real path. 64304 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64305 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64306 # a path prefixed by /cygdrive for fixpath to work. 64307 new_path="$CYGWIN_ROOT_PATH$input_path" 64308 fi 64309 fi 64310 64311 64312 if test "x$path" != "x$new_path"; then 64313 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64315 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64316 fi 64317 64318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64319 64320 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64321 has_colon=`$ECHO $path | $GREP ^.:` 64322 new_path="$path" 64323 if test "x$has_colon" = x; then 64324 # Not in mixed or Windows style, start by that. 64325 new_path=`cmd //c echo $path` 64326 fi 64327 64328 64329 input_path="$new_path" 64330 # Check if we need to convert this using DOS-style short mode. If the path 64331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64332 # take no chances and rewrite it. 64333 # Note: m4 eats our [], so we need to use [ and ] instead. 64334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64335 if test "x$has_forbidden_chars" != x; then 64336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64337 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64338 fi 64339 64340 64341 windows_path="$new_path" 64342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64343 unix_path=`$CYGPATH -u "$windows_path"` 64344 new_path="$unix_path" 64345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64347 new_path="$unix_path" 64348 fi 64349 64350 if test "x$path" != "x$new_path"; then 64351 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64352 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64353 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64354 fi 64355 64356 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64357 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64358 64359 else 64360 # We're on a unix platform. Hooray! :) 64361 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64362 has_space=`$ECHO "$path" | $GREP " "` 64363 if test "x$has_space" != x; then 64364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64365 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64366 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64367 fi 64368 64369 # Use eval to expand a potential ~ 64370 eval path="$path" 64371 if test ! -f "$path" && test ! -d "$path"; then 64372 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64373 fi 64374 64375 if test -d "$path"; then 64376 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64377 else 64378 dir="`$DIRNAME "$path"`" 64379 base="`$BASENAME "$path"`" 64380 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64381 fi 64382 fi 64383 fi 64384 64385 64386 # Only process if variable expands to non-empty 64387 64388 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64390 64391 # Input might be given as Windows format, start by converting to 64392 # unix format. 64393 path="$POTENTIAL_FREETYPE_LIB_PATH" 64394 new_path=`$CYGPATH -u "$path"` 64395 64396 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64397 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64398 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64399 # "foo.exe" is OK but "foo" is an error. 64400 # 64401 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64402 # It is also a way to make sure we got the proper file name for the real test later on. 64403 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64404 if test "x$test_shortpath" = x; then 64405 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64406 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64407 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64408 fi 64409 64410 # Call helper function which possibly converts this using DOS-style short mode. 64411 # If so, the updated path is stored in $new_path. 64412 64413 input_path="$new_path" 64414 # Check if we need to convert this using DOS-style short mode. If the path 64415 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64416 # take no chances and rewrite it. 64417 # Note: m4 eats our [], so we need to use [ and ] instead. 64418 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64419 if test "x$has_forbidden_chars" != x; then 64420 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64421 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64422 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64423 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64424 # Going to short mode and back again did indeed matter. Since short mode is 64425 # case insensitive, let's make it lowercase to improve readability. 64426 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64427 # Now convert it back to Unix-style (cygpath) 64428 input_path=`$CYGPATH -u "$shortmode_path"` 64429 new_path="$input_path" 64430 fi 64431 fi 64432 64433 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64434 if test "x$test_cygdrive_prefix" = x; then 64435 # As a simple fix, exclude /usr/bin since it's not a real path. 64436 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64437 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64438 # a path prefixed by /cygdrive for fixpath to work. 64439 new_path="$CYGWIN_ROOT_PATH$input_path" 64440 fi 64441 fi 64442 64443 64444 if test "x$path" != "x$new_path"; then 64445 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64446 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64447 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64448 fi 64449 64450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64451 64452 path="$POTENTIAL_FREETYPE_LIB_PATH" 64453 has_colon=`$ECHO $path | $GREP ^.:` 64454 new_path="$path" 64455 if test "x$has_colon" = x; then 64456 # Not in mixed or Windows style, start by that. 64457 new_path=`cmd //c echo $path` 64458 fi 64459 64460 64461 input_path="$new_path" 64462 # Check if we need to convert this using DOS-style short mode. If the path 64463 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64464 # take no chances and rewrite it. 64465 # Note: m4 eats our [], so we need to use [ and ] instead. 64466 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64467 if test "x$has_forbidden_chars" != x; then 64468 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64469 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64470 fi 64471 64472 64473 windows_path="$new_path" 64474 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64475 unix_path=`$CYGPATH -u "$windows_path"` 64476 new_path="$unix_path" 64477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64478 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64479 new_path="$unix_path" 64480 fi 64481 64482 if test "x$path" != "x$new_path"; then 64483 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64484 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64485 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64486 fi 64487 64488 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64489 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64490 64491 else 64492 # We're on a unix platform. Hooray! :) 64493 path="$POTENTIAL_FREETYPE_LIB_PATH" 64494 has_space=`$ECHO "$path" | $GREP " "` 64495 if test "x$has_space" != x; then 64496 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64497 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64498 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64499 fi 64500 64501 # Use eval to expand a potential ~ 64502 eval path="$path" 64503 if test ! -f "$path" && test ! -d "$path"; then 64504 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64505 fi 64506 64507 if test -d "$path"; then 64508 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64509 else 64510 dir="`$DIRNAME "$path"`" 64511 base="`$BASENAME "$path"`" 64512 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64513 fi 64514 fi 64515 fi 64516 64517 64518 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64520 $as_echo_n "checking for freetype includes... " >&6; } 64521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64522 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64523 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64525 $as_echo_n "checking for freetype libraries... " >&6; } 64526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64527 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64528 fi 64529 64530 if test "x$FOUND_FREETYPE" != xyes; then 64531 64532 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 64533 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 64534 METHOD="well-known location" 64535 64536 # Let's start with an optimistic view of the world :-) 64537 FOUND_FREETYPE=yes 64538 64539 # First look for the canonical freetype main include file ft2build.h. 64540 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64541 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 64542 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 64543 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64544 # Fail. 64545 FOUND_FREETYPE=no 64546 fi 64547 fi 64548 64549 if test "x$FOUND_FREETYPE" = xyes; then 64550 # Include file found, let's continue the sanity check. 64551 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 64552 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 64553 64554 # Reset to default value 64555 FREETYPE_BASE_NAME=freetype 64556 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64557 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 64558 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 64559 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 64560 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 64561 # for the .6 version explicitly. 64562 FREETYPE_BASE_NAME=freetype.6 64563 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64564 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 64565 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 64566 else 64567 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 64568 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 64569 FOUND_FREETYPE=no 64570 fi 64571 else 64572 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64573 # On Windows, we will need both .lib and .dll file. 64574 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 64575 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 64576 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 64577 FOUND_FREETYPE=no 64578 fi 64579 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 64580 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 64581 # Found lib in isa dir, use that instead. 64582 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 64583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 64584 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 64585 fi 64586 fi 64587 fi 64588 64589 if test "x$FOUND_FREETYPE" = xyes; then 64590 64591 # Only process if variable expands to non-empty 64592 64593 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 64594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64595 64596 # Input might be given as Windows format, start by converting to 64597 # unix format. 64598 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64599 new_path=`$CYGPATH -u "$path"` 64600 64601 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64602 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64603 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64604 # "foo.exe" is OK but "foo" is an error. 64605 # 64606 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64607 # It is also a way to make sure we got the proper file name for the real test later on. 64608 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64609 if test "x$test_shortpath" = x; then 64610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64611 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64612 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 64613 fi 64614 64615 # Call helper function which possibly converts this using DOS-style short mode. 64616 # If so, the updated path is stored in $new_path. 64617 64618 input_path="$new_path" 64619 # Check if we need to convert this using DOS-style short mode. If the path 64620 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64621 # take no chances and rewrite it. 64622 # Note: m4 eats our [], so we need to use [ and ] instead. 64623 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64624 if test "x$has_forbidden_chars" != x; then 64625 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64626 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64627 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64628 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64629 # Going to short mode and back again did indeed matter. Since short mode is 64630 # case insensitive, let's make it lowercase to improve readability. 64631 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64632 # Now convert it back to Unix-style (cygpath) 64633 input_path=`$CYGPATH -u "$shortmode_path"` 64634 new_path="$input_path" 64635 fi 64636 fi 64637 64638 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64639 if test "x$test_cygdrive_prefix" = x; then 64640 # As a simple fix, exclude /usr/bin since it's not a real path. 64641 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64642 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64643 # a path prefixed by /cygdrive for fixpath to work. 64644 new_path="$CYGWIN_ROOT_PATH$input_path" 64645 fi 64646 fi 64647 64648 64649 if test "x$path" != "x$new_path"; then 64650 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64651 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64652 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64653 fi 64654 64655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64656 64657 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64658 has_colon=`$ECHO $path | $GREP ^.:` 64659 new_path="$path" 64660 if test "x$has_colon" = x; then 64661 # Not in mixed or Windows style, start by that. 64662 new_path=`cmd //c echo $path` 64663 fi 64664 64665 64666 input_path="$new_path" 64667 # Check if we need to convert this using DOS-style short mode. If the path 64668 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64669 # take no chances and rewrite it. 64670 # Note: m4 eats our [], so we need to use [ and ] instead. 64671 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64672 if test "x$has_forbidden_chars" != x; then 64673 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64674 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64675 fi 64676 64677 64678 windows_path="$new_path" 64679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64680 unix_path=`$CYGPATH -u "$windows_path"` 64681 new_path="$unix_path" 64682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64683 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64684 new_path="$unix_path" 64685 fi 64686 64687 if test "x$path" != "x$new_path"; then 64688 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64689 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64690 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64691 fi 64692 64693 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64694 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64695 64696 else 64697 # We're on a unix platform. Hooray! :) 64698 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64699 has_space=`$ECHO "$path" | $GREP " "` 64700 if test "x$has_space" != x; then 64701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64702 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64703 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64704 fi 64705 64706 # Use eval to expand a potential ~ 64707 eval path="$path" 64708 if test ! -f "$path" && test ! -d "$path"; then 64709 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64710 fi 64711 64712 if test -d "$path"; then 64713 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64714 else 64715 dir="`$DIRNAME "$path"`" 64716 base="`$BASENAME "$path"`" 64717 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64718 fi 64719 fi 64720 fi 64721 64722 64723 # Only process if variable expands to non-empty 64724 64725 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64727 64728 # Input might be given as Windows format, start by converting to 64729 # unix format. 64730 path="$POTENTIAL_FREETYPE_LIB_PATH" 64731 new_path=`$CYGPATH -u "$path"` 64732 64733 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64734 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64735 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64736 # "foo.exe" is OK but "foo" is an error. 64737 # 64738 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64739 # It is also a way to make sure we got the proper file name for the real test later on. 64740 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64741 if test "x$test_shortpath" = x; then 64742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64743 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64744 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64745 fi 64746 64747 # Call helper function which possibly converts this using DOS-style short mode. 64748 # If so, the updated path is stored in $new_path. 64749 64750 input_path="$new_path" 64751 # Check if we need to convert this using DOS-style short mode. If the path 64752 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64753 # take no chances and rewrite it. 64754 # Note: m4 eats our [], so we need to use [ and ] instead. 64755 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64756 if test "x$has_forbidden_chars" != x; then 64757 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64758 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64759 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64760 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64761 # Going to short mode and back again did indeed matter. Since short mode is 64762 # case insensitive, let's make it lowercase to improve readability. 64763 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64764 # Now convert it back to Unix-style (cygpath) 64765 input_path=`$CYGPATH -u "$shortmode_path"` 64766 new_path="$input_path" 64767 fi 64768 fi 64769 64770 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64771 if test "x$test_cygdrive_prefix" = x; then 64772 # As a simple fix, exclude /usr/bin since it's not a real path. 64773 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64774 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64775 # a path prefixed by /cygdrive for fixpath to work. 64776 new_path="$CYGWIN_ROOT_PATH$input_path" 64777 fi 64778 fi 64779 64780 64781 if test "x$path" != "x$new_path"; then 64782 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64783 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64784 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64785 fi 64786 64787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64788 64789 path="$POTENTIAL_FREETYPE_LIB_PATH" 64790 has_colon=`$ECHO $path | $GREP ^.:` 64791 new_path="$path" 64792 if test "x$has_colon" = x; then 64793 # Not in mixed or Windows style, start by that. 64794 new_path=`cmd //c echo $path` 64795 fi 64796 64797 64798 input_path="$new_path" 64799 # Check if we need to convert this using DOS-style short mode. If the path 64800 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64801 # take no chances and rewrite it. 64802 # Note: m4 eats our [], so we need to use [ and ] instead. 64803 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64804 if test "x$has_forbidden_chars" != x; then 64805 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64806 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64807 fi 64808 64809 64810 windows_path="$new_path" 64811 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64812 unix_path=`$CYGPATH -u "$windows_path"` 64813 new_path="$unix_path" 64814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64815 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64816 new_path="$unix_path" 64817 fi 64818 64819 if test "x$path" != "x$new_path"; then 64820 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64821 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64822 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64823 fi 64824 64825 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64826 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64827 64828 else 64829 # We're on a unix platform. Hooray! :) 64830 path="$POTENTIAL_FREETYPE_LIB_PATH" 64831 has_space=`$ECHO "$path" | $GREP " "` 64832 if test "x$has_space" != x; then 64833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64834 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64835 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64836 fi 64837 64838 # Use eval to expand a potential ~ 64839 eval path="$path" 64840 if test ! -f "$path" && test ! -d "$path"; then 64841 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64842 fi 64843 64844 if test -d "$path"; then 64845 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64846 else 64847 dir="`$DIRNAME "$path"`" 64848 base="`$BASENAME "$path"`" 64849 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64850 fi 64851 fi 64852 fi 64853 64854 64855 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64857 $as_echo_n "checking for freetype includes... " >&6; } 64858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64859 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64860 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64862 $as_echo_n "checking for freetype libraries... " >&6; } 64863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64864 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64865 fi 64866 64867 fi 64868 fi 64869 fi 64870 fi 64871 fi # end check in well-known locations 64872 64873 if test "x$FOUND_FREETYPE" != xyes; then 64874 64875 # Print a helpful message on how to acquire the necessary build dependency. 64876 # freetype is the help tag: freetype, cups, alsa etc 64877 MISSING_DEPENDENCY=freetype 64878 64879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64880 cygwin_help $MISSING_DEPENDENCY 64881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64882 msys_help $MISSING_DEPENDENCY 64883 else 64884 PKGHANDLER_COMMAND= 64885 64886 case $PKGHANDLER in 64887 apt-get) 64888 apt_help $MISSING_DEPENDENCY ;; 64889 yum) 64890 yum_help $MISSING_DEPENDENCY ;; 64891 brew) 64892 brew_help $MISSING_DEPENDENCY ;; 64893 port) 64894 port_help $MISSING_DEPENDENCY ;; 64895 pkgutil) 64896 pkgutil_help $MISSING_DEPENDENCY ;; 64897 pkgadd) 64898 pkgadd_help $MISSING_DEPENDENCY ;; 64899 esac 64900 64901 if test "x$PKGHANDLER_COMMAND" != x; then 64902 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64903 fi 64904 fi 64905 64906 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 64907 fi 64908 fi # end user specified settings 64909 64910 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 64911 if test "x$FREETYPE_CFLAGS" = x; then 64912 64913 # Only process if variable expands to non-empty 64914 64915 if test "x$FREETYPE_INCLUDE_PATH" != x; then 64916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64917 64918 # Input might be given as Windows format, start by converting to 64919 # unix format. 64920 path="$FREETYPE_INCLUDE_PATH" 64921 new_path=`$CYGPATH -u "$path"` 64922 64923 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64924 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64925 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64926 # "foo.exe" is OK but "foo" is an error. 64927 # 64928 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64929 # It is also a way to make sure we got the proper file name for the real test later on. 64930 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64931 if test "x$test_shortpath" = x; then 64932 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64933 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64934 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 64935 fi 64936 64937 # Call helper function which possibly converts this using DOS-style short mode. 64938 # If so, the updated path is stored in $new_path. 64939 64940 input_path="$new_path" 64941 # Check if we need to convert this using DOS-style short mode. If the path 64942 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64943 # take no chances and rewrite it. 64944 # Note: m4 eats our [], so we need to use [ and ] instead. 64945 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64946 if test "x$has_forbidden_chars" != x; then 64947 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64948 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64949 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64950 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64951 # Going to short mode and back again did indeed matter. Since short mode is 64952 # case insensitive, let's make it lowercase to improve readability. 64953 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64954 # Now convert it back to Unix-style (cygpath) 64955 input_path=`$CYGPATH -u "$shortmode_path"` 64956 new_path="$input_path" 64957 fi 64958 fi 64959 64960 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64961 if test "x$test_cygdrive_prefix" = x; then 64962 # As a simple fix, exclude /usr/bin since it's not a real path. 64963 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64964 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64965 # a path prefixed by /cygdrive for fixpath to work. 64966 new_path="$CYGWIN_ROOT_PATH$input_path" 64967 fi 64968 fi 64969 64970 64971 if test "x$path" != "x$new_path"; then 64972 FREETYPE_INCLUDE_PATH="$new_path" 64973 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64974 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64975 fi 64976 64977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64978 64979 path="$FREETYPE_INCLUDE_PATH" 64980 has_colon=`$ECHO $path | $GREP ^.:` 64981 new_path="$path" 64982 if test "x$has_colon" = x; then 64983 # Not in mixed or Windows style, start by that. 64984 new_path=`cmd //c echo $path` 64985 fi 64986 64987 64988 input_path="$new_path" 64989 # Check if we need to convert this using DOS-style short mode. If the path 64990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64991 # take no chances and rewrite it. 64992 # Note: m4 eats our [], so we need to use [ and ] instead. 64993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64994 if test "x$has_forbidden_chars" != x; then 64995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64996 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64997 fi 64998 64999 65000 windows_path="$new_path" 65001 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65002 unix_path=`$CYGPATH -u "$windows_path"` 65003 new_path="$unix_path" 65004 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65005 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65006 new_path="$unix_path" 65007 fi 65008 65009 if test "x$path" != "x$new_path"; then 65010 FREETYPE_INCLUDE_PATH="$new_path" 65011 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 65012 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 65013 fi 65014 65015 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65016 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65017 65018 else 65019 # We're on a unix platform. Hooray! :) 65020 path="$FREETYPE_INCLUDE_PATH" 65021 has_space=`$ECHO "$path" | $GREP " "` 65022 if test "x$has_space" != x; then 65023 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 65024 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 65025 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65026 fi 65027 65028 # Use eval to expand a potential ~ 65029 eval path="$path" 65030 if test ! -f "$path" && test ! -d "$path"; then 65031 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 65032 fi 65033 65034 if test -d "$path"; then 65035 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 65036 else 65037 dir="`$DIRNAME "$path"`" 65038 base="`$BASENAME "$path"`" 65039 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 65040 fi 65041 fi 65042 fi 65043 65044 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 65045 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 65046 else 65047 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 65048 fi 65049 fi 65050 65051 if test "x$FREETYPE_LIBS" = x; then 65052 65053 # Only process if variable expands to non-empty 65054 65055 if test "x$FREETYPE_LIB_PATH" != x; then 65056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65057 65058 # Input might be given as Windows format, start by converting to 65059 # unix format. 65060 path="$FREETYPE_LIB_PATH" 65061 new_path=`$CYGPATH -u "$path"` 65062 65063 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65064 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65065 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65066 # "foo.exe" is OK but "foo" is an error. 65067 # 65068 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65069 # It is also a way to make sure we got the proper file name for the real test later on. 65070 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65071 if test "x$test_shortpath" = x; then 65072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 65073 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 65074 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 65075 fi 65076 65077 # Call helper function which possibly converts this using DOS-style short mode. 65078 # If so, the updated path is stored in $new_path. 65079 65080 input_path="$new_path" 65081 # Check if we need to convert this using DOS-style short mode. If the path 65082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65083 # take no chances and rewrite it. 65084 # Note: m4 eats our [], so we need to use [ and ] instead. 65085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65086 if test "x$has_forbidden_chars" != x; then 65087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65088 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65089 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65090 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65091 # Going to short mode and back again did indeed matter. Since short mode is 65092 # case insensitive, let's make it lowercase to improve readability. 65093 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65094 # Now convert it back to Unix-style (cygpath) 65095 input_path=`$CYGPATH -u "$shortmode_path"` 65096 new_path="$input_path" 65097 fi 65098 fi 65099 65100 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65101 if test "x$test_cygdrive_prefix" = x; then 65102 # As a simple fix, exclude /usr/bin since it's not a real path. 65103 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65104 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65105 # a path prefixed by /cygdrive for fixpath to work. 65106 new_path="$CYGWIN_ROOT_PATH$input_path" 65107 fi 65108 fi 65109 65110 65111 if test "x$path" != "x$new_path"; then 65112 FREETYPE_LIB_PATH="$new_path" 65113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 65114 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 65115 fi 65116 65117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65118 65119 path="$FREETYPE_LIB_PATH" 65120 has_colon=`$ECHO $path | $GREP ^.:` 65121 new_path="$path" 65122 if test "x$has_colon" = x; then 65123 # Not in mixed or Windows style, start by that. 65124 new_path=`cmd //c echo $path` 65125 fi 65126 65127 65128 input_path="$new_path" 65129 # Check if we need to convert this using DOS-style short mode. If the path 65130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65131 # take no chances and rewrite it. 65132 # Note: m4 eats our [], so we need to use [ and ] instead. 65133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65134 if test "x$has_forbidden_chars" != x; then 65135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65136 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65137 fi 65138 65139 65140 windows_path="$new_path" 65141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65142 unix_path=`$CYGPATH -u "$windows_path"` 65143 new_path="$unix_path" 65144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65146 new_path="$unix_path" 65147 fi 65148 65149 if test "x$path" != "x$new_path"; then 65150 FREETYPE_LIB_PATH="$new_path" 65151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 65152 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 65153 fi 65154 65155 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65156 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65157 65158 else 65159 # We're on a unix platform. Hooray! :) 65160 path="$FREETYPE_LIB_PATH" 65161 has_space=`$ECHO "$path" | $GREP " "` 65162 if test "x$has_space" != x; then 65163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 65164 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 65165 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65166 fi 65167 65168 # Use eval to expand a potential ~ 65169 eval path="$path" 65170 if test ! -f "$path" && test ! -d "$path"; then 65171 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 65172 fi 65173 65174 if test -d "$path"; then 65175 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 65176 else 65177 dir="`$DIRNAME "$path"`" 65178 base="`$BASENAME "$path"`" 65179 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 65180 fi 65181 fi 65182 fi 65183 65184 if test "x$OPENJDK_TARGET_OS" = xwindows; then 65185 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 65186 else 65187 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 65188 fi 65189 fi 65190 65191 # Try to compile it 65192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 65193 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 65194 ac_ext=cpp 65195 ac_cpp='$CXXCPP $CPPFLAGS' 65196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 65199 65200 PREV_CXXCFLAGS="$CXXFLAGS" 65201 PREV_LIBS="$LIBS" 65202 PREV_CXX="$CXX" 65203 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 65204 LIBS="$LIBS $FREETYPE_LIBS" 65205 CXX="$FIXPATH $CXX" 65206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65207 /* end confdefs.h. */ 65208 65209 #include<ft2build.h> 65210 #include FT_FREETYPE_H 65211 int main () { 65212 FT_Init_FreeType(NULL); 65213 return 0; 65214 } 65215 65216 _ACEOF 65217 if ac_fn_cxx_try_link "$LINENO"; then : 65218 65219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65220 $as_echo "yes" >&6; } 65221 65222 else 65223 65224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65225 $as_echo "no" >&6; } 65226 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 65227 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 65228 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 65229 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 65230 65231 65232 # Print a helpful message on how to acquire the necessary build dependency. 65233 # freetype is the help tag: freetype, cups, alsa etc 65234 MISSING_DEPENDENCY=freetype 65235 65236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65237 cygwin_help $MISSING_DEPENDENCY 65238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65239 msys_help $MISSING_DEPENDENCY 65240 else 65241 PKGHANDLER_COMMAND= 65242 65243 case $PKGHANDLER in 65244 apt-get) 65245 apt_help $MISSING_DEPENDENCY ;; 65246 yum) 65247 yum_help $MISSING_DEPENDENCY ;; 65248 brew) 65249 brew_help $MISSING_DEPENDENCY ;; 65250 port) 65251 port_help $MISSING_DEPENDENCY ;; 65252 pkgutil) 65253 pkgutil_help $MISSING_DEPENDENCY ;; 65254 pkgadd) 65255 pkgadd_help $MISSING_DEPENDENCY ;; 65256 esac 65257 65258 if test "x$PKGHANDLER_COMMAND" != x; then 65259 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65260 fi 65261 fi 65262 65263 65264 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 65265 65266 65267 fi 65268 rm -f core conftest.err conftest.$ac_objext \ 65269 conftest$ac_exeext conftest.$ac_ext 65270 CXXCFLAGS="$PREV_CXXFLAGS" 65271 LIBS="$PREV_LIBS" 65272 CXX="$PREV_CXX" 65273 ac_ext=cpp 65274 ac_cpp='$CXXCPP $CPPFLAGS' 65275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 65278 65279 65280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 65281 $as_echo_n "checking if we should bundle freetype... " >&6; } 65282 if test "x$BUNDLE_FREETYPE" = xyes; then 65283 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 65284 fi 65285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 65286 $as_echo "$BUNDLE_FREETYPE" >&6; } 65287 65288 if test "x$BUNDLE_FREETYPE" = xyes; then 65289 FREETYPE_LICENSE="" 65290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype license" >&5 65291 $as_echo_n "checking for freetype license... " >&6; } 65292 if test "x$with_freetype_license" = "xyes"; then 65293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65294 $as_echo "no" >&6; } 65295 as_fn_error $? "--with-freetype-license must have a value" "$LINENO" 5 65296 elif test "x$with_freetype_license" != "x"; then 65297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_license" >&5 65298 $as_echo "$with_freetype_license" >&6; } 65299 FREETYPE_LICENSE="$with_freetype_license" 65300 65301 # Only process if variable expands to non-empty 65302 65303 if test "x$FREETYPE_LICENSE" != x; then 65304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65305 65306 # Input might be given as Windows format, start by converting to 65307 # unix format. 65308 path="$FREETYPE_LICENSE" 65309 new_path=`$CYGPATH -u "$path"` 65310 65311 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65312 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65313 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65314 # "foo.exe" is OK but "foo" is an error. 65315 # 65316 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65317 # It is also a way to make sure we got the proper file name for the real test later on. 65318 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65319 if test "x$test_shortpath" = x; then 65320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65321 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65322 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 65323 fi 65324 65325 # Call helper function which possibly converts this using DOS-style short mode. 65326 # If so, the updated path is stored in $new_path. 65327 65328 input_path="$new_path" 65329 # Check if we need to convert this using DOS-style short mode. If the path 65330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65331 # take no chances and rewrite it. 65332 # Note: m4 eats our [], so we need to use [ and ] instead. 65333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65334 if test "x$has_forbidden_chars" != x; then 65335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65336 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65337 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65338 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65339 # Going to short mode and back again did indeed matter. Since short mode is 65340 # case insensitive, let's make it lowercase to improve readability. 65341 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65342 # Now convert it back to Unix-style (cygpath) 65343 input_path=`$CYGPATH -u "$shortmode_path"` 65344 new_path="$input_path" 65345 fi 65346 fi 65347 65348 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65349 if test "x$test_cygdrive_prefix" = x; then 65350 # As a simple fix, exclude /usr/bin since it's not a real path. 65351 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65352 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65353 # a path prefixed by /cygdrive for fixpath to work. 65354 new_path="$CYGWIN_ROOT_PATH$input_path" 65355 fi 65356 fi 65357 65358 65359 if test "x$path" != "x$new_path"; then 65360 FREETYPE_LICENSE="$new_path" 65361 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65362 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65363 fi 65364 65365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65366 65367 path="$FREETYPE_LICENSE" 65368 has_colon=`$ECHO $path | $GREP ^.:` 65369 new_path="$path" 65370 if test "x$has_colon" = x; then 65371 # Not in mixed or Windows style, start by that. 65372 new_path=`cmd //c echo $path` 65373 fi 65374 65375 65376 input_path="$new_path" 65377 # Check if we need to convert this using DOS-style short mode. If the path 65378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65379 # take no chances and rewrite it. 65380 # Note: m4 eats our [], so we need to use [ and ] instead. 65381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65382 if test "x$has_forbidden_chars" != x; then 65383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65384 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65385 fi 65386 65387 65388 windows_path="$new_path" 65389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65390 unix_path=`$CYGPATH -u "$windows_path"` 65391 new_path="$unix_path" 65392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65393 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65394 new_path="$unix_path" 65395 fi 65396 65397 if test "x$path" != "x$new_path"; then 65398 FREETYPE_LICENSE="$new_path" 65399 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65400 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65401 fi 65402 65403 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65404 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65405 65406 else 65407 # We're on a unix platform. Hooray! :) 65408 path="$FREETYPE_LICENSE" 65409 has_space=`$ECHO "$path" | $GREP " "` 65410 if test "x$has_space" != x; then 65411 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65412 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65413 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65414 fi 65415 65416 # Use eval to expand a potential ~ 65417 eval path="$path" 65418 if test ! -f "$path" && test ! -d "$path"; then 65419 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 65420 fi 65421 65422 if test -d "$path"; then 65423 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 65424 else 65425 dir="`$DIRNAME "$path"`" 65426 base="`$BASENAME "$path"`" 65427 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 65428 fi 65429 fi 65430 fi 65431 65432 if test ! -f "$FREETYPE_LICENSE"; then 65433 as_fn_error $? "$FREETYPE_LICENSE cannot be found" "$LINENO" 5 65434 fi 65435 else 65436 if test "x$with_freetype" != "x" && test -f $with_freetype/freetype.md; then 65437 FREETYPE_LICENSE="$with_freetype/freetype.md" 65438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LICENSE" >&5 65439 $as_echo "$FREETYPE_LICENSE" >&6; } 65440 65441 # Only process if variable expands to non-empty 65442 65443 if test "x$FREETYPE_LICENSE" != x; then 65444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65445 65446 # Input might be given as Windows format, start by converting to 65447 # unix format. 65448 path="$FREETYPE_LICENSE" 65449 new_path=`$CYGPATH -u "$path"` 65450 65451 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65452 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65453 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65454 # "foo.exe" is OK but "foo" is an error. 65455 # 65456 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65457 # It is also a way to make sure we got the proper file name for the real test later on. 65458 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65459 if test "x$test_shortpath" = x; then 65460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65461 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65462 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 65463 fi 65464 65465 # Call helper function which possibly converts this using DOS-style short mode. 65466 # If so, the updated path is stored in $new_path. 65467 65468 input_path="$new_path" 65469 # Check if we need to convert this using DOS-style short mode. If the path 65470 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65471 # take no chances and rewrite it. 65472 # Note: m4 eats our [], so we need to use [ and ] instead. 65473 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65474 if test "x$has_forbidden_chars" != x; then 65475 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65476 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65477 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65478 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65479 # Going to short mode and back again did indeed matter. Since short mode is 65480 # case insensitive, let's make it lowercase to improve readability. 65481 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65482 # Now convert it back to Unix-style (cygpath) 65483 input_path=`$CYGPATH -u "$shortmode_path"` 65484 new_path="$input_path" 65485 fi 65486 fi 65487 65488 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65489 if test "x$test_cygdrive_prefix" = x; then 65490 # As a simple fix, exclude /usr/bin since it's not a real path. 65491 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65492 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65493 # a path prefixed by /cygdrive for fixpath to work. 65494 new_path="$CYGWIN_ROOT_PATH$input_path" 65495 fi 65496 fi 65497 65498 65499 if test "x$path" != "x$new_path"; then 65500 FREETYPE_LICENSE="$new_path" 65501 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65502 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65503 fi 65504 65505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65506 65507 path="$FREETYPE_LICENSE" 65508 has_colon=`$ECHO $path | $GREP ^.:` 65509 new_path="$path" 65510 if test "x$has_colon" = x; then 65511 # Not in mixed or Windows style, start by that. 65512 new_path=`cmd //c echo $path` 65513 fi 65514 65515 65516 input_path="$new_path" 65517 # Check if we need to convert this using DOS-style short mode. If the path 65518 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65519 # take no chances and rewrite it. 65520 # Note: m4 eats our [], so we need to use [ and ] instead. 65521 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65522 if test "x$has_forbidden_chars" != x; then 65523 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65524 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65525 fi 65526 65527 65528 windows_path="$new_path" 65529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65530 unix_path=`$CYGPATH -u "$windows_path"` 65531 new_path="$unix_path" 65532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65534 new_path="$unix_path" 65535 fi 65536 65537 if test "x$path" != "x$new_path"; then 65538 FREETYPE_LICENSE="$new_path" 65539 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65540 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65541 fi 65542 65543 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65544 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65545 65546 else 65547 # We're on a unix platform. Hooray! :) 65548 path="$FREETYPE_LICENSE" 65549 has_space=`$ECHO "$path" | $GREP " "` 65550 if test "x$has_space" != x; then 65551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65552 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65553 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65554 fi 65555 65556 # Use eval to expand a potential ~ 65557 eval path="$path" 65558 if test ! -f "$path" && test ! -d "$path"; then 65559 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 65560 fi 65561 65562 if test -d "$path"; then 65563 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 65564 else 65565 dir="`$DIRNAME "$path"`" 65566 base="`$BASENAME "$path"`" 65567 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 65568 fi 65569 fi 65570 fi 65571 65572 else 65573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65574 $as_echo "no" >&6; } 65575 fi 65576 fi 65577 fi 65578 65579 fi # end freetype needed 65580 65581 65582 65583 65584 65585 65586 65587 65588 # Check whether --with-alsa was given. 65589 if test "${with_alsa+set}" = set; then : 65590 withval=$with_alsa; 65591 fi 65592 65593 65594 # Check whether --with-alsa-include was given. 65595 if test "${with_alsa_include+set}" = set; then : 65596 withval=$with_alsa_include; 65597 fi 65598 65599 65600 # Check whether --with-alsa-lib was given. 65601 if test "${with_alsa_lib+set}" = set; then : 65602 withval=$with_alsa_lib; 65603 fi 65604 65605 65606 if test "x$NEEDS_LIB_ALSA" = xfalse; then 65607 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 65608 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 65609 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 65610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 65611 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 65612 fi 65613 ALSA_CFLAGS= 65614 ALSA_LIBS= 65615 else 65616 ALSA_FOUND=no 65617 65618 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 65619 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 65620 fi 65621 65622 if test "x${with_alsa}" != x; then 65623 ALSA_LIBS="-L${with_alsa}/lib -lasound" 65624 ALSA_CFLAGS="-I${with_alsa}/include" 65625 ALSA_FOUND=yes 65626 fi 65627 if test "x${with_alsa_include}" != x; then 65628 ALSA_CFLAGS="-I${with_alsa_include}" 65629 ALSA_FOUND=yes 65630 fi 65631 if test "x${with_alsa_lib}" != x; then 65632 ALSA_LIBS="-L${with_alsa_lib} -lasound" 65633 ALSA_FOUND=yes 65634 fi 65635 # Do not try pkg-config if we have a sysroot set. 65636 if test "x$SYSROOT" = x; then 65637 if test "x$ALSA_FOUND" = xno; then 65638 65639 pkg_failed=no 65640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 65641 $as_echo_n "checking for ALSA... " >&6; } 65642 65643 if test -n "$ALSA_CFLAGS"; then 65644 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 65645 elif test -n "$PKG_CONFIG"; then 65646 if test -n "$PKG_CONFIG" && \ 65647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 65648 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 65649 ac_status=$? 65650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65651 test $ac_status = 0; }; then 65652 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 65653 else 65654 pkg_failed=yes 65655 fi 65656 else 65657 pkg_failed=untried 65658 fi 65659 if test -n "$ALSA_LIBS"; then 65660 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 65661 elif test -n "$PKG_CONFIG"; then 65662 if test -n "$PKG_CONFIG" && \ 65663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 65664 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 65665 ac_status=$? 65666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65667 test $ac_status = 0; }; then 65668 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 65669 else 65670 pkg_failed=yes 65671 fi 65672 else 65673 pkg_failed=untried 65674 fi 65675 65676 65677 65678 if test $pkg_failed = yes; then 65679 65680 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65681 _pkg_short_errors_supported=yes 65682 else 65683 _pkg_short_errors_supported=no 65684 fi 65685 if test $_pkg_short_errors_supported = yes; then 65686 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 65687 else 65688 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 65689 fi 65690 # Put the nasty error message in config.log where it belongs 65691 echo "$ALSA_PKG_ERRORS" >&5 65692 65693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65694 $as_echo "no" >&6; } 65695 ALSA_FOUND=no 65696 elif test $pkg_failed = untried; then 65697 ALSA_FOUND=no 65698 else 65699 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 65700 ALSA_LIBS=$pkg_cv_ALSA_LIBS 65701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65702 $as_echo "yes" >&6; } 65703 ALSA_FOUND=yes 65704 fi 65705 fi 65706 fi 65707 if test "x$ALSA_FOUND" = xno; then 65708 for ac_header in alsa/asoundlib.h 65709 do : 65710 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 65711 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 65712 cat >>confdefs.h <<_ACEOF 65713 #define HAVE_ALSA_ASOUNDLIB_H 1 65714 _ACEOF 65715 65716 ALSA_FOUND=yes 65717 ALSA_CFLAGS=-Iignoreme 65718 ALSA_LIBS=-lasound 65719 DEFAULT_ALSA=yes 65720 65721 else 65722 ALSA_FOUND=no 65723 65724 fi 65725 65726 done 65727 65728 fi 65729 if test "x$ALSA_FOUND" = xno; then 65730 65731 # Print a helpful message on how to acquire the necessary build dependency. 65732 # alsa is the help tag: freetype, cups, alsa etc 65733 MISSING_DEPENDENCY=alsa 65734 65735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65736 cygwin_help $MISSING_DEPENDENCY 65737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65738 msys_help $MISSING_DEPENDENCY 65739 else 65740 PKGHANDLER_COMMAND= 65741 65742 case $PKGHANDLER in 65743 apt-get) 65744 apt_help $MISSING_DEPENDENCY ;; 65745 yum) 65746 yum_help $MISSING_DEPENDENCY ;; 65747 brew) 65748 brew_help $MISSING_DEPENDENCY ;; 65749 port) 65750 port_help $MISSING_DEPENDENCY ;; 65751 pkgutil) 65752 pkgutil_help $MISSING_DEPENDENCY ;; 65753 pkgadd) 65754 pkgadd_help $MISSING_DEPENDENCY ;; 65755 esac 65756 65757 if test "x$PKGHANDLER_COMMAND" != x; then 65758 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65759 fi 65760 fi 65761 65762 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 65763 fi 65764 fi 65765 65766 65767 65768 65769 65770 65771 # Check whether --with-libffi was given. 65772 if test "${with_libffi+set}" = set; then : 65773 withval=$with_libffi; 65774 fi 65775 65776 65777 # Check whether --with-libffi-include was given. 65778 if test "${with_libffi_include+set}" = set; then : 65779 withval=$with_libffi_include; 65780 fi 65781 65782 65783 # Check whether --with-libffi-lib was given. 65784 if test "${with_libffi_lib+set}" = set; then : 65785 withval=$with_libffi_lib; 65786 fi 65787 65788 # Check whether --enable-libffi-bundling was given. 65789 if test "${enable_libffi_bundling+set}" = set; then : 65790 enableval=$enable_libffi_bundling; 65791 fi 65792 65793 65794 if test "x$NEEDS_LIB_FFI" = xfalse; then 65795 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 65796 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 65797 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 65798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 65799 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 65800 fi 65801 LIBFFI_CFLAGS= 65802 LIBFFI_LIBS= 65803 else 65804 LIBFFI_FOUND=no 65805 65806 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 65807 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 65808 fi 65809 65810 if test "x${with_libffi}" != x; then 65811 LIBFFI_LIB_PATH="${with_libffi}/lib" 65812 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 65813 LIBFFI_CFLAGS="-I${with_libffi}/include" 65814 LIBFFI_FOUND=yes 65815 fi 65816 if test "x${with_libffi_include}" != x; then 65817 LIBFFI_CFLAGS="-I${with_libffi_include}" 65818 LIBFFI_FOUND=yes 65819 fi 65820 if test "x${with_libffi_lib}" != x; then 65821 LIBFFI_LIB_PATH="${with_libffi_lib}" 65822 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 65823 LIBFFI_FOUND=yes 65824 fi 65825 # Do not try pkg-config if we have a sysroot set. 65826 if test "x$SYSROOT" = x; then 65827 if test "x$LIBFFI_FOUND" = xno; then 65828 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 65829 65830 pkg_failed=no 65831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 65832 $as_echo_n "checking for LIBFFI... " >&6; } 65833 65834 if test -n "$LIBFFI_CFLAGS"; then 65835 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 65836 elif test -n "$PKG_CONFIG"; then 65837 if test -n "$PKG_CONFIG" && \ 65838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 65839 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 65840 ac_status=$? 65841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65842 test $ac_status = 0; }; then 65843 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 65844 else 65845 pkg_failed=yes 65846 fi 65847 else 65848 pkg_failed=untried 65849 fi 65850 if test -n "$LIBFFI_LIBS"; then 65851 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 65852 elif test -n "$PKG_CONFIG"; then 65853 if test -n "$PKG_CONFIG" && \ 65854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 65855 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 65856 ac_status=$? 65857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65858 test $ac_status = 0; }; then 65859 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 65860 else 65861 pkg_failed=yes 65862 fi 65863 else 65864 pkg_failed=untried 65865 fi 65866 65867 65868 65869 if test $pkg_failed = yes; then 65870 65871 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65872 _pkg_short_errors_supported=yes 65873 else 65874 _pkg_short_errors_supported=no 65875 fi 65876 if test $_pkg_short_errors_supported = yes; then 65877 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 65878 else 65879 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 65880 fi 65881 # Put the nasty error message in config.log where it belongs 65882 echo "$LIBFFI_PKG_ERRORS" >&5 65883 65884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65885 $as_echo "no" >&6; } 65886 LIBFFI_FOUND=no 65887 elif test $pkg_failed = untried; then 65888 LIBFFI_FOUND=no 65889 else 65890 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 65891 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 65892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65893 $as_echo "yes" >&6; } 65894 LIBFFI_FOUND=yes 65895 fi 65896 fi 65897 fi 65898 if test "x$LIBFFI_FOUND" = xno; then 65899 for ac_header in ffi.h 65900 do : 65901 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 65902 if test "x$ac_cv_header_ffi_h" = xyes; then : 65903 cat >>confdefs.h <<_ACEOF 65904 #define HAVE_FFI_H 1 65905 _ACEOF 65906 65907 LIBFFI_FOUND=yes 65908 LIBFFI_CFLAGS= 65909 LIBFFI_LIBS=-lffi 65910 65911 else 65912 LIBFFI_FOUND=no 65913 65914 fi 65915 65916 done 65917 65918 fi 65919 if test "x$LIBFFI_FOUND" = xno; then 65920 65921 # Print a helpful message on how to acquire the necessary build dependency. 65922 # ffi is the help tag: freetype, cups, alsa etc 65923 MISSING_DEPENDENCY=ffi 65924 65925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65926 cygwin_help $MISSING_DEPENDENCY 65927 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65928 msys_help $MISSING_DEPENDENCY 65929 else 65930 PKGHANDLER_COMMAND= 65931 65932 case $PKGHANDLER in 65933 apt-get) 65934 apt_help $MISSING_DEPENDENCY ;; 65935 yum) 65936 yum_help $MISSING_DEPENDENCY ;; 65937 brew) 65938 brew_help $MISSING_DEPENDENCY ;; 65939 port) 65940 port_help $MISSING_DEPENDENCY ;; 65941 pkgutil) 65942 pkgutil_help $MISSING_DEPENDENCY ;; 65943 pkgadd) 65944 pkgadd_help $MISSING_DEPENDENCY ;; 65945 esac 65946 65947 if test "x$PKGHANDLER_COMMAND" != x; then 65948 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65949 fi 65950 fi 65951 65952 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 65953 fi 65954 65955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 65956 $as_echo_n "checking if libffi works... " >&6; } 65957 ac_ext=c 65958 ac_cpp='$CPP $CPPFLAGS' 65959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65961 ac_compiler_gnu=$ac_cv_c_compiler_gnu 65962 65963 OLD_CFLAGS="$CFLAGS" 65964 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 65965 OLD_LIBS="$LIBS" 65966 LIBS="$LIBS $LIBFFI_LIBS" 65967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65968 /* end confdefs.h. */ 65969 #include <ffi.h> 65970 int 65971 main () 65972 { 65973 65974 ffi_call(NULL, NULL, NULL, NULL); 65975 return 0; 65976 65977 ; 65978 return 0; 65979 } 65980 _ACEOF 65981 if ac_fn_c_try_link "$LINENO"; then : 65982 LIBFFI_WORKS=yes 65983 else 65984 LIBFFI_WORKS=no 65985 65986 fi 65987 rm -f core conftest.err conftest.$ac_objext \ 65988 conftest$ac_exeext conftest.$ac_ext 65989 CFLAGS="$OLD_CFLAGS" 65990 LIBS="$OLD_LIBS" 65991 ac_ext=cpp 65992 ac_cpp='$CXXCPP $CPPFLAGS' 65993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 65996 65997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 65998 $as_echo "$LIBFFI_WORKS" >&6; } 65999 66000 if test "x$LIBFFI_WORKS" = xno; then 66001 66002 # Print a helpful message on how to acquire the necessary build dependency. 66003 # ffi is the help tag: freetype, cups, alsa etc 66004 MISSING_DEPENDENCY=ffi 66005 66006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66007 cygwin_help $MISSING_DEPENDENCY 66008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66009 msys_help $MISSING_DEPENDENCY 66010 else 66011 PKGHANDLER_COMMAND= 66012 66013 case $PKGHANDLER in 66014 apt-get) 66015 apt_help $MISSING_DEPENDENCY ;; 66016 yum) 66017 yum_help $MISSING_DEPENDENCY ;; 66018 brew) 66019 brew_help $MISSING_DEPENDENCY ;; 66020 port) 66021 port_help $MISSING_DEPENDENCY ;; 66022 pkgutil) 66023 pkgutil_help $MISSING_DEPENDENCY ;; 66024 pkgadd) 66025 pkgadd_help $MISSING_DEPENDENCY ;; 66026 esac 66027 66028 if test "x$PKGHANDLER_COMMAND" != x; then 66029 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 66030 fi 66031 fi 66032 66033 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 66034 fi 66035 66036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 66037 $as_echo_n "checking if libffi should be bundled... " >&6; } 66038 if test "x$enable_libffi_bundling" = "x"; then 66039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66040 $as_echo "no" >&6; } 66041 ENABLE_LIBFFI_BUNDLING=false 66042 elif test "x$enable_libffi_bundling" = "xno"; then 66043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 66044 $as_echo "no, forced" >&6; } 66045 ENABLE_LIBFFI_BUNDLING=false 66046 elif test "x$enable_libffi_bundling" = "xyes"; then 66047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 66048 $as_echo "yes, forced" >&6; } 66049 ENABLE_LIBFFI_BUNDLING=true 66050 else 66051 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 66052 fi 66053 66054 # Find the libffi.so.X to bundle 66055 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 66056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 66057 $as_echo_n "checking for libffi lib file location... " >&6; } 66058 if test "x${LIBFFI_LIB_PATH}" != x; then 66059 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 66060 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 66061 else 66062 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 66063 fi 66064 else 66065 # If we don't have an explicit path, look in a few obvious places 66066 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 66067 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 66068 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 66069 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 66070 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 66071 else 66072 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66073 fi 66074 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 66075 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 66076 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 66077 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 66078 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 66079 else 66080 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66081 fi 66082 else 66083 # Fallback on the default /usr/lib dir 66084 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 66085 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 66086 else 66087 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66088 fi 66089 fi 66090 fi 66091 # Make sure the wildcard is evaluated 66092 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 66093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 66094 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 66095 fi 66096 fi 66097 66098 66099 66100 66101 66102 66103 66104 66105 # Check whether --with-libjpeg was given. 66106 if test "${with_libjpeg+set}" = set; then : 66107 withval=$with_libjpeg; 66108 fi 66109 66110 66111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 66112 $as_echo_n "checking for which libjpeg to use... " >&6; } 66113 # default is bundled 66114 DEFAULT_LIBJPEG=bundled 66115 # if user didn't specify, use DEFAULT_LIBJPEG 66116 if test "x${with_libjpeg}" = "x"; then 66117 with_libjpeg=${DEFAULT_LIBJPEG} 66118 fi 66119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 66120 $as_echo "${with_libjpeg}" >&6; } 66121 66122 if test "x${with_libjpeg}" = "xbundled"; then 66123 USE_EXTERNAL_LIBJPEG=false 66124 elif test "x${with_libjpeg}" = "xsystem"; then 66125 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 66126 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 66127 66128 else 66129 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 66130 fi 66131 66132 66133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 66134 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 66135 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 66136 $as_echo_n "(cached) " >&6 66137 else 66138 ac_check_lib_save_LIBS=$LIBS 66139 LIBS="-ljpeg $LIBS" 66140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66141 /* end confdefs.h. */ 66142 66143 /* Override any GCC internal prototype to avoid an error. 66144 Use char because int might match the return type of a GCC 66145 builtin and then its argument prototype would still apply. */ 66146 #ifdef __cplusplus 66147 extern "C" 66148 #endif 66149 char jpeg_CreateDecompress (); 66150 int 66151 main () 66152 { 66153 return jpeg_CreateDecompress (); 66154 ; 66155 return 0; 66156 } 66157 _ACEOF 66158 if ac_fn_cxx_try_link "$LINENO"; then : 66159 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 66160 else 66161 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 66162 fi 66163 rm -f core conftest.err conftest.$ac_objext \ 66164 conftest$ac_exeext conftest.$ac_ext 66165 LIBS=$ac_check_lib_save_LIBS 66166 fi 66167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 66168 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 66169 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 66170 cat >>confdefs.h <<_ACEOF 66171 #define HAVE_LIBJPEG 1 66172 _ACEOF 66173 66174 LIBS="-ljpeg $LIBS" 66175 66176 else 66177 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 66178 fi 66179 66180 66181 USE_EXTERNAL_LIBJPEG=true 66182 else 66183 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 66184 fi 66185 66186 66187 66188 66189 66190 # Check whether --with-giflib was given. 66191 if test "${with_giflib+set}" = set; then : 66192 withval=$with_giflib; 66193 fi 66194 66195 66196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 66197 $as_echo_n "checking for which giflib to use... " >&6; } 66198 # default is bundled 66199 DEFAULT_GIFLIB=bundled 66200 # if user didn't specify, use DEFAULT_GIFLIB 66201 if test "x${with_giflib}" = "x"; then 66202 with_giflib=${DEFAULT_GIFLIB} 66203 fi 66204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 66205 $as_echo "${with_giflib}" >&6; } 66206 66207 if test "x${with_giflib}" = "xbundled"; then 66208 USE_EXTERNAL_LIBGIF=false 66209 elif test "x${with_giflib}" = "xsystem"; then 66210 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 66211 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 66212 66213 else 66214 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 66215 fi 66216 66217 66218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 66219 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 66220 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 66221 $as_echo_n "(cached) " >&6 66222 else 66223 ac_check_lib_save_LIBS=$LIBS 66224 LIBS="-lgif $LIBS" 66225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66226 /* end confdefs.h. */ 66227 66228 /* Override any GCC internal prototype to avoid an error. 66229 Use char because int might match the return type of a GCC 66230 builtin and then its argument prototype would still apply. */ 66231 #ifdef __cplusplus 66232 extern "C" 66233 #endif 66234 char DGifGetCode (); 66235 int 66236 main () 66237 { 66238 return DGifGetCode (); 66239 ; 66240 return 0; 66241 } 66242 _ACEOF 66243 if ac_fn_cxx_try_link "$LINENO"; then : 66244 ac_cv_lib_gif_DGifGetCode=yes 66245 else 66246 ac_cv_lib_gif_DGifGetCode=no 66247 fi 66248 rm -f core conftest.err conftest.$ac_objext \ 66249 conftest$ac_exeext conftest.$ac_ext 66250 LIBS=$ac_check_lib_save_LIBS 66251 fi 66252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 66253 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 66254 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 66255 cat >>confdefs.h <<_ACEOF 66256 #define HAVE_LIBGIF 1 66257 _ACEOF 66258 66259 LIBS="-lgif $LIBS" 66260 66261 else 66262 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 66263 fi 66264 66265 66266 USE_EXTERNAL_LIBGIF=true 66267 else 66268 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 66269 fi 66270 66271 66272 66273 66274 66275 # Check whether --with-libpng was given. 66276 if test "${with_libpng+set}" = set; then : 66277 withval=$with_libpng; 66278 fi 66279 66280 66281 66282 pkg_failed=no 66283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 66284 $as_echo_n "checking for PNG... " >&6; } 66285 66286 if test -n "$PNG_CFLAGS"; then 66287 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 66288 elif test -n "$PKG_CONFIG"; then 66289 if test -n "$PKG_CONFIG" && \ 66290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 66291 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 66292 ac_status=$? 66293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66294 test $ac_status = 0; }; then 66295 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 66296 else 66297 pkg_failed=yes 66298 fi 66299 else 66300 pkg_failed=untried 66301 fi 66302 if test -n "$PNG_LIBS"; then 66303 pkg_cv_PNG_LIBS="$PNG_LIBS" 66304 elif test -n "$PKG_CONFIG"; then 66305 if test -n "$PKG_CONFIG" && \ 66306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 66307 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 66308 ac_status=$? 66309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66310 test $ac_status = 0; }; then 66311 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 66312 else 66313 pkg_failed=yes 66314 fi 66315 else 66316 pkg_failed=untried 66317 fi 66318 66319 66320 66321 if test $pkg_failed = yes; then 66322 66323 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 66324 _pkg_short_errors_supported=yes 66325 else 66326 _pkg_short_errors_supported=no 66327 fi 66328 if test $_pkg_short_errors_supported = yes; then 66329 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 66330 else 66331 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 66332 fi 66333 # Put the nasty error message in config.log where it belongs 66334 echo "$PNG_PKG_ERRORS" >&5 66335 66336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66337 $as_echo "no" >&6; } 66338 LIBPNG_FOUND=no 66339 elif test $pkg_failed = untried; then 66340 LIBPNG_FOUND=no 66341 else 66342 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 66343 PNG_LIBS=$pkg_cv_PNG_LIBS 66344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66345 $as_echo "yes" >&6; } 66346 LIBPNG_FOUND=yes 66347 fi 66348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 66349 $as_echo_n "checking for which libpng to use... " >&6; } 66350 66351 # default is bundled 66352 DEFAULT_LIBPNG=bundled 66353 # if user didn't specify, use DEFAULT_LIBPNG 66354 if test "x${with_libpng}" = "x"; then 66355 with_libpng=${DEFAULT_LIBPNG} 66356 fi 66357 66358 if test "x${with_libpng}" = "xbundled"; then 66359 USE_EXTERNAL_LIBPNG=false 66360 PNG_CFLAGS="" 66361 PNG_LIBS="" 66362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66363 $as_echo "bundled" >&6; } 66364 elif test "x${with_libpng}" = "xsystem"; then 66365 if test "x${LIBPNG_FOUND}" = "xyes"; then 66366 # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS 66367 USE_EXTERNAL_LIBPNG=true 66368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66369 $as_echo "system" >&6; } 66370 else 66371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 66372 $as_echo "system not found" >&6; } 66373 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 66374 fi 66375 else 66376 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 66377 fi 66378 66379 66380 66381 66382 66383 66384 66385 # Check whether --with-zlib was given. 66386 if test "${with_zlib+set}" = set; then : 66387 withval=$with_zlib; 66388 fi 66389 66390 66391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 66392 $as_echo_n "checking for compress in -lz... " >&6; } 66393 if ${ac_cv_lib_z_compress+:} false; then : 66394 $as_echo_n "(cached) " >&6 66395 else 66396 ac_check_lib_save_LIBS=$LIBS 66397 LIBS="-lz $LIBS" 66398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66399 /* end confdefs.h. */ 66400 66401 /* Override any GCC internal prototype to avoid an error. 66402 Use char because int might match the return type of a GCC 66403 builtin and then its argument prototype would still apply. */ 66404 #ifdef __cplusplus 66405 extern "C" 66406 #endif 66407 char compress (); 66408 int 66409 main () 66410 { 66411 return compress (); 66412 ; 66413 return 0; 66414 } 66415 _ACEOF 66416 if ac_fn_cxx_try_link "$LINENO"; then : 66417 ac_cv_lib_z_compress=yes 66418 else 66419 ac_cv_lib_z_compress=no 66420 fi 66421 rm -f core conftest.err conftest.$ac_objext \ 66422 conftest$ac_exeext conftest.$ac_ext 66423 LIBS=$ac_check_lib_save_LIBS 66424 fi 66425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 66426 $as_echo "$ac_cv_lib_z_compress" >&6; } 66427 if test "x$ac_cv_lib_z_compress" = xyes; then : 66428 ZLIB_FOUND=yes 66429 else 66430 ZLIB_FOUND=no 66431 fi 66432 66433 66434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 66435 $as_echo_n "checking for which zlib to use... " >&6; } 66436 66437 DEFAULT_ZLIB=system 66438 if test "x$OPENJDK_TARGET_OS" = xwindows; then 66439 # On windows default is bundled...on others default is system 66440 DEFAULT_ZLIB=bundled 66441 fi 66442 66443 if test "x${ZLIB_FOUND}" != "xyes"; then 66444 # If we don't find any system...set default to bundled 66445 DEFAULT_ZLIB=bundled 66446 fi 66447 66448 # If user didn't specify, use DEFAULT_ZLIB 66449 if test "x${with_zlib}" = "x"; then 66450 with_zlib=${DEFAULT_ZLIB} 66451 fi 66452 66453 if test "x${with_zlib}" = "xbundled"; then 66454 USE_EXTERNAL_LIBZ=false 66455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66456 $as_echo "bundled" >&6; } 66457 elif test "x${with_zlib}" = "xsystem"; then 66458 if test "x${ZLIB_FOUND}" = "xyes"; then 66459 USE_EXTERNAL_LIBZ=true 66460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66461 $as_echo "system" >&6; } 66462 66463 if test "x$USE_EXTERNAL_LIBPNG" != "xtrue"; then 66464 # If we use bundled libpng, we must verify that we have a proper zlib. 66465 # For instance zlib-ng has had issues with inflateValidate(). 66466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib functionality" >&5 66467 $as_echo_n "checking for system zlib functionality... " >&6; } 66468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66469 /* end confdefs.h. */ 66470 #include "zlib.h" 66471 int 66472 main () 66473 { 66474 66475 #if ZLIB_VERNUM >= 0x1281 66476 inflateValidate(NULL, 0); 66477 #endif 66478 66479 ; 66480 return 0; 66481 } 66482 _ACEOF 66483 if ac_fn_cxx_try_compile "$LINENO"; then : 66484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 66485 $as_echo "ok" >&6; } 66486 else 66487 66488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not ok" >&5 66489 $as_echo "not ok" >&6; } 66490 as_fn_error $? "System zlib not working correctly" "$LINENO" 5 66491 66492 66493 fi 66494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66495 fi 66496 else 66497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 66498 $as_echo "system not found" >&6; } 66499 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 66500 fi 66501 else 66502 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 66503 fi 66504 66505 66506 66507 66508 66509 # Check whether --with-lcms was given. 66510 if test "${with_lcms+set}" = set; then : 66511 withval=$with_lcms; 66512 fi 66513 66514 66515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 66516 $as_echo_n "checking for which lcms to use... " >&6; } 66517 66518 DEFAULT_LCMS=bundled 66519 # If user didn't specify, use DEFAULT_LCMS 66520 if test "x${with_lcms}" = "x"; then 66521 with_lcms=${DEFAULT_LCMS} 66522 fi 66523 66524 if test "x${with_lcms}" = "xbundled"; then 66525 USE_EXTERNAL_LCMS=false 66526 LCMS_CFLAGS="" 66527 LCMS_LIBS="" 66528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66529 $as_echo "bundled" >&6; } 66530 elif test "x${with_lcms}" = "xsystem"; then 66531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66532 $as_echo "system" >&6; } 66533 66534 pkg_failed=no 66535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 66536 $as_echo_n "checking for LCMS... " >&6; } 66537 66538 if test -n "$LCMS_CFLAGS"; then 66539 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 66540 elif test -n "$PKG_CONFIG"; then 66541 if test -n "$PKG_CONFIG" && \ 66542 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 66543 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 66544 ac_status=$? 66545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66546 test $ac_status = 0; }; then 66547 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 66548 else 66549 pkg_failed=yes 66550 fi 66551 else 66552 pkg_failed=untried 66553 fi 66554 if test -n "$LCMS_LIBS"; then 66555 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 66556 elif test -n "$PKG_CONFIG"; then 66557 if test -n "$PKG_CONFIG" && \ 66558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 66559 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 66560 ac_status=$? 66561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66562 test $ac_status = 0; }; then 66563 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 66564 else 66565 pkg_failed=yes 66566 fi 66567 else 66568 pkg_failed=untried 66569 fi 66570 66571 66572 66573 if test $pkg_failed = yes; then 66574 66575 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 66576 _pkg_short_errors_supported=yes 66577 else 66578 _pkg_short_errors_supported=no 66579 fi 66580 if test $_pkg_short_errors_supported = yes; then 66581 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 66582 else 66583 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 66584 fi 66585 # Put the nasty error message in config.log where it belongs 66586 echo "$LCMS_PKG_ERRORS" >&5 66587 66588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66589 $as_echo "no" >&6; } 66590 LCMS_FOUND=no 66591 elif test $pkg_failed = untried; then 66592 LCMS_FOUND=no 66593 else 66594 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 66595 LCMS_LIBS=$pkg_cv_LCMS_LIBS 66596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66597 $as_echo "yes" >&6; } 66598 LCMS_FOUND=yes 66599 fi 66600 if test "x${LCMS_FOUND}" = "xyes"; then 66601 # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS 66602 USE_EXTERNAL_LCMS=true 66603 else 66604 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 66605 fi 66606 else 66607 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 66608 fi 66609 66610 66611 66612 66613 66614 66615 66616 66617 66618 66619 66620 66621 66622 # Setup libm (the maths library) 66623 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 66624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 66625 $as_echo_n "checking for cos in -lm... " >&6; } 66626 if ${ac_cv_lib_m_cos+:} false; then : 66627 $as_echo_n "(cached) " >&6 66628 else 66629 ac_check_lib_save_LIBS=$LIBS 66630 LIBS="-lm $LIBS" 66631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66632 /* end confdefs.h. */ 66633 66634 /* Override any GCC internal prototype to avoid an error. 66635 Use char because int might match the return type of a GCC 66636 builtin and then its argument prototype would still apply. */ 66637 #ifdef __cplusplus 66638 extern "C" 66639 #endif 66640 char cos (); 66641 int 66642 main () 66643 { 66644 return cos (); 66645 ; 66646 return 0; 66647 } 66648 _ACEOF 66649 if ac_fn_cxx_try_link "$LINENO"; then : 66650 ac_cv_lib_m_cos=yes 66651 else 66652 ac_cv_lib_m_cos=no 66653 fi 66654 rm -f core conftest.err conftest.$ac_objext \ 66655 conftest$ac_exeext conftest.$ac_ext 66656 LIBS=$ac_check_lib_save_LIBS 66657 fi 66658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 66659 $as_echo "$ac_cv_lib_m_cos" >&6; } 66660 if test "x$ac_cv_lib_m_cos" = xyes; then : 66661 cat >>confdefs.h <<_ACEOF 66662 #define HAVE_LIBM 1 66663 _ACEOF 66664 66665 LIBS="-lm $LIBS" 66666 66667 else 66668 66669 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 66670 $as_echo "$as_me: Maths library was not found" >&6;} 66671 66672 fi 66673 66674 LIBM="-lm" 66675 else 66676 LIBM="" 66677 fi 66678 66679 66680 # Setup libdl (for dynamic library loading) 66681 save_LIBS="$LIBS" 66682 LIBS="" 66683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 66684 $as_echo_n "checking for dlopen in -ldl... " >&6; } 66685 if ${ac_cv_lib_dl_dlopen+:} false; then : 66686 $as_echo_n "(cached) " >&6 66687 else 66688 ac_check_lib_save_LIBS=$LIBS 66689 LIBS="-ldl $LIBS" 66690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66691 /* end confdefs.h. */ 66692 66693 /* Override any GCC internal prototype to avoid an error. 66694 Use char because int might match the return type of a GCC 66695 builtin and then its argument prototype would still apply. */ 66696 #ifdef __cplusplus 66697 extern "C" 66698 #endif 66699 char dlopen (); 66700 int 66701 main () 66702 { 66703 return dlopen (); 66704 ; 66705 return 0; 66706 } 66707 _ACEOF 66708 if ac_fn_cxx_try_link "$LINENO"; then : 66709 ac_cv_lib_dl_dlopen=yes 66710 else 66711 ac_cv_lib_dl_dlopen=no 66712 fi 66713 rm -f core conftest.err conftest.$ac_objext \ 66714 conftest$ac_exeext conftest.$ac_ext 66715 LIBS=$ac_check_lib_save_LIBS 66716 fi 66717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 66718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 66719 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 66720 cat >>confdefs.h <<_ACEOF 66721 #define HAVE_LIBDL 1 66722 _ACEOF 66723 66724 LIBS="-ldl $LIBS" 66725 66726 fi 66727 66728 LIBDL="$LIBS" 66729 66730 LIBS="$save_LIBS" 66731 66732 # Deprecated libraries, keep the flags for backwards compatibility 66733 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 66734 66735 66736 # Check whether --with-dxsdk was given. 66737 if test "${with_dxsdk+set}" = set; then : 66738 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 66739 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 66740 fi 66741 66742 66743 66744 66745 # Check whether --with-dxsdk-lib was given. 66746 if test "${with_dxsdk_lib+set}" = set; then : 66747 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 66748 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 66749 fi 66750 66751 66752 66753 66754 # Check whether --with-dxsdk-include was given. 66755 if test "${with_dxsdk_include+set}" = set; then : 66756 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 66757 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 66758 fi 66759 66760 66761 fi 66762 66763 # Control if libzip can use mmap. Available for purposes of overriding. 66764 LIBZIP_CAN_USE_MMAP=true 66765 66766 66767 66768 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 66769 # Find the root of the Solaris Studio installation from the compiler path 66770 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 66771 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 66772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 66773 $as_echo_n "checking for libstlport.so.1... " >&6; } 66774 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 66775 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 66776 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 66777 fi 66778 if test -f "$STLPORT_LIB"; then 66779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 66780 $as_echo "yes, $STLPORT_LIB" >&6; } 66781 66782 # Only process if variable expands to non-empty 66783 66784 if test "x$STLPORT_LIB" != x; then 66785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66786 66787 # Input might be given as Windows format, start by converting to 66788 # unix format. 66789 path="$STLPORT_LIB" 66790 new_path=`$CYGPATH -u "$path"` 66791 66792 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 66793 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 66794 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 66795 # "foo.exe" is OK but "foo" is an error. 66796 # 66797 # This test is therefore slightly more accurate than "test -f" to check for file precense. 66798 # It is also a way to make sure we got the proper file name for the real test later on. 66799 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 66800 if test "x$test_shortpath" = x; then 66801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 66802 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 66803 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 66804 fi 66805 66806 # Call helper function which possibly converts this using DOS-style short mode. 66807 # If so, the updated path is stored in $new_path. 66808 66809 input_path="$new_path" 66810 # Check if we need to convert this using DOS-style short mode. If the path 66811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 66812 # take no chances and rewrite it. 66813 # Note: m4 eats our [], so we need to use [ and ] instead. 66814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 66815 if test "x$has_forbidden_chars" != x; then 66816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 66817 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 66818 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 66819 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 66820 # Going to short mode and back again did indeed matter. Since short mode is 66821 # case insensitive, let's make it lowercase to improve readability. 66822 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 66823 # Now convert it back to Unix-style (cygpath) 66824 input_path=`$CYGPATH -u "$shortmode_path"` 66825 new_path="$input_path" 66826 fi 66827 fi 66828 66829 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 66830 if test "x$test_cygdrive_prefix" = x; then 66831 # As a simple fix, exclude /usr/bin since it's not a real path. 66832 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 66833 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 66834 # a path prefixed by /cygdrive for fixpath to work. 66835 new_path="$CYGWIN_ROOT_PATH$input_path" 66836 fi 66837 fi 66838 66839 66840 if test "x$path" != "x$new_path"; then 66841 STLPORT_LIB="$new_path" 66842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 66843 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 66844 fi 66845 66846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66847 66848 path="$STLPORT_LIB" 66849 has_colon=`$ECHO $path | $GREP ^.:` 66850 new_path="$path" 66851 if test "x$has_colon" = x; then 66852 # Not in mixed or Windows style, start by that. 66853 new_path=`cmd //c echo $path` 66854 fi 66855 66856 66857 input_path="$new_path" 66858 # Check if we need to convert this using DOS-style short mode. If the path 66859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 66860 # take no chances and rewrite it. 66861 # Note: m4 eats our [], so we need to use [ and ] instead. 66862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 66863 if test "x$has_forbidden_chars" != x; then 66864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 66865 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 66866 fi 66867 66868 66869 windows_path="$new_path" 66870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66871 unix_path=`$CYGPATH -u "$windows_path"` 66872 new_path="$unix_path" 66873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 66875 new_path="$unix_path" 66876 fi 66877 66878 if test "x$path" != "x$new_path"; then 66879 STLPORT_LIB="$new_path" 66880 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 66881 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 66882 fi 66883 66884 # Save the first 10 bytes of this path to the storage, so fixpath can work. 66885 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 66886 66887 else 66888 # We're on a unix platform. Hooray! :) 66889 path="$STLPORT_LIB" 66890 has_space=`$ECHO "$path" | $GREP " "` 66891 if test "x$has_space" != x; then 66892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 66893 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 66894 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 66895 fi 66896 66897 # Use eval to expand a potential ~ 66898 eval path="$path" 66899 if test ! -f "$path" && test ! -d "$path"; then 66900 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 66901 fi 66902 66903 if test -d "$path"; then 66904 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 66905 else 66906 dir="`$DIRNAME "$path"`" 66907 base="`$BASENAME "$path"`" 66908 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 66909 fi 66910 fi 66911 fi 66912 66913 else 66914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 66915 $as_echo "no, not found at $STLPORT_LIB" >&6; } 66916 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 66917 fi 66918 66919 fi 66920 66921 66922 66923 66924 66925 66926 66927 66928 66929 66930 66931 66932 66933 66934 # Hotspot setup depends on lib checks. 66935 66936 66937 # The user can in some cases supply additional jvm features. For the custom 66938 # variant, this defines the entire variant. 66939 66940 # Check whether --with-jvm-features was given. 66941 if test "${with_jvm_features+set}" = set; then : 66942 withval=$with_jvm_features; 66943 fi 66944 66945 if test "x$with_jvm_features" != x; then 66946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 66947 $as_echo_n "checking additional JVM features... " >&6; } 66948 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 66949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 66950 $as_echo "$JVM_FEATURES" >&6; } 66951 fi 66952 66953 # Override hotspot cpu definitions for ARM platforms 66954 if test "x$OPENJDK_TARGET_CPU" = xarm; then 66955 HOTSPOT_TARGET_CPU=arm_32 66956 HOTSPOT_TARGET_CPU_DEFINE="ARM32" 66957 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 66958 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 66959 elif test "x$OPENJDK_TARGET_CPU" = xaarch64 && test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then 66960 HOTSPOT_TARGET_CPU=arm_64 66961 HOTSPOT_TARGET_CPU_ARCH=arm 66962 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 66963 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 66964 fi 66965 66966 # Verify that dependencies are met for explicitly set features. 66967 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 66968 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 66969 fi 66970 66971 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 66972 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 66973 fi 66974 66975 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 66976 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 66977 fi 66978 66979 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 66980 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 66981 fi 66982 66983 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 66984 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 66985 fi 66986 66987 # Turn on additional features based on other parts of configure 66988 if test "x$INCLUDE_DTRACE" = "xtrue"; then 66989 JVM_FEATURES="$JVM_FEATURES dtrace" 66990 else 66991 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 66992 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 66993 fi 66994 fi 66995 66996 if test "x$STATIC_BUILD" = "xtrue"; then 66997 JVM_FEATURES="$JVM_FEATURES static-build" 66998 else 66999 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 67000 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 67001 fi 67002 fi 67003 67004 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 67005 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 67006 as_fn_error $? "To enable zero, you must use --with-jvm-variants=zero" "$LINENO" 5 67007 fi 67008 fi 67009 67010 # Only enable jvmci on x86_64, sparcv9 and aarch64. 67011 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 67012 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 67013 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 67014 JVM_FEATURES_jvmci="jvmci" 67015 else 67016 JVM_FEATURES_jvmci="" 67017 fi 67018 67019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.internal.vm.compiler should be built" >&5 67020 $as_echo_n "checking if jdk.internal.vm.compiler should be built... " >&6; } 67021 if [[ " $JVM_FEATURES " =~ " graal " ]] ; then 67022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67023 $as_echo "yes, forced" >&6; } 67024 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 67025 as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5 67026 fi 67027 INCLUDE_GRAAL="true" 67028 else 67029 # By default enable graal build on linux-x64 or where AOT is available. 67030 # graal build requires jvmci. 67031 if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ 67032 (test "x$OPENJDK_TARGET_CPU" = "xx86_64" && \ 67033 test "x$OPENJDK_TARGET_OS" = "xlinux" || \ 67034 test "x$ENABLE_AOT" = "xtrue") ; then 67035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67036 $as_echo "yes" >&6; } 67037 JVM_FEATURES_graal="graal" 67038 INCLUDE_GRAAL="true" 67039 else 67040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67041 $as_echo "no" >&6; } 67042 JVM_FEATURES_graal="" 67043 INCLUDE_GRAAL="false" 67044 fi 67045 fi 67046 67047 67048 67049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 67050 $as_echo_n "checking if aot should be enabled... " >&6; } 67051 if test "x$ENABLE_AOT" = "xtrue"; then 67052 if test "x$enable_aot" = "xyes"; then 67053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67054 $as_echo "yes, forced" >&6; } 67055 else 67056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67057 $as_echo "yes" >&6; } 67058 fi 67059 JVM_FEATURES_aot="aot" 67060 else 67061 if test "x$enable_aot" = "xno"; then 67062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67063 $as_echo "no, forced" >&6; } 67064 else 67065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67066 $as_echo "no" >&6; } 67067 fi 67068 JVM_FEATURES_aot="" 67069 fi 67070 67071 if test "x$OPENJDK_TARGET_CPU" = xarm ; then 67072 # Default to use link time optimizations on minimal on arm 67073 JVM_FEATURES_link_time_opt="link-time-opt" 67074 else 67075 JVM_FEATURES_link_time_opt="" 67076 fi 67077 67078 # All variants but minimal (and custom) get these features 67079 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt" 67080 if test "x$ENABLE_CDS" = "xtrue"; then 67081 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds" 67082 fi 67083 67084 # Enable features depending on variant. 67085 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal" 67086 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 67087 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 67088 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt" 67089 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 67090 JVM_FEATURES_custom="$JVM_FEATURES" 67091 67092 67093 67094 67095 67096 67097 67098 67099 # Used for verification of Makefiles by check-jvm-feature 67100 67101 67102 # We don't support --with-jvm-interpreter anymore, use zero instead. 67103 67104 67105 # Check whether --with-jvm-interpreter was given. 67106 if test "${with_jvm_interpreter+set}" = set; then : 67107 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 67108 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 67109 fi 67110 67111 67112 67113 67114 ############################################################################### 67115 # 67116 # We need to do some final tweaking, when everything else is done. 67117 # 67118 ############################################################################### 67119 67120 67121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 67122 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 67123 67124 if test -d "${TOPDIR}/src/jdk.crypto.ec/share/native/libsunec/impl"; then 67125 ENABLE_INTREE_EC=true 67126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67127 $as_echo "yes" >&6; } 67128 else 67129 ENABLE_INTREE_EC=false 67130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67131 $as_echo "no" >&6; } 67132 fi 67133 67134 67135 67136 67137 # Check whether --enable-jtreg-failure-handler was given. 67138 if test "${enable_jtreg_failure_handler+set}" = set; then : 67139 enableval=$enable_jtreg_failure_handler; 67140 fi 67141 67142 67143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 67144 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 67145 67146 if test "x$enable_jtreg_failure_handler" = "xyes"; then 67147 if test "x$JT_HOME" = "x"; then 67148 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 67149 else 67150 BUILD_FAILURE_HANDLER=true 67151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67152 $as_echo "yes, forced" >&6; } 67153 fi 67154 elif test "x$enable_jtreg_failure_handler" = "xno"; then 67155 BUILD_FAILURE_HANDLER=false 67156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67157 $as_echo "no, forced" >&6; } 67158 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 67159 || test "x$enable_jtreg_failure_handler" = "x"; then 67160 if test "x$JT_HOME" = "x"; then 67161 BUILD_FAILURE_HANDLER=false 67162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 67163 $as_echo "no, missing jtreg" >&6; } 67164 else 67165 BUILD_FAILURE_HANDLER=true 67166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 67167 $as_echo "yes, jtreg present" >&6; } 67168 fi 67169 else 67170 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 67171 fi 67172 67173 67174 67175 67176 # Check whether --enable-generate-classlist was given. 67177 if test "${enable_generate_classlist+set}" = set; then : 67178 enableval=$enable_generate_classlist; 67179 fi 67180 67181 67182 # Check if it's likely that it's possible to generate the classlist. Depending 67183 # on exact jvm configuration it could be possible anyway. 67184 if test "x$ENABLE_CDS" = "xtrue" && ( [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ); then 67185 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 67186 else 67187 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 67188 fi 67189 67190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 67191 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 67192 if test "x$enable_generate_classlist" = "xyes"; then 67193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67194 $as_echo "yes, forced" >&6; } 67195 ENABLE_GENERATE_CLASSLIST="true" 67196 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 67197 { $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 67198 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&2;} 67199 fi 67200 elif test "x$enable_generate_classlist" = "xno"; then 67201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67202 $as_echo "no, forced" >&6; } 67203 ENABLE_GENERATE_CLASSLIST="false" 67204 elif test "x$enable_generate_classlist" = "x"; then 67205 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 67206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67207 $as_echo "yes" >&6; } 67208 ENABLE_GENERATE_CLASSLIST="true" 67209 else 67210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67211 $as_echo "no" >&6; } 67212 ENABLE_GENERATE_CLASSLIST="false" 67213 fi 67214 else 67215 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 67216 fi 67217 67218 67219 67220 67221 ############################################################################### 67222 # 67223 # Configure parts of the build that only affect the build performance, 67224 # not the result. 67225 # 67226 ############################################################################### 67227 67228 67229 # How many cores do we have on this build system? 67230 67231 # Check whether --with-num-cores was given. 67232 if test "${with_num_cores+set}" = set; then : 67233 withval=$with_num_cores; 67234 fi 67235 67236 if test "x$with_num_cores" = x; then 67237 # The number of cores were not specified, try to probe them. 67238 67239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 67240 $as_echo_n "checking for number of cores... " >&6; } 67241 NUM_CORES=1 67242 FOUND_CORES=no 67243 67244 if test -f /proc/cpuinfo; then 67245 # Looks like a Linux (or cygwin) system 67246 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 67247 FOUND_CORES=yes 67248 elif test -x /usr/sbin/psrinfo; then 67249 # Looks like a Solaris system 67250 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 67251 FOUND_CORES=yes 67252 elif test -x /usr/sbin/sysctl; then 67253 # Looks like a MacOSX system 67254 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 67255 FOUND_CORES=yes 67256 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 67257 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 67258 FOUND_CORES=yes 67259 elif test -n "$NUMBER_OF_PROCESSORS"; then 67260 # On windows, look in the env 67261 NUM_CORES=$NUMBER_OF_PROCESSORS 67262 FOUND_CORES=yes 67263 fi 67264 67265 if test "x$FOUND_CORES" = xyes; then 67266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 67267 $as_echo "$NUM_CORES" >&6; } 67268 else 67269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 67270 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 67271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 67272 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 67273 fi 67274 67275 else 67276 NUM_CORES=$with_num_cores 67277 fi 67278 67279 67280 67281 # How much memory do we have on this build system? 67282 67283 # Check whether --with-memory-size was given. 67284 if test "${with_memory_size+set}" = set; then : 67285 withval=$with_memory_size; 67286 fi 67287 67288 if test "x$with_memory_size" = x; then 67289 # The memory size was not specified, try to probe it. 67290 67291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 67292 $as_echo_n "checking for memory size... " >&6; } 67293 # Default to 1024 MB 67294 MEMORY_SIZE=1024 67295 FOUND_MEM=no 67296 67297 if test -f /proc/meminfo; then 67298 # Looks like a Linux (or cygwin) system 67299 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 67300 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 67301 FOUND_MEM=yes 67302 elif test -x /usr/sbin/prtconf; then 67303 # Looks like a Solaris or AIX system 67304 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 67305 FOUND_MEM=yes 67306 elif test -x /usr/sbin/sysctl; then 67307 # Looks like a MacOSX system 67308 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 67309 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 67310 FOUND_MEM=yes 67311 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 67312 # Windows, but without cygwin 67313 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 67314 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 67315 FOUND_MEM=yes 67316 fi 67317 67318 if test "x$FOUND_MEM" = xyes; then 67319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 67320 $as_echo "$MEMORY_SIZE MB" >&6; } 67321 else 67322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 67323 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 67324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 67325 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 67326 fi 67327 67328 else 67329 MEMORY_SIZE=$with_memory_size 67330 fi 67331 67332 67333 67334 # Provide a decent default number of parallel jobs for make depending on 67335 # number of cores, amount of memory and machine architecture. 67336 67337 # Check whether --with-jobs was given. 67338 if test "${with_jobs+set}" = set; then : 67339 withval=$with_jobs; 67340 fi 67341 67342 if test "x$with_jobs" = x; then 67343 # Number of jobs was not specified, calculate. 67344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 67345 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 67346 # Approximate memory in GB. 67347 memory_gb=`expr $MEMORY_SIZE / 1024` 67348 # Pick the lowest of memory in gb and number of cores. 67349 if test "$memory_gb" -lt "$NUM_CORES"; then 67350 JOBS="$memory_gb" 67351 else 67352 JOBS="$NUM_CORES" 67353 fi 67354 if test "$JOBS" -eq "0"; then 67355 JOBS=1 67356 fi 67357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 67358 $as_echo "$JOBS" >&6; } 67359 else 67360 JOBS=$with_jobs 67361 fi 67362 67363 67364 67365 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 67366 67367 # Check whether --with-test-jobs was given. 67368 if test "${with_test_jobs+set}" = set; then : 67369 withval=$with_test_jobs; 67370 fi 67371 67372 if test "x$with_test_jobs" = x; then 67373 TEST_JOBS=0 67374 else 67375 TEST_JOBS=$with_test_jobs 67376 fi 67377 67378 67379 67380 # Setup arguments for the boot jdk (after cores and memory have been setup) 67381 67382 ############################################################################## 67383 # 67384 # Specify jvm options for anything that is run with the Boot JDK. 67385 # Not all JVM:s accept the same arguments on the command line. 67386 # 67387 67388 # Check whether --with-boot-jdk-jvmargs was given. 67389 if test "${with_boot_jdk_jvmargs+set}" = set; then : 67390 withval=$with_boot_jdk_jvmargs; 67391 fi 67392 67393 67394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 67395 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 67396 67397 # Force en-US environment 67398 67399 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 67400 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 67401 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 67402 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67403 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67404 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67405 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 67406 JVM_ARG_OK=true 67407 else 67408 $ECHO "Arg failed:" >&5 67409 $ECHO "$OUTPUT" >&5 67410 JVM_ARG_OK=false 67411 fi 67412 67413 67414 if test "x$BOOTJDK_USE_LOCAL_CDS" = xtrue; then 67415 # Use our own CDS archive 67416 67417 $ECHO "Check if jvm arg is ok: $boot_jdk_cds_args -Xshare:auto" >&5 67418 $ECHO "Command: $JAVA $boot_jdk_cds_args -Xshare:auto -version" >&5 67419 OUTPUT=`$JAVA $boot_jdk_cds_args -Xshare:auto -version 2>&1` 67420 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67421 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67422 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67423 boot_jdk_jvmargs="$boot_jdk_jvmargs $boot_jdk_cds_args -Xshare:auto" 67424 JVM_ARG_OK=true 67425 else 67426 $ECHO "Arg failed:" >&5 67427 $ECHO "$OUTPUT" >&5 67428 JVM_ARG_OK=false 67429 fi 67430 67431 else 67432 # Otherwise optimistically use the system-wide one, if one is present 67433 67434 $ECHO "Check if jvm arg is ok: -Xshare:auto" >&5 67435 $ECHO "Command: $JAVA -Xshare:auto -version" >&5 67436 OUTPUT=`$JAVA -Xshare:auto -version 2>&1` 67437 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67438 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67439 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67440 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xshare:auto" 67441 JVM_ARG_OK=true 67442 else 67443 $ECHO "Arg failed:" >&5 67444 $ECHO "$OUTPUT" >&5 67445 JVM_ARG_OK=false 67446 fi 67447 67448 fi 67449 67450 # Apply user provided options. 67451 67452 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 67453 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 67454 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 67455 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67456 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67457 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67458 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 67459 JVM_ARG_OK=true 67460 else 67461 $ECHO "Arg failed:" >&5 67462 $ECHO "$OUTPUT" >&5 67463 JVM_ARG_OK=false 67464 fi 67465 67466 67467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 67468 $as_echo "$boot_jdk_jvmargs" >&6; } 67469 67470 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 67471 JAVA_FLAGS=$boot_jdk_jvmargs 67472 67473 67474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 67475 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 67476 67477 # Starting amount of heap memory. 67478 67479 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 67480 $ECHO "Command: $JAVA -Xms64M -version" >&5 67481 OUTPUT=`$JAVA -Xms64M -version 2>&1` 67482 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67483 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67484 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67485 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 67486 JVM_ARG_OK=true 67487 else 67488 $ECHO "Arg failed:" >&5 67489 $ECHO "$OUTPUT" >&5 67490 JVM_ARG_OK=false 67491 fi 67492 67493 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 67494 67495 # Maximum amount of heap memory and stack size. 67496 JVM_HEAP_LIMIT_32="1024" 67497 # Running a 64 bit JVM allows for and requires a bigger heap 67498 JVM_HEAP_LIMIT_64="1600" 67499 STACK_SIZE_32=768 67500 STACK_SIZE_64=1536 67501 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 67502 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 67503 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 67504 fi 67505 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 67506 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 67507 fi 67508 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 67509 JVM_HEAP_LIMIT_32=512 67510 JVM_HEAP_LIMIT_64=512 67511 fi 67512 67513 if test "x$BOOT_JDK_BITS" = "x32"; then 67514 STACK_SIZE=$STACK_SIZE_32 67515 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 67516 else 67517 STACK_SIZE=$STACK_SIZE_64 67518 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 67519 fi 67520 67521 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 67522 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 67523 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 67524 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67525 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67526 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67527 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 67528 JVM_ARG_OK=true 67529 else 67530 $ECHO "Arg failed:" >&5 67531 $ECHO "$OUTPUT" >&5 67532 JVM_ARG_OK=false 67533 fi 67534 67535 67536 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 67537 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 67538 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 67539 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67540 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67541 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67542 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 67543 JVM_ARG_OK=true 67544 else 67545 $ECHO "Arg failed:" >&5 67546 $ECHO "$OUTPUT" >&5 67547 JVM_ARG_OK=false 67548 fi 67549 67550 67551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 67552 $as_echo "$boot_jdk_jvmargs_big" >&6; } 67553 67554 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 67555 67556 67557 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 67558 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 67559 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 67560 else 67561 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 67562 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 67563 fi 67564 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 67565 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 67566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 67567 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 67568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 67569 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 67570 67571 67572 # By default, the main javac compilations use big 67573 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 67574 67575 67576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 67577 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 67578 67579 # Use serial gc for small short lived tools if possible 67580 67581 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 67582 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 67583 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 67584 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67585 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67586 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67587 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 67588 JVM_ARG_OK=true 67589 else 67590 $ECHO "Arg failed:" >&5 67591 $ECHO "$OUTPUT" >&5 67592 JVM_ARG_OK=false 67593 fi 67594 67595 67596 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 67597 $ECHO "Command: $JAVA -Xms32M -version" >&5 67598 OUTPUT=`$JAVA -Xms32M -version 2>&1` 67599 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67600 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67601 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67602 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 67603 JVM_ARG_OK=true 67604 else 67605 $ECHO "Arg failed:" >&5 67606 $ECHO "$OUTPUT" >&5 67607 JVM_ARG_OK=false 67608 fi 67609 67610 67611 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 67612 $ECHO "Command: $JAVA -Xmx512M -version" >&5 67613 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 67614 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67615 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67616 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67617 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 67618 JVM_ARG_OK=true 67619 else 67620 $ECHO "Arg failed:" >&5 67621 $ECHO "$OUTPUT" >&5 67622 JVM_ARG_OK=false 67623 fi 67624 67625 67626 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 67627 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 67628 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 67629 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67630 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67631 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67632 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 67633 JVM_ARG_OK=true 67634 else 67635 $ECHO "Arg failed:" >&5 67636 $ECHO "$OUTPUT" >&5 67637 JVM_ARG_OK=false 67638 fi 67639 67640 67641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 67642 $as_echo "$boot_jdk_jvmargs_small" >&6; } 67643 67644 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 67645 67646 67647 JAVA_TOOL_FLAGS_SMALL="" 67648 for f in $JAVA_FLAGS_SMALL; do 67649 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 67650 done 67651 67652 67653 67654 # Setup smart javac (after cores and memory have been setup) 67655 67656 67657 # Check whether --with-sjavac-server-java was given. 67658 if test "${with_sjavac_server_java+set}" = set; then : 67659 withval=$with_sjavac_server_java; 67660 fi 67661 67662 67663 if test "x$with_sjavac_server_java" != x; then 67664 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 67665 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 67666 if test "x$FOUND_VERSION" = x; then 67667 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 67668 fi 67669 else 67670 SJAVAC_SERVER_JAVA="$JAVA" 67671 fi 67672 67673 67674 if test "$MEMORY_SIZE" -gt "3000"; then 67675 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 67676 JVM_64BIT=true 67677 fi 67678 fi 67679 67680 MX_VALUE=`expr $MEMORY_SIZE / 2` 67681 if test "$JVM_64BIT" = true; then 67682 # Set ms lower than mx since more than one instance of the server might 67683 # get launched at the same time before they figure out which instance won. 67684 MS_VALUE=512 67685 if test "$MX_VALUE" -gt "2048"; then 67686 MX_VALUE=2048 67687 fi 67688 else 67689 MS_VALUE=256 67690 if test "$MX_VALUE" -gt "1500"; then 67691 MX_VALUE=1500 67692 fi 67693 fi 67694 if test "$MX_VALUE" -lt "512"; then 67695 MX_VALUE=512 67696 fi 67697 67698 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 67699 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 67700 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 67701 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67702 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67703 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67704 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 67705 JVM_ARG_OK=true 67706 else 67707 $ECHO "Arg failed:" >&5 67708 $ECHO "$OUTPUT" >&5 67709 JVM_ARG_OK=false 67710 fi 67711 67712 67713 67714 # Check whether --enable-sjavac was given. 67715 if test "${enable_sjavac+set}" = set; then : 67716 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 67717 else 67718 ENABLE_SJAVAC="no" 67719 fi 67720 67721 if test "x$JVM_ARG_OK" = "xfalse"; then 67722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 67723 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 67724 ENABLE_SJAVAC="no" 67725 fi 67726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 67727 $as_echo_n "checking whether to use sjavac... " >&6; } 67728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 67729 $as_echo "$ENABLE_SJAVAC" >&6; } 67730 67731 67732 # Check whether --enable-javac-server was given. 67733 if test "${enable_javac_server+set}" = set; then : 67734 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 67735 else 67736 ENABLE_JAVAC_SERVER="yes" 67737 fi 67738 67739 if test "x$JVM_ARG_OK" = "xfalse"; then 67740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 67741 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 67742 ENABLE_JAVAC_SERVER="no" 67743 fi 67744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 67745 $as_echo_n "checking whether to use javac server... " >&6; } 67746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 67747 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 67748 67749 67750 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 67751 # When using a server javac, the small client instances do not need much 67752 # resources. 67753 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 67754 fi 67755 67756 67757 # Setup use of icecc if requested 67758 67759 # Check whether --enable-icecc was given. 67760 if test "${enable_icecc+set}" = set; then : 67761 enableval=$enable_icecc; 67762 fi 67763 67764 67765 if test "x${enable_icecc}" = "xyes"; then 67766 67767 67768 67769 # Publish this variable in the help. 67770 67771 67772 if [ -z "${ICECC_CMD+x}" ]; then 67773 # The variable is not set by user, try to locate tool using the code snippet 67774 for ac_prog in icecc 67775 do 67776 # Extract the first word of "$ac_prog", so it can be a program name with args. 67777 set dummy $ac_prog; ac_word=$2 67778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67779 $as_echo_n "checking for $ac_word... " >&6; } 67780 if ${ac_cv_path_ICECC_CMD+:} false; then : 67781 $as_echo_n "(cached) " >&6 67782 else 67783 case $ICECC_CMD in 67784 [\\/]* | ?:[\\/]*) 67785 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67786 ;; 67787 *) 67788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67789 for as_dir in $PATH 67790 do 67791 IFS=$as_save_IFS 67792 test -z "$as_dir" && as_dir=. 67793 for ac_exec_ext in '' $ac_executable_extensions; do 67794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67795 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67797 break 2 67798 fi 67799 done 67800 done 67801 IFS=$as_save_IFS 67802 67803 ;; 67804 esac 67805 fi 67806 ICECC_CMD=$ac_cv_path_ICECC_CMD 67807 if test -n "$ICECC_CMD"; then 67808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67809 $as_echo "$ICECC_CMD" >&6; } 67810 else 67811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67812 $as_echo "no" >&6; } 67813 fi 67814 67815 67816 test -n "$ICECC_CMD" && break 67817 done 67818 67819 else 67820 # The variable is set, but is it from the command line or the environment? 67821 67822 # Try to remove the string !ICECC_CMD! from our list. 67823 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 67824 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67825 # If it failed, the variable was not from the command line. Ignore it, 67826 # but warn the user (except for BASH, which is always set by the calling BASH). 67827 if test "xICECC_CMD" != xBASH; then 67828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 67829 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 67830 fi 67831 # Try to locate tool using the code snippet 67832 for ac_prog in icecc 67833 do 67834 # Extract the first word of "$ac_prog", so it can be a program name with args. 67835 set dummy $ac_prog; ac_word=$2 67836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67837 $as_echo_n "checking for $ac_word... " >&6; } 67838 if ${ac_cv_path_ICECC_CMD+:} false; then : 67839 $as_echo_n "(cached) " >&6 67840 else 67841 case $ICECC_CMD in 67842 [\\/]* | ?:[\\/]*) 67843 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67844 ;; 67845 *) 67846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67847 for as_dir in $PATH 67848 do 67849 IFS=$as_save_IFS 67850 test -z "$as_dir" && as_dir=. 67851 for ac_exec_ext in '' $ac_executable_extensions; do 67852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67853 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67855 break 2 67856 fi 67857 done 67858 done 67859 IFS=$as_save_IFS 67860 67861 ;; 67862 esac 67863 fi 67864 ICECC_CMD=$ac_cv_path_ICECC_CMD 67865 if test -n "$ICECC_CMD"; then 67866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67867 $as_echo "$ICECC_CMD" >&6; } 67868 else 67869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67870 $as_echo "no" >&6; } 67871 fi 67872 67873 67874 test -n "$ICECC_CMD" && break 67875 done 67876 67877 else 67878 # If it succeeded, then it was overridden by the user. We will use it 67879 # for the tool. 67880 67881 # First remove it from the list of overridden variables, so we can test 67882 # for unknown variables in the end. 67883 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67884 67885 # Check if we try to supply an empty value 67886 if test "x$ICECC_CMD" = x; then 67887 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 67888 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 67889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 67890 $as_echo_n "checking for ICECC_CMD... " >&6; } 67891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67892 $as_echo "disabled" >&6; } 67893 else 67894 # Check if the provided tool contains a complete path. 67895 tool_specified="$ICECC_CMD" 67896 tool_basename="${tool_specified##*/}" 67897 if test "x$tool_basename" = "x$tool_specified"; then 67898 # A command without a complete path is provided, search $PATH. 67899 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 67900 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 67901 # Extract the first word of "$tool_basename", so it can be a program name with args. 67902 set dummy $tool_basename; ac_word=$2 67903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67904 $as_echo_n "checking for $ac_word... " >&6; } 67905 if ${ac_cv_path_ICECC_CMD+:} false; then : 67906 $as_echo_n "(cached) " >&6 67907 else 67908 case $ICECC_CMD in 67909 [\\/]* | ?:[\\/]*) 67910 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67911 ;; 67912 *) 67913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67914 for as_dir in $PATH 67915 do 67916 IFS=$as_save_IFS 67917 test -z "$as_dir" && as_dir=. 67918 for ac_exec_ext in '' $ac_executable_extensions; do 67919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67920 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67922 break 2 67923 fi 67924 done 67925 done 67926 IFS=$as_save_IFS 67927 67928 ;; 67929 esac 67930 fi 67931 ICECC_CMD=$ac_cv_path_ICECC_CMD 67932 if test -n "$ICECC_CMD"; then 67933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67934 $as_echo "$ICECC_CMD" >&6; } 67935 else 67936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67937 $as_echo "no" >&6; } 67938 fi 67939 67940 67941 if test "x$ICECC_CMD" = x; then 67942 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67943 fi 67944 else 67945 # Otherwise we believe it is a complete path. Use it as it is. 67946 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 67947 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 67948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 67949 $as_echo_n "checking for ICECC_CMD... " >&6; } 67950 if test ! -x "$tool_specified"; then 67951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67952 $as_echo "not found" >&6; } 67953 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 67954 fi 67955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67956 $as_echo "$tool_specified" >&6; } 67957 fi 67958 fi 67959 fi 67960 67961 fi 67962 67963 67964 67965 if test "x$ICECC_CMD" = x; then 67966 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 67967 fi 67968 67969 67970 old_path="$PATH" 67971 67972 # Look for icecc-create-env in some known places 67973 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 67974 67975 67976 67977 # Publish this variable in the help. 67978 67979 67980 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 67981 # The variable is not set by user, try to locate tool using the code snippet 67982 for ac_prog in icecc-create-env 67983 do 67984 # Extract the first word of "$ac_prog", so it can be a program name with args. 67985 set dummy $ac_prog; ac_word=$2 67986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67987 $as_echo_n "checking for $ac_word... " >&6; } 67988 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 67989 $as_echo_n "(cached) " >&6 67990 else 67991 case $ICECC_CREATE_ENV in 67992 [\\/]* | ?:[\\/]*) 67993 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 67994 ;; 67995 *) 67996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67997 for as_dir in $PATH 67998 do 67999 IFS=$as_save_IFS 68000 test -z "$as_dir" && as_dir=. 68001 for ac_exec_ext in '' $ac_executable_extensions; do 68002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68003 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 68004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68005 break 2 68006 fi 68007 done 68008 done 68009 IFS=$as_save_IFS 68010 68011 ;; 68012 esac 68013 fi 68014 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68015 if test -n "$ICECC_CREATE_ENV"; then 68016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68017 $as_echo "$ICECC_CREATE_ENV" >&6; } 68018 else 68019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68020 $as_echo "no" >&6; } 68021 fi 68022 68023 68024 test -n "$ICECC_CREATE_ENV" && break 68025 done 68026 68027 else 68028 # The variable is set, but is it from the command line or the environment? 68029 68030 # Try to remove the string !ICECC_CREATE_ENV! from our list. 68031 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 68032 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68033 # If it failed, the variable was not from the command line. Ignore it, 68034 # but warn the user (except for BASH, which is always set by the calling BASH). 68035 if test "xICECC_CREATE_ENV" != xBASH; then 68036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 68037 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 68038 fi 68039 # Try to locate tool using the code snippet 68040 for ac_prog in icecc-create-env 68041 do 68042 # Extract the first word of "$ac_prog", so it can be a program name with args. 68043 set dummy $ac_prog; ac_word=$2 68044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68045 $as_echo_n "checking for $ac_word... " >&6; } 68046 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 68047 $as_echo_n "(cached) " >&6 68048 else 68049 case $ICECC_CREATE_ENV in 68050 [\\/]* | ?:[\\/]*) 68051 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 68052 ;; 68053 *) 68054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68055 for as_dir in $PATH 68056 do 68057 IFS=$as_save_IFS 68058 test -z "$as_dir" && as_dir=. 68059 for ac_exec_ext in '' $ac_executable_extensions; do 68060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68061 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 68062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68063 break 2 68064 fi 68065 done 68066 done 68067 IFS=$as_save_IFS 68068 68069 ;; 68070 esac 68071 fi 68072 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68073 if test -n "$ICECC_CREATE_ENV"; then 68074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68075 $as_echo "$ICECC_CREATE_ENV" >&6; } 68076 else 68077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68078 $as_echo "no" >&6; } 68079 fi 68080 68081 68082 test -n "$ICECC_CREATE_ENV" && break 68083 done 68084 68085 else 68086 # If it succeeded, then it was overridden by the user. We will use it 68087 # for the tool. 68088 68089 # First remove it from the list of overridden variables, so we can test 68090 # for unknown variables in the end. 68091 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68092 68093 # Check if we try to supply an empty value 68094 if test "x$ICECC_CREATE_ENV" = x; then 68095 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 68096 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 68097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 68098 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 68099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68100 $as_echo "disabled" >&6; } 68101 else 68102 # Check if the provided tool contains a complete path. 68103 tool_specified="$ICECC_CREATE_ENV" 68104 tool_basename="${tool_specified##*/}" 68105 if test "x$tool_basename" = "x$tool_specified"; then 68106 # A command without a complete path is provided, search $PATH. 68107 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 68108 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 68109 # Extract the first word of "$tool_basename", so it can be a program name with args. 68110 set dummy $tool_basename; ac_word=$2 68111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68112 $as_echo_n "checking for $ac_word... " >&6; } 68113 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 68114 $as_echo_n "(cached) " >&6 68115 else 68116 case $ICECC_CREATE_ENV in 68117 [\\/]* | ?:[\\/]*) 68118 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 68119 ;; 68120 *) 68121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68122 for as_dir in $PATH 68123 do 68124 IFS=$as_save_IFS 68125 test -z "$as_dir" && as_dir=. 68126 for ac_exec_ext in '' $ac_executable_extensions; do 68127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68128 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 68129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68130 break 2 68131 fi 68132 done 68133 done 68134 IFS=$as_save_IFS 68135 68136 ;; 68137 esac 68138 fi 68139 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68140 if test -n "$ICECC_CREATE_ENV"; then 68141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68142 $as_echo "$ICECC_CREATE_ENV" >&6; } 68143 else 68144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68145 $as_echo "no" >&6; } 68146 fi 68147 68148 68149 if test "x$ICECC_CREATE_ENV" = x; then 68150 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68151 fi 68152 else 68153 # Otherwise we believe it is a complete path. Use it as it is. 68154 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 68155 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 68156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 68157 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 68158 if test ! -x "$tool_specified"; then 68159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68160 $as_echo "not found" >&6; } 68161 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 68162 fi 68163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68164 $as_echo "$tool_specified" >&6; } 68165 fi 68166 fi 68167 fi 68168 68169 fi 68170 68171 68172 68173 if test "x$ICECC_CREATE_ENV" = x; then 68174 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 68175 fi 68176 68177 68178 # Use icecc-create-env to create a minimal compilation environment that can 68179 # be sent to the other hosts in the icecream cluster. 68180 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 68181 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 68182 # Older versions of icecc does not have the --gcc parameter 68183 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 68184 icecc_gcc_arg="--gcc" 68185 fi 68186 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 68187 68188 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68189 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 68190 ${icecc_create_env_log} 2>&1 ) 68191 if test "$?" != "0"; then 68192 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68193 $as_echo "$as_me: icecc-create-env output:" >&6;} 68194 cat \ 68195 ${icecc_create_env_log} 68196 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68197 fi 68198 68199 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 68200 # For clang, the icecc compilerwrapper is needed. It usually resides next 68201 # to icecc-create-env. 68202 68203 68204 68205 # Publish this variable in the help. 68206 68207 68208 if [ -z "${ICECC_WRAPPER+x}" ]; then 68209 # The variable is not set by user, try to locate tool using the code snippet 68210 for ac_prog in compilerwrapper 68211 do 68212 # Extract the first word of "$ac_prog", so it can be a program name with args. 68213 set dummy $ac_prog; ac_word=$2 68214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68215 $as_echo_n "checking for $ac_word... " >&6; } 68216 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68217 $as_echo_n "(cached) " >&6 68218 else 68219 case $ICECC_WRAPPER in 68220 [\\/]* | ?:[\\/]*) 68221 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68222 ;; 68223 *) 68224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68225 for as_dir in $PATH 68226 do 68227 IFS=$as_save_IFS 68228 test -z "$as_dir" && as_dir=. 68229 for ac_exec_ext in '' $ac_executable_extensions; do 68230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68231 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68233 break 2 68234 fi 68235 done 68236 done 68237 IFS=$as_save_IFS 68238 68239 ;; 68240 esac 68241 fi 68242 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68243 if test -n "$ICECC_WRAPPER"; then 68244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68245 $as_echo "$ICECC_WRAPPER" >&6; } 68246 else 68247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68248 $as_echo "no" >&6; } 68249 fi 68250 68251 68252 test -n "$ICECC_WRAPPER" && break 68253 done 68254 68255 else 68256 # The variable is set, but is it from the command line or the environment? 68257 68258 # Try to remove the string !ICECC_WRAPPER! from our list. 68259 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 68260 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68261 # If it failed, the variable was not from the command line. Ignore it, 68262 # but warn the user (except for BASH, which is always set by the calling BASH). 68263 if test "xICECC_WRAPPER" != xBASH; then 68264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 68265 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 68266 fi 68267 # Try to locate tool using the code snippet 68268 for ac_prog in compilerwrapper 68269 do 68270 # Extract the first word of "$ac_prog", so it can be a program name with args. 68271 set dummy $ac_prog; ac_word=$2 68272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68273 $as_echo_n "checking for $ac_word... " >&6; } 68274 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68275 $as_echo_n "(cached) " >&6 68276 else 68277 case $ICECC_WRAPPER in 68278 [\\/]* | ?:[\\/]*) 68279 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68280 ;; 68281 *) 68282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68283 for as_dir in $PATH 68284 do 68285 IFS=$as_save_IFS 68286 test -z "$as_dir" && as_dir=. 68287 for ac_exec_ext in '' $ac_executable_extensions; do 68288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68289 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68291 break 2 68292 fi 68293 done 68294 done 68295 IFS=$as_save_IFS 68296 68297 ;; 68298 esac 68299 fi 68300 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68301 if test -n "$ICECC_WRAPPER"; then 68302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68303 $as_echo "$ICECC_WRAPPER" >&6; } 68304 else 68305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68306 $as_echo "no" >&6; } 68307 fi 68308 68309 68310 test -n "$ICECC_WRAPPER" && break 68311 done 68312 68313 else 68314 # If it succeeded, then it was overridden by the user. We will use it 68315 # for the tool. 68316 68317 # First remove it from the list of overridden variables, so we can test 68318 # for unknown variables in the end. 68319 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68320 68321 # Check if we try to supply an empty value 68322 if test "x$ICECC_WRAPPER" = x; then 68323 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 68324 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 68325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 68326 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 68327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68328 $as_echo "disabled" >&6; } 68329 else 68330 # Check if the provided tool contains a complete path. 68331 tool_specified="$ICECC_WRAPPER" 68332 tool_basename="${tool_specified##*/}" 68333 if test "x$tool_basename" = "x$tool_specified"; then 68334 # A command without a complete path is provided, search $PATH. 68335 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 68336 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 68337 # Extract the first word of "$tool_basename", so it can be a program name with args. 68338 set dummy $tool_basename; ac_word=$2 68339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68340 $as_echo_n "checking for $ac_word... " >&6; } 68341 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68342 $as_echo_n "(cached) " >&6 68343 else 68344 case $ICECC_WRAPPER in 68345 [\\/]* | ?:[\\/]*) 68346 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68347 ;; 68348 *) 68349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68350 for as_dir in $PATH 68351 do 68352 IFS=$as_save_IFS 68353 test -z "$as_dir" && as_dir=. 68354 for ac_exec_ext in '' $ac_executable_extensions; do 68355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68356 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68358 break 2 68359 fi 68360 done 68361 done 68362 IFS=$as_save_IFS 68363 68364 ;; 68365 esac 68366 fi 68367 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68368 if test -n "$ICECC_WRAPPER"; then 68369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68370 $as_echo "$ICECC_WRAPPER" >&6; } 68371 else 68372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68373 $as_echo "no" >&6; } 68374 fi 68375 68376 68377 if test "x$ICECC_WRAPPER" = x; then 68378 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68379 fi 68380 else 68381 # Otherwise we believe it is a complete path. Use it as it is. 68382 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 68383 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 68384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 68385 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 68386 if test ! -x "$tool_specified"; then 68387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68388 $as_echo "not found" >&6; } 68389 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 68390 fi 68391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68392 $as_echo "$tool_specified" >&6; } 68393 fi 68394 fi 68395 fi 68396 68397 fi 68398 68399 68400 68401 if test "x$ICECC_WRAPPER" = x; then 68402 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 68403 fi 68404 68405 68406 68407 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68408 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 68409 if test "$?" != "0"; then 68410 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68411 $as_echo "$as_me: icecc-create-env output:" >&6;} 68412 cat ${icecc_create_env_log} 68413 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68414 fi 68415 68416 else 68417 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 68418 fi 68419 PATH="$old_path" 68420 # The bundle with the compiler gets a name based on checksums. Parse log file 68421 # to find it. 68422 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 68423 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 68424 if test ! -f ${ICECC_ENV_BUNDLE}; then 68425 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 68426 fi 68427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 68428 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 68429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 68430 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 68431 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 68432 68433 if test "x${COMPILE_TYPE}" = "xcross"; then 68434 # If cross compiling, create a separate env package for the build compiler 68435 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 68436 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 68437 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 68438 68439 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68440 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 68441 ${icecc_create_env_log_build} 2>&1 ) 68442 if test "$?" != "0"; then 68443 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68444 $as_echo "$as_me: icecc-create-env output:" >&6;} 68445 cat \ 68446 ${icecc_create_env_log_build} 68447 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68448 fi 68449 68450 elif test "x${BUILD_CC##*/}" = "xclang"; then 68451 68452 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68453 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 68454 if test "$?" != "0"; then 68455 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68456 $as_echo "$as_me: icecc-create-env output:" >&6;} 68457 cat ${icecc_create_env_log_build} 68458 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68459 fi 68460 68461 else 68462 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 68463 fi 68464 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 68465 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 68466 if test ! -f ${ICECC_ENV_BUNDLE}; then 68467 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 68468 fi 68469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 68470 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 68471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 68472 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 68473 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 68474 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 68475 else 68476 BUILD_ICECC="${ICECC}" 68477 fi 68478 68479 68480 fi 68481 68482 68483 # Can the C/C++ compiler use precompiled headers? 68484 68485 68486 ############################################################################### 68487 # 68488 # Can the C/C++ compiler use precompiled headers? 68489 # 68490 # Check whether --enable-precompiled-headers was given. 68491 if test "${enable_precompiled_headers+set}" = set; then : 68492 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 68493 else 68494 ENABLE_PRECOMPH=yes 68495 fi 68496 68497 68498 USE_PRECOMPILED_HEADER=true 68499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 68500 $as_echo_n "checking If precompiled header is enabled... " >&6; } 68501 if test "x$ENABLE_PRECOMPH" = xno; then 68502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 68503 $as_echo "no, forced" >&6; } 68504 USE_PRECOMPILED_HEADER=false 68505 elif test "x$ICECC" != "x"; then 68506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 68507 $as_echo "no, does not work effectively with icecc" >&6; } 68508 USE_PRECOMPILED_HEADER=false 68509 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 68510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 68511 $as_echo "no, does not work with Solaris Studio" >&6; } 68512 USE_PRECOMPILED_HEADER=false 68513 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 68514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 68515 $as_echo "no, does not work with xlc" >&6; } 68516 USE_PRECOMPILED_HEADER=false 68517 else 68518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68519 $as_echo "yes" >&6; } 68520 fi 68521 68522 if test "x$ENABLE_PRECOMPH" = xyes; then 68523 # Check that the compiler actually supports precomp headers. 68524 if test "x$TOOLCHAIN_TYPE" = xgcc; then 68525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 68526 $as_echo_n "checking that precompiled headers work... " >&6; } 68527 echo "int alfa();" > conftest.h 68528 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 68529 if test ! -f conftest.hpp.gch; then 68530 USE_PRECOMPILED_HEADER=false 68531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68532 $as_echo "no" >&6; } 68533 else 68534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68535 $as_echo "yes" >&6; } 68536 fi 68537 $RM conftest.h conftest.hpp.gch 68538 fi 68539 fi 68540 68541 68542 68543 68544 # Setup use of ccache, if available 68545 68546 # Check whether --enable-ccache was given. 68547 if test "${enable_ccache+set}" = set; then : 68548 enableval=$enable_ccache; 68549 fi 68550 68551 68552 CCACHE_STATUS= 68553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 68554 $as_echo_n "checking is ccache enabled... " >&6; } 68555 if test "x$enable_ccache" = xyes; then 68556 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 68557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68558 $as_echo "yes" >&6; } 68559 OLD_PATH="$PATH" 68560 if test "x$TOOLCHAIN_PATH" != x; then 68561 PATH=$TOOLCHAIN_PATH:$PATH 68562 fi 68563 68564 68565 68566 # Publish this variable in the help. 68567 68568 68569 if [ -z "${CCACHE+x}" ]; then 68570 # The variable is not set by user, try to locate tool using the code snippet 68571 for ac_prog in ccache 68572 do 68573 # Extract the first word of "$ac_prog", so it can be a program name with args. 68574 set dummy $ac_prog; ac_word=$2 68575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68576 $as_echo_n "checking for $ac_word... " >&6; } 68577 if ${ac_cv_path_CCACHE+:} false; then : 68578 $as_echo_n "(cached) " >&6 68579 else 68580 case $CCACHE in 68581 [\\/]* | ?:[\\/]*) 68582 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68583 ;; 68584 *) 68585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68586 for as_dir in $PATH 68587 do 68588 IFS=$as_save_IFS 68589 test -z "$as_dir" && as_dir=. 68590 for ac_exec_ext in '' $ac_executable_extensions; do 68591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68592 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68594 break 2 68595 fi 68596 done 68597 done 68598 IFS=$as_save_IFS 68599 68600 ;; 68601 esac 68602 fi 68603 CCACHE=$ac_cv_path_CCACHE 68604 if test -n "$CCACHE"; then 68605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68606 $as_echo "$CCACHE" >&6; } 68607 else 68608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68609 $as_echo "no" >&6; } 68610 fi 68611 68612 68613 test -n "$CCACHE" && break 68614 done 68615 68616 else 68617 # The variable is set, but is it from the command line or the environment? 68618 68619 # Try to remove the string !CCACHE! from our list. 68620 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 68621 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68622 # If it failed, the variable was not from the command line. Ignore it, 68623 # but warn the user (except for BASH, which is always set by the calling BASH). 68624 if test "xCCACHE" != xBASH; then 68625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 68626 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 68627 fi 68628 # Try to locate tool using the code snippet 68629 for ac_prog in ccache 68630 do 68631 # Extract the first word of "$ac_prog", so it can be a program name with args. 68632 set dummy $ac_prog; ac_word=$2 68633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68634 $as_echo_n "checking for $ac_word... " >&6; } 68635 if ${ac_cv_path_CCACHE+:} false; then : 68636 $as_echo_n "(cached) " >&6 68637 else 68638 case $CCACHE in 68639 [\\/]* | ?:[\\/]*) 68640 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68641 ;; 68642 *) 68643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68644 for as_dir in $PATH 68645 do 68646 IFS=$as_save_IFS 68647 test -z "$as_dir" && as_dir=. 68648 for ac_exec_ext in '' $ac_executable_extensions; do 68649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68650 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68652 break 2 68653 fi 68654 done 68655 done 68656 IFS=$as_save_IFS 68657 68658 ;; 68659 esac 68660 fi 68661 CCACHE=$ac_cv_path_CCACHE 68662 if test -n "$CCACHE"; then 68663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68664 $as_echo "$CCACHE" >&6; } 68665 else 68666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68667 $as_echo "no" >&6; } 68668 fi 68669 68670 68671 test -n "$CCACHE" && break 68672 done 68673 68674 else 68675 # If it succeeded, then it was overridden by the user. We will use it 68676 # for the tool. 68677 68678 # First remove it from the list of overridden variables, so we can test 68679 # for unknown variables in the end. 68680 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68681 68682 # Check if we try to supply an empty value 68683 if test "x$CCACHE" = x; then 68684 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 68685 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 68686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 68687 $as_echo_n "checking for CCACHE... " >&6; } 68688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68689 $as_echo "disabled" >&6; } 68690 else 68691 # Check if the provided tool contains a complete path. 68692 tool_specified="$CCACHE" 68693 tool_basename="${tool_specified##*/}" 68694 if test "x$tool_basename" = "x$tool_specified"; then 68695 # A command without a complete path is provided, search $PATH. 68696 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 68697 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 68698 # Extract the first word of "$tool_basename", so it can be a program name with args. 68699 set dummy $tool_basename; ac_word=$2 68700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68701 $as_echo_n "checking for $ac_word... " >&6; } 68702 if ${ac_cv_path_CCACHE+:} false; then : 68703 $as_echo_n "(cached) " >&6 68704 else 68705 case $CCACHE in 68706 [\\/]* | ?:[\\/]*) 68707 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68708 ;; 68709 *) 68710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68711 for as_dir in $PATH 68712 do 68713 IFS=$as_save_IFS 68714 test -z "$as_dir" && as_dir=. 68715 for ac_exec_ext in '' $ac_executable_extensions; do 68716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68717 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68719 break 2 68720 fi 68721 done 68722 done 68723 IFS=$as_save_IFS 68724 68725 ;; 68726 esac 68727 fi 68728 CCACHE=$ac_cv_path_CCACHE 68729 if test -n "$CCACHE"; then 68730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68731 $as_echo "$CCACHE" >&6; } 68732 else 68733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68734 $as_echo "no" >&6; } 68735 fi 68736 68737 68738 if test "x$CCACHE" = x; then 68739 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68740 fi 68741 else 68742 # Otherwise we believe it is a complete path. Use it as it is. 68743 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 68744 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 68745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 68746 $as_echo_n "checking for CCACHE... " >&6; } 68747 if test ! -x "$tool_specified"; then 68748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68749 $as_echo "not found" >&6; } 68750 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 68751 fi 68752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68753 $as_echo "$tool_specified" >&6; } 68754 fi 68755 fi 68756 fi 68757 68758 fi 68759 68760 68761 68762 if test "x$CCACHE" = x; then 68763 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 68764 fi 68765 68766 68767 PATH="$OLD_PATH" 68768 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 68769 CCACHE_STATUS="Active ($CCACHE_VERSION)" 68770 else 68771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68772 $as_echo "no" >&6; } 68773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 68774 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 68775 fi 68776 elif test "x$enable_ccache" = xno; then 68777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 68778 $as_echo "no, explicitly disabled" >&6; } 68779 CCACHE_STATUS="Disabled" 68780 elif test "x$enable_ccache" = x; then 68781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68782 $as_echo "no" >&6; } 68783 else 68784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 68785 $as_echo "unknown" >&6; } 68786 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 68787 fi 68788 68789 68790 68791 # Check whether --with-ccache-dir was given. 68792 if test "${with_ccache_dir+set}" = set; then : 68793 withval=$with_ccache_dir; 68794 fi 68795 68796 68797 if test "x$with_ccache_dir" != x; then 68798 # When using a non home ccache directory, assume the use is to share ccache files 68799 # with other users. Thus change the umask. 68800 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 68801 if test "x$CCACHE" = x; then 68802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 68803 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 68804 fi 68805 fi 68806 68807 if test "x$CCACHE" != x; then 68808 68809 if test "x$CCACHE" != x; then 68810 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 68811 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 68812 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 68813 if test "x$HAS_BAD_CCACHE" != "x"; then 68814 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 68815 fi 68816 fi 68817 if test "x$USE_PRECOMPILED_HEADER" = "xtrue"; then 68818 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 68819 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 68820 if test "x$HAS_BAD_CCACHE" != "x"; then 68821 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 68822 fi 68823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 68824 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 68825 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 68826 PUSHED_FLAGS="$CXXFLAGS" 68827 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 68828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68829 /* end confdefs.h. */ 68830 68831 int 68832 main () 68833 { 68834 68835 ; 68836 return 0; 68837 } 68838 _ACEOF 68839 if ac_fn_cxx_try_compile "$LINENO"; then : 68840 CC_KNOWS_CCACHE_TRICK=yes 68841 else 68842 CC_KNOWS_CCACHE_TRICK=no 68843 fi 68844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68845 CXXFLAGS="$PUSHED_FLAGS" 68846 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 68847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68848 $as_echo "yes" >&6; } 68849 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 68850 68851 CCACHE_SLOPPINESS=pch_defines,time_macros 68852 else 68853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68854 $as_echo "no" >&6; } 68855 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 68856 fi 68857 fi 68858 68859 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 68860 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 68861 68862 if test "x$SET_CCACHE_DIR" != x; then 68863 mkdir -p $CCACHE_DIR > /dev/null 2>&1 68864 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 68865 fi 68866 fi 68867 68868 fi 68869 68870 68871 ############################################################################### 68872 # 68873 # And now the finish... 68874 # 68875 ############################################################################### 68876 68877 # Check for some common pitfalls 68878 68879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 68880 file_to_test="$TOPDIR/LICENSE" 68881 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 68882 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 68883 fi 68884 fi 68885 68886 68887 # Did user specify any unknown variables? 68888 68889 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 68890 # Replace the separating ! with spaces before presenting for end user. 68891 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 68892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 68893 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 68894 fi 68895 68896 68897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 68898 $as_echo_n "checking if build directory is on local disk... " >&6; } 68899 68900 # df -l lists only local disks; if the given directory is not found then 68901 # a non-zero exit code is given 68902 if test "x$DF" = x; then 68903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 68904 # msys does not have df; use Windows "net use" instead. 68905 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 68906 if test "x$IS_NETWORK_DISK" = x; then 68907 OUTPUT_DIR_IS_LOCAL="yes" 68908 else 68909 OUTPUT_DIR_IS_LOCAL="no" 68910 fi 68911 else 68912 # No df here, say it's local 68913 OUTPUT_DIR_IS_LOCAL="yes" 68914 fi 68915 else 68916 # JDK-8189619 68917 # df on AIX does not understand -l. On modern AIXes it understands "-T local" which 68918 # is the same. On older AIXes we just continue to live with a "not local build" warning. 68919 if test "x$OPENJDK_TARGET_OS" = xaix; then 68920 DF_LOCAL_ONLY_OPTION='-T local' 68921 else 68922 DF_LOCAL_ONLY_OPTION='-l' 68923 fi 68924 if $DF $DF_LOCAL_ONLY_OPTION $OUTPUTDIR > /dev/null 2>&1; then 68925 OUTPUT_DIR_IS_LOCAL="yes" 68926 else 68927 OUTPUT_DIR_IS_LOCAL="no" 68928 fi 68929 fi 68930 68931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 68932 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 68933 68934 68935 68936 # Check if the user has any old-style ALT_ variables set. 68937 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 68938 68939 # Before generating output files, test if they exist. If they do, this is a reconfigure. 68940 # Since we can't properly handle the dependencies for this, warn the user about the situation 68941 if test -e $OUTPUTDIR/spec.gmk; then 68942 IS_RECONFIGURE=yes 68943 else 68944 IS_RECONFIGURE=no 68945 fi 68946 68947 68948 # At the end, call the custom hook. (Dummy macro if no custom sources available) 68949 68950 68951 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 68952 68953 # Keep feature lists sorted and free of duplicates 68954 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 68955 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 68956 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 68957 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 68958 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 68959 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 68960 68961 # Validate features 68962 for variant in $JVM_VARIANTS; do 68963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 68964 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 68965 features_var_name=JVM_FEATURES_$variant 68966 JVM_FEATURES_TO_TEST=${!features_var_name} 68967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 68968 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 68969 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 68970 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 68971 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 68972 if test "x$INVALID_FEATURES" != x; then 68973 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 68974 fi 68975 done 68976 68977 68978 # We're messing a bit with internal autoconf variables to put the config.status 68979 # in the output directory instead of the current directory. 68980 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 68981 68982 # Create the actual output files. Now the main work of configure is done. 68983 cat >confcache <<\_ACEOF 68984 # This file is a shell script that caches the results of configure 68985 # tests run on this system so they can be shared between configure 68986 # scripts and configure runs, see configure's option --config-cache. 68987 # It is not useful on other systems. If it contains results you don't 68988 # want to keep, you may remove or edit it. 68989 # 68990 # config.status only pays attention to the cache file if you give it 68991 # the --recheck option to rerun configure. 68992 # 68993 # `ac_cv_env_foo' variables (set or unset) will be overridden when 68994 # loading this file, other *unset* `ac_cv_foo' will be assigned the 68995 # following values. 68996 68997 _ACEOF 68998 68999 # The following way of writing the cache mishandles newlines in values, 69000 # but we know of no workaround that is simple, portable, and efficient. 69001 # So, we kill variables containing newlines. 69002 # Ultrix sh set writes to stderr and can't be redirected directly, 69003 # and sets the high bit in the cache file unless we assign to the vars. 69004 ( 69005 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 69006 eval ac_val=\$$ac_var 69007 case $ac_val in #( 69008 *${as_nl}*) 69009 case $ac_var in #( 69010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 69011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 69012 esac 69013 case $ac_var in #( 69014 _ | IFS | as_nl) ;; #( 69015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 69016 *) { eval $ac_var=; unset $ac_var;} ;; 69017 esac ;; 69018 esac 69019 done 69020 69021 (set) 2>&1 | 69022 case $as_nl`(ac_space=' '; set) 2>&1` in #( 69023 *${as_nl}ac_space=\ *) 69024 # `set' does not quote correctly, so add quotes: double-quote 69025 # substitution turns \\\\ into \\, and sed turns \\ into \. 69026 sed -n \ 69027 "s/'/'\\\\''/g; 69028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 69029 ;; #( 69030 *) 69031 # `set' quotes correctly as required by POSIX, so do not add quotes. 69032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 69033 ;; 69034 esac | 69035 sort 69036 ) | 69037 sed ' 69038 /^ac_cv_env_/b end 69039 t clear 69040 :clear 69041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 69042 t end 69043 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 69044 :end' >>confcache 69045 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 69046 if test -w "$cache_file"; then 69047 if test "x$cache_file" != "x/dev/null"; then 69048 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 69049 $as_echo "$as_me: updating cache $cache_file" >&6;} 69050 if test ! -f "$cache_file" || test -h "$cache_file"; then 69051 cat confcache >"$cache_file" 69052 else 69053 case $cache_file in #( 69054 */* | ?:*) 69055 mv -f confcache "$cache_file"$$ && 69056 mv -f "$cache_file"$$ "$cache_file" ;; #( 69057 *) 69058 mv -f confcache "$cache_file" ;; 69059 esac 69060 fi 69061 fi 69062 else 69063 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 69064 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 69065 fi 69066 fi 69067 rm -f confcache 69068 69069 test "x$prefix" = xNONE && prefix=$ac_default_prefix 69070 # Let make expand exec_prefix. 69071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 69072 69073 # Transform confdefs.h into DEFS. 69074 # Protect against shell expansion while executing Makefile rules. 69075 # Protect against Makefile macro expansion. 69076 # 69077 # If the first sed substitution is executed (which looks for macros that 69078 # take arguments), then branch to the quote section. Otherwise, 69079 # look for a macro that doesn't take arguments. 69080 ac_script=' 69081 :mline 69082 /\\$/{ 69083 N 69084 s,\\\n,, 69085 b mline 69086 } 69087 t clear 69088 :clear 69089 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 69090 t quote 69091 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 69092 t quote 69093 b any 69094 :quote 69095 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 69096 s/\[/\\&/g 69097 s/\]/\\&/g 69098 s/\$/$$/g 69099 H 69100 :any 69101 ${ 69102 g 69103 s/^\n// 69104 s/\n/ /g 69105 p 69106 } 69107 ' 69108 DEFS=`sed -n "$ac_script" confdefs.h` 69109 69110 69111 ac_libobjs= 69112 ac_ltlibobjs= 69113 U= 69114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 69115 # 1. Remove the extension, and $U if already installed. 69116 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 69117 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 69118 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 69119 # will be set to the directory where LIBOBJS objects are built. 69120 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 69121 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 69122 done 69123 LIBOBJS=$ac_libobjs 69124 69125 LTLIBOBJS=$ac_ltlibobjs 69126 69127 69128 69129 : "${CONFIG_STATUS=./config.status}" 69130 ac_write_fail=0 69131 ac_clean_files_save=$ac_clean_files 69132 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 69133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 69134 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 69135 as_write_fail=0 69136 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 69137 #! $SHELL 69138 # Generated by $as_me. 69139 # Run this file to recreate the current configuration. 69140 # Compiler output produced by configure, useful for debugging 69141 # configure, is in config.log if it exists. 69142 69143 debug=false 69144 ac_cs_recheck=false 69145 ac_cs_silent=false 69146 69147 SHELL=\${CONFIG_SHELL-$SHELL} 69148 export SHELL 69149 _ASEOF 69150 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 69151 ## -------------------- ## 69152 ## M4sh Initialization. ## 69153 ## -------------------- ## 69154 69155 # Be more Bourne compatible 69156 DUALCASE=1; export DUALCASE # for MKS sh 69157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 69158 emulate sh 69159 NULLCMD=: 69160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 69161 # is contrary to our usage. Disable this feature. 69162 alias -g '${1+"$@"}'='"$@"' 69163 setopt NO_GLOB_SUBST 69164 else 69165 case `(set -o) 2>/dev/null` in #( 69166 *posix*) : 69167 set -o posix ;; #( 69168 *) : 69169 ;; 69170 esac 69171 fi 69172 69173 69174 as_nl=' 69175 ' 69176 export as_nl 69177 # Printing a long string crashes Solaris 7 /usr/bin/printf. 69178 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 69179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 69180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 69181 # Prefer a ksh shell builtin over an external printf program on Solaris, 69182 # but without wasting forks for bash or zsh. 69183 if test -z "$BASH_VERSION$ZSH_VERSION" \ 69184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 69185 as_echo='print -r --' 69186 as_echo_n='print -rn --' 69187 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 69188 as_echo='printf %s\n' 69189 as_echo_n='printf %s' 69190 else 69191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 69192 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 69193 as_echo_n='/usr/ucb/echo -n' 69194 else 69195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 69196 as_echo_n_body='eval 69197 arg=$1; 69198 case $arg in #( 69199 *"$as_nl"*) 69200 expr "X$arg" : "X\\(.*\\)$as_nl"; 69201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 69202 esac; 69203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 69204 ' 69205 export as_echo_n_body 69206 as_echo_n='sh -c $as_echo_n_body as_echo' 69207 fi 69208 export as_echo_body 69209 as_echo='sh -c $as_echo_body as_echo' 69210 fi 69211 69212 # The user is always right. 69213 if test "${PATH_SEPARATOR+set}" != set; then 69214 PATH_SEPARATOR=: 69215 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 69216 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 69217 PATH_SEPARATOR=';' 69218 } 69219 fi 69220 69221 69222 # IFS 69223 # We need space, tab and new line, in precisely that order. Quoting is 69224 # there to prevent editors from complaining about space-tab. 69225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 69226 # splitting by setting IFS to empty value.) 69227 IFS=" "" $as_nl" 69228 69229 # Find who we are. Look in the path if we contain no directory separator. 69230 as_myself= 69231 case $0 in #(( 69232 *[\\/]* ) as_myself=$0 ;; 69233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 69234 for as_dir in $PATH 69235 do 69236 IFS=$as_save_IFS 69237 test -z "$as_dir" && as_dir=. 69238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 69239 done 69240 IFS=$as_save_IFS 69241 69242 ;; 69243 esac 69244 # We did not find ourselves, most probably we were run as `sh COMMAND' 69245 # in which case we are not to be found in the path. 69246 if test "x$as_myself" = x; then 69247 as_myself=$0 69248 fi 69249 if test ! -f "$as_myself"; then 69250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 69251 exit 1 69252 fi 69253 69254 # Unset variables that we do not need and which cause bugs (e.g. in 69255 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 69256 # suppresses any "Segmentation fault" message there. '((' could 69257 # trigger a bug in pdksh 5.2.14. 69258 for as_var in BASH_ENV ENV MAIL MAILPATH 69259 do eval test x\${$as_var+set} = xset \ 69260 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 69261 done 69262 PS1='$ ' 69263 PS2='> ' 69264 PS4='+ ' 69265 69266 # NLS nuisances. 69267 LC_ALL=C 69268 export LC_ALL 69269 LANGUAGE=C 69270 export LANGUAGE 69271 69272 # CDPATH. 69273 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 69274 69275 69276 # as_fn_error STATUS ERROR [LINENO LOG_FD] 69277 # ---------------------------------------- 69278 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 69279 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 69280 # script with STATUS, using 1 if that was 0. 69281 as_fn_error () 69282 { 69283 as_status=$1; test $as_status -eq 0 && as_status=1 69284 if test "$4"; then 69285 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 69286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 69287 fi 69288 $as_echo "$as_me: error: $2" >&2 69289 as_fn_exit $as_status 69290 } # as_fn_error 69291 69292 69293 # as_fn_set_status STATUS 69294 # ----------------------- 69295 # Set $? to STATUS, without forking. 69296 as_fn_set_status () 69297 { 69298 return $1 69299 } # as_fn_set_status 69300 69301 # as_fn_exit STATUS 69302 # ----------------- 69303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 69304 as_fn_exit () 69305 { 69306 set +e 69307 as_fn_set_status $1 69308 exit $1 69309 } # as_fn_exit 69310 69311 # as_fn_unset VAR 69312 # --------------- 69313 # Portably unset VAR. 69314 as_fn_unset () 69315 { 69316 { eval $1=; unset $1;} 69317 } 69318 as_unset=as_fn_unset 69319 # as_fn_append VAR VALUE 69320 # ---------------------- 69321 # Append the text in VALUE to the end of the definition contained in VAR. Take 69322 # advantage of any shell optimizations that allow amortized linear growth over 69323 # repeated appends, instead of the typical quadratic growth present in naive 69324 # implementations. 69325 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 69326 eval 'as_fn_append () 69327 { 69328 eval $1+=\$2 69329 }' 69330 else 69331 as_fn_append () 69332 { 69333 eval $1=\$$1\$2 69334 } 69335 fi # as_fn_append 69336 69337 # as_fn_arith ARG... 69338 # ------------------ 69339 # Perform arithmetic evaluation on the ARGs, and store the result in the 69340 # global $as_val. Take advantage of shells that can avoid forks. The arguments 69341 # must be portable across $(()) and expr. 69342 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 69343 eval 'as_fn_arith () 69344 { 69345 as_val=$(( $* )) 69346 }' 69347 else 69348 as_fn_arith () 69349 { 69350 as_val=`expr "$@" || test $? -eq 1` 69351 } 69352 fi # as_fn_arith 69353 69354 69355 if expr a : '\(a\)' >/dev/null 2>&1 && 69356 test "X`expr 00001 : '.*\(...\)'`" = X001; then 69357 as_expr=expr 69358 else 69359 as_expr=false 69360 fi 69361 69362 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 69363 as_basename=basename 69364 else 69365 as_basename=false 69366 fi 69367 69368 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 69369 as_dirname=dirname 69370 else 69371 as_dirname=false 69372 fi 69373 69374 as_me=`$as_basename -- "$0" || 69375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69376 X"$0" : 'X\(//\)$' \| \ 69377 X"$0" : 'X\(/\)' \| . 2>/dev/null || 69378 $as_echo X/"$0" | 69379 sed '/^.*\/\([^/][^/]*\)\/*$/{ 69380 s//\1/ 69381 q 69382 } 69383 /^X\/\(\/\/\)$/{ 69384 s//\1/ 69385 q 69386 } 69387 /^X\/\(\/\).*/{ 69388 s//\1/ 69389 q 69390 } 69391 s/.*/./; q'` 69392 69393 # Avoid depending upon Character Ranges. 69394 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 69395 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 69396 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 69397 as_cr_digits='0123456789' 69398 as_cr_alnum=$as_cr_Letters$as_cr_digits 69399 69400 ECHO_C= ECHO_N= ECHO_T= 69401 case `echo -n x` in #((((( 69402 -n*) 69403 case `echo 'xy\c'` in 69404 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 69405 xy) ECHO_C='\c';; 69406 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 69407 ECHO_T=' ';; 69408 esac;; 69409 *) 69410 ECHO_N='-n';; 69411 esac 69412 69413 rm -f conf$$ conf$$.exe conf$$.file 69414 if test -d conf$$.dir; then 69415 rm -f conf$$.dir/conf$$.file 69416 else 69417 rm -f conf$$.dir 69418 mkdir conf$$.dir 2>/dev/null 69419 fi 69420 if (echo >conf$$.file) 2>/dev/null; then 69421 if ln -s conf$$.file conf$$ 2>/dev/null; then 69422 as_ln_s='ln -s' 69423 # ... but there are two gotchas: 69424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 69425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 69426 # In both cases, we have to default to `cp -pR'. 69427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 69428 as_ln_s='cp -pR' 69429 elif ln conf$$.file conf$$ 2>/dev/null; then 69430 as_ln_s=ln 69431 else 69432 as_ln_s='cp -pR' 69433 fi 69434 else 69435 as_ln_s='cp -pR' 69436 fi 69437 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 69438 rmdir conf$$.dir 2>/dev/null 69439 69440 69441 # as_fn_mkdir_p 69442 # ------------- 69443 # Create "$as_dir" as a directory, including parents if necessary. 69444 as_fn_mkdir_p () 69445 { 69446 69447 case $as_dir in #( 69448 -*) as_dir=./$as_dir;; 69449 esac 69450 test -d "$as_dir" || eval $as_mkdir_p || { 69451 as_dirs= 69452 while :; do 69453 case $as_dir in #( 69454 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 69455 *) as_qdir=$as_dir;; 69456 esac 69457 as_dirs="'$as_qdir' $as_dirs" 69458 as_dir=`$as_dirname -- "$as_dir" || 69459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 69460 X"$as_dir" : 'X\(//\)[^/]' \| \ 69461 X"$as_dir" : 'X\(//\)$' \| \ 69462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 69463 $as_echo X"$as_dir" | 69464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 69465 s//\1/ 69466 q 69467 } 69468 /^X\(\/\/\)[^/].*/{ 69469 s//\1/ 69470 q 69471 } 69472 /^X\(\/\/\)$/{ 69473 s//\1/ 69474 q 69475 } 69476 /^X\(\/\).*/{ 69477 s//\1/ 69478 q 69479 } 69480 s/.*/./; q'` 69481 test -d "$as_dir" && break 69482 done 69483 test -z "$as_dirs" || eval "mkdir $as_dirs" 69484 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 69485 69486 69487 } # as_fn_mkdir_p 69488 if mkdir -p . 2>/dev/null; then 69489 as_mkdir_p='mkdir -p "$as_dir"' 69490 else 69491 test -d ./-p && rmdir ./-p 69492 as_mkdir_p=false 69493 fi 69494 69495 69496 # as_fn_executable_p FILE 69497 # ----------------------- 69498 # Test if FILE is an executable regular file. 69499 as_fn_executable_p () 69500 { 69501 test -f "$1" && test -x "$1" 69502 } # as_fn_executable_p 69503 as_test_x='test -x' 69504 as_executable_p=as_fn_executable_p 69505 69506 # Sed expression to map a string onto a valid CPP name. 69507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 69508 69509 # Sed expression to map a string onto a valid variable name. 69510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 69511 69512 69513 exec 6>&1 69514 ## ----------------------------------- ## 69515 ## Main body of $CONFIG_STATUS script. ## 69516 ## ----------------------------------- ## 69517 _ASEOF 69518 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 69519 69520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69521 # Save the log message, to keep $0 and so on meaningful, and to 69522 # report actual input values of CONFIG_FILES etc. instead of their 69523 # values after options handling. 69524 ac_log=" 69525 This file was extended by OpenJDK $as_me jdk9, which was 69526 generated by GNU Autoconf 2.69. Invocation command line was 69527 69528 CONFIG_FILES = $CONFIG_FILES 69529 CONFIG_HEADERS = $CONFIG_HEADERS 69530 CONFIG_LINKS = $CONFIG_LINKS 69531 CONFIG_COMMANDS = $CONFIG_COMMANDS 69532 $ $0 $@ 69533 69534 on `(hostname || uname -n) 2>/dev/null | sed 1q` 69535 " 69536 69537 _ACEOF 69538 69539 case $ac_config_files in *" 69540 "*) set x $ac_config_files; shift; ac_config_files=$*;; 69541 esac 69542 69543 69544 69545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69546 # Files that config.status was made for. 69547 config_files="$ac_config_files" 69548 69549 _ACEOF 69550 69551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69552 ac_cs_usage="\ 69553 \`$as_me' instantiates files and other configuration actions 69554 from templates according to the current configuration. Unless the files 69555 and actions are specified as TAGs, all are instantiated by default. 69556 69557 Usage: $0 [OPTION]... [TAG]... 69558 69559 -h, --help print this help, then exit 69560 -V, --version print version number and configuration settings, then exit 69561 --config print configuration, then exit 69562 -q, --quiet, --silent 69563 do not print progress messages 69564 -d, --debug don't remove temporary files 69565 --recheck update $as_me by reconfiguring in the same conditions 69566 --file=FILE[:TEMPLATE] 69567 instantiate the configuration file FILE 69568 69569 Configuration files: 69570 $config_files 69571 69572 Report bugs to <build-dev@openjdk.java.net>. 69573 OpenJDK home page: <http://openjdk.java.net>." 69574 69575 _ACEOF 69576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69577 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 69578 ac_cs_version="\\ 69579 OpenJDK config.status jdk9 69580 configured by $0, generated by GNU Autoconf 2.69, 69581 with options \\"\$ac_cs_config\\" 69582 69583 Copyright (C) 2012 Free Software Foundation, Inc. 69584 This config.status script is free software; the Free Software Foundation 69585 gives unlimited permission to copy, distribute and modify it." 69586 69587 ac_pwd='$ac_pwd' 69588 srcdir='$srcdir' 69589 AWK='$AWK' 69590 test -n "\$AWK" || AWK=awk 69591 _ACEOF 69592 69593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69594 # The default lists apply if the user does not specify any file. 69595 ac_need_defaults=: 69596 while test $# != 0 69597 do 69598 case $1 in 69599 --*=?*) 69600 ac_option=`expr "X$1" : 'X\([^=]*\)='` 69601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 69602 ac_shift=: 69603 ;; 69604 --*=) 69605 ac_option=`expr "X$1" : 'X\([^=]*\)='` 69606 ac_optarg= 69607 ac_shift=: 69608 ;; 69609 *) 69610 ac_option=$1 69611 ac_optarg=$2 69612 ac_shift=shift 69613 ;; 69614 esac 69615 69616 case $ac_option in 69617 # Handling of the options. 69618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 69619 ac_cs_recheck=: ;; 69620 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 69621 $as_echo "$ac_cs_version"; exit ;; 69622 --config | --confi | --conf | --con | --co | --c ) 69623 $as_echo "$ac_cs_config"; exit ;; 69624 --debug | --debu | --deb | --de | --d | -d ) 69625 debug=: ;; 69626 --file | --fil | --fi | --f ) 69627 $ac_shift 69628 case $ac_optarg in 69629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 69630 '') as_fn_error $? "missing file argument" ;; 69631 esac 69632 as_fn_append CONFIG_FILES " '$ac_optarg'" 69633 ac_need_defaults=false;; 69634 --he | --h | --help | --hel | -h ) 69635 $as_echo "$ac_cs_usage"; exit ;; 69636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 69637 | -silent | --silent | --silen | --sile | --sil | --si | --s) 69638 ac_cs_silent=: ;; 69639 69640 # This is an error. 69641 -*) as_fn_error $? "unrecognized option: \`$1' 69642 Try \`$0 --help' for more information." ;; 69643 69644 *) as_fn_append ac_config_targets " $1" 69645 ac_need_defaults=false ;; 69646 69647 esac 69648 shift 69649 done 69650 69651 ac_configure_extra_args= 69652 69653 if $ac_cs_silent; then 69654 exec 6>/dev/null 69655 ac_configure_extra_args="$ac_configure_extra_args --silent" 69656 fi 69657 69658 _ACEOF 69659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69660 if \$ac_cs_recheck; then 69661 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 69662 shift 69663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 69664 CONFIG_SHELL='$SHELL' 69665 export CONFIG_SHELL 69666 exec "\$@" 69667 fi 69668 69669 _ACEOF 69670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69671 exec 5>>config.log 69672 { 69673 echo 69674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 69675 ## Running $as_me. ## 69676 _ASBOX 69677 $as_echo "$ac_log" 69678 } >&5 69679 69680 _ACEOF 69681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69682 _ACEOF 69683 69684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69685 69686 # Handling of arguments. 69687 for ac_config_target in $ac_config_targets 69688 do 69689 case $ac_config_target in 69690 "$OUTPUTDIR/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 69691 "$OUTPUTDIR/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 69692 "$OUTPUTDIR/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 69693 "$OUTPUTDIR/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 69694 "$OUTPUTDIR/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 69695 69696 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 69697 esac 69698 done 69699 69700 69701 # If the user did not use the arguments to specify the items to instantiate, 69702 # then the envvar interface is used. Set only those that are not. 69703 # We use the long form for the default assignment because of an extremely 69704 # bizarre bug on SunOS 4.1.3. 69705 if $ac_need_defaults; then 69706 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 69707 fi 69708 69709 # Have a temporary directory for convenience. Make it in the build tree 69710 # simply because there is no reason against having it here, and in addition, 69711 # creating and moving files from /tmp can sometimes cause problems. 69712 # Hook for its removal unless debugging. 69713 # Note that there is a small window in which the directory will not be cleaned: 69714 # after its creation but before its name has been assigned to `$tmp'. 69715 $debug || 69716 { 69717 tmp= ac_tmp= 69718 trap 'exit_status=$? 69719 : "${ac_tmp:=$tmp}" 69720 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 69721 ' 0 69722 trap 'as_fn_exit 1' 1 2 13 15 69723 } 69724 # Create a (secure) tmp directory for tmp files. 69725 69726 { 69727 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 69728 test -d "$tmp" 69729 } || 69730 { 69731 tmp=./conf$$-$RANDOM 69732 (umask 077 && mkdir "$tmp") 69733 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 69734 ac_tmp=$tmp 69735 69736 # Set up the scripts for CONFIG_FILES section. 69737 # No need to generate them if there are no CONFIG_FILES. 69738 # This happens for instance with `./config.status config.h'. 69739 if test -n "$CONFIG_FILES"; then 69740 69741 69742 ac_cr=`echo X | tr X '\015'` 69743 # On cygwin, bash can eat \r inside `` if the user requested igncr. 69744 # But we know of no other shell where ac_cr would be empty at this 69745 # point, so we can use a bashism as a fallback. 69746 if test "x$ac_cr" = x; then 69747 eval ac_cr=\$\'\\r\' 69748 fi 69749 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 69750 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 69751 ac_cs_awk_cr='\\r' 69752 else 69753 ac_cs_awk_cr=$ac_cr 69754 fi 69755 69756 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 69757 _ACEOF 69758 69759 69760 { 69761 echo "cat >conf$$subs.awk <<_ACEOF" && 69762 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 69763 echo "_ACEOF" 69764 } >conf$$subs.sh || 69765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69766 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 69767 ac_delim='%!_!# ' 69768 for ac_last_try in false false false false false :; do 69769 . ./conf$$subs.sh || 69770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69771 69772 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 69773 if test $ac_delim_n = $ac_delim_num; then 69774 break 69775 elif $ac_last_try; then 69776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69777 else 69778 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 69779 fi 69780 done 69781 rm -f conf$$subs.sh 69782 69783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69784 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 69785 _ACEOF 69786 sed -n ' 69787 h 69788 s/^/S["/; s/!.*/"]=/ 69789 p 69790 g 69791 s/^[^!]*!// 69792 :repl 69793 t repl 69794 s/'"$ac_delim"'$// 69795 t delim 69796 :nl 69797 h 69798 s/\(.\{148\}\)..*/\1/ 69799 t more1 69800 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 69801 p 69802 n 69803 b repl 69804 :more1 69805 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 69806 p 69807 g 69808 s/.\{148\}// 69809 t nl 69810 :delim 69811 h 69812 s/\(.\{148\}\)..*/\1/ 69813 t more2 69814 s/["\\]/\\&/g; s/^/"/; s/$/"/ 69815 p 69816 b 69817 :more2 69818 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 69819 p 69820 g 69821 s/.\{148\}// 69822 t delim 69823 ' <conf$$subs.awk | sed ' 69824 /^[^""]/{ 69825 N 69826 s/\n// 69827 } 69828 ' >>$CONFIG_STATUS || ac_write_fail=1 69829 rm -f conf$$subs.awk 69830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69831 _ACAWK 69832 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 69833 for (key in S) S_is_set[key] = 1 69834 FS = "" 69835 69836 } 69837 { 69838 line = $ 0 69839 nfields = split(line, field, "@") 69840 substed = 0 69841 len = length(field[1]) 69842 for (i = 2; i < nfields; i++) { 69843 key = field[i] 69844 keylen = length(key) 69845 if (S_is_set[key]) { 69846 value = S[key] 69847 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 69848 len += length(value) + length(field[++i]) 69849 substed = 1 69850 } else 69851 len += 1 + keylen 69852 } 69853 69854 print line 69855 } 69856 69857 _ACAWK 69858 _ACEOF 69859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69860 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 69861 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 69862 else 69863 cat 69864 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 69865 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 69866 _ACEOF 69867 69868 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 69869 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 69870 # trailing colons and then remove the whole line if VPATH becomes empty 69871 # (actually we leave an empty line to preserve line numbers). 69872 if test "x$srcdir" = x.; then 69873 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 69874 h 69875 s/// 69876 s/^/:/ 69877 s/[ ]*$/:/ 69878 s/:\$(srcdir):/:/g 69879 s/:\${srcdir}:/:/g 69880 s/:@srcdir@:/:/g 69881 s/^:*// 69882 s/:*$// 69883 x 69884 s/\(=[ ]*\).*/\1/ 69885 G 69886 s/\n// 69887 s/^[^=]*=[ ]*$// 69888 }' 69889 fi 69890 69891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69892 fi # test -n "$CONFIG_FILES" 69893 69894 69895 eval set X " :F $CONFIG_FILES " 69896 shift 69897 for ac_tag 69898 do 69899 case $ac_tag in 69900 :[FHLC]) ac_mode=$ac_tag; continue;; 69901 esac 69902 case $ac_mode$ac_tag in 69903 :[FHL]*:*);; 69904 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 69905 :[FH]-) ac_tag=-:-;; 69906 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 69907 esac 69908 ac_save_IFS=$IFS 69909 IFS=: 69910 set x $ac_tag 69911 IFS=$ac_save_IFS 69912 shift 69913 ac_file=$1 69914 shift 69915 69916 case $ac_mode in 69917 :L) ac_source=$1;; 69918 :[FH]) 69919 ac_file_inputs= 69920 for ac_f 69921 do 69922 case $ac_f in 69923 -) ac_f="$ac_tmp/stdin";; 69924 *) # Look for the file first in the build tree, then in the source tree 69925 # (if the path is not absolute). The absolute path cannot be DOS-style, 69926 # because $ac_f cannot contain `:'. 69927 test -f "$ac_f" || 69928 case $ac_f in 69929 [\\/$]*) false;; 69930 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 69931 esac || 69932 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 69933 esac 69934 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 69935 as_fn_append ac_file_inputs " '$ac_f'" 69936 done 69937 69938 # Let's still pretend it is `configure' which instantiates (i.e., don't 69939 # use $as_me), people would be surprised to read: 69940 # /* config.h. Generated by config.status. */ 69941 configure_input='Generated from '` 69942 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 69943 `' by configure.' 69944 if test x"$ac_file" != x-; then 69945 configure_input="$ac_file. $configure_input" 69946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 69947 $as_echo "$as_me: creating $ac_file" >&6;} 69948 fi 69949 # Neutralize special characters interpreted by sed in replacement strings. 69950 case $configure_input in #( 69951 *\&* | *\|* | *\\* ) 69952 ac_sed_conf_input=`$as_echo "$configure_input" | 69953 sed 's/[\\\\&|]/\\\\&/g'`;; #( 69954 *) ac_sed_conf_input=$configure_input;; 69955 esac 69956 69957 case $ac_tag in 69958 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 69959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 69960 esac 69961 ;; 69962 esac 69963 69964 ac_dir=`$as_dirname -- "$ac_file" || 69965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 69966 X"$ac_file" : 'X\(//\)[^/]' \| \ 69967 X"$ac_file" : 'X\(//\)$' \| \ 69968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 69969 $as_echo X"$ac_file" | 69970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 69971 s//\1/ 69972 q 69973 } 69974 /^X\(\/\/\)[^/].*/{ 69975 s//\1/ 69976 q 69977 } 69978 /^X\(\/\/\)$/{ 69979 s//\1/ 69980 q 69981 } 69982 /^X\(\/\).*/{ 69983 s//\1/ 69984 q 69985 } 69986 s/.*/./; q'` 69987 as_dir="$ac_dir"; as_fn_mkdir_p 69988 ac_builddir=. 69989 69990 case "$ac_dir" in 69991 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 69992 *) 69993 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 69994 # A ".." for each directory in $ac_dir_suffix. 69995 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 69996 case $ac_top_builddir_sub in 69997 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 69998 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 69999 esac ;; 70000 esac 70001 ac_abs_top_builddir=$ac_pwd 70002 ac_abs_builddir=$ac_pwd$ac_dir_suffix 70003 # for backward compatibility: 70004 ac_top_builddir=$ac_top_build_prefix 70005 70006 case $srcdir in 70007 .) # We are building in place. 70008 ac_srcdir=. 70009 ac_top_srcdir=$ac_top_builddir_sub 70010 ac_abs_top_srcdir=$ac_pwd ;; 70011 [\\/]* | ?:[\\/]* ) # Absolute name. 70012 ac_srcdir=$srcdir$ac_dir_suffix; 70013 ac_top_srcdir=$srcdir 70014 ac_abs_top_srcdir=$srcdir ;; 70015 *) # Relative name. 70016 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 70017 ac_top_srcdir=$ac_top_build_prefix$srcdir 70018 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 70019 esac 70020 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 70021 70022 70023 case $ac_mode in 70024 :F) 70025 # 70026 # CONFIG_FILE 70027 # 70028 70029 _ACEOF 70030 70031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 70032 # If the template does not know about datarootdir, expand it. 70033 # FIXME: This hack should be removed a few years after 2.60. 70034 ac_datarootdir_hack=; ac_datarootdir_seen= 70035 ac_sed_dataroot=' 70036 /datarootdir/ { 70037 p 70038 q 70039 } 70040 /@datadir@/p 70041 /@docdir@/p 70042 /@infodir@/p 70043 /@localedir@/p 70044 /@mandir@/p' 70045 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 70046 *datarootdir*) ac_datarootdir_seen=yes;; 70047 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 70048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 70049 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 70050 _ACEOF 70051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 70052 ac_datarootdir_hack=' 70053 s&@datadir@&$datadir&g 70054 s&@docdir@&$docdir&g 70055 s&@infodir@&$infodir&g 70056 s&@localedir@&$localedir&g 70057 s&@mandir@&$mandir&g 70058 s&\\\${datarootdir}&$datarootdir&g' ;; 70059 esac 70060 _ACEOF 70061 70062 # Neutralize VPATH when `$srcdir' = `.'. 70063 # Shell code in configure.ac might set extrasub. 70064 # FIXME: do we really want to maintain this feature? 70065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 70066 ac_sed_extra="$ac_vpsub 70067 $extrasub 70068 _ACEOF 70069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 70070 :t 70071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 70072 s|@configure_input@|$ac_sed_conf_input|;t t 70073 s&@top_builddir@&$ac_top_builddir_sub&;t t 70074 s&@top_build_prefix@&$ac_top_build_prefix&;t t 70075 s&@srcdir@&$ac_srcdir&;t t 70076 s&@abs_srcdir@&$ac_abs_srcdir&;t t 70077 s&@top_srcdir@&$ac_top_srcdir&;t t 70078 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 70079 s&@builddir@&$ac_builddir&;t t 70080 s&@abs_builddir@&$ac_abs_builddir&;t t 70081 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 70082 $ac_datarootdir_hack 70083 " 70084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 70085 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 70086 70087 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 70088 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 70089 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 70090 "$ac_tmp/out"`; test -z "$ac_out"; } && 70091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 70092 which seems to be undefined. Please make sure it is defined" >&5 70093 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 70094 which seems to be undefined. Please make sure it is defined" >&2;} 70095 70096 rm -f "$ac_tmp/stdin" 70097 case $ac_file in 70098 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 70099 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 70100 esac \ 70101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 70102 ;; 70103 70104 70105 70106 esac 70107 70108 done # for ac_tag 70109 70110 70111 as_fn_exit 0 70112 _ACEOF 70113 ac_clean_files=$ac_clean_files_save 70114 70115 test $ac_write_fail = 0 || 70116 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 70117 70118 70119 # configure is writing to config.log, and then calls config.status. 70120 # config.status does its own redirection, appending to config.log. 70121 # Unfortunately, on DOS this fails, as config.log is still kept open 70122 # by configure, so config.status won't be able to write to it; its 70123 # output is simply discarded. So we exec the FD to /dev/null, 70124 # effectively closing config.log, so it can be properly (re)opened and 70125 # appended to by config.status. When coming back to configure, we 70126 # need to make the FD available again. 70127 if test "$no_create" != yes; then 70128 ac_cs_success=: 70129 ac_config_status_args= 70130 test "$silent" = yes && 70131 ac_config_status_args="$ac_config_status_args --quiet" 70132 exec 5>/dev/null 70133 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 70134 exec 5>>config.log 70135 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 70136 # would make configure fail if this is the last instruction. 70137 $ac_cs_success || as_fn_exit 1 70138 fi 70139 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 70140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 70141 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 70142 fi 70143 70144 70145 # After AC_OUTPUT, we need to do final work 70146 70147 70148 # Try to move config.log (generated by autoconf) to the configure-support directory. 70149 if test -e ./config.log; then 70150 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 70151 fi 70152 70153 # Rotate our log file (configure.log) 70154 if test -e "$OUTPUTDIR/configure.log.old"; then 70155 $RM -f "$OUTPUTDIR/configure.log.old" 70156 fi 70157 if test -e "$OUTPUTDIR/configure.log"; then 70158 $MV -f "$OUTPUTDIR/configure.log" "$OUTPUTDIR/configure.log.old" 2> /dev/null 70159 fi 70160 70161 # Move configure.log from current directory to the build output root 70162 if test -e ./configure.log; then 70163 $MV -f ./configure.log "$OUTPUTDIR/configure.log" 2> /dev/null 70164 fi 70165 70166 # Make the compare script executable 70167 $CHMOD +x $OUTPUTDIR/compare.sh 70168 70169 70170 # Finally output some useful information to the user 70171 70172 # Finally output some useful information to the user 70173 70174 printf "\n" 70175 printf "====================================================\n" 70176 if test "x$no_create" != "xyes"; then 70177 if test "x$IS_RECONFIGURE" != "xyes"; then 70178 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUTDIR" 70179 else 70180 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUTDIR" 70181 fi 70182 else 70183 if test "x$IS_RECONFIGURE" != "xyes"; then 70184 printf "A configuration has been successfully checked but not created\n" 70185 else 70186 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUTDIR" 70187 fi 70188 fi 70189 if test "x$CONFIGURE_COMMAND_LINE" != x; then 70190 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 70191 else 70192 printf "using default settings.\n" 70193 fi 70194 70195 printf "\n" 70196 printf "Configuration summary:\n" 70197 printf "* Debug level: $DEBUG_LEVEL\n" 70198 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 70199 printf "* JDK variant: $JDK_VARIANT\n" 70200 printf "* JVM variants: $JVM_VARIANTS\n" 70201 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 70202 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 70203 70204 printf "\n" 70205 printf "Tools summary:\n" 70206 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 70207 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 70208 fi 70209 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 70210 if test "x$TOOLCHAIN_VERSION" != "x"; then 70211 print_version=" $TOOLCHAIN_VERSION" 70212 fi 70213 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 70214 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 70215 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 70216 70217 printf "\n" 70218 printf "Build performance summary:\n" 70219 printf "* Cores to use: $JOBS\n" 70220 printf "* Memory limit: $MEMORY_SIZE MB\n" 70221 if test "x$CCACHE_STATUS" != "x"; then 70222 printf "* ccache status: $CCACHE_STATUS\n" 70223 fi 70224 printf "\n" 70225 70226 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 70227 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 70228 printf "will result in longer build times.\n" 70229 printf "\n" 70230 fi 70231 70232 if test "x$FOUND_ALT_VARIABLES" != "x"; then 70233 printf "WARNING: You have old-style ALT_ environment variables set.\n" 70234 printf "These are not respected, and will be ignored. It is recommended\n" 70235 printf "that you clean your environment. The following variables are set:\n" 70236 printf "$FOUND_ALT_VARIABLES\n" 70237 printf "\n" 70238 fi 70239 70240 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 70241 printf "WARNING: Your build output directory is not on a local disk.\n" 70242 printf "This will severely degrade build performance!\n" 70243 printf "It is recommended that you create an output directory on a local disk,\n" 70244 printf "and run the configure script again from that directory.\n" 70245 printf "\n" 70246 fi 70247 70248 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 70249 printf "WARNING: The result of this configuration has overridden an older\n" 70250 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 70251 printf "proper build. Failure to do so might result in strange build problems.\n" 70252 printf "\n" 70253 fi 70254 70255 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 70256 printf "WARNING: The result of this configuration was not saved.\n" 70257 printf "You should run without '--no-create | -n' to create the configuration.\n" 70258 printf "\n" 70259 fi 70260 70261 70262 70263 # Locate config.log. 70264 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 70265 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 70266 elif test -e "./config.log"; then 70267 CONFIG_LOG_PATH="." 70268 fi 70269 70270 if test -e "$CONFIG_LOG_PATH/config.log"; then 70271 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 70272 if test $? -eq 0; then 70273 printf "The following warnings were produced. Repeated here for convenience:\n" 70274 # We must quote sed expression (using []) to stop m4 from eating the []. 70275 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 70276 printf "\n" 70277 fi 70278 fi 70279