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 jdk8. 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='jdk8' 590 PACKAGE_STRING='OpenJDK jdk8' 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 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA 637 JOBS 638 MEMORY_SIZE 639 NUM_CORES 640 ENABLE_INTREE_EC 641 SALIB_NAME 642 HOTSPOT_MAKE_ARGS 643 UCRT_DLL_DIR 644 MSVCP_DLL 645 MSVCR_DLL 646 LIBCXX 647 LLVM_LIBS 648 LLVM_LDFLAGS 649 LLVM_CFLAGS 650 LLVM_CONFIG 651 LIBFFI_LIBS 652 LIBFFI_CFLAGS 653 STATIC_CXX_SETTING 654 LIBDL 655 LIBM 656 LIBZIP_CAN_USE_MMAP 657 USE_EXTERNAL_LIBZ 658 USE_EXTERNAL_LIBGIF 659 USE_EXTERNAL_LIBJPEG 660 FONTCONFIG_CFLAGS 661 ALSA_LIBS 662 ALSA_CFLAGS 663 FREETYPE_BUNDLE_LIB_PATH 664 FREETYPE_LIBS 665 FREETYPE_CFLAGS 666 CUPS_CFLAGS 667 X_EXTRA_LIBS 668 X_LIBS 669 X_PRE_LIBS 670 X_CFLAGS 671 XMKMF 672 FIXPATH 673 ZIP_DEBUGINFO_FILES 674 DEBUG_BINARIES 675 STRIP_POLICY 676 ENABLE_DEBUG_SYMBOLS 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG 678 ZERO_ARCHFLAG 679 LDFLAGS_CXX_JDK 680 LDFLAGS_JDKEXE_SUFFIX 681 LDFLAGS_JDKLIB_SUFFIX 682 LDFLAGS_JDKEXE 683 LDFLAGS_JDKLIB 684 CXXFLAGS_JDKEXE 685 CXXFLAGS_JDKLIB 686 CFLAGS_JDKEXE 687 CFLAGS_JDKLIB 688 MACOSX_VERSION_MIN 689 FDLIBM_CFLAGS 690 NO_LIFETIME_DSE_CFLAG 691 NO_DELETE_NULL_POINTER_CHECKS_CFLAG 692 LEGACY_EXTRA_ASFLAGS 693 LEGACY_EXTRA_LDFLAGS 694 LEGACY_EXTRA_CXXFLAGS 695 LEGACY_EXTRA_CFLAGS 696 CXXSTD_CXXFLAG 697 CXX_O_FLAG_NONE 698 CXX_O_FLAG_NORM 699 CXX_O_FLAG_HI 700 CXX_O_FLAG_HIGHEST 701 C_O_FLAG_NONE 702 C_O_FLAG_NORM 703 C_O_FLAG_HI 704 C_O_FLAG_HIGHEST 705 CXXFLAGS_DEBUG_SYMBOLS 706 CFLAGS_DEBUG_SYMBOLS 707 ASFLAGS_DEBUG_SYMBOLS 708 CXX_FLAG_DEPS 709 C_FLAG_DEPS 710 SET_SHARED_LIBRARY_MAPFILE 711 SET_SHARED_LIBRARY_NAME 712 SET_SHARED_LIBRARY_ORIGIN 713 SET_EXECUTABLE_ORIGIN 714 SHARED_LIBRARY_FLAGS 715 CXX_FLAG_REORDER 716 C_FLAG_REORDER 717 SYSROOT_LDFLAGS 718 SYSROOT_CFLAGS 719 RC_FLAGS 720 AR_OUT_OPTION 721 LD_OUT_OPTION 722 EXE_OUT_OPTION 723 CC_OUT_OPTION 724 POST_MCS_CMD 725 POST_STRIP_CMD 726 ARFLAGS 727 COMPILER_TARGET_BITS_FLAG 728 JT_HOME 729 JTREGEXE 730 USING_BROKEN_SUSE_LD 731 PACKAGE_PATH 732 LDEXECXX 733 LDEXE 734 USE_CLANG 735 HOTSPOT_LD 736 HOTSPOT_CXX 737 HOTSPOT_RC 738 HOTSPOT_MT 739 BUILD_LD 740 BUILD_CXX 741 BUILD_CC 742 ac_ct_OBJDUMP 743 OBJDUMP 744 ac_ct_OBJCOPY 745 OBJCOPY 746 ac_ct_NM 747 OTOOL 748 ac_ct_STRIP 749 MCS 750 GNM 751 NM 752 STRIP 753 MSBUILD 754 DUMPBIN 755 RC 756 MT 757 LIPO 758 ac_ct_OBJC 759 OBJCFLAGS 760 OBJC 761 ac_ct_AR 762 AR 763 AS 764 LDCXX 765 LD 766 CXXCPP 767 CPP 768 CXX_VERSION_NUMBER 769 CC_VERSION_NUMBER 770 ac_ct_CXX 771 CXXFLAGS 772 CXX 773 ac_ct_PROPER_COMPILER_CXX 774 PROPER_COMPILER_CXX 775 TOOLCHAIN_PATH_CXX 776 POTENTIAL_CXX 777 OBJEXT 778 EXEEXT 779 ac_ct_CC 780 CPPFLAGS 781 LDFLAGS 782 CFLAGS 783 CC 784 ac_ct_PROPER_COMPILER_CC 785 PROPER_COMPILER_CC 786 TOOLCHAIN_PATH_CC 787 POTENTIAL_CC 788 SDKPATH 789 XCODEBUILD 790 SET_DEVELOPER_DIR 791 VS_LIB 792 VS_INCLUDE 793 VS_PATH 794 CYGWIN_LINK 795 EXE_SUFFIX 796 OBJ_SUFFIX 797 STATIC_LIBRARY 798 SHARED_LIBRARY 799 STATIC_LIBRARY_SUFFIX 800 SHARED_LIBRARY_SUFFIX 801 LIBRARY_PREFIX 802 TOOLCHAIN_TYPE 803 BUILD_HOTSPOT 804 HOTSPOT_DIST 805 BUILD_OUTPUT 806 OVERRIDE_SRC_ROOT 807 ADD_SRC_ROOT 808 JDK_TOPDIR 809 NASHORN_TOPDIR 810 HOTSPOT_TOPDIR 811 JAXWS_TOPDIR 812 JAXP_TOPDIR 813 CORBA_TOPDIR 814 LANGTOOLS_TOPDIR 815 JAVA_FLAGS_SMALL 816 JAVA_FLAGS_BIG 817 JAVA_FLAGS 818 BOOT_JDK_BITS 819 JAVAC_FLAGS 820 BOOT_JDK_SOURCETARGET 821 BOOT_JDK 822 BOOT_TOOLSJAR 823 BOOT_RTJAR 824 JAVA_CHECK 825 JAVAC_CHECK 826 COOKED_BUILD_NUMBER 827 COOKED_JDK_UPDATE_VERSION 828 JDK_VERSION 829 COPYRIGHT_YEAR 830 VENDOR_URL_VM_BUG 831 VENDOR_URL_BUG 832 VENDOR_URL 833 COMPANY_NAME 834 MACOSX_BUNDLE_ID_BASE 835 MACOSX_BUNDLE_NAME_BASE 836 JDK_RC_PLATFORM_NAME 837 PRODUCT_SUFFIX 838 PRODUCT_NAME 839 LAUNCHER_NAME 840 MILESTONE 841 JDK_BUILD_NUMBER 842 JDK_UPDATE_VERSION 843 JDK_MICRO_VERSION 844 JDK_MINOR_VERSION 845 JDK_MAJOR_VERSION 846 USER_RELEASE_SUFFIX 847 ENABLE_JFR 848 COMPRESS_JARS 849 UNLIMITED_CRYPTO 850 CACERTS_FILE 851 TEST_IN_BUILD 852 BUILD_HEADLESS 853 SUPPORT_HEADFUL 854 SUPPORT_HEADLESS 855 BDEPS_FTP 856 BDEPS_UNZIP 857 OS_VERSION_MICRO 858 OS_VERSION_MINOR 859 OS_VERSION_MAJOR 860 PKG_CONFIG 861 CODESIGN 862 XATTR 863 DSYMUTIL 864 IS_GNU_TIME 865 TIME 866 STAT 867 HG 868 READELF 869 LDD 870 ZIP 871 UNZIP 872 FIND_DELETE 873 MAKE 874 CHECK_TOOLSDIR_MAKE 875 CHECK_TOOLSDIR_GMAKE 876 CHECK_MAKE 877 CHECK_GMAKE 878 PKGHANDLER 879 OUTPUT_ROOT 880 CONF_NAME 881 SPEC 882 DEVKIT_LIB_DIR 883 BUILD_VARIANT_RELEASE 884 DEBUG_CLASSFILES 885 FASTDEBUG 886 VARIANT 887 DEBUG_LEVEL 888 MACOSX_UNIVERSAL 889 INCLUDE_SA 890 JVM_VARIANT_CORE 891 JVM_VARIANT_ZEROSHARK 892 JVM_VARIANT_ZERO 893 JVM_VARIANT_KERNEL 894 JVM_VARIANT_MINIMAL1 895 JVM_VARIANT_CLIENT 896 JVM_VARIANT_SERVER 897 JVM_VARIANTS 898 JVM_INTERPRETER 899 JDK_VARIANT 900 SET_OPENJDK 901 BUILD_LOG_WRAPPER 902 BUILD_LOG_PREVIOUS 903 BUILD_LOG 904 TOPDIR 905 PATH_SEP 906 ZERO_ARCHDEF 907 DEFINE_CROSS_COMPILE_ARCH 908 LP64 909 OPENJDK_TARGET_OS_EXPORT_DIR 910 OPENJDK_TARGET_OS_API_DIR 911 OPENJDK_TARGET_CPU_JLI_CFLAGS 912 OPENJDK_TARGET_CPU_OSARCH 913 OPENJDK_TARGET_CPU_ISADIR 914 OPENJDK_TARGET_CPU_LIBDIR 915 OPENJDK_TARGET_CPU_LEGACY_LIB 916 OPENJDK_TARGET_CPU_LEGACY 917 REQUIRED_OS_VERSION 918 REQUIRED_OS_NAME 919 COMPILE_TYPE 920 OPENJDK_TARGET_CPU_ENDIAN 921 OPENJDK_TARGET_CPU_BITS 922 OPENJDK_TARGET_CPU_ARCH 923 OPENJDK_TARGET_CPU 924 OPENJDK_TARGET_OS_ENV 925 OPENJDK_TARGET_OS_API 926 OPENJDK_TARGET_OS 927 OPENJDK_BUILD_CPU_ENDIAN 928 OPENJDK_BUILD_CPU_BITS 929 OPENJDK_BUILD_CPU_ARCH 930 OPENJDK_BUILD_CPU 931 OPENJDK_BUILD_OS_ENV 932 OPENJDK_BUILD_OS_API 933 OPENJDK_BUILD_OS 934 OPENJDK_BUILD_AUTOCONF_NAME 935 OPENJDK_TARGET_AUTOCONF_NAME 936 target_os 937 target_vendor 938 target_cpu 939 target 940 host_os 941 host_vendor 942 host_cpu 943 host 944 build_os 945 build_vendor 946 build_cpu 947 build 948 CPIO 949 SETFILE 950 DF 951 READLINK 952 CYGPATH 953 SED 954 FGREP 955 EGREP 956 GREP 957 AWK 958 XARGS 959 WHICH 960 WC 961 UNIQ 962 UNAME 963 TR 964 TOUCH 965 TEE 966 TAR 967 TAIL 968 SORT 969 SH 970 RM 971 PRINTF 972 NAWK 973 MV 974 MKTEMP 975 MKDIR 976 LS 977 LN 978 HEAD 979 FIND 980 FILE 981 EXPR 982 ECHO 983 DIRNAME 984 DIFF 985 DATE 986 CUT 987 CP 988 COMM 989 CMP 990 CHMOD 991 CAT 992 BASH 993 BASENAME 994 DATE_WHEN_CONFIGURED 995 CONFIGURE_COMMAND_LINE 996 CUSTOM_MAKE_DIR 997 target_alias 998 host_alias 999 build_alias 1000 LIBS 1001 ECHO_T 1002 ECHO_N 1003 ECHO_C 1004 DEFS 1005 mandir 1006 localedir 1007 libdir 1008 psdir 1009 pdfdir 1010 dvidir 1011 htmldir 1012 infodir 1013 docdir 1014 oldincludedir 1015 includedir 1016 runstatedir 1017 localstatedir 1018 sharedstatedir 1019 sysconfdir 1020 datadir 1021 datarootdir 1022 libexecdir 1023 sbindir 1024 bindir 1025 program_transform_name 1026 prefix 1027 exec_prefix 1028 PACKAGE_URL 1029 PACKAGE_BUGREPORT 1030 PACKAGE_STRING 1031 PACKAGE_VERSION 1032 PACKAGE_TARNAME 1033 PACKAGE_NAME 1034 PATH_SEPARATOR 1035 SHELL' 1036 ac_subst_files='' 1037 ac_user_opts=' 1038 enable_option_checking 1039 with_custom_make_dir 1040 with_target_bits 1041 enable_openjdk_only 1042 with_jdk_variant 1043 with_jvm_interpreter 1044 with_jvm_variants 1045 enable_debug 1046 with_debug_level 1047 with_devkit 1048 with_sys_root 1049 with_sysroot 1050 with_tools_dir 1051 with_toolchain_path 1052 with_extra_path 1053 with_xcode_path 1054 with_conf_name 1055 with_builddeps_conf 1056 with_builddeps_server 1057 with_builddeps_dir 1058 with_builddeps_group 1059 enable_headful 1060 enable_hotspot_test_in_build 1061 with_cacerts_file 1062 enable_unlimited_crypto 1063 enable_jfr 1064 with_milestone 1065 with_update_version 1066 with_user_release_suffix 1067 with_build_number 1068 with_vendor_name 1069 with_vendor_url 1070 with_vendor_bug_url 1071 with_vendor_vm_bug_url 1072 with_copyright_year 1073 with_boot_jdk 1074 with_boot_jdk_jvmargs 1075 with_add_source_root 1076 with_override_source_root 1077 with_adds_and_overrides 1078 with_override_langtools 1079 with_override_corba 1080 with_override_jaxp 1081 with_override_jaxws 1082 with_override_hotspot 1083 with_override_nashorn 1084 with_override_jdk 1085 with_import_hotspot 1086 with_toolchain_type 1087 with_toolchain_version 1088 with_jtreg 1089 with_extra_cflags 1090 with_extra_cxxflags 1091 with_extra_ldflags 1092 with_extra_asflags 1093 enable_debug_symbols 1094 enable_zip_debug_info 1095 with_native_debug_symbols 1096 enable_macosx_runtime_support 1097 with_x 1098 with_cups 1099 with_cups_include 1100 with_freetype 1101 with_freetype_include 1102 with_freetype_lib 1103 with_freetype_src 1104 enable_freetype_bundling 1105 with_alsa 1106 with_alsa_include 1107 with_alsa_lib 1108 with_fontconfig 1109 with_fontconfig_include 1110 with_giflib 1111 with_zlib 1112 with_stdc__lib 1113 with_msvcr_dll 1114 with_msvcp_dll 1115 with_ucrt_dll_dir 1116 with_dxsdk 1117 with_dxsdk_lib 1118 with_dxsdk_include 1119 with_num_cores 1120 with_memory_size 1121 with_jobs 1122 with_sjavac_server_java 1123 enable_sjavac 1124 enable_precompiled_headers 1125 enable_ccache 1126 with_ccache_dir 1127 ' 1128 ac_precious_vars='build_alias 1129 host_alias 1130 target_alias 1131 BASENAME 1132 BASH 1133 CAT 1134 CHMOD 1135 CMP 1136 COMM 1137 CP 1138 CUT 1139 DATE 1140 DIFF 1141 DIRNAME 1142 ECHO 1143 EXPR 1144 FILE 1145 FIND 1146 HEAD 1147 LN 1148 LS 1149 MKDIR 1150 MKTEMP 1151 MV 1152 NAWK 1153 PRINTF 1154 RM 1155 SH 1156 SORT 1157 TAIL 1158 TAR 1159 TEE 1160 TOUCH 1161 TR 1162 UNAME 1163 UNIQ 1164 WC 1165 WHICH 1166 XARGS 1167 AWK 1168 GREP 1169 EGREP 1170 FGREP 1171 SED 1172 CYGPATH 1173 READLINK 1174 DF 1175 SETFILE 1176 CPIO 1177 UNZIP 1178 ZIP 1179 LDD 1180 READELF 1181 HG 1182 STAT 1183 TIME 1184 DSYMUTIL 1185 XATTR 1186 CODESIGN 1187 PKG_CONFIG 1188 CC 1189 CFLAGS 1190 LDFLAGS 1191 LIBS 1192 CPPFLAGS 1193 CXX 1194 CXXFLAGS 1195 CCC 1196 CPP 1197 CXXCPP 1198 AS 1199 AR 1200 OBJC 1201 OBJCFLAGS 1202 LIPO 1203 STRIP 1204 NM 1205 GNM 1206 MCS 1207 OBJCOPY 1208 OBJDUMP 1209 BUILD_CC 1210 BUILD_CXX 1211 BUILD_LD 1212 JTREGEXE 1213 XMKMF 1214 FREETYPE_CFLAGS 1215 FREETYPE_LIBS 1216 ALSA_CFLAGS 1217 ALSA_LIBS 1218 LIBFFI_CFLAGS 1219 LIBFFI_LIBS 1220 CCACHE' 1221 1222 1223 # Initialize some variables set by options. 1224 ac_init_help= 1225 ac_init_version=false 1226 ac_unrecognized_opts= 1227 ac_unrecognized_sep= 1228 # The variables have the same names as the options, with 1229 # dashes changed to underlines. 1230 cache_file=/dev/null 1231 exec_prefix=NONE 1232 no_create= 1233 no_recursion= 1234 prefix=NONE 1235 program_prefix=NONE 1236 program_suffix=NONE 1237 program_transform_name=s,x,x, 1238 silent= 1239 site= 1240 srcdir= 1241 verbose= 1242 x_includes=NONE 1243 x_libraries=NONE 1244 1245 # Installation directory options. 1246 # These are left unexpanded so users can "make install exec_prefix=/foo" 1247 # and all the variables that are supposed to be based on exec_prefix 1248 # by default will actually change. 1249 # Use braces instead of parens because sh, perl, etc. also accept them. 1250 # (The list follows the same order as the GNU Coding Standards.) 1251 bindir='${exec_prefix}/bin' 1252 sbindir='${exec_prefix}/sbin' 1253 libexecdir='${exec_prefix}/libexec' 1254 datarootdir='${prefix}/share' 1255 datadir='${datarootdir}' 1256 sysconfdir='${prefix}/etc' 1257 sharedstatedir='${prefix}/com' 1258 localstatedir='${prefix}/var' 1259 runstatedir='${localstatedir}/run' 1260 includedir='${prefix}/include' 1261 oldincludedir='/usr/include' 1262 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1263 infodir='${datarootdir}/info' 1264 htmldir='${docdir}' 1265 dvidir='${docdir}' 1266 pdfdir='${docdir}' 1267 psdir='${docdir}' 1268 libdir='${exec_prefix}/lib' 1269 localedir='${datarootdir}/locale' 1270 mandir='${datarootdir}/man' 1271 1272 ac_prev= 1273 ac_dashdash= 1274 for ac_option 1275 do 1276 # If the previous option needs an argument, assign it. 1277 if test -n "$ac_prev"; then 1278 eval $ac_prev=\$ac_option 1279 ac_prev= 1280 continue 1281 fi 1282 1283 case $ac_option in 1284 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1285 *=) ac_optarg= ;; 1286 *) ac_optarg=yes ;; 1287 esac 1288 1289 # Accept the important Cygnus configure options, so we can diagnose typos. 1290 1291 case $ac_dashdash$ac_option in 1292 --) 1293 ac_dashdash=yes ;; 1294 1295 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1296 ac_prev=bindir ;; 1297 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1298 bindir=$ac_optarg ;; 1299 1300 -build | --build | --buil | --bui | --bu) 1301 ac_prev=build_alias ;; 1302 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1303 build_alias=$ac_optarg ;; 1304 1305 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1306 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1307 ac_prev=cache_file ;; 1308 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1309 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1310 cache_file=$ac_optarg ;; 1311 1312 --config-cache | -C) 1313 cache_file=config.cache ;; 1314 1315 -datadir | --datadir | --datadi | --datad) 1316 ac_prev=datadir ;; 1317 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1318 datadir=$ac_optarg ;; 1319 1320 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1321 | --dataroo | --dataro | --datar) 1322 ac_prev=datarootdir ;; 1323 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1324 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1325 datarootdir=$ac_optarg ;; 1326 1327 -disable-* | --disable-*) 1328 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1329 # Reject names that are not valid shell variable names. 1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1331 as_fn_error $? "invalid feature name: $ac_useropt" 1332 ac_useropt_orig=$ac_useropt 1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1334 case $ac_user_opts in 1335 *" 1336 "enable_$ac_useropt" 1337 "*) ;; 1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1339 ac_unrecognized_sep=', ';; 1340 esac 1341 eval enable_$ac_useropt=no ;; 1342 1343 -docdir | --docdir | --docdi | --doc | --do) 1344 ac_prev=docdir ;; 1345 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1346 docdir=$ac_optarg ;; 1347 1348 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1349 ac_prev=dvidir ;; 1350 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1351 dvidir=$ac_optarg ;; 1352 1353 -enable-* | --enable-*) 1354 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1355 # Reject names that are not valid shell variable names. 1356 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1357 as_fn_error $? "invalid feature name: $ac_useropt" 1358 ac_useropt_orig=$ac_useropt 1359 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1360 case $ac_user_opts in 1361 *" 1362 "enable_$ac_useropt" 1363 "*) ;; 1364 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1365 ac_unrecognized_sep=', ';; 1366 esac 1367 eval enable_$ac_useropt=\$ac_optarg ;; 1368 1369 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1370 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1371 | --exec | --exe | --ex) 1372 ac_prev=exec_prefix ;; 1373 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1374 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1375 | --exec=* | --exe=* | --ex=*) 1376 exec_prefix=$ac_optarg ;; 1377 1378 -gas | --gas | --ga | --g) 1379 # Obsolete; use --with-gas. 1380 with_gas=yes ;; 1381 1382 -help | --help | --hel | --he | -h) 1383 ac_init_help=long ;; 1384 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1385 ac_init_help=recursive ;; 1386 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1387 ac_init_help=short ;; 1388 1389 -host | --host | --hos | --ho) 1390 ac_prev=host_alias ;; 1391 -host=* | --host=* | --hos=* | --ho=*) 1392 host_alias=$ac_optarg ;; 1393 1394 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1395 ac_prev=htmldir ;; 1396 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1397 | --ht=*) 1398 htmldir=$ac_optarg ;; 1399 1400 -includedir | --includedir | --includedi | --included | --include \ 1401 | --includ | --inclu | --incl | --inc) 1402 ac_prev=includedir ;; 1403 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1404 | --includ=* | --inclu=* | --incl=* | --inc=*) 1405 includedir=$ac_optarg ;; 1406 1407 -infodir | --infodir | --infodi | --infod | --info | --inf) 1408 ac_prev=infodir ;; 1409 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1410 infodir=$ac_optarg ;; 1411 1412 -libdir | --libdir | --libdi | --libd) 1413 ac_prev=libdir ;; 1414 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1415 libdir=$ac_optarg ;; 1416 1417 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1418 | --libexe | --libex | --libe) 1419 ac_prev=libexecdir ;; 1420 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1421 | --libexe=* | --libex=* | --libe=*) 1422 libexecdir=$ac_optarg ;; 1423 1424 -localedir | --localedir | --localedi | --localed | --locale) 1425 ac_prev=localedir ;; 1426 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1427 localedir=$ac_optarg ;; 1428 1429 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1430 | --localstate | --localstat | --localsta | --localst | --locals) 1431 ac_prev=localstatedir ;; 1432 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1433 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1434 localstatedir=$ac_optarg ;; 1435 1436 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1437 ac_prev=mandir ;; 1438 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1439 mandir=$ac_optarg ;; 1440 1441 -nfp | --nfp | --nf) 1442 # Obsolete; use --without-fp. 1443 with_fp=no ;; 1444 1445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1446 | --no-cr | --no-c | -n) 1447 no_create=yes ;; 1448 1449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1451 no_recursion=yes ;; 1452 1453 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1454 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1455 | --oldin | --oldi | --old | --ol | --o) 1456 ac_prev=oldincludedir ;; 1457 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1458 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1459 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1460 oldincludedir=$ac_optarg ;; 1461 1462 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1463 ac_prev=prefix ;; 1464 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1465 prefix=$ac_optarg ;; 1466 1467 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1468 | --program-pre | --program-pr | --program-p) 1469 ac_prev=program_prefix ;; 1470 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1471 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1472 program_prefix=$ac_optarg ;; 1473 1474 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1475 | --program-suf | --program-su | --program-s) 1476 ac_prev=program_suffix ;; 1477 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1478 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1479 program_suffix=$ac_optarg ;; 1480 1481 -program-transform-name | --program-transform-name \ 1482 | --program-transform-nam | --program-transform-na \ 1483 | --program-transform-n | --program-transform- \ 1484 | --program-transform | --program-transfor \ 1485 | --program-transfo | --program-transf \ 1486 | --program-trans | --program-tran \ 1487 | --progr-tra | --program-tr | --program-t) 1488 ac_prev=program_transform_name ;; 1489 -program-transform-name=* | --program-transform-name=* \ 1490 | --program-transform-nam=* | --program-transform-na=* \ 1491 | --program-transform-n=* | --program-transform-=* \ 1492 | --program-transform=* | --program-transfor=* \ 1493 | --program-transfo=* | --program-transf=* \ 1494 | --program-trans=* | --program-tran=* \ 1495 | --progr-tra=* | --program-tr=* | --program-t=*) 1496 program_transform_name=$ac_optarg ;; 1497 1498 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1499 ac_prev=pdfdir ;; 1500 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1501 pdfdir=$ac_optarg ;; 1502 1503 -psdir | --psdir | --psdi | --psd | --ps) 1504 ac_prev=psdir ;; 1505 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1506 psdir=$ac_optarg ;; 1507 1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1509 | -silent | --silent | --silen | --sile | --sil) 1510 silent=yes ;; 1511 1512 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1513 | --runstate | --runstat | --runsta | --runst | --runs \ 1514 | --run | --ru | --r) 1515 ac_prev=runstatedir ;; 1516 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1517 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1518 | --run=* | --ru=* | --r=*) 1519 runstatedir=$ac_optarg ;; 1520 1521 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1522 ac_prev=sbindir ;; 1523 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1524 | --sbi=* | --sb=*) 1525 sbindir=$ac_optarg ;; 1526 1527 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1528 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1529 | --sharedst | --shareds | --shared | --share | --shar \ 1530 | --sha | --sh) 1531 ac_prev=sharedstatedir ;; 1532 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1533 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1534 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1535 | --sha=* | --sh=*) 1536 sharedstatedir=$ac_optarg ;; 1537 1538 -site | --site | --sit) 1539 ac_prev=site ;; 1540 -site=* | --site=* | --sit=*) 1541 site=$ac_optarg ;; 1542 1543 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1544 ac_prev=srcdir ;; 1545 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1546 srcdir=$ac_optarg ;; 1547 1548 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1549 | --syscon | --sysco | --sysc | --sys | --sy) 1550 ac_prev=sysconfdir ;; 1551 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1552 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1553 sysconfdir=$ac_optarg ;; 1554 1555 -target | --target | --targe | --targ | --tar | --ta | --t) 1556 ac_prev=target_alias ;; 1557 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1558 target_alias=$ac_optarg ;; 1559 1560 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1561 verbose=yes ;; 1562 1563 -version | --version | --versio | --versi | --vers | -V) 1564 ac_init_version=: ;; 1565 1566 -with-* | --with-*) 1567 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1568 # Reject names that are not valid shell variable names. 1569 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1570 as_fn_error $? "invalid package name: $ac_useropt" 1571 ac_useropt_orig=$ac_useropt 1572 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1573 case $ac_user_opts in 1574 *" 1575 "with_$ac_useropt" 1576 "*) ;; 1577 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1578 ac_unrecognized_sep=', ';; 1579 esac 1580 eval with_$ac_useropt=\$ac_optarg ;; 1581 1582 -without-* | --without-*) 1583 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1584 # Reject names that are not valid shell variable names. 1585 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1586 as_fn_error $? "invalid package name: $ac_useropt" 1587 ac_useropt_orig=$ac_useropt 1588 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1589 case $ac_user_opts in 1590 *" 1591 "with_$ac_useropt" 1592 "*) ;; 1593 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1594 ac_unrecognized_sep=', ';; 1595 esac 1596 eval with_$ac_useropt=no ;; 1597 1598 --x) 1599 # Obsolete; use --with-x. 1600 with_x=yes ;; 1601 1602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1603 | --x-incl | --x-inc | --x-in | --x-i) 1604 ac_prev=x_includes ;; 1605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1607 x_includes=$ac_optarg ;; 1608 1609 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1611 ac_prev=x_libraries ;; 1612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1614 x_libraries=$ac_optarg ;; 1615 1616 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1617 Try \`$0 --help' for more information" 1618 ;; 1619 1620 *=*) 1621 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1622 # Reject names that are not valid shell variable names. 1623 case $ac_envvar in #( 1624 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1625 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1626 esac 1627 eval $ac_envvar=\$ac_optarg 1628 export $ac_envvar ;; 1629 1630 *) 1631 # FIXME: should be removed in autoconf 3.0. 1632 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1633 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1634 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1635 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1636 ;; 1637 1638 esac 1639 done 1640 1641 if test -n "$ac_prev"; then 1642 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1643 as_fn_error $? "missing argument to $ac_option" 1644 fi 1645 1646 if test -n "$ac_unrecognized_opts"; then 1647 case $enable_option_checking in 1648 no) ;; 1649 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1650 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1651 esac 1652 fi 1653 1654 # Check all directory arguments for consistency. 1655 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1656 datadir sysconfdir sharedstatedir localstatedir includedir \ 1657 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1658 libdir localedir mandir runstatedir 1659 do 1660 eval ac_val=\$$ac_var 1661 # Remove trailing slashes. 1662 case $ac_val in 1663 */ ) 1664 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1665 eval $ac_var=\$ac_val;; 1666 esac 1667 # Be sure to have absolute directory names. 1668 case $ac_val in 1669 [\\/$]* | ?:[\\/]* ) continue;; 1670 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1671 esac 1672 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1673 done 1674 1675 # There might be people who depend on the old broken behavior: `$host' 1676 # used to hold the argument of --host etc. 1677 # FIXME: To remove some day. 1678 build=$build_alias 1679 host=$host_alias 1680 target=$target_alias 1681 1682 # FIXME: To remove some day. 1683 if test "x$host_alias" != x; then 1684 if test "x$build_alias" = x; then 1685 cross_compiling=maybe 1686 elif test "x$build_alias" != "x$host_alias"; then 1687 cross_compiling=yes 1688 fi 1689 fi 1690 1691 ac_tool_prefix= 1692 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1693 1694 test "$silent" = yes && exec 6>/dev/null 1695 1696 1697 ac_pwd=`pwd` && test -n "$ac_pwd" && 1698 ac_ls_di=`ls -di .` && 1699 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1700 as_fn_error $? "working directory cannot be determined" 1701 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1702 as_fn_error $? "pwd does not report name of working directory" 1703 1704 1705 # Find the source files, if location was not specified. 1706 if test -z "$srcdir"; then 1707 ac_srcdir_defaulted=yes 1708 # Try the directory containing this script, then the parent directory. 1709 ac_confdir=`$as_dirname -- "$as_myself" || 1710 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1711 X"$as_myself" : 'X\(//\)[^/]' \| \ 1712 X"$as_myself" : 'X\(//\)$' \| \ 1713 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1714 $as_echo X"$as_myself" | 1715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1716 s//\1/ 1717 q 1718 } 1719 /^X\(\/\/\)[^/].*/{ 1720 s//\1/ 1721 q 1722 } 1723 /^X\(\/\/\)$/{ 1724 s//\1/ 1725 q 1726 } 1727 /^X\(\/\).*/{ 1728 s//\1/ 1729 q 1730 } 1731 s/.*/./; q'` 1732 srcdir=$ac_confdir 1733 if test ! -r "$srcdir/$ac_unique_file"; then 1734 srcdir=.. 1735 fi 1736 else 1737 ac_srcdir_defaulted=no 1738 fi 1739 if test ! -r "$srcdir/$ac_unique_file"; then 1740 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1741 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1742 fi 1743 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1744 ac_abs_confdir=`( 1745 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1746 pwd)` 1747 # When building in place, set srcdir=. 1748 if test "$ac_abs_confdir" = "$ac_pwd"; then 1749 srcdir=. 1750 fi 1751 # Remove unnecessary trailing slashes from srcdir. 1752 # Double slashes in file names in object file debugging info 1753 # mess up M-x gdb in Emacs. 1754 case $srcdir in 1755 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1756 esac 1757 for ac_var in $ac_precious_vars; do 1758 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1759 eval ac_env_${ac_var}_value=\$${ac_var} 1760 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1761 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1762 done 1763 1764 # 1765 # Report the --help message. 1766 # 1767 if test "$ac_init_help" = "long"; then 1768 # Omit some internal or obsolete options to make the list less imposing. 1769 # This message is too long to be a string in the A/UX 3.1 sh. 1770 cat <<_ACEOF 1771 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems. 1772 1773 Usage: $0 [OPTION]... [VAR=VALUE]... 1774 1775 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1776 VAR=VALUE. See below for descriptions of some of the useful variables. 1777 1778 Defaults for the options are specified in brackets. 1779 1780 Configuration: 1781 -h, --help display this help and exit 1782 --help=short display options specific to this package 1783 --help=recursive display the short help of all the included packages 1784 -V, --version display version information and exit 1785 -q, --quiet, --silent do not print \`checking ...' messages 1786 --cache-file=FILE cache test results in FILE [disabled] 1787 -C, --config-cache alias for \`--cache-file=config.cache' 1788 -n, --no-create do not create output files 1789 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1790 1791 Installation directories: 1792 --prefix=PREFIX install architecture-independent files in PREFIX 1793 [$ac_default_prefix] 1794 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1795 [PREFIX] 1796 1797 By default, \`make install' will install all the files in 1798 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1799 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1800 for instance \`--prefix=\$HOME'. 1801 1802 For better control, use the options below. 1803 1804 Fine tuning of the installation directories: 1805 --bindir=DIR user executables [EPREFIX/bin] 1806 --sbindir=DIR system admin executables [EPREFIX/sbin] 1807 --libexecdir=DIR program executables [EPREFIX/libexec] 1808 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1809 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1810 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1811 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1812 --libdir=DIR object code libraries [EPREFIX/lib] 1813 --includedir=DIR C header files [PREFIX/include] 1814 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1815 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1816 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1817 --infodir=DIR info documentation [DATAROOTDIR/info] 1818 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1819 --mandir=DIR man documentation [DATAROOTDIR/man] 1820 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1821 --htmldir=DIR html documentation [DOCDIR] 1822 --dvidir=DIR dvi documentation [DOCDIR] 1823 --pdfdir=DIR pdf documentation [DOCDIR] 1824 --psdir=DIR ps documentation [DOCDIR] 1825 _ACEOF 1826 1827 cat <<\_ACEOF 1828 1829 X features: 1830 --x-includes=DIR X include files are in DIR 1831 --x-libraries=DIR X library files are in DIR 1832 1833 System types: 1834 --build=BUILD configure for building on BUILD [guessed] 1835 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1836 --target=TARGET configure for building compilers for TARGET [HOST] 1837 _ACEOF 1838 fi 1839 1840 if test -n "$ac_init_help"; then 1841 case $ac_init_help in 1842 short | recursive ) echo "Configuration of OpenJDK jdk8:";; 1843 esac 1844 cat <<\_ACEOF 1845 1846 Optional Features: 1847 --disable-option-checking ignore unrecognized --enable/--with options 1848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1850 --enable-openjdk-only suppress building custom source even if present 1851 [disabled] 1852 --enable-debug set the debug level to fastdebug (shorthand for 1853 --with-debug-level=fastdebug) [disabled] 1854 --disable-headful disable building headful support (graphical UI 1855 support) [enabled] 1856 --enable-hotspot-test-in-build 1857 run the Queens test after Hotspot build [disabled] 1858 --enable-unlimited-crypto 1859 Enable unlimited crypto policy [disabled] 1860 --disable-jfr Disable Java Flight Recorder support [enabled] 1861 --disable-debug-symbols disable generation of debug symbols [enabled] 1862 --disable-zip-debug-info 1863 disable zipping of debug-info files [enabled] 1864 --enable-macosx-runtime-support 1865 Deprecated. Option is kept for backwards 1866 compatibility and is ignored 1867 --disable-freetype-bundling 1868 disable bundling of the freetype library with the 1869 build result [enabled on Windows or when using 1870 --with-freetype, disabled otherwise] 1871 --enable-sjavac use sjavac to do fast incremental compiles 1872 [disabled] 1873 --disable-precompiled-headers 1874 disable using precompiled headers when compiling C++ 1875 [enabled] 1876 --enable-ccache enable using ccache to speed up recompilations 1877 [disabled] 1878 1879 Optional Packages: 1880 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1881 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1882 --with-custom-make-dir use this directory for custom build/make files 1883 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1884 support it), e.g. --with-target-bits=32 [guessed] 1885 --with-jdk-variant JDK variant to build (normal) [normal] 1886 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1887 --with-jvm-variants JVM variants (separated by commas) to build (server, 1888 client, minimal1, kernel, zero, zeroshark, core) 1889 [server] 1890 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1891 [release] 1892 --with-devkit use this devkit for compilers, tools and resources 1893 --with-sys-root alias for --with-sysroot for backwards compatability 1894 --with-sysroot use this directory as sysroot) 1895 --with-tools-dir alias for --with-toolchain-path for backwards 1896 compatibility 1897 --with-toolchain-path prepend these directories when searching for 1898 toolchain binaries (compilers etc) 1899 --with-extra-path prepend these directories to the default path 1900 --with-xcode-path explicit path to Xcode 4 (generally for building on 1901 10.9 and later) 1902 --with-conf-name use this as the name of the configuration [generated 1903 from important configuration options] 1904 --with-builddeps-conf use this configuration file for the builddeps 1905 --with-builddeps-server download and use build dependencies from this server 1906 url 1907 --with-builddeps-dir store downloaded build dependencies here 1908 [/localhome/builddeps] 1909 --with-builddeps-group chgrp the downloaded build dependencies to this 1910 group 1911 --with-cacerts-file specify alternative cacerts file 1912 --with-milestone Set milestone value for build [internal] 1913 --with-update-version Set update version value for build [b00] 1914 --with-user-release-suffix 1915 Add a custom string to the version string if build 1916 number isn't set.[username_builddateb00] 1917 --with-build-number Set build number value for build [b00] 1918 --with-vendor-name Set vendor name. Among others, used to set the 1919 'java.vendor' and 'java.vm.vendor' system 1920 properties. [not specified] 1921 --with-vendor-url Set the 'java.vendor.url' system property [not 1922 specified] 1923 --with-vendor-bug-url Set the 'java.vendor.url.bug' system property [not 1924 specified] 1925 --with-vendor-vm-bug-url 1926 Sets the bug URL which will be displayed when the VM 1927 crashes [not specified] 1928 --with-copyright-year Set copyright year value for build [current year] 1929 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1930 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all 1931 invocations of the Boot JDK, overriding the default 1932 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1933 -enableassertions" 1934 --with-add-source-root for each and every source directory, look in this 1935 additional source root for the same directory; if it 1936 exists and have files in it, include it in the build 1937 --with-override-source-root 1938 for each and every source directory, look in this 1939 override source root for the same directory; if it 1940 exists, use that directory instead and ignore the 1941 directory in the original source root 1942 --with-adds-and-overrides 1943 use the subdirs 'adds' and 'overrides' in the 1944 specified directory as add-source-root and 1945 override-source-root 1946 --with-override-langtools 1947 use this langtools dir for the build 1948 --with-override-corba use this corba dir for the build 1949 --with-override-jaxp use this jaxp dir for the build 1950 --with-override-jaxws use this jaxws dir for the build 1951 --with-override-hotspot use this hotspot dir for the build 1952 --with-override-nashorn use this nashorn dir for the build 1953 --with-override-jdk use this jdk dir for the build 1954 --with-import-hotspot import hotspot binaries from this jdk image or 1955 hotspot build dist dir instead of building from 1956 source 1957 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1958 to show possible values [platform dependent] 1959 --with-toolchain-version 1960 the version of the toolchain to look for, use 1961 '--help' to show possible values [platform 1962 dependent] 1963 --with-jtreg Regression Test Harness [probed] 1964 --with-extra-cflags extra flags to be used when compiling jdk c-files 1965 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1966 --with-extra-ldflags extra flags to be used when linking jdk 1967 --with-extra-asflags extra flags to be passed to the assembler 1968 --with-native-debug-symbols 1969 set the native debug symbol configuration (none, 1970 internal, external, zipped) [varying] 1971 --with-x use the X Window System 1972 --with-cups specify prefix directory for the cups package 1973 (expecting the headers under PATH/include) 1974 --with-cups-include specify directory for the cups include files 1975 --with-freetype specify prefix directory for the freetype package 1976 (expecting the libraries under PATH/lib and the 1977 headers under PATH/include) 1978 --with-freetype-include specify directory for the freetype include files 1979 --with-freetype-lib specify directory for the freetype library 1980 --with-freetype-src specify directory with freetype sources to 1981 automatically build the library (experimental, 1982 Windows-only) 1983 --with-alsa specify prefix directory for the alsa package 1984 (expecting the libraries under PATH/lib and the 1985 headers under PATH/include) 1986 --with-alsa-include specify directory for the alsa include files 1987 --with-alsa-lib specify directory for the alsa library 1988 --with-fontconfig specify prefix directory for the fontconfig package 1989 (expecting the headers under PATH/include) 1990 --with-fontconfig-include 1991 specify directory for the fontconfig include files 1992 --with-giflib use giflib from build system or OpenJDK source 1993 (system, bundled) [bundled] 1994 --with-zlib use zlib from build system or OpenJDK source 1995 (system, bundled) [bundled] 1996 --with-stdc++lib=<static>,<dynamic>,<default> 1997 force linking of the C++ runtime on Linux to either 1998 static or dynamic, default is static with dynamic as 1999 fallback 2000 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2001 (Windows only) [probed] 2002 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2003 (Windows only) [probed] 2004 --with-ucrt-dll-dir path to Microsoft Windows Kit UCRT DLL dir (Windows 2005 only) [probed] 2006 --with-dxsdk Deprecated. Option is kept for backwards 2007 compatibility and is ignored 2008 --with-dxsdk-lib Deprecated. Option is kept for backwards 2009 compatibility and is ignored 2010 --with-dxsdk-include Deprecated. Option is kept for backwards 2011 compatibility and is ignored 2012 --with-num-cores number of cores in the build system, e.g. 2013 --with-num-cores=8 [probed] 2014 --with-memory-size memory (in MB) available in the build system, e.g. 2015 --with-memory-size=1024 [probed] 2016 --with-jobs number of parallel jobs to let make run [calculated 2017 based on cores and memory] 2018 --with-sjavac-server-java 2019 use this java binary for running the sjavac 2020 background server [Boot JDK java] 2021 --with-ccache-dir where to store ccache files [~/.ccache] 2022 2023 Some influential environment variables: 2024 BASENAME Override default value for BASENAME 2025 BASH Override default value for BASH 2026 CAT Override default value for CAT 2027 CHMOD Override default value for CHMOD 2028 CMP Override default value for CMP 2029 COMM Override default value for COMM 2030 CP Override default value for CP 2031 CUT Override default value for CUT 2032 DATE Override default value for DATE 2033 DIFF Override default value for DIFF 2034 DIRNAME Override default value for DIRNAME 2035 ECHO Override default value for ECHO 2036 EXPR Override default value for EXPR 2037 FILE Override default value for FILE 2038 FIND Override default value for FIND 2039 HEAD Override default value for HEAD 2040 LN Override default value for LN 2041 LS Override default value for LS 2042 MKDIR Override default value for MKDIR 2043 MKTEMP Override default value for MKTEMP 2044 MV Override default value for MV 2045 NAWK Override default value for NAWK 2046 PRINTF Override default value for PRINTF 2047 RM Override default value for RM 2048 SH Override default value for SH 2049 SORT Override default value for SORT 2050 TAIL Override default value for TAIL 2051 TAR Override default value for TAR 2052 TEE Override default value for TEE 2053 TOUCH Override default value for TOUCH 2054 TR Override default value for TR 2055 UNAME Override default value for UNAME 2056 UNIQ Override default value for UNIQ 2057 WC Override default value for WC 2058 WHICH Override default value for WHICH 2059 XARGS Override default value for XARGS 2060 AWK Override default value for AWK 2061 GREP Override default value for GREP 2062 EGREP Override default value for EGREP 2063 FGREP Override default value for FGREP 2064 SED Override default value for SED 2065 CYGPATH Override default value for CYGPATH 2066 READLINK Override default value for READLINK 2067 DF Override default value for DF 2068 SETFILE Override default value for SETFILE 2069 CPIO Override default value for CPIO 2070 UNZIP Override default value for UNZIP 2071 ZIP Override default value for ZIP 2072 LDD Override default value for LDD 2073 READELF Override default value for READELF 2074 HG Override default value for HG 2075 STAT Override default value for STAT 2076 TIME Override default value for TIME 2077 DSYMUTIL Override default value for DSYMUTIL 2078 XATTR Override default value for XATTR 2079 CODESIGN Override default value for CODESIGN 2080 PKG_CONFIG path to pkg-config utility 2081 CC C compiler command 2082 CFLAGS C compiler flags 2083 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2084 nonstandard directory <lib dir> 2085 LIBS libraries to pass to the linker, e.g. -l<library> 2086 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2087 you have headers in a nonstandard directory <include dir> 2088 CXX C++ compiler command 2089 CXXFLAGS C++ compiler flags 2090 CPP C preprocessor 2091 CXXCPP C++ preprocessor 2092 AS Override default value for AS 2093 AR Override default value for AR 2094 OBJC Objective C compiler command 2095 OBJCFLAGS Objective C compiler flags 2096 LIPO Override default value for LIPO 2097 STRIP Override default value for STRIP 2098 NM Override default value for NM 2099 GNM Override default value for GNM 2100 MCS Override default value for MCS 2101 OBJCOPY Override default value for OBJCOPY 2102 OBJDUMP Override default value for OBJDUMP 2103 BUILD_CC Override default value for BUILD_CC 2104 BUILD_CXX Override default value for BUILD_CXX 2105 BUILD_LD Override default value for BUILD_LD 2106 JTREGEXE Override default value for JTREGEXE 2107 XMKMF Path to xmkmf, Makefile generator for X Window System 2108 FREETYPE_CFLAGS 2109 C compiler flags for FREETYPE, overriding pkg-config 2110 FREETYPE_LIBS 2111 linker flags for FREETYPE, overriding pkg-config 2112 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2113 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2114 LIBFFI_CFLAGS 2115 C compiler flags for LIBFFI, overriding pkg-config 2116 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2117 CCACHE Override default value for CCACHE 2118 2119 Use these variables to override the choices made by `configure' or to help 2120 it to find libraries and programs with nonstandard names/locations. 2121 2122 Report bugs to <build-dev@openjdk.java.net>. 2123 OpenJDK home page: <http://openjdk.java.net>. 2124 _ACEOF 2125 ac_status=$? 2126 fi 2127 2128 if test "$ac_init_help" = "recursive"; then 2129 # If there are subdirs, report their specific --help. 2130 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2131 test -d "$ac_dir" || 2132 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2133 continue 2134 ac_builddir=. 2135 2136 case "$ac_dir" in 2137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2138 *) 2139 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2140 # A ".." for each directory in $ac_dir_suffix. 2141 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2142 case $ac_top_builddir_sub in 2143 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2144 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2145 esac ;; 2146 esac 2147 ac_abs_top_builddir=$ac_pwd 2148 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2149 # for backward compatibility: 2150 ac_top_builddir=$ac_top_build_prefix 2151 2152 case $srcdir in 2153 .) # We are building in place. 2154 ac_srcdir=. 2155 ac_top_srcdir=$ac_top_builddir_sub 2156 ac_abs_top_srcdir=$ac_pwd ;; 2157 [\\/]* | ?:[\\/]* ) # Absolute name. 2158 ac_srcdir=$srcdir$ac_dir_suffix; 2159 ac_top_srcdir=$srcdir 2160 ac_abs_top_srcdir=$srcdir ;; 2161 *) # Relative name. 2162 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2163 ac_top_srcdir=$ac_top_build_prefix$srcdir 2164 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2165 esac 2166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2167 2168 cd "$ac_dir" || { ac_status=$?; continue; } 2169 # Check for guested configure. 2170 if test -f "$ac_srcdir/configure.gnu"; then 2171 echo && 2172 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2173 elif test -f "$ac_srcdir/configure"; then 2174 echo && 2175 $SHELL "$ac_srcdir/configure" --help=recursive 2176 else 2177 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2178 fi || ac_status=$? 2179 cd "$ac_pwd" || { ac_status=$?; break; } 2180 done 2181 fi 2182 2183 test -n "$ac_init_help" && exit $ac_status 2184 if $ac_init_version; then 2185 cat <<\_ACEOF 2186 OpenJDK configure jdk8 2187 generated by GNU Autoconf 2.69 2188 2189 Copyright (C) 2012 Free Software Foundation, Inc. 2190 This configure script is free software; the Free Software Foundation 2191 gives unlimited permission to copy, distribute and modify it. 2192 _ACEOF 2193 exit 2194 fi 2195 2196 ## ------------------------ ## 2197 ## Autoconf initialization. ## 2198 ## ------------------------ ## 2199 2200 # ac_fn_c_try_compile LINENO 2201 # -------------------------- 2202 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2203 ac_fn_c_try_compile () 2204 { 2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2206 rm -f conftest.$ac_objext 2207 if { { ac_try="$ac_compile" 2208 case "(($ac_try" in 2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2210 *) ac_try_echo=$ac_try;; 2211 esac 2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2213 $as_echo "$ac_try_echo"; } >&5 2214 (eval "$ac_compile") 2>conftest.err 2215 ac_status=$? 2216 if test -s conftest.err; then 2217 grep -v '^ *+' conftest.err >conftest.er1 2218 cat conftest.er1 >&5 2219 mv -f conftest.er1 conftest.err 2220 fi 2221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2222 test $ac_status = 0; } && { 2223 test -z "$ac_c_werror_flag" || 2224 test ! -s conftest.err 2225 } && test -s conftest.$ac_objext; then : 2226 ac_retval=0 2227 else 2228 $as_echo "$as_me: failed program was:" >&5 2229 sed 's/^/| /' conftest.$ac_ext >&5 2230 2231 ac_retval=1 2232 fi 2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2234 as_fn_set_status $ac_retval 2235 2236 } # ac_fn_c_try_compile 2237 2238 # ac_fn_cxx_try_compile LINENO 2239 # ---------------------------- 2240 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2241 ac_fn_cxx_try_compile () 2242 { 2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2244 rm -f conftest.$ac_objext 2245 if { { ac_try="$ac_compile" 2246 case "(($ac_try" in 2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2248 *) ac_try_echo=$ac_try;; 2249 esac 2250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2251 $as_echo "$ac_try_echo"; } >&5 2252 (eval "$ac_compile") 2>conftest.err 2253 ac_status=$? 2254 if test -s conftest.err; then 2255 grep -v '^ *+' conftest.err >conftest.er1 2256 cat conftest.er1 >&5 2257 mv -f conftest.er1 conftest.err 2258 fi 2259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2260 test $ac_status = 0; } && { 2261 test -z "$ac_cxx_werror_flag" || 2262 test ! -s conftest.err 2263 } && test -s conftest.$ac_objext; then : 2264 ac_retval=0 2265 else 2266 $as_echo "$as_me: failed program was:" >&5 2267 sed 's/^/| /' conftest.$ac_ext >&5 2268 2269 ac_retval=1 2270 fi 2271 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2272 as_fn_set_status $ac_retval 2273 2274 } # ac_fn_cxx_try_compile 2275 2276 # ac_fn_c_try_cpp LINENO 2277 # ---------------------- 2278 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2279 ac_fn_c_try_cpp () 2280 { 2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2282 if { { ac_try="$ac_cpp conftest.$ac_ext" 2283 case "(($ac_try" in 2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2285 *) ac_try_echo=$ac_try;; 2286 esac 2287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2288 $as_echo "$ac_try_echo"; } >&5 2289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2290 ac_status=$? 2291 if test -s conftest.err; then 2292 grep -v '^ *+' conftest.err >conftest.er1 2293 cat conftest.er1 >&5 2294 mv -f conftest.er1 conftest.err 2295 fi 2296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2297 test $ac_status = 0; } > conftest.i && { 2298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2299 test ! -s conftest.err 2300 }; then : 2301 ac_retval=0 2302 else 2303 $as_echo "$as_me: failed program was:" >&5 2304 sed 's/^/| /' conftest.$ac_ext >&5 2305 2306 ac_retval=1 2307 fi 2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2309 as_fn_set_status $ac_retval 2310 2311 } # ac_fn_c_try_cpp 2312 2313 # ac_fn_cxx_try_cpp LINENO 2314 # ------------------------ 2315 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2316 ac_fn_cxx_try_cpp () 2317 { 2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2319 if { { ac_try="$ac_cpp conftest.$ac_ext" 2320 case "(($ac_try" in 2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2322 *) ac_try_echo=$ac_try;; 2323 esac 2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2325 $as_echo "$ac_try_echo"; } >&5 2326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2327 ac_status=$? 2328 if test -s conftest.err; then 2329 grep -v '^ *+' conftest.err >conftest.er1 2330 cat conftest.er1 >&5 2331 mv -f conftest.er1 conftest.err 2332 fi 2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2334 test $ac_status = 0; } > conftest.i && { 2335 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2336 test ! -s conftest.err 2337 }; then : 2338 ac_retval=0 2339 else 2340 $as_echo "$as_me: failed program was:" >&5 2341 sed 's/^/| /' conftest.$ac_ext >&5 2342 2343 ac_retval=1 2344 fi 2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2346 as_fn_set_status $ac_retval 2347 2348 } # ac_fn_cxx_try_cpp 2349 2350 # ac_fn_objc_try_compile LINENO 2351 # ----------------------------- 2352 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2353 ac_fn_objc_try_compile () 2354 { 2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2356 rm -f conftest.$ac_objext 2357 if { { ac_try="$ac_compile" 2358 case "(($ac_try" in 2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2360 *) ac_try_echo=$ac_try;; 2361 esac 2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2363 $as_echo "$ac_try_echo"; } >&5 2364 (eval "$ac_compile") 2>conftest.err 2365 ac_status=$? 2366 if test -s conftest.err; then 2367 grep -v '^ *+' conftest.err >conftest.er1 2368 cat conftest.er1 >&5 2369 mv -f conftest.er1 conftest.err 2370 fi 2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2372 test $ac_status = 0; } && { 2373 test -z "$ac_objc_werror_flag" || 2374 test ! -s conftest.err 2375 } && test -s conftest.$ac_objext; then : 2376 ac_retval=0 2377 else 2378 $as_echo "$as_me: failed program was:" >&5 2379 sed 's/^/| /' conftest.$ac_ext >&5 2380 2381 ac_retval=1 2382 fi 2383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2384 as_fn_set_status $ac_retval 2385 2386 } # ac_fn_objc_try_compile 2387 2388 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2389 # --------------------------------------------------------- 2390 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2391 # the include files in INCLUDES and setting the cache variable VAR 2392 # accordingly. 2393 ac_fn_cxx_check_header_mongrel () 2394 { 2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2396 if eval \${$3+:} false; then : 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2398 $as_echo_n "checking for $2... " >&6; } 2399 if eval \${$3+:} false; then : 2400 $as_echo_n "(cached) " >&6 2401 fi 2402 eval ac_res=\$$3 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2404 $as_echo "$ac_res" >&6; } 2405 else 2406 # Is the header compilable? 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2408 $as_echo_n "checking $2 usability... " >&6; } 2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2410 /* end confdefs.h. */ 2411 $4 2412 #include <$2> 2413 _ACEOF 2414 if ac_fn_cxx_try_compile "$LINENO"; then : 2415 ac_header_compiler=yes 2416 else 2417 ac_header_compiler=no 2418 fi 2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2421 $as_echo "$ac_header_compiler" >&6; } 2422 2423 # Is the header present? 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2425 $as_echo_n "checking $2 presence... " >&6; } 2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2427 /* end confdefs.h. */ 2428 #include <$2> 2429 _ACEOF 2430 if ac_fn_cxx_try_cpp "$LINENO"; then : 2431 ac_header_preproc=yes 2432 else 2433 ac_header_preproc=no 2434 fi 2435 rm -f conftest.err conftest.i conftest.$ac_ext 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2437 $as_echo "$ac_header_preproc" >&6; } 2438 2439 # So? What about this header? 2440 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2441 yes:no: ) 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2443 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2445 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2446 ;; 2447 no:yes:* ) 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2449 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2451 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2453 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2455 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2457 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2458 ( $as_echo "## ----------------------------------------- ## 2459 ## Report this to build-dev@openjdk.java.net ## 2460 ## ----------------------------------------- ##" 2461 ) | sed "s/^/$as_me: WARNING: /" >&2 2462 ;; 2463 esac 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2465 $as_echo_n "checking for $2... " >&6; } 2466 if eval \${$3+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468 else 2469 eval "$3=\$ac_header_compiler" 2470 fi 2471 eval ac_res=\$$3 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2473 $as_echo "$ac_res" >&6; } 2474 fi 2475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2476 2477 } # ac_fn_cxx_check_header_mongrel 2478 2479 # ac_fn_cxx_try_run LINENO 2480 # ------------------------ 2481 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2482 # that executables *can* be run. 2483 ac_fn_cxx_try_run () 2484 { 2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2486 if { { ac_try="$ac_link" 2487 case "(($ac_try" in 2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2489 *) ac_try_echo=$ac_try;; 2490 esac 2491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2492 $as_echo "$ac_try_echo"; } >&5 2493 (eval "$ac_link") 2>&5 2494 ac_status=$? 2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2496 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2497 { { case "(($ac_try" in 2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2499 *) ac_try_echo=$ac_try;; 2500 esac 2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2502 $as_echo "$ac_try_echo"; } >&5 2503 (eval "$ac_try") 2>&5 2504 ac_status=$? 2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2506 test $ac_status = 0; }; }; then : 2507 ac_retval=0 2508 else 2509 $as_echo "$as_me: program exited with status $ac_status" >&5 2510 $as_echo "$as_me: failed program was:" >&5 2511 sed 's/^/| /' conftest.$ac_ext >&5 2512 2513 ac_retval=$ac_status 2514 fi 2515 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2517 as_fn_set_status $ac_retval 2518 2519 } # ac_fn_cxx_try_run 2520 2521 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2522 # --------------------------------------------------------- 2523 # Tests whether HEADER exists and can be compiled using the include files in 2524 # INCLUDES, setting the cache variable VAR accordingly. 2525 ac_fn_cxx_check_header_compile () 2526 { 2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2529 $as_echo_n "checking for $2... " >&6; } 2530 if eval \${$3+:} false; then : 2531 $as_echo_n "(cached) " >&6 2532 else 2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2534 /* end confdefs.h. */ 2535 $4 2536 #include <$2> 2537 _ACEOF 2538 if ac_fn_cxx_try_compile "$LINENO"; then : 2539 eval "$3=yes" 2540 else 2541 eval "$3=no" 2542 fi 2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2544 fi 2545 eval ac_res=\$$3 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2547 $as_echo "$ac_res" >&6; } 2548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2549 2550 } # ac_fn_cxx_check_header_compile 2551 2552 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2553 # ---------------------------------------------- 2554 # Tries to find the compile-time value of EXPR in a program that includes 2555 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2556 # computed 2557 ac_fn_cxx_compute_int () 2558 { 2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2560 if test "$cross_compiling" = yes; then 2561 # Depending upon the size, compute the lo and hi bounds. 2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2563 /* end confdefs.h. */ 2564 $4 2565 int 2566 main () 2567 { 2568 static int test_array [1 - 2 * !(($2) >= 0)]; 2569 test_array [0] = 0; 2570 return test_array [0]; 2571 2572 ; 2573 return 0; 2574 } 2575 _ACEOF 2576 if ac_fn_cxx_try_compile "$LINENO"; then : 2577 ac_lo=0 ac_mid=0 2578 while :; do 2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2580 /* end confdefs.h. */ 2581 $4 2582 int 2583 main () 2584 { 2585 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2586 test_array [0] = 0; 2587 return test_array [0]; 2588 2589 ; 2590 return 0; 2591 } 2592 _ACEOF 2593 if ac_fn_cxx_try_compile "$LINENO"; then : 2594 ac_hi=$ac_mid; break 2595 else 2596 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2597 if test $ac_lo -le $ac_mid; then 2598 ac_lo= ac_hi= 2599 break 2600 fi 2601 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2602 fi 2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2604 done 2605 else 2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2607 /* end confdefs.h. */ 2608 $4 2609 int 2610 main () 2611 { 2612 static int test_array [1 - 2 * !(($2) < 0)]; 2613 test_array [0] = 0; 2614 return test_array [0]; 2615 2616 ; 2617 return 0; 2618 } 2619 _ACEOF 2620 if ac_fn_cxx_try_compile "$LINENO"; then : 2621 ac_hi=-1 ac_mid=-1 2622 while :; do 2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2624 /* end confdefs.h. */ 2625 $4 2626 int 2627 main () 2628 { 2629 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2630 test_array [0] = 0; 2631 return test_array [0]; 2632 2633 ; 2634 return 0; 2635 } 2636 _ACEOF 2637 if ac_fn_cxx_try_compile "$LINENO"; then : 2638 ac_lo=$ac_mid; break 2639 else 2640 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2641 if test $ac_mid -le $ac_hi; then 2642 ac_lo= ac_hi= 2643 break 2644 fi 2645 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2646 fi 2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2648 done 2649 else 2650 ac_lo= ac_hi= 2651 fi 2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2653 fi 2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2655 # Binary search between lo and hi bounds. 2656 while test "x$ac_lo" != "x$ac_hi"; do 2657 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2659 /* end confdefs.h. */ 2660 $4 2661 int 2662 main () 2663 { 2664 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2665 test_array [0] = 0; 2666 return test_array [0]; 2667 2668 ; 2669 return 0; 2670 } 2671 _ACEOF 2672 if ac_fn_cxx_try_compile "$LINENO"; then : 2673 ac_hi=$ac_mid 2674 else 2675 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2676 fi 2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2678 done 2679 case $ac_lo in #(( 2680 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2681 '') ac_retval=1 ;; 2682 esac 2683 else 2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2685 /* end confdefs.h. */ 2686 $4 2687 static long int longval () { return $2; } 2688 static unsigned long int ulongval () { return $2; } 2689 #include <stdio.h> 2690 #include <stdlib.h> 2691 int 2692 main () 2693 { 2694 2695 FILE *f = fopen ("conftest.val", "w"); 2696 if (! f) 2697 return 1; 2698 if (($2) < 0) 2699 { 2700 long int i = longval (); 2701 if (i != ($2)) 2702 return 1; 2703 fprintf (f, "%ld", i); 2704 } 2705 else 2706 { 2707 unsigned long int i = ulongval (); 2708 if (i != ($2)) 2709 return 1; 2710 fprintf (f, "%lu", i); 2711 } 2712 /* Do not output a trailing newline, as this causes \r\n confusion 2713 on some platforms. */ 2714 return ferror (f) || fclose (f) != 0; 2715 2716 ; 2717 return 0; 2718 } 2719 _ACEOF 2720 if ac_fn_cxx_try_run "$LINENO"; then : 2721 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2722 else 2723 ac_retval=1 2724 fi 2725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2726 conftest.$ac_objext conftest.beam conftest.$ac_ext 2727 rm -f conftest.val 2728 2729 fi 2730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2731 as_fn_set_status $ac_retval 2732 2733 } # ac_fn_cxx_compute_int 2734 2735 # ac_fn_cxx_try_link LINENO 2736 # ------------------------- 2737 # Try to link conftest.$ac_ext, and return whether this succeeded. 2738 ac_fn_cxx_try_link () 2739 { 2740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2741 rm -f conftest.$ac_objext conftest$ac_exeext 2742 if { { ac_try="$ac_link" 2743 case "(($ac_try" in 2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2745 *) ac_try_echo=$ac_try;; 2746 esac 2747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2748 $as_echo "$ac_try_echo"; } >&5 2749 (eval "$ac_link") 2>conftest.err 2750 ac_status=$? 2751 if test -s conftest.err; then 2752 grep -v '^ *+' conftest.err >conftest.er1 2753 cat conftest.er1 >&5 2754 mv -f conftest.er1 conftest.err 2755 fi 2756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2757 test $ac_status = 0; } && { 2758 test -z "$ac_cxx_werror_flag" || 2759 test ! -s conftest.err 2760 } && test -s conftest$ac_exeext && { 2761 test "$cross_compiling" = yes || 2762 test -x conftest$ac_exeext 2763 }; then : 2764 ac_retval=0 2765 else 2766 $as_echo "$as_me: failed program was:" >&5 2767 sed 's/^/| /' conftest.$ac_ext >&5 2768 2769 ac_retval=1 2770 fi 2771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2773 # interfere with the next link command; also delete a directory that is 2774 # left behind by Apple's compiler. We do this before executing the actions. 2775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2777 as_fn_set_status $ac_retval 2778 2779 } # ac_fn_cxx_try_link 2780 2781 # ac_fn_cxx_check_func LINENO FUNC VAR 2782 # ------------------------------------ 2783 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2784 ac_fn_cxx_check_func () 2785 { 2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2788 $as_echo_n "checking for $2... " >&6; } 2789 if eval \${$3+:} false; then : 2790 $as_echo_n "(cached) " >&6 2791 else 2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2793 /* end confdefs.h. */ 2794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2795 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2796 #define $2 innocuous_$2 2797 2798 /* System header to define __stub macros and hopefully few prototypes, 2799 which can conflict with char $2 (); below. 2800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2801 <limits.h> exists even on freestanding compilers. */ 2802 2803 #ifdef __STDC__ 2804 # include <limits.h> 2805 #else 2806 # include <assert.h> 2807 #endif 2808 2809 #undef $2 2810 2811 /* Override any GCC internal prototype to avoid an error. 2812 Use char because int might match the return type of a GCC 2813 builtin and then its argument prototype would still apply. */ 2814 #ifdef __cplusplus 2815 extern "C" 2816 #endif 2817 char $2 (); 2818 /* The GNU C library defines this for functions which it implements 2819 to always fail with ENOSYS. Some functions are actually named 2820 something starting with __ and the normal name is an alias. */ 2821 #if defined __stub_$2 || defined __stub___$2 2822 choke me 2823 #endif 2824 2825 int 2826 main () 2827 { 2828 return $2 (); 2829 ; 2830 return 0; 2831 } 2832 _ACEOF 2833 if ac_fn_cxx_try_link "$LINENO"; then : 2834 eval "$3=yes" 2835 else 2836 eval "$3=no" 2837 fi 2838 rm -f core conftest.err conftest.$ac_objext \ 2839 conftest$ac_exeext conftest.$ac_ext 2840 fi 2841 eval ac_res=\$$3 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2843 $as_echo "$ac_res" >&6; } 2844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2845 2846 } # ac_fn_cxx_check_func 2847 2848 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2849 # ------------------------------------------------------- 2850 # Tests whether HEADER exists and can be compiled using the include files in 2851 # INCLUDES, setting the cache variable VAR accordingly. 2852 ac_fn_c_check_header_compile () 2853 { 2854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2856 $as_echo_n "checking for $2... " >&6; } 2857 if eval \${$3+:} false; then : 2858 $as_echo_n "(cached) " >&6 2859 else 2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2861 /* end confdefs.h. */ 2862 $4 2863 #include <$2> 2864 _ACEOF 2865 if ac_fn_c_try_compile "$LINENO"; then : 2866 eval "$3=yes" 2867 else 2868 eval "$3=no" 2869 fi 2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2871 fi 2872 eval ac_res=\$$3 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2874 $as_echo "$ac_res" >&6; } 2875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2876 2877 } # ac_fn_c_check_header_compile 2878 cat >config.log <<_ACEOF 2879 This file contains any messages produced by compilers while 2880 running configure, to aid debugging if configure makes a mistake. 2881 2882 It was created by OpenJDK $as_me jdk8, which was 2883 generated by GNU Autoconf 2.69. Invocation command line was 2884 2885 $ $0 $@ 2886 2887 _ACEOF 2888 exec 5>>config.log 2889 { 2890 cat <<_ASUNAME 2891 ## --------- ## 2892 ## Platform. ## 2893 ## --------- ## 2894 2895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2896 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2897 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2898 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2899 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2900 2901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2903 2904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2907 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2911 2912 _ASUNAME 2913 2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2915 for as_dir in $PATH 2916 do 2917 IFS=$as_save_IFS 2918 test -z "$as_dir" && as_dir=. 2919 $as_echo "PATH: $as_dir" 2920 done 2921 IFS=$as_save_IFS 2922 2923 } >&5 2924 2925 cat >&5 <<_ACEOF 2926 2927 2928 ## ----------- ## 2929 ## Core tests. ## 2930 ## ----------- ## 2931 2932 _ACEOF 2933 2934 2935 # Keep a trace of the command line. 2936 # Strip out --no-create and --no-recursion so they do not pile up. 2937 # Strip out --silent because we don't want to record it for future runs. 2938 # Also quote any args containing shell meta-characters. 2939 # Make two passes to allow for proper duplicate-argument suppression. 2940 ac_configure_args= 2941 ac_configure_args0= 2942 ac_configure_args1= 2943 ac_must_keep_next=false 2944 for ac_pass in 1 2 2945 do 2946 for ac_arg 2947 do 2948 case $ac_arg in 2949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2951 | -silent | --silent | --silen | --sile | --sil) 2952 continue ;; 2953 *\'*) 2954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2955 esac 2956 case $ac_pass in 2957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2958 2) 2959 as_fn_append ac_configure_args1 " '$ac_arg'" 2960 if test $ac_must_keep_next = true; then 2961 ac_must_keep_next=false # Got value, back to normal. 2962 else 2963 case $ac_arg in 2964 *=* | --config-cache | -C | -disable-* | --disable-* \ 2965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2967 | -with-* | --with-* | -without-* | --without-* | --x) 2968 case "$ac_configure_args0 " in 2969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2970 esac 2971 ;; 2972 -* ) ac_must_keep_next=true ;; 2973 esac 2974 fi 2975 as_fn_append ac_configure_args " '$ac_arg'" 2976 ;; 2977 esac 2978 done 2979 done 2980 { ac_configure_args0=; unset ac_configure_args0;} 2981 { ac_configure_args1=; unset ac_configure_args1;} 2982 2983 # When interrupted or exit'd, cleanup temporary files, and complete 2984 # config.log. We remove comments because anyway the quotes in there 2985 # would cause problems or look ugly. 2986 # WARNING: Use '\'' to represent an apostrophe within the trap. 2987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2988 trap 'exit_status=$? 2989 # Save into config.log some information that might help in debugging. 2990 { 2991 echo 2992 2993 $as_echo "## ---------------- ## 2994 ## Cache variables. ## 2995 ## ---------------- ##" 2996 echo 2997 # The following way of writing the cache mishandles newlines in values, 2998 ( 2999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3000 eval ac_val=\$$ac_var 3001 case $ac_val in #( 3002 *${as_nl}*) 3003 case $ac_var in #( 3004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3006 esac 3007 case $ac_var in #( 3008 _ | IFS | as_nl) ;; #( 3009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3010 *) { eval $ac_var=; unset $ac_var;} ;; 3011 esac ;; 3012 esac 3013 done 3014 (set) 2>&1 | 3015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3016 *${as_nl}ac_space=\ *) 3017 sed -n \ 3018 "s/'\''/'\''\\\\'\'''\''/g; 3019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3020 ;; #( 3021 *) 3022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3023 ;; 3024 esac | 3025 sort 3026 ) 3027 echo 3028 3029 $as_echo "## ----------------- ## 3030 ## Output variables. ## 3031 ## ----------------- ##" 3032 echo 3033 for ac_var in $ac_subst_vars 3034 do 3035 eval ac_val=\$$ac_var 3036 case $ac_val in 3037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3038 esac 3039 $as_echo "$ac_var='\''$ac_val'\''" 3040 done | sort 3041 echo 3042 3043 if test -n "$ac_subst_files"; then 3044 $as_echo "## ------------------- ## 3045 ## File substitutions. ## 3046 ## ------------------- ##" 3047 echo 3048 for ac_var in $ac_subst_files 3049 do 3050 eval ac_val=\$$ac_var 3051 case $ac_val in 3052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3053 esac 3054 $as_echo "$ac_var='\''$ac_val'\''" 3055 done | sort 3056 echo 3057 fi 3058 3059 if test -s confdefs.h; then 3060 $as_echo "## ----------- ## 3061 ## confdefs.h. ## 3062 ## ----------- ##" 3063 echo 3064 cat confdefs.h 3065 echo 3066 fi 3067 test "$ac_signal" != 0 && 3068 $as_echo "$as_me: caught signal $ac_signal" 3069 $as_echo "$as_me: exit $exit_status" 3070 } >&5 3071 rm -f core *.core core.conftest.* && 3072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3073 exit $exit_status 3074 ' 0 3075 for ac_signal in 1 2 13 15; do 3076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3077 done 3078 ac_signal=0 3079 3080 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3081 rm -f -r conftest* confdefs.h 3082 3083 $as_echo "/* confdefs.h */" > confdefs.h 3084 3085 # Predefined preprocessor variables. 3086 3087 cat >>confdefs.h <<_ACEOF 3088 #define PACKAGE_NAME "$PACKAGE_NAME" 3089 _ACEOF 3090 3091 cat >>confdefs.h <<_ACEOF 3092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3093 _ACEOF 3094 3095 cat >>confdefs.h <<_ACEOF 3096 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3097 _ACEOF 3098 3099 cat >>confdefs.h <<_ACEOF 3100 #define PACKAGE_STRING "$PACKAGE_STRING" 3101 _ACEOF 3102 3103 cat >>confdefs.h <<_ACEOF 3104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3105 _ACEOF 3106 3107 cat >>confdefs.h <<_ACEOF 3108 #define PACKAGE_URL "$PACKAGE_URL" 3109 _ACEOF 3110 3111 3112 # Let the site file select an alternate cache file if it wants to. 3113 # Prefer an explicitly selected file to automatically selected ones. 3114 ac_site_file1=NONE 3115 ac_site_file2=NONE 3116 if test -n "$CONFIG_SITE"; then 3117 # We do not want a PATH search for config.site. 3118 case $CONFIG_SITE in #(( 3119 -*) ac_site_file1=./$CONFIG_SITE;; 3120 */*) ac_site_file1=$CONFIG_SITE;; 3121 *) ac_site_file1=./$CONFIG_SITE;; 3122 esac 3123 elif test "x$prefix" != xNONE; then 3124 ac_site_file1=$prefix/share/config.site 3125 ac_site_file2=$prefix/etc/config.site 3126 else 3127 ac_site_file1=$ac_default_prefix/share/config.site 3128 ac_site_file2=$ac_default_prefix/etc/config.site 3129 fi 3130 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3131 do 3132 test "x$ac_site_file" = xNONE && continue 3133 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3135 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3136 sed 's/^/| /' "$ac_site_file" >&5 3137 . "$ac_site_file" \ 3138 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3140 as_fn_error $? "failed to load site script $ac_site_file 3141 See \`config.log' for more details" "$LINENO" 5; } 3142 fi 3143 done 3144 3145 if test -r "$cache_file"; then 3146 # Some versions of bash will fail to source /dev/null (special files 3147 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3150 $as_echo "$as_me: loading cache $cache_file" >&6;} 3151 case $cache_file in 3152 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3153 *) . "./$cache_file";; 3154 esac 3155 fi 3156 else 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3158 $as_echo "$as_me: creating cache $cache_file" >&6;} 3159 >$cache_file 3160 fi 3161 3162 # Check that the precious variables saved in the cache have kept the same 3163 # value. 3164 ac_cache_corrupted=false 3165 for ac_var in $ac_precious_vars; do 3166 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3167 eval ac_new_set=\$ac_env_${ac_var}_set 3168 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3169 eval ac_new_val=\$ac_env_${ac_var}_value 3170 case $ac_old_set,$ac_new_set in 3171 set,) 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3174 ac_cache_corrupted=: ;; 3175 ,set) 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3178 ac_cache_corrupted=: ;; 3179 ,);; 3180 *) 3181 if test "x$ac_old_val" != "x$ac_new_val"; then 3182 # differences in whitespace do not lead to failure. 3183 ac_old_val_w=`echo x $ac_old_val` 3184 ac_new_val_w=`echo x $ac_new_val` 3185 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3188 ac_cache_corrupted=: 3189 else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3192 eval $ac_var=\$ac_old_val 3193 fi 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3198 fi;; 3199 esac 3200 # Pass precious variables to config.status. 3201 if test "$ac_new_set" = set; then 3202 case $ac_new_val in 3203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3204 *) ac_arg=$ac_var=$ac_new_val ;; 3205 esac 3206 case " $ac_configure_args " in 3207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3208 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3209 esac 3210 fi 3211 done 3212 if $ac_cache_corrupted; then 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3218 fi 3219 ## -------------------- ## 3220 ## Main body of script. ## 3221 ## -------------------- ## 3222 3223 ac_ext=c 3224 ac_cpp='$CPP $CPPFLAGS' 3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3228 3229 3230 3231 ac_aux_dir= 3232 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3233 if test -f "$ac_dir/install-sh"; then 3234 ac_aux_dir=$ac_dir 3235 ac_install_sh="$ac_aux_dir/install-sh -c" 3236 break 3237 elif test -f "$ac_dir/install.sh"; then 3238 ac_aux_dir=$ac_dir 3239 ac_install_sh="$ac_aux_dir/install.sh -c" 3240 break 3241 elif test -f "$ac_dir/shtool"; then 3242 ac_aux_dir=$ac_dir 3243 ac_install_sh="$ac_aux_dir/shtool install -c" 3244 break 3245 fi 3246 done 3247 if test -z "$ac_aux_dir"; then 3248 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5 3249 fi 3250 3251 # These three variables are undocumented and unsupported, 3252 # and are intended to be withdrawn in a future Autoconf release. 3253 # They can cause serious problems if a builder's source tree is in a directory 3254 # whose full name contains unusual characters. 3255 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3256 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3257 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3258 3259 3260 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3261 3262 # 3263 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3264 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3265 # 3266 # This code is free software; you can redistribute it and/or modify it 3267 # under the terms of the GNU General Public License version 2 only, as 3268 # published by the Free Software Foundation. Oracle designates this 3269 # particular file as subject to the "Classpath" exception as provided 3270 # by Oracle in the LICENSE file that accompanied this code. 3271 # 3272 # This code is distributed in the hope that it will be useful, but WITHOUT 3273 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3274 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3275 # version 2 for more details (a copy is included in the LICENSE file that 3276 # accompanied this code). 3277 # 3278 # You should have received a copy of the GNU General Public License version 3279 # 2 along with this work; if not, write to the Free Software Foundation, 3280 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3281 # 3282 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3283 # or visit www.oracle.com if you need additional information or have any 3284 # questions. 3285 # 3286 3287 # 3288 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3289 # 3290 # This program is free software; you can redistribute it and/or modify 3291 # it under the terms of the GNU General Public License as published by 3292 # the Free Software Foundation; either version 2 of the License, or 3293 # (at your option) any later version. 3294 # 3295 # This program is distributed in the hope that it will be useful, but 3296 # WITHOUT ANY WARRANTY; without even the implied warranty of 3297 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3298 # General Public License for more details. 3299 # 3300 # You should have received a copy of the GNU General Public License 3301 # along with this program; if not, write to the Free Software 3302 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3303 # 3304 # As a special exception to the GNU General Public License, if you 3305 # distribute this file as part of a program that contains a 3306 # configuration script generated by Autoconf, you may include it under 3307 # the same distribution terms that you use for the rest of that program. 3308 3309 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3310 # ---------------------------------- 3311 # PKG_PROG_PKG_CONFIG 3312 3313 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3314 # 3315 # Check to see whether a particular set of modules exists. Similar 3316 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3317 # 3318 # 3319 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3320 # this or PKG_CHECK_MODULES is called, or make sure to call 3321 # PKG_CHECK_EXISTS manually 3322 # -------------------------------------------------------------- 3323 3324 3325 3326 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3327 # --------------------------------------------- 3328 # _PKG_CONFIG 3329 3330 # _PKG_SHORT_ERRORS_SUPPORTED 3331 # ----------------------------- 3332 # _PKG_SHORT_ERRORS_SUPPORTED 3333 3334 3335 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3336 # [ACTION-IF-NOT-FOUND]) 3337 # 3338 # 3339 # Note that if there is a possibility the first call to 3340 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3341 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3342 # 3343 # 3344 # -------------------------------------------------------------- 3345 # PKG_CHECK_MODULES 3346 3347 3348 # Include these first... 3349 # 3350 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3351 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3352 # 3353 # This code is free software; you can redistribute it and/or modify it 3354 # under the terms of the GNU General Public License version 2 only, as 3355 # published by the Free Software Foundation. Oracle designates this 3356 # particular file as subject to the "Classpath" exception as provided 3357 # by Oracle in the LICENSE file that accompanied this code. 3358 # 3359 # This code is distributed in the hope that it will be useful, but WITHOUT 3360 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3361 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3362 # version 2 for more details (a copy is included in the LICENSE file that 3363 # accompanied this code). 3364 # 3365 # You should have received a copy of the GNU General Public License version 3366 # 2 along with this work; if not, write to the Free Software Foundation, 3367 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3368 # 3369 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3370 # or visit www.oracle.com if you need additional information or have any 3371 # questions. 3372 # 3373 3374 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3375 # If so, then append $1 to $2 \ 3376 # Also set JVM_ARG_OK to true/false depending on outcome. 3377 3378 3379 # Appends a string to a path variable, only adding the : when needed. 3380 3381 3382 # Prepends a string to a path variable, only adding the : when needed. 3383 3384 3385 # This will make sure the given variable points to a full and proper 3386 # path. This means: 3387 # 1) There will be no spaces in the path. On posix platforms, 3388 # spaces in the path will result in an error. On Windows, 3389 # the path will be rewritten using short-style to be space-free. 3390 # 2) The path will be absolute, and it will be in unix-style (on 3391 # cygwin). 3392 # $1: The name of the variable to fix 3393 3394 3395 # This will make sure the given variable points to a executable 3396 # with a full and proper path. This means: 3397 # 1) There will be no spaces in the path. On posix platforms, 3398 # spaces in the path will result in an error. On Windows, 3399 # the path will be rewritten using short-style to be space-free. 3400 # 2) The path will be absolute, and it will be in unix-style (on 3401 # cygwin). 3402 # Any arguments given to the executable is preserved. 3403 # If the input variable does not have a directory specification, then 3404 # it need to be in the PATH. 3405 # $1: The name of the variable to fix 3406 3407 3408 3409 3410 # Register a --with argument but mark it as deprecated 3411 # $1: The name of the with argument to deprecate, not including --with- 3412 3413 3414 # Register a --enable argument but mark it as deprecated 3415 # $1: The name of the with argument to deprecate, not including --enable- 3416 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3417 3418 3419 3420 3421 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3422 # $1: variable to check 3423 3424 3425 # Check that there are no unprocessed overridden variables left. 3426 # If so, they are an incorrect argument and we will exit with an error. 3427 3428 3429 # Setup a tool for the given variable. If correctly specified by the user, 3430 # use that value, otherwise search for the tool using the supplied code snippet. 3431 # $1: variable to set 3432 # $2: code snippet to call to look for the tool 3433 3434 3435 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3436 # $1: variable to set 3437 # $2: executable name (or list of names) to look for 3438 3439 3440 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3441 # $1: variable to set 3442 # $2: executable name (or list of names) to look for 3443 3444 3445 # Like BASIC_PATH_PROGS but fails if no tool was found. 3446 # $1: variable to set 3447 # $2: executable name (or list of names) to look for 3448 3449 3450 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3451 # $1: variable to set 3452 # $2: autoconf macro to call to look for the special tool 3453 3454 3455 # Setup the most fundamental tools that relies on not much else to set up, 3456 # but is used by much of the early bootstrap code. 3457 3458 3459 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3460 3461 3462 # Evaluates platform specific overrides for devkit variables. 3463 # $1: Name of variable 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 #%%% Simple tools %%% 3474 3475 # Check if we have found a usable version of make 3476 # $1: the path to a potential make binary (or empty) 3477 # $2: the description on how we found this 3478 3479 3480 # Goes looking for a usable version of GNU make. 3481 3482 3483 3484 3485 3486 3487 # Check if build directory is on local disk. If not possible to determine, 3488 # we prefer to claim it's local. 3489 # Argument 1: directory to test 3490 # Argument 2: what to do if it is on local disk 3491 # Argument 3: what to do otherwise (remote disk or failure) 3492 3493 3494 # Check that source files have basic read permissions set. This might 3495 # not be the case in cygwin in certain conditions. 3496 3497 3498 3499 3500 # Code to run after AC_OUTPUT 3501 3502 3503 # 3504 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3505 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3506 # 3507 # This code is free software; you can redistribute it and/or modify it 3508 # under the terms of the GNU General Public License version 2 only, as 3509 # published by the Free Software Foundation. Oracle designates this 3510 # particular file as subject to the "Classpath" exception as provided 3511 # by Oracle in the LICENSE file that accompanied this code. 3512 # 3513 # This code is distributed in the hope that it will be useful, but WITHOUT 3514 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3515 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3516 # version 2 for more details (a copy is included in the LICENSE file that 3517 # accompanied this code). 3518 # 3519 # You should have received a copy of the GNU General Public License version 3520 # 2 along with this work; if not, write to the Free Software Foundation, 3521 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3522 # 3523 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3524 # or visit www.oracle.com if you need additional information or have any 3525 # questions. 3526 # 3527 3528 3529 3530 3531 3532 # Helper function which possibly converts a path using DOS-style short mode. 3533 # If so, the updated path is stored in $new_path. 3534 # $1: The path to check 3535 3536 3537 # Helper function which possibly converts a path using DOS-style short mode. 3538 # If so, the updated path is stored in $new_path. 3539 # $1: The path to check 3540 3541 3542 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3543 # and could probably be heavily simplified. However, all changes in this 3544 # area tend to need lot of testing in different scenarios, and in lack of 3545 # proper unit testing, cleaning this up has not been deemed worth the effort 3546 # at the moment. 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3557 3558 3559 3560 3561 # 3562 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3563 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3564 # 3565 # This code is free software; you can redistribute it and/or modify it 3566 # under the terms of the GNU General Public License version 2 only, as 3567 # published by the Free Software Foundation. Oracle designates this 3568 # particular file as subject to the "Classpath" exception as provided 3569 # by Oracle in the LICENSE file that accompanied this code. 3570 # 3571 # This code is distributed in the hope that it will be useful, but WITHOUT 3572 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3573 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3574 # version 2 for more details (a copy is included in the LICENSE file that 3575 # accompanied this code). 3576 # 3577 # You should have received a copy of the GNU General Public License version 3578 # 2 along with this work; if not, write to the Free Software Foundation, 3579 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3580 # 3581 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3582 # or visit www.oracle.com if you need additional information or have any 3583 # questions. 3584 # 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 # ... then the rest 3597 # 3598 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3599 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3600 # 3601 # This code is free software; you can redistribute it and/or modify it 3602 # under the terms of the GNU General Public License version 2 only, as 3603 # published by the Free Software Foundation. Oracle designates this 3604 # particular file as subject to the "Classpath" exception as provided 3605 # by Oracle in the LICENSE file that accompanied this code. 3606 # 3607 # This code is distributed in the hope that it will be useful, but WITHOUT 3608 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3609 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3610 # version 2 for more details (a copy is included in the LICENSE file that 3611 # accompanied this code). 3612 # 3613 # You should have received a copy of the GNU General Public License version 3614 # 2 along with this work; if not, write to the Free Software Foundation, 3615 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3616 # 3617 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3618 # or visit www.oracle.com if you need additional information or have any 3619 # questions. 3620 # 3621 3622 # Execute the check given as argument, and verify the result 3623 # If the Boot JDK was previously found, do nothing 3624 # $1 A command line (typically autoconf macro) to execute 3625 3626 3627 # Test: Is bootjdk explicitely set by command line arguments? 3628 3629 3630 # Test: Is bootjdk available from builddeps? 3631 3632 3633 # Test: Is $JAVA_HOME set? 3634 3635 3636 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3637 3638 3639 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3640 3641 3642 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3643 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3644 # $1 = Path to directory containing jdk installations. 3645 # $2 = String to append to the found JDK directory to get the proper JDK home 3646 3647 3648 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3649 # environmental variable as base for where to look. 3650 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3651 3652 3653 # Test: Is there a JDK installed in default, well-known locations? 3654 3655 3656 # Check that a command-line tool in the Boot JDK is correct 3657 # $1 = name of variable to assign 3658 # $2 = name of binary 3659 3660 3661 ############################################################################### 3662 # 3663 # We need a Boot JDK to bootstrap the build. 3664 # 3665 3666 3667 3668 3669 3670 # 3671 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. 3672 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3673 # 3674 # This code is free software; you can redistribute it and/or modify it 3675 # under the terms of the GNU General Public License version 2 only, as 3676 # published by the Free Software Foundation. Oracle designates this 3677 # particular file as subject to the "Classpath" exception as provided 3678 # by Oracle in the LICENSE file that accompanied this code. 3679 # 3680 # This code is distributed in the hope that it will be useful, but WITHOUT 3681 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3682 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3683 # version 2 for more details (a copy is included in the LICENSE file that 3684 # accompanied this code). 3685 # 3686 # You should have received a copy of the GNU General Public License version 3687 # 2 along with this work; if not, write to the Free Software Foundation, 3688 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3689 # 3690 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3691 # or visit www.oracle.com if you need additional information or have any 3692 # questions. 3693 # 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 # 3715 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3716 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3717 # 3718 # This code is free software; you can redistribute it and/or modify it 3719 # under the terms of the GNU General Public License version 2 only, as 3720 # published by the Free Software Foundation. Oracle designates this 3721 # particular file as subject to the "Classpath" exception as provided 3722 # by Oracle in the LICENSE file that accompanied this code. 3723 # 3724 # This code is distributed in the hope that it will be useful, but WITHOUT 3725 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3726 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3727 # version 2 for more details (a copy is included in the LICENSE file that 3728 # accompanied this code). 3729 # 3730 # You should have received a copy of the GNU General Public License version 3731 # 2 along with this work; if not, write to the Free Software Foundation, 3732 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3733 # 3734 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3735 # or visit www.oracle.com if you need additional information or have any 3736 # questions. 3737 # 3738 3739 3740 3741 3742 3743 # Documentation on common flags used for solstudio in HIGHEST. 3744 # 3745 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3746 # done with care, there are some assumptions below that need to 3747 # be understood about the use of pointers, and IEEE behavior. 3748 # 3749 # -fns: Use non-standard floating point mode (not IEEE 754) 3750 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3751 # -fsingle: Use single precision floating point with 'float' 3752 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3753 # (Source with excessing pointer casting and data access with mixed 3754 # pointer types are not recommended) 3755 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3756 # (If you expect perfect errno behavior, do not use this) 3757 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3758 # -xrestrict: Pointer parameters to functions do not overlap 3759 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3760 # If you pass in multiple pointers to the same data, do not use this) 3761 # -xlibmil: Inline some library routines 3762 # (If you expect perfect errno behavior, do not use this) 3763 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3764 # (If you expect perfect errno behavior, do not use this) 3765 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3766 3767 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3768 # Bug? 3769 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3770 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3771 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3772 #fi 3773 3774 3775 3776 3777 3778 3779 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3780 # [RUN-IF-FALSE]) 3781 # ------------------------------------------------------------ 3782 # Check that the C compiler supports an argument 3783 3784 3785 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3786 # [RUN-IF-FALSE]) 3787 # ------------------------------------------------------------ 3788 # Check that the C++ compiler supports an argument 3789 3790 3791 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3792 # [RUN-IF-FALSE]) 3793 # ------------------------------------------------------------ 3794 # Check that the C and C++ compilers support an argument 3795 3796 3797 3798 3799 3800 3801 3802 # 3803 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3804 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3805 # 3806 # This code is free software; you can redistribute it and/or modify it 3807 # under the terms of the GNU General Public License version 2 only, as 3808 # published by the Free Software Foundation. Oracle designates this 3809 # particular file as subject to the "Classpath" exception as provided 3810 # by Oracle in the LICENSE file that accompanied this code. 3811 # 3812 # This code is distributed in the hope that it will be useful, but WITHOUT 3813 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3814 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3815 # version 2 for more details (a copy is included in the LICENSE file that 3816 # accompanied this code). 3817 # 3818 # You should have received a copy of the GNU General Public License version 3819 # 2 along with this work; if not, write to the Free Software Foundation, 3820 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3821 # 3822 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3823 # or visit www.oracle.com if you need additional information or have any 3824 # questions. 3825 # 3826 3827 3828 3829 3830 3831 cygwin_help() { 3832 case $1 in 3833 unzip) 3834 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3835 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3836 ;; 3837 zip) 3838 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3839 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3840 ;; 3841 make) 3842 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3843 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3844 ;; 3845 freetype) 3846 HELP_MSG=" 3847 The freetype library can now be build during the configure process. 3848 Download the freetype sources and unpack them into an arbitrary directory: 3849 3850 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3851 tar -xzf freetype-2.5.3.tar.gz 3852 3853 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3854 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3855 builds or into '<freetype_src>/lib32' for 32-bit builds. 3856 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3857 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3858 ;; 3859 esac 3860 } 3861 3862 msys_help() { 3863 PKGHANDLER_COMMAND="" 3864 } 3865 3866 apt_help() { 3867 case $1 in 3868 devkit) 3869 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3870 openjdk) 3871 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3872 alsa) 3873 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3874 cups) 3875 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3876 fontconfig) 3877 PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;; 3878 freetype) 3879 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3880 pulse) 3881 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3882 x11) 3883 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3884 ccache) 3885 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3886 esac 3887 } 3888 3889 yum_help() { 3890 case $1 in 3891 devkit) 3892 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3893 openjdk) 3894 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3895 alsa) 3896 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3897 cups) 3898 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3899 fontconfig) 3900 PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;; 3901 freetype) 3902 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3903 pulse) 3904 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3905 x11) 3906 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3907 ccache) 3908 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3909 esac 3910 } 3911 3912 port_help() { 3913 PKGHANDLER_COMMAND="" 3914 } 3915 3916 pkgutil_help() { 3917 PKGHANDLER_COMMAND="" 3918 } 3919 3920 pkgadd_help() { 3921 PKGHANDLER_COMMAND="" 3922 } 3923 3924 # This function will check if we're called from the "configure" wrapper while 3925 # printing --help. If so, we will print out additional information that can 3926 # only be extracted within the autoconf script, and then exit. This must be 3927 # called at the very beginning in configure.ac. 3928 3929 3930 3931 3932 3933 3934 # 3935 # Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved. 3936 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3937 # 3938 # This code is free software; you can redistribute it and/or modify it 3939 # under the terms of the GNU General Public License version 2 only, as 3940 # published by the Free Software Foundation. Oracle designates this 3941 # particular file as subject to the "Classpath" exception as provided 3942 # by Oracle in the LICENSE file that accompanied this code. 3943 # 3944 # This code is distributed in the hope that it will be useful, but WITHOUT 3945 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3946 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3947 # version 2 for more details (a copy is included in the LICENSE file that 3948 # accompanied this code). 3949 # 3950 # You should have received a copy of the GNU General Public License version 3951 # 2 along with this work; if not, write to the Free Software Foundation, 3952 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3953 # 3954 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3955 # or visit www.oracle.com if you need additional information or have any 3956 # questions. 3957 # 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 ############################################################################### 3969 # 3970 # Should we build only OpenJDK even if closed sources are present? 3971 # 3972 3973 3974 3975 3976 ############################################################################### 3977 # 3978 # Setup version numbers 3979 # 3980 3981 3982 3983 3984 3985 3986 # Support for customization of the build process. Some build files 3987 # will include counterparts from this location, if they exist. This allows 3988 # for a degree of customization of the build targets and the rules/recipes 3989 # to create them 3990 3991 # Check whether --with-custom-make-dir was given. 3992 if test "${with_custom_make_dir+set}" = set; then : 3993 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir 3994 fi 3995 3996 3997 3998 # 3999 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4000 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4001 # 4002 # This code is free software; you can redistribute it and/or modify it 4003 # under the terms of the GNU General Public License version 2 only, as 4004 # published by the Free Software Foundation. Oracle designates this 4005 # particular file as subject to the "Classpath" exception as provided 4006 # by Oracle in the LICENSE file that accompanied this code. 4007 # 4008 # This code is distributed in the hope that it will be useful, but WITHOUT 4009 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4010 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4011 # version 2 for more details (a copy is included in the LICENSE file that 4012 # accompanied this code). 4013 # 4014 # You should have received a copy of the GNU General Public License version 4015 # 2 along with this work; if not, write to the Free Software Foundation, 4016 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4017 # 4018 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4019 # or visit www.oracle.com if you need additional information or have any 4020 # questions. 4021 # 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 ################################################################################ 4038 # Setup fontconfig 4039 ################################################################################ 4040 4041 4042 4043 4044 4045 4046 4047 4048 # 4049 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4050 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4051 # 4052 # This code is free software; you can redistribute it and/or modify it 4053 # under the terms of the GNU General Public License version 2 only, as 4054 # published by the Free Software Foundation. Oracle designates this 4055 # particular file as subject to the "Classpath" exception as provided 4056 # by Oracle in the LICENSE file that accompanied this code. 4057 # 4058 # This code is distributed in the hope that it will be useful, but WITHOUT 4059 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4060 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4061 # version 2 for more details (a copy is included in the LICENSE file that 4062 # accompanied this code). 4063 # 4064 # You should have received a copy of the GNU General Public License version 4065 # 2 along with this work; if not, write to the Free Software Foundation, 4066 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4067 # 4068 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4069 # or visit www.oracle.com if you need additional information or have any 4070 # questions. 4071 # 4072 4073 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4074 # Converts autoconf style CPU name to OpenJDK style, into 4075 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4076 4077 4078 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4079 # Converts autoconf style OS name to OpenJDK style, into 4080 # VAR_OS and VAR_OS_API. 4081 4082 4083 # Expects $host_os $host_cpu $build_os and $build_cpu 4084 # and $with_target_bits to have been setup! 4085 # 4086 # Translate the standard triplet(quadruplet) definition 4087 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4088 # OPENJDK_BUILD_OS, etc. 4089 4090 4091 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4092 # accordingly. Must be done after setting up build and target system, but before 4093 # doing anything else with these values. 4094 4095 4096 # Setup the legacy variables, for controlling the old makefiles. 4097 # 4098 4099 4100 4101 4102 #%%% Build and target systems %%% 4103 4104 4105 4106 4107 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4108 # Add -mX to various FLAGS variables. 4109 4110 4111 4112 4113 4114 4115 # 4116 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4117 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4118 # 4119 # This code is free software; you can redistribute it and/or modify it 4120 # under the terms of the GNU General Public License version 2 only, as 4121 # published by the Free Software Foundation. Oracle designates this 4122 # particular file as subject to the "Classpath" exception as provided 4123 # by Oracle in the LICENSE file that accompanied this code. 4124 # 4125 # This code is distributed in the hope that it will be useful, but WITHOUT 4126 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4127 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4128 # version 2 for more details (a copy is included in the LICENSE file that 4129 # accompanied this code). 4130 # 4131 # You should have received a copy of the GNU General Public License version 4132 # 2 along with this work; if not, write to the Free Software Foundation, 4133 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4134 # 4135 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4136 # or visit www.oracle.com if you need additional information or have any 4137 # questions. 4138 # 4139 4140 4141 4142 4143 4144 4145 4146 4147 # 4148 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4149 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4150 # 4151 # This code is free software; you can redistribute it and/or modify it 4152 # under the terms of the GNU General Public License version 2 only, as 4153 # published by the Free Software Foundation. Oracle designates this 4154 # particular file as subject to the "Classpath" exception as provided 4155 # by Oracle in the LICENSE file that accompanied this code. 4156 # 4157 # This code is distributed in the hope that it will be useful, but WITHOUT 4158 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4159 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4160 # version 2 for more details (a copy is included in the LICENSE file that 4161 # accompanied this code). 4162 # 4163 # You should have received a copy of the GNU General Public License version 4164 # 2 along with this work; if not, write to the Free Software Foundation, 4165 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4166 # 4167 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4168 # or visit www.oracle.com if you need additional information or have any 4169 # questions. 4170 # 4171 4172 ######################################################################## 4173 # This file is responsible for detecting, verifying and setting up the 4174 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4175 # proper paths to the binaries, but it will not setup any flags. 4176 # 4177 # The binaries used is determined by the toolchain type, which is the family of 4178 # compilers and related tools that are used. 4179 ######################################################################## 4180 4181 4182 # All valid toolchains, regardless of platform (used by help.m4) 4183 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4184 4185 # These toolchains are valid on different platforms 4186 VALID_TOOLCHAINS_linux="gcc clang" 4187 VALID_TOOLCHAINS_solaris="solstudio" 4188 VALID_TOOLCHAINS_macosx="gcc clang" 4189 VALID_TOOLCHAINS_aix="xlc" 4190 VALID_TOOLCHAINS_windows="microsoft" 4191 4192 # Toolchain descriptions 4193 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4194 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4195 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4196 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4197 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4198 4199 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4200 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4201 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4202 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4203 4204 4205 # Check if the configured compiler (C and C++) is of a specific version or 4206 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4207 # 4208 # Arguments: 4209 # $1: The version string to check against the found version 4210 # $2: block to run if the compiler is at least this version (>=) 4211 # $3: block to run if the compiler is older than this version (<) 4212 4213 4214 4215 # Setup a number of variables describing how native output files are 4216 # named on this platform/toolchain. 4217 4218 4219 # Determine which toolchain type to use, and make sure it is valid for this 4220 # platform. Setup various information about the selected toolchain. 4221 4222 4223 # Before we start detecting the toolchain executables, we might need some 4224 # special setup, e.g. additional paths etc. 4225 4226 4227 # Restore path, etc 4228 4229 4230 # Check if a compiler is of the toolchain type we expect, and save the version 4231 # information from it. If the compiler does not match the expected type, 4232 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4233 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4234 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4235 # 4236 # $1 = compiler to test (CC or CXX) 4237 # $2 = human readable name of compiler (C or C++) 4238 4239 4240 4241 # Try to locate the given C or C++ compiler in the path, or otherwise. 4242 # 4243 # $1 = compiler to test (CC or CXX) 4244 # $2 = human readable name of compiler (C or C++) 4245 # $3 = list of compiler names to search for 4246 4247 4248 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4249 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4250 # archiver (AR). Verify that the compilers are correct according to the 4251 # toolchain type. 4252 4253 4254 # Setup additional tools that is considered a part of the toolchain, but not the 4255 # core part. Many of these are highly platform-specific and do not exist, 4256 # and/or are not needed on all platforms. 4257 4258 4259 # Setup the build tools (i.e, the compiler and linker used to build programs 4260 # that should be run on the build platform, not the target platform, as a build 4261 # helper). Since the non-cross-compile case uses the normal, target compilers 4262 # for this, we can only do this after these have been setup. 4263 4264 4265 # Setup legacy variables that are still needed as alternative ways to refer to 4266 # parts of the toolchain. 4267 4268 4269 # Do some additional checks on the detected tools. 4270 4271 4272 # Setup the JTReg Regression Test Harness. 4273 4274 4275 4276 # 4277 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4278 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4279 # 4280 # This code is free software; you can redistribute it and/or modify it 4281 # under the terms of the GNU General Public License version 2 only, as 4282 # published by the Free Software Foundation. Oracle designates this 4283 # particular file as subject to the "Classpath" exception as provided 4284 # by Oracle in the LICENSE file that accompanied this code. 4285 # 4286 # This code is distributed in the hope that it will be useful, but WITHOUT 4287 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4288 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4289 # version 2 for more details (a copy is included in the LICENSE file that 4290 # accompanied this code). 4291 # 4292 # You should have received a copy of the GNU General Public License version 4293 # 2 along with this work; if not, write to the Free Software Foundation, 4294 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4295 # 4296 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4297 # or visit www.oracle.com if you need additional information or have any 4298 # questions. 4299 # 4300 4301 ################################################################################ 4302 # The order of these defines the priority by which we try to find them. 4303 VALID_VS_VERSIONS="2010 2012 2013 2015 2017" 4304 4305 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4306 VS_VERSION_INTERNAL_2010=100 4307 VS_MSVCR_2010=msvcr100.dll 4308 # We don't use msvcp on Visual Studio 2010 4309 #VS_MSVCP_2010=msvcp100.dll 4310 VS_ENVVAR_2010="VS100COMNTOOLS" 4311 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4312 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4313 VS_VS_PLATFORM_NAME_2010="v100" 4314 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4315 4316 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4317 VS_VERSION_INTERNAL_2012=110 4318 VS_MSVCR_2012=msvcr110.dll 4319 VS_MSVCP_2012=msvcp110.dll 4320 VS_ENVVAR_2012="VS110COMNTOOLS" 4321 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4322 VS_SDK_INSTALLDIR_2012= 4323 VS_VS_PLATFORM_NAME_2012="v110" 4324 VS_SDK_PLATFORM_NAME_2012= 4325 4326 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4327 VS_VERSION_INTERNAL_2013=120 4328 VS_MSVCR_2013=msvcr120.dll 4329 VS_MSVCP_2013=msvcp120.dll 4330 VS_ENVVAR_2013="VS120COMNTOOLS" 4331 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4332 VS_SDK_INSTALLDIR_2013= 4333 VS_VS_PLATFORM_NAME_2013="v120" 4334 VS_SDK_PLATFORM_NAME_2013= 4335 4336 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING" 4337 VS_VERSION_INTERNAL_2015=140 4338 VS_MSVCR_2015=vcruntime140.dll 4339 VS_MSVCP_2015=msvcp140.dll 4340 VS_ENVVAR_2015="VS140COMNTOOLS" 4341 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0" 4342 VS_SDK_INSTALLDIR_2015= 4343 VS_VS_PLATFORM_NAME_2015="v140" 4344 VS_SDK_PLATFORM_NAME_2015= 4345 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by 4346 # explicitly specifying Windows Kit 8.1 to be used. 4347 VS_ENV_ARGS_2015="8.1" 4348 4349 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING" 4350 VS_VERSION_INTERNAL_2017=141 4351 VS_MSVCR_2017=vcruntime140.dll 4352 VS_MSVCP_2017=msvcp140.dll 4353 VS_ENVVAR_2017="VS150COMNTOOLS" 4354 VS_USE_UCRT_2017="true" 4355 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017" 4356 VS_EDITIONS_2017="Community Professional Enterprise" 4357 VS_SDK_INSTALLDIR_2017= 4358 VS_VS_PLATFORM_NAME_2017="v141" 4359 VS_SDK_PLATFORM_NAME_2017= 4360 4361 ################################################################################ 4362 4363 4364 4365 ################################################################################ 4366 4367 4368 4369 ################################################################################ 4370 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4371 # build environment and assigns it to VS_ENV_CMD 4372 4373 4374 ################################################################################ 4375 4376 4377 4378 ################################################################################ 4379 # Check if the VS env variables were setup prior to running configure. 4380 # If not, then find vcvarsall.bat and run it automatically, and integrate 4381 # the set env variables into the spec file. 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 # This line needs to be here, verbatim, after all includes and the dummy hook 4397 # definitions. It is replaced with custom functionality when building 4398 # custom sources. 4399 #CUSTOM_AUTOCONF_INCLUDE 4400 4401 # Do not change or remove the following line, it is needed for consistency checks: 4402 DATE_WHEN_GENERATED=1619439948 4403 4404 ############################################################################### 4405 # 4406 # Initialization / Boot-strapping 4407 # 4408 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4409 # thus it jumps back and forth, each time gaining something needed later on. 4410 # 4411 ############################################################################### 4412 4413 # If we are requested to print additional help, do that and then exit. 4414 # This must be the very first call. 4415 4416 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4417 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4418 $PRINTF "Which are valid to use depends on the build platform.\n" 4419 for toolchain in $VALID_TOOLCHAINS_all; do 4420 # Use indirect variable referencing 4421 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4422 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4423 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4424 done 4425 4426 # And now exit directly 4427 exit 0 4428 fi 4429 4430 4431 # Basic initialization that must happen first of all in the normal process. 4432 4433 # Save the original command line. This is passed to us by the wrapper configure script. 4434 4435 DATE_WHEN_CONFIGURED=`LANG=C date` 4436 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4438 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4440 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4441 4442 4443 # Start with tools that do not need have cross compilation support 4444 # and can be expected to be found in the default PATH. These tools are 4445 # used by configure. Nor are these tools expected to be found in the 4446 # devkit from the builddeps server either, since they are 4447 # needed to download the devkit. 4448 4449 # First are all the simple required tools. 4450 4451 4452 4453 # Publish this variable in the help. 4454 4455 4456 if test "x$BASENAME" = x; then 4457 # The variable is not set by user, try to locate tool using the code snippet 4458 for ac_prog in basename 4459 do 4460 # Extract the first word of "$ac_prog", so it can be a program name with args. 4461 set dummy $ac_prog; ac_word=$2 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4463 $as_echo_n "checking for $ac_word... " >&6; } 4464 if ${ac_cv_path_BASENAME+:} false; then : 4465 $as_echo_n "(cached) " >&6 4466 else 4467 case $BASENAME in 4468 [\\/]* | ?:[\\/]*) 4469 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4470 ;; 4471 *) 4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4473 for as_dir in $PATH 4474 do 4475 IFS=$as_save_IFS 4476 test -z "$as_dir" && as_dir=. 4477 for ac_exec_ext in '' $ac_executable_extensions; do 4478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4479 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4481 break 2 4482 fi 4483 done 4484 done 4485 IFS=$as_save_IFS 4486 4487 ;; 4488 esac 4489 fi 4490 BASENAME=$ac_cv_path_BASENAME 4491 if test -n "$BASENAME"; then 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4493 $as_echo "$BASENAME" >&6; } 4494 else 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4496 $as_echo "no" >&6; } 4497 fi 4498 4499 4500 test -n "$BASENAME" && break 4501 done 4502 4503 else 4504 # The variable is set, but is it from the command line or the environment? 4505 4506 # Try to remove the string !BASENAME! from our list. 4507 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4508 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4509 # If it failed, the variable was not from the command line. Ignore it, 4510 # but warn the user (except for BASH, which is always set by the calling BASH). 4511 if test "xBASENAME" != xBASH; then 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4513 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4514 fi 4515 # Try to locate tool using the code snippet 4516 for ac_prog in basename 4517 do 4518 # Extract the first word of "$ac_prog", so it can be a program name with args. 4519 set dummy $ac_prog; ac_word=$2 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4521 $as_echo_n "checking for $ac_word... " >&6; } 4522 if ${ac_cv_path_BASENAME+:} false; then : 4523 $as_echo_n "(cached) " >&6 4524 else 4525 case $BASENAME in 4526 [\\/]* | ?:[\\/]*) 4527 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4528 ;; 4529 *) 4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4531 for as_dir in $PATH 4532 do 4533 IFS=$as_save_IFS 4534 test -z "$as_dir" && as_dir=. 4535 for ac_exec_ext in '' $ac_executable_extensions; do 4536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4537 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4539 break 2 4540 fi 4541 done 4542 done 4543 IFS=$as_save_IFS 4544 4545 ;; 4546 esac 4547 fi 4548 BASENAME=$ac_cv_path_BASENAME 4549 if test -n "$BASENAME"; then 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4551 $as_echo "$BASENAME" >&6; } 4552 else 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4554 $as_echo "no" >&6; } 4555 fi 4556 4557 4558 test -n "$BASENAME" && break 4559 done 4560 4561 else 4562 # If it succeeded, then it was overridden by the user. We will use it 4563 # for the tool. 4564 4565 # First remove it from the list of overridden variables, so we can test 4566 # for unknown variables in the end. 4567 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4568 4569 # Check if the provided tool contains a complete path. 4570 tool_specified="$BASENAME" 4571 tool_basename="${tool_specified##*/}" 4572 if test "x$tool_basename" = "x$tool_specified"; then 4573 # A command without a complete path is provided, search $PATH. 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4575 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4576 # Extract the first word of "$tool_basename", so it can be a program name with args. 4577 set dummy $tool_basename; ac_word=$2 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4579 $as_echo_n "checking for $ac_word... " >&6; } 4580 if ${ac_cv_path_BASENAME+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582 else 4583 case $BASENAME in 4584 [\\/]* | ?:[\\/]*) 4585 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4586 ;; 4587 *) 4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4589 for as_dir in $PATH 4590 do 4591 IFS=$as_save_IFS 4592 test -z "$as_dir" && as_dir=. 4593 for ac_exec_ext in '' $ac_executable_extensions; do 4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4595 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4597 break 2 4598 fi 4599 done 4600 done 4601 IFS=$as_save_IFS 4602 4603 ;; 4604 esac 4605 fi 4606 BASENAME=$ac_cv_path_BASENAME 4607 if test -n "$BASENAME"; then 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4609 $as_echo "$BASENAME" >&6; } 4610 else 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4612 $as_echo "no" >&6; } 4613 fi 4614 4615 4616 if test "x$BASENAME" = x; then 4617 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4618 fi 4619 else 4620 # Otherwise we believe it is a complete path. Use it as it is. 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4622 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4624 $as_echo_n "checking for BASENAME... " >&6; } 4625 if test ! -x "$tool_specified"; then 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4627 $as_echo "not found" >&6; } 4628 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4629 fi 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4631 $as_echo "$tool_specified" >&6; } 4632 fi 4633 fi 4634 fi 4635 4636 4637 4638 if test "x$BASENAME" = x; then 4639 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4640 fi 4641 4642 4643 4644 4645 4646 # Publish this variable in the help. 4647 4648 4649 if test "x$BASH" = x; then 4650 # The variable is not set by user, try to locate tool using the code snippet 4651 for ac_prog in bash 4652 do 4653 # Extract the first word of "$ac_prog", so it can be a program name with args. 4654 set dummy $ac_prog; ac_word=$2 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4656 $as_echo_n "checking for $ac_word... " >&6; } 4657 if ${ac_cv_path_BASH+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659 else 4660 case $BASH in 4661 [\\/]* | ?:[\\/]*) 4662 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4663 ;; 4664 *) 4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4666 for as_dir in $PATH 4667 do 4668 IFS=$as_save_IFS 4669 test -z "$as_dir" && as_dir=. 4670 for ac_exec_ext in '' $ac_executable_extensions; do 4671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4672 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4674 break 2 4675 fi 4676 done 4677 done 4678 IFS=$as_save_IFS 4679 4680 ;; 4681 esac 4682 fi 4683 BASH=$ac_cv_path_BASH 4684 if test -n "$BASH"; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4686 $as_echo "$BASH" >&6; } 4687 else 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4689 $as_echo "no" >&6; } 4690 fi 4691 4692 4693 test -n "$BASH" && break 4694 done 4695 4696 else 4697 # The variable is set, but is it from the command line or the environment? 4698 4699 # Try to remove the string !BASH! from our list. 4700 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4701 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4702 # If it failed, the variable was not from the command line. Ignore it, 4703 # but warn the user (except for BASH, which is always set by the calling BASH). 4704 if test "xBASH" != xBASH; then 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4706 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4707 fi 4708 # Try to locate tool using the code snippet 4709 for ac_prog in bash 4710 do 4711 # Extract the first word of "$ac_prog", so it can be a program name with args. 4712 set dummy $ac_prog; ac_word=$2 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4714 $as_echo_n "checking for $ac_word... " >&6; } 4715 if ${ac_cv_path_BASH+:} false; then : 4716 $as_echo_n "(cached) " >&6 4717 else 4718 case $BASH in 4719 [\\/]* | ?:[\\/]*) 4720 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4721 ;; 4722 *) 4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4724 for as_dir in $PATH 4725 do 4726 IFS=$as_save_IFS 4727 test -z "$as_dir" && as_dir=. 4728 for ac_exec_ext in '' $ac_executable_extensions; do 4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4730 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4732 break 2 4733 fi 4734 done 4735 done 4736 IFS=$as_save_IFS 4737 4738 ;; 4739 esac 4740 fi 4741 BASH=$ac_cv_path_BASH 4742 if test -n "$BASH"; then 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4744 $as_echo "$BASH" >&6; } 4745 else 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4747 $as_echo "no" >&6; } 4748 fi 4749 4750 4751 test -n "$BASH" && break 4752 done 4753 4754 else 4755 # If it succeeded, then it was overridden by the user. We will use it 4756 # for the tool. 4757 4758 # First remove it from the list of overridden variables, so we can test 4759 # for unknown variables in the end. 4760 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4761 4762 # Check if the provided tool contains a complete path. 4763 tool_specified="$BASH" 4764 tool_basename="${tool_specified##*/}" 4765 if test "x$tool_basename" = "x$tool_specified"; then 4766 # A command without a complete path is provided, search $PATH. 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4768 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4769 # Extract the first word of "$tool_basename", so it can be a program name with args. 4770 set dummy $tool_basename; ac_word=$2 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4772 $as_echo_n "checking for $ac_word... " >&6; } 4773 if ${ac_cv_path_BASH+:} false; then : 4774 $as_echo_n "(cached) " >&6 4775 else 4776 case $BASH in 4777 [\\/]* | ?:[\\/]*) 4778 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4779 ;; 4780 *) 4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4782 for as_dir in $PATH 4783 do 4784 IFS=$as_save_IFS 4785 test -z "$as_dir" && as_dir=. 4786 for ac_exec_ext in '' $ac_executable_extensions; do 4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4788 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4790 break 2 4791 fi 4792 done 4793 done 4794 IFS=$as_save_IFS 4795 4796 ;; 4797 esac 4798 fi 4799 BASH=$ac_cv_path_BASH 4800 if test -n "$BASH"; then 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4802 $as_echo "$BASH" >&6; } 4803 else 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4805 $as_echo "no" >&6; } 4806 fi 4807 4808 4809 if test "x$BASH" = x; then 4810 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4811 fi 4812 else 4813 # Otherwise we believe it is a complete path. Use it as it is. 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4815 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4817 $as_echo_n "checking for BASH... " >&6; } 4818 if test ! -x "$tool_specified"; then 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4820 $as_echo "not found" >&6; } 4821 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4822 fi 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4824 $as_echo "$tool_specified" >&6; } 4825 fi 4826 fi 4827 fi 4828 4829 4830 4831 if test "x$BASH" = x; then 4832 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4833 fi 4834 4835 4836 4837 4838 4839 # Publish this variable in the help. 4840 4841 4842 if test "x$CAT" = x; then 4843 # The variable is not set by user, try to locate tool using the code snippet 4844 for ac_prog in cat 4845 do 4846 # Extract the first word of "$ac_prog", so it can be a program name with args. 4847 set dummy $ac_prog; ac_word=$2 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4849 $as_echo_n "checking for $ac_word... " >&6; } 4850 if ${ac_cv_path_CAT+:} false; then : 4851 $as_echo_n "(cached) " >&6 4852 else 4853 case $CAT in 4854 [\\/]* | ?:[\\/]*) 4855 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4856 ;; 4857 *) 4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4859 for as_dir in $PATH 4860 do 4861 IFS=$as_save_IFS 4862 test -z "$as_dir" && as_dir=. 4863 for ac_exec_ext in '' $ac_executable_extensions; do 4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4865 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4867 break 2 4868 fi 4869 done 4870 done 4871 IFS=$as_save_IFS 4872 4873 ;; 4874 esac 4875 fi 4876 CAT=$ac_cv_path_CAT 4877 if test -n "$CAT"; then 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4879 $as_echo "$CAT" >&6; } 4880 else 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4882 $as_echo "no" >&6; } 4883 fi 4884 4885 4886 test -n "$CAT" && break 4887 done 4888 4889 else 4890 # The variable is set, but is it from the command line or the environment? 4891 4892 # Try to remove the string !CAT! from our list. 4893 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4894 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4895 # If it failed, the variable was not from the command line. Ignore it, 4896 # but warn the user (except for BASH, which is always set by the calling BASH). 4897 if test "xCAT" != xBASH; then 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4899 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4900 fi 4901 # Try to locate tool using the code snippet 4902 for ac_prog in cat 4903 do 4904 # Extract the first word of "$ac_prog", so it can be a program name with args. 4905 set dummy $ac_prog; ac_word=$2 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4907 $as_echo_n "checking for $ac_word... " >&6; } 4908 if ${ac_cv_path_CAT+:} false; then : 4909 $as_echo_n "(cached) " >&6 4910 else 4911 case $CAT in 4912 [\\/]* | ?:[\\/]*) 4913 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4914 ;; 4915 *) 4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4917 for as_dir in $PATH 4918 do 4919 IFS=$as_save_IFS 4920 test -z "$as_dir" && as_dir=. 4921 for ac_exec_ext in '' $ac_executable_extensions; do 4922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4923 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4925 break 2 4926 fi 4927 done 4928 done 4929 IFS=$as_save_IFS 4930 4931 ;; 4932 esac 4933 fi 4934 CAT=$ac_cv_path_CAT 4935 if test -n "$CAT"; then 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4937 $as_echo "$CAT" >&6; } 4938 else 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4940 $as_echo "no" >&6; } 4941 fi 4942 4943 4944 test -n "$CAT" && break 4945 done 4946 4947 else 4948 # If it succeeded, then it was overridden by the user. We will use it 4949 # for the tool. 4950 4951 # First remove it from the list of overridden variables, so we can test 4952 # for unknown variables in the end. 4953 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4954 4955 # Check if the provided tool contains a complete path. 4956 tool_specified="$CAT" 4957 tool_basename="${tool_specified##*/}" 4958 if test "x$tool_basename" = "x$tool_specified"; then 4959 # A command without a complete path is provided, search $PATH. 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4961 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4962 # Extract the first word of "$tool_basename", so it can be a program name with args. 4963 set dummy $tool_basename; ac_word=$2 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4965 $as_echo_n "checking for $ac_word... " >&6; } 4966 if ${ac_cv_path_CAT+:} false; then : 4967 $as_echo_n "(cached) " >&6 4968 else 4969 case $CAT in 4970 [\\/]* | ?:[\\/]*) 4971 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4972 ;; 4973 *) 4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4975 for as_dir in $PATH 4976 do 4977 IFS=$as_save_IFS 4978 test -z "$as_dir" && as_dir=. 4979 for ac_exec_ext in '' $ac_executable_extensions; do 4980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4981 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4983 break 2 4984 fi 4985 done 4986 done 4987 IFS=$as_save_IFS 4988 4989 ;; 4990 esac 4991 fi 4992 CAT=$ac_cv_path_CAT 4993 if test -n "$CAT"; then 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4995 $as_echo "$CAT" >&6; } 4996 else 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4998 $as_echo "no" >&6; } 4999 fi 5000 5001 5002 if test "x$CAT" = x; then 5003 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5004 fi 5005 else 5006 # Otherwise we believe it is a complete path. Use it as it is. 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5008 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5010 $as_echo_n "checking for CAT... " >&6; } 5011 if test ! -x "$tool_specified"; then 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5013 $as_echo "not found" >&6; } 5014 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5015 fi 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5017 $as_echo "$tool_specified" >&6; } 5018 fi 5019 fi 5020 fi 5021 5022 5023 5024 if test "x$CAT" = x; then 5025 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5026 fi 5027 5028 5029 5030 5031 5032 # Publish this variable in the help. 5033 5034 5035 if test "x$CHMOD" = x; then 5036 # The variable is not set by user, try to locate tool using the code snippet 5037 for ac_prog in chmod 5038 do 5039 # Extract the first word of "$ac_prog", so it can be a program name with args. 5040 set dummy $ac_prog; ac_word=$2 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5042 $as_echo_n "checking for $ac_word... " >&6; } 5043 if ${ac_cv_path_CHMOD+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045 else 5046 case $CHMOD in 5047 [\\/]* | ?:[\\/]*) 5048 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5049 ;; 5050 *) 5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5052 for as_dir in $PATH 5053 do 5054 IFS=$as_save_IFS 5055 test -z "$as_dir" && as_dir=. 5056 for ac_exec_ext in '' $ac_executable_extensions; do 5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5058 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5060 break 2 5061 fi 5062 done 5063 done 5064 IFS=$as_save_IFS 5065 5066 ;; 5067 esac 5068 fi 5069 CHMOD=$ac_cv_path_CHMOD 5070 if test -n "$CHMOD"; then 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5072 $as_echo "$CHMOD" >&6; } 5073 else 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5075 $as_echo "no" >&6; } 5076 fi 5077 5078 5079 test -n "$CHMOD" && break 5080 done 5081 5082 else 5083 # The variable is set, but is it from the command line or the environment? 5084 5085 # Try to remove the string !CHMOD! from our list. 5086 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5087 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5088 # If it failed, the variable was not from the command line. Ignore it, 5089 # but warn the user (except for BASH, which is always set by the calling BASH). 5090 if test "xCHMOD" != xBASH; then 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5092 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5093 fi 5094 # Try to locate tool using the code snippet 5095 for ac_prog in chmod 5096 do 5097 # Extract the first word of "$ac_prog", so it can be a program name with args. 5098 set dummy $ac_prog; ac_word=$2 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5100 $as_echo_n "checking for $ac_word... " >&6; } 5101 if ${ac_cv_path_CHMOD+:} false; then : 5102 $as_echo_n "(cached) " >&6 5103 else 5104 case $CHMOD in 5105 [\\/]* | ?:[\\/]*) 5106 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5107 ;; 5108 *) 5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5110 for as_dir in $PATH 5111 do 5112 IFS=$as_save_IFS 5113 test -z "$as_dir" && as_dir=. 5114 for ac_exec_ext in '' $ac_executable_extensions; do 5115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5116 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5118 break 2 5119 fi 5120 done 5121 done 5122 IFS=$as_save_IFS 5123 5124 ;; 5125 esac 5126 fi 5127 CHMOD=$ac_cv_path_CHMOD 5128 if test -n "$CHMOD"; then 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5130 $as_echo "$CHMOD" >&6; } 5131 else 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5133 $as_echo "no" >&6; } 5134 fi 5135 5136 5137 test -n "$CHMOD" && break 5138 done 5139 5140 else 5141 # If it succeeded, then it was overridden by the user. We will use it 5142 # for the tool. 5143 5144 # First remove it from the list of overridden variables, so we can test 5145 # for unknown variables in the end. 5146 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5147 5148 # Check if the provided tool contains a complete path. 5149 tool_specified="$CHMOD" 5150 tool_basename="${tool_specified##*/}" 5151 if test "x$tool_basename" = "x$tool_specified"; then 5152 # A command without a complete path is provided, search $PATH. 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5154 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5155 # Extract the first word of "$tool_basename", so it can be a program name with args. 5156 set dummy $tool_basename; ac_word=$2 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5158 $as_echo_n "checking for $ac_word... " >&6; } 5159 if ${ac_cv_path_CHMOD+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161 else 5162 case $CHMOD in 5163 [\\/]* | ?:[\\/]*) 5164 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5165 ;; 5166 *) 5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5168 for as_dir in $PATH 5169 do 5170 IFS=$as_save_IFS 5171 test -z "$as_dir" && as_dir=. 5172 for ac_exec_ext in '' $ac_executable_extensions; do 5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5174 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5176 break 2 5177 fi 5178 done 5179 done 5180 IFS=$as_save_IFS 5181 5182 ;; 5183 esac 5184 fi 5185 CHMOD=$ac_cv_path_CHMOD 5186 if test -n "$CHMOD"; then 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5188 $as_echo "$CHMOD" >&6; } 5189 else 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5191 $as_echo "no" >&6; } 5192 fi 5193 5194 5195 if test "x$CHMOD" = x; then 5196 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5197 fi 5198 else 5199 # Otherwise we believe it is a complete path. Use it as it is. 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5201 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5203 $as_echo_n "checking for CHMOD... " >&6; } 5204 if test ! -x "$tool_specified"; then 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5206 $as_echo "not found" >&6; } 5207 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5208 fi 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5210 $as_echo "$tool_specified" >&6; } 5211 fi 5212 fi 5213 fi 5214 5215 5216 5217 if test "x$CHMOD" = x; then 5218 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5219 fi 5220 5221 5222 5223 5224 5225 # Publish this variable in the help. 5226 5227 5228 if test "x$CMP" = x; then 5229 # The variable is not set by user, try to locate tool using the code snippet 5230 for ac_prog in cmp 5231 do 5232 # Extract the first word of "$ac_prog", so it can be a program name with args. 5233 set dummy $ac_prog; ac_word=$2 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5235 $as_echo_n "checking for $ac_word... " >&6; } 5236 if ${ac_cv_path_CMP+:} false; then : 5237 $as_echo_n "(cached) " >&6 5238 else 5239 case $CMP in 5240 [\\/]* | ?:[\\/]*) 5241 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5242 ;; 5243 *) 5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5245 for as_dir in $PATH 5246 do 5247 IFS=$as_save_IFS 5248 test -z "$as_dir" && as_dir=. 5249 for ac_exec_ext in '' $ac_executable_extensions; do 5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5251 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5253 break 2 5254 fi 5255 done 5256 done 5257 IFS=$as_save_IFS 5258 5259 ;; 5260 esac 5261 fi 5262 CMP=$ac_cv_path_CMP 5263 if test -n "$CMP"; then 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5265 $as_echo "$CMP" >&6; } 5266 else 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5268 $as_echo "no" >&6; } 5269 fi 5270 5271 5272 test -n "$CMP" && break 5273 done 5274 5275 else 5276 # The variable is set, but is it from the command line or the environment? 5277 5278 # Try to remove the string !CMP! from our list. 5279 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5280 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5281 # If it failed, the variable was not from the command line. Ignore it, 5282 # but warn the user (except for BASH, which is always set by the calling BASH). 5283 if test "xCMP" != xBASH; then 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5285 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5286 fi 5287 # Try to locate tool using the code snippet 5288 for ac_prog in cmp 5289 do 5290 # Extract the first word of "$ac_prog", so it can be a program name with args. 5291 set dummy $ac_prog; ac_word=$2 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5293 $as_echo_n "checking for $ac_word... " >&6; } 5294 if ${ac_cv_path_CMP+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296 else 5297 case $CMP in 5298 [\\/]* | ?:[\\/]*) 5299 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5300 ;; 5301 *) 5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5303 for as_dir in $PATH 5304 do 5305 IFS=$as_save_IFS 5306 test -z "$as_dir" && as_dir=. 5307 for ac_exec_ext in '' $ac_executable_extensions; do 5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5309 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5311 break 2 5312 fi 5313 done 5314 done 5315 IFS=$as_save_IFS 5316 5317 ;; 5318 esac 5319 fi 5320 CMP=$ac_cv_path_CMP 5321 if test -n "$CMP"; then 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5323 $as_echo "$CMP" >&6; } 5324 else 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5326 $as_echo "no" >&6; } 5327 fi 5328 5329 5330 test -n "$CMP" && break 5331 done 5332 5333 else 5334 # If it succeeded, then it was overridden by the user. We will use it 5335 # for the tool. 5336 5337 # First remove it from the list of overridden variables, so we can test 5338 # for unknown variables in the end. 5339 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5340 5341 # Check if the provided tool contains a complete path. 5342 tool_specified="$CMP" 5343 tool_basename="${tool_specified##*/}" 5344 if test "x$tool_basename" = "x$tool_specified"; then 5345 # A command without a complete path is provided, search $PATH. 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5347 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5348 # Extract the first word of "$tool_basename", so it can be a program name with args. 5349 set dummy $tool_basename; ac_word=$2 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5351 $as_echo_n "checking for $ac_word... " >&6; } 5352 if ${ac_cv_path_CMP+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354 else 5355 case $CMP in 5356 [\\/]* | ?:[\\/]*) 5357 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5358 ;; 5359 *) 5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5361 for as_dir in $PATH 5362 do 5363 IFS=$as_save_IFS 5364 test -z "$as_dir" && as_dir=. 5365 for ac_exec_ext in '' $ac_executable_extensions; do 5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5367 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5369 break 2 5370 fi 5371 done 5372 done 5373 IFS=$as_save_IFS 5374 5375 ;; 5376 esac 5377 fi 5378 CMP=$ac_cv_path_CMP 5379 if test -n "$CMP"; then 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5381 $as_echo "$CMP" >&6; } 5382 else 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5384 $as_echo "no" >&6; } 5385 fi 5386 5387 5388 if test "x$CMP" = x; then 5389 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5390 fi 5391 else 5392 # Otherwise we believe it is a complete path. Use it as it is. 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5394 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5396 $as_echo_n "checking for CMP... " >&6; } 5397 if test ! -x "$tool_specified"; then 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5399 $as_echo "not found" >&6; } 5400 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5401 fi 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5403 $as_echo "$tool_specified" >&6; } 5404 fi 5405 fi 5406 fi 5407 5408 5409 5410 if test "x$CMP" = x; then 5411 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5412 fi 5413 5414 5415 5416 5417 5418 # Publish this variable in the help. 5419 5420 5421 if test "x$COMM" = x; then 5422 # The variable is not set by user, try to locate tool using the code snippet 5423 for ac_prog in comm 5424 do 5425 # Extract the first word of "$ac_prog", so it can be a program name with args. 5426 set dummy $ac_prog; ac_word=$2 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5428 $as_echo_n "checking for $ac_word... " >&6; } 5429 if ${ac_cv_path_COMM+:} false; then : 5430 $as_echo_n "(cached) " >&6 5431 else 5432 case $COMM in 5433 [\\/]* | ?:[\\/]*) 5434 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5435 ;; 5436 *) 5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5438 for as_dir in $PATH 5439 do 5440 IFS=$as_save_IFS 5441 test -z "$as_dir" && as_dir=. 5442 for ac_exec_ext in '' $ac_executable_extensions; do 5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5444 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5446 break 2 5447 fi 5448 done 5449 done 5450 IFS=$as_save_IFS 5451 5452 ;; 5453 esac 5454 fi 5455 COMM=$ac_cv_path_COMM 5456 if test -n "$COMM"; then 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5458 $as_echo "$COMM" >&6; } 5459 else 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5461 $as_echo "no" >&6; } 5462 fi 5463 5464 5465 test -n "$COMM" && break 5466 done 5467 5468 else 5469 # The variable is set, but is it from the command line or the environment? 5470 5471 # Try to remove the string !COMM! from our list. 5472 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5473 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5474 # If it failed, the variable was not from the command line. Ignore it, 5475 # but warn the user (except for BASH, which is always set by the calling BASH). 5476 if test "xCOMM" != xBASH; then 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5478 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5479 fi 5480 # Try to locate tool using the code snippet 5481 for ac_prog in comm 5482 do 5483 # Extract the first word of "$ac_prog", so it can be a program name with args. 5484 set dummy $ac_prog; ac_word=$2 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5486 $as_echo_n "checking for $ac_word... " >&6; } 5487 if ${ac_cv_path_COMM+:} false; then : 5488 $as_echo_n "(cached) " >&6 5489 else 5490 case $COMM in 5491 [\\/]* | ?:[\\/]*) 5492 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5493 ;; 5494 *) 5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5496 for as_dir in $PATH 5497 do 5498 IFS=$as_save_IFS 5499 test -z "$as_dir" && as_dir=. 5500 for ac_exec_ext in '' $ac_executable_extensions; do 5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5502 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5504 break 2 5505 fi 5506 done 5507 done 5508 IFS=$as_save_IFS 5509 5510 ;; 5511 esac 5512 fi 5513 COMM=$ac_cv_path_COMM 5514 if test -n "$COMM"; then 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5516 $as_echo "$COMM" >&6; } 5517 else 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5519 $as_echo "no" >&6; } 5520 fi 5521 5522 5523 test -n "$COMM" && break 5524 done 5525 5526 else 5527 # If it succeeded, then it was overridden by the user. We will use it 5528 # for the tool. 5529 5530 # First remove it from the list of overridden variables, so we can test 5531 # for unknown variables in the end. 5532 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5533 5534 # Check if the provided tool contains a complete path. 5535 tool_specified="$COMM" 5536 tool_basename="${tool_specified##*/}" 5537 if test "x$tool_basename" = "x$tool_specified"; then 5538 # A command without a complete path is provided, search $PATH. 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5540 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5541 # Extract the first word of "$tool_basename", so it can be a program name with args. 5542 set dummy $tool_basename; ac_word=$2 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5544 $as_echo_n "checking for $ac_word... " >&6; } 5545 if ${ac_cv_path_COMM+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547 else 5548 case $COMM in 5549 [\\/]* | ?:[\\/]*) 5550 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5551 ;; 5552 *) 5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5554 for as_dir in $PATH 5555 do 5556 IFS=$as_save_IFS 5557 test -z "$as_dir" && as_dir=. 5558 for ac_exec_ext in '' $ac_executable_extensions; do 5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5560 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5562 break 2 5563 fi 5564 done 5565 done 5566 IFS=$as_save_IFS 5567 5568 ;; 5569 esac 5570 fi 5571 COMM=$ac_cv_path_COMM 5572 if test -n "$COMM"; then 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5574 $as_echo "$COMM" >&6; } 5575 else 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5577 $as_echo "no" >&6; } 5578 fi 5579 5580 5581 if test "x$COMM" = x; then 5582 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5583 fi 5584 else 5585 # Otherwise we believe it is a complete path. Use it as it is. 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5587 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5589 $as_echo_n "checking for COMM... " >&6; } 5590 if test ! -x "$tool_specified"; then 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5592 $as_echo "not found" >&6; } 5593 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5594 fi 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5596 $as_echo "$tool_specified" >&6; } 5597 fi 5598 fi 5599 fi 5600 5601 5602 5603 if test "x$COMM" = x; then 5604 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5605 fi 5606 5607 5608 5609 5610 5611 # Publish this variable in the help. 5612 5613 5614 if test "x$CP" = x; then 5615 # The variable is not set by user, try to locate tool using the code snippet 5616 for ac_prog in cp 5617 do 5618 # Extract the first word of "$ac_prog", so it can be a program name with args. 5619 set dummy $ac_prog; ac_word=$2 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5621 $as_echo_n "checking for $ac_word... " >&6; } 5622 if ${ac_cv_path_CP+:} false; then : 5623 $as_echo_n "(cached) " >&6 5624 else 5625 case $CP in 5626 [\\/]* | ?:[\\/]*) 5627 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5628 ;; 5629 *) 5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5631 for as_dir in $PATH 5632 do 5633 IFS=$as_save_IFS 5634 test -z "$as_dir" && as_dir=. 5635 for ac_exec_ext in '' $ac_executable_extensions; do 5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5637 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5639 break 2 5640 fi 5641 done 5642 done 5643 IFS=$as_save_IFS 5644 5645 ;; 5646 esac 5647 fi 5648 CP=$ac_cv_path_CP 5649 if test -n "$CP"; then 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5651 $as_echo "$CP" >&6; } 5652 else 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5654 $as_echo "no" >&6; } 5655 fi 5656 5657 5658 test -n "$CP" && break 5659 done 5660 5661 else 5662 # The variable is set, but is it from the command line or the environment? 5663 5664 # Try to remove the string !CP! from our list. 5665 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5666 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5667 # If it failed, the variable was not from the command line. Ignore it, 5668 # but warn the user (except for BASH, which is always set by the calling BASH). 5669 if test "xCP" != xBASH; then 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5671 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5672 fi 5673 # Try to locate tool using the code snippet 5674 for ac_prog in cp 5675 do 5676 # Extract the first word of "$ac_prog", so it can be a program name with args. 5677 set dummy $ac_prog; ac_word=$2 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5679 $as_echo_n "checking for $ac_word... " >&6; } 5680 if ${ac_cv_path_CP+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682 else 5683 case $CP in 5684 [\\/]* | ?:[\\/]*) 5685 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5686 ;; 5687 *) 5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5689 for as_dir in $PATH 5690 do 5691 IFS=$as_save_IFS 5692 test -z "$as_dir" && as_dir=. 5693 for ac_exec_ext in '' $ac_executable_extensions; do 5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5695 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5697 break 2 5698 fi 5699 done 5700 done 5701 IFS=$as_save_IFS 5702 5703 ;; 5704 esac 5705 fi 5706 CP=$ac_cv_path_CP 5707 if test -n "$CP"; then 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5709 $as_echo "$CP" >&6; } 5710 else 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5712 $as_echo "no" >&6; } 5713 fi 5714 5715 5716 test -n "$CP" && break 5717 done 5718 5719 else 5720 # If it succeeded, then it was overridden by the user. We will use it 5721 # for the tool. 5722 5723 # First remove it from the list of overridden variables, so we can test 5724 # for unknown variables in the end. 5725 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5726 5727 # Check if the provided tool contains a complete path. 5728 tool_specified="$CP" 5729 tool_basename="${tool_specified##*/}" 5730 if test "x$tool_basename" = "x$tool_specified"; then 5731 # A command without a complete path is provided, search $PATH. 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5733 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5734 # Extract the first word of "$tool_basename", so it can be a program name with args. 5735 set dummy $tool_basename; ac_word=$2 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5737 $as_echo_n "checking for $ac_word... " >&6; } 5738 if ${ac_cv_path_CP+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740 else 5741 case $CP in 5742 [\\/]* | ?:[\\/]*) 5743 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5744 ;; 5745 *) 5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5747 for as_dir in $PATH 5748 do 5749 IFS=$as_save_IFS 5750 test -z "$as_dir" && as_dir=. 5751 for ac_exec_ext in '' $ac_executable_extensions; do 5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5753 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5755 break 2 5756 fi 5757 done 5758 done 5759 IFS=$as_save_IFS 5760 5761 ;; 5762 esac 5763 fi 5764 CP=$ac_cv_path_CP 5765 if test -n "$CP"; then 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5767 $as_echo "$CP" >&6; } 5768 else 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5770 $as_echo "no" >&6; } 5771 fi 5772 5773 5774 if test "x$CP" = x; then 5775 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5776 fi 5777 else 5778 # Otherwise we believe it is a complete path. Use it as it is. 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5780 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5782 $as_echo_n "checking for CP... " >&6; } 5783 if test ! -x "$tool_specified"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5785 $as_echo "not found" >&6; } 5786 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5787 fi 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5789 $as_echo "$tool_specified" >&6; } 5790 fi 5791 fi 5792 fi 5793 5794 5795 5796 if test "x$CP" = x; then 5797 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5798 fi 5799 5800 5801 5802 5803 5804 # Publish this variable in the help. 5805 5806 5807 if test "x$CUT" = x; then 5808 # The variable is not set by user, try to locate tool using the code snippet 5809 for ac_prog in cut 5810 do 5811 # Extract the first word of "$ac_prog", so it can be a program name with args. 5812 set dummy $ac_prog; ac_word=$2 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5814 $as_echo_n "checking for $ac_word... " >&6; } 5815 if ${ac_cv_path_CUT+:} false; then : 5816 $as_echo_n "(cached) " >&6 5817 else 5818 case $CUT in 5819 [\\/]* | ?:[\\/]*) 5820 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5821 ;; 5822 *) 5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5824 for as_dir in $PATH 5825 do 5826 IFS=$as_save_IFS 5827 test -z "$as_dir" && as_dir=. 5828 for ac_exec_ext in '' $ac_executable_extensions; do 5829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5830 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5832 break 2 5833 fi 5834 done 5835 done 5836 IFS=$as_save_IFS 5837 5838 ;; 5839 esac 5840 fi 5841 CUT=$ac_cv_path_CUT 5842 if test -n "$CUT"; then 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5844 $as_echo "$CUT" >&6; } 5845 else 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5847 $as_echo "no" >&6; } 5848 fi 5849 5850 5851 test -n "$CUT" && break 5852 done 5853 5854 else 5855 # The variable is set, but is it from the command line or the environment? 5856 5857 # Try to remove the string !CUT! from our list. 5858 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5859 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5860 # If it failed, the variable was not from the command line. Ignore it, 5861 # but warn the user (except for BASH, which is always set by the calling BASH). 5862 if test "xCUT" != xBASH; then 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5864 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5865 fi 5866 # Try to locate tool using the code snippet 5867 for ac_prog in cut 5868 do 5869 # Extract the first word of "$ac_prog", so it can be a program name with args. 5870 set dummy $ac_prog; ac_word=$2 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5872 $as_echo_n "checking for $ac_word... " >&6; } 5873 if ${ac_cv_path_CUT+:} false; then : 5874 $as_echo_n "(cached) " >&6 5875 else 5876 case $CUT in 5877 [\\/]* | ?:[\\/]*) 5878 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5879 ;; 5880 *) 5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5882 for as_dir in $PATH 5883 do 5884 IFS=$as_save_IFS 5885 test -z "$as_dir" && as_dir=. 5886 for ac_exec_ext in '' $ac_executable_extensions; do 5887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5888 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5890 break 2 5891 fi 5892 done 5893 done 5894 IFS=$as_save_IFS 5895 5896 ;; 5897 esac 5898 fi 5899 CUT=$ac_cv_path_CUT 5900 if test -n "$CUT"; then 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5902 $as_echo "$CUT" >&6; } 5903 else 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5905 $as_echo "no" >&6; } 5906 fi 5907 5908 5909 test -n "$CUT" && break 5910 done 5911 5912 else 5913 # If it succeeded, then it was overridden by the user. We will use it 5914 # for the tool. 5915 5916 # First remove it from the list of overridden variables, so we can test 5917 # for unknown variables in the end. 5918 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5919 5920 # Check if the provided tool contains a complete path. 5921 tool_specified="$CUT" 5922 tool_basename="${tool_specified##*/}" 5923 if test "x$tool_basename" = "x$tool_specified"; then 5924 # A command without a complete path is provided, search $PATH. 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5926 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5927 # Extract the first word of "$tool_basename", so it can be a program name with args. 5928 set dummy $tool_basename; ac_word=$2 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5930 $as_echo_n "checking for $ac_word... " >&6; } 5931 if ${ac_cv_path_CUT+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933 else 5934 case $CUT in 5935 [\\/]* | ?:[\\/]*) 5936 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5937 ;; 5938 *) 5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940 for as_dir in $PATH 5941 do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_exec_ext in '' $ac_executable_extensions; do 5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5946 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5948 break 2 5949 fi 5950 done 5951 done 5952 IFS=$as_save_IFS 5953 5954 ;; 5955 esac 5956 fi 5957 CUT=$ac_cv_path_CUT 5958 if test -n "$CUT"; then 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5960 $as_echo "$CUT" >&6; } 5961 else 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5963 $as_echo "no" >&6; } 5964 fi 5965 5966 5967 if test "x$CUT" = x; then 5968 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5969 fi 5970 else 5971 # Otherwise we believe it is a complete path. Use it as it is. 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5973 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5975 $as_echo_n "checking for CUT... " >&6; } 5976 if test ! -x "$tool_specified"; then 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5978 $as_echo "not found" >&6; } 5979 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5980 fi 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5982 $as_echo "$tool_specified" >&6; } 5983 fi 5984 fi 5985 fi 5986 5987 5988 5989 if test "x$CUT" = x; then 5990 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5991 fi 5992 5993 5994 5995 5996 5997 # Publish this variable in the help. 5998 5999 6000 if test "x$DATE" = x; then 6001 # The variable is not set by user, try to locate tool using the code snippet 6002 for ac_prog in date 6003 do 6004 # Extract the first word of "$ac_prog", so it can be a program name with args. 6005 set dummy $ac_prog; ac_word=$2 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6007 $as_echo_n "checking for $ac_word... " >&6; } 6008 if ${ac_cv_path_DATE+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010 else 6011 case $DATE in 6012 [\\/]* | ?:[\\/]*) 6013 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6014 ;; 6015 *) 6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6017 for as_dir in $PATH 6018 do 6019 IFS=$as_save_IFS 6020 test -z "$as_dir" && as_dir=. 6021 for ac_exec_ext in '' $ac_executable_extensions; do 6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6023 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6025 break 2 6026 fi 6027 done 6028 done 6029 IFS=$as_save_IFS 6030 6031 ;; 6032 esac 6033 fi 6034 DATE=$ac_cv_path_DATE 6035 if test -n "$DATE"; then 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6037 $as_echo "$DATE" >&6; } 6038 else 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6040 $as_echo "no" >&6; } 6041 fi 6042 6043 6044 test -n "$DATE" && break 6045 done 6046 6047 else 6048 # The variable is set, but is it from the command line or the environment? 6049 6050 # Try to remove the string !DATE! from our list. 6051 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6052 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6053 # If it failed, the variable was not from the command line. Ignore it, 6054 # but warn the user (except for BASH, which is always set by the calling BASH). 6055 if test "xDATE" != xBASH; then 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6057 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6058 fi 6059 # Try to locate tool using the code snippet 6060 for ac_prog in date 6061 do 6062 # Extract the first word of "$ac_prog", so it can be a program name with args. 6063 set dummy $ac_prog; ac_word=$2 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6065 $as_echo_n "checking for $ac_word... " >&6; } 6066 if ${ac_cv_path_DATE+:} false; then : 6067 $as_echo_n "(cached) " >&6 6068 else 6069 case $DATE in 6070 [\\/]* | ?:[\\/]*) 6071 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6072 ;; 6073 *) 6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6075 for as_dir in $PATH 6076 do 6077 IFS=$as_save_IFS 6078 test -z "$as_dir" && as_dir=. 6079 for ac_exec_ext in '' $ac_executable_extensions; do 6080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6081 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6083 break 2 6084 fi 6085 done 6086 done 6087 IFS=$as_save_IFS 6088 6089 ;; 6090 esac 6091 fi 6092 DATE=$ac_cv_path_DATE 6093 if test -n "$DATE"; then 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6095 $as_echo "$DATE" >&6; } 6096 else 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098 $as_echo "no" >&6; } 6099 fi 6100 6101 6102 test -n "$DATE" && break 6103 done 6104 6105 else 6106 # If it succeeded, then it was overridden by the user. We will use it 6107 # for the tool. 6108 6109 # First remove it from the list of overridden variables, so we can test 6110 # for unknown variables in the end. 6111 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6112 6113 # Check if the provided tool contains a complete path. 6114 tool_specified="$DATE" 6115 tool_basename="${tool_specified##*/}" 6116 if test "x$tool_basename" = "x$tool_specified"; then 6117 # A command without a complete path is provided, search $PATH. 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6119 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6120 # Extract the first word of "$tool_basename", so it can be a program name with args. 6121 set dummy $tool_basename; ac_word=$2 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6123 $as_echo_n "checking for $ac_word... " >&6; } 6124 if ${ac_cv_path_DATE+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126 else 6127 case $DATE in 6128 [\\/]* | ?:[\\/]*) 6129 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6130 ;; 6131 *) 6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6133 for as_dir in $PATH 6134 do 6135 IFS=$as_save_IFS 6136 test -z "$as_dir" && as_dir=. 6137 for ac_exec_ext in '' $ac_executable_extensions; do 6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6139 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6141 break 2 6142 fi 6143 done 6144 done 6145 IFS=$as_save_IFS 6146 6147 ;; 6148 esac 6149 fi 6150 DATE=$ac_cv_path_DATE 6151 if test -n "$DATE"; then 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6153 $as_echo "$DATE" >&6; } 6154 else 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6156 $as_echo "no" >&6; } 6157 fi 6158 6159 6160 if test "x$DATE" = x; then 6161 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6162 fi 6163 else 6164 # Otherwise we believe it is a complete path. Use it as it is. 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6166 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6168 $as_echo_n "checking for DATE... " >&6; } 6169 if test ! -x "$tool_specified"; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6171 $as_echo "not found" >&6; } 6172 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6173 fi 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6175 $as_echo "$tool_specified" >&6; } 6176 fi 6177 fi 6178 fi 6179 6180 6181 6182 if test "x$DATE" = x; then 6183 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6184 fi 6185 6186 6187 6188 6189 6190 # Publish this variable in the help. 6191 6192 6193 if test "x$DIFF" = x; then 6194 # The variable is not set by user, try to locate tool using the code snippet 6195 for ac_prog in gdiff diff 6196 do 6197 # Extract the first word of "$ac_prog", so it can be a program name with args. 6198 set dummy $ac_prog; ac_word=$2 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6200 $as_echo_n "checking for $ac_word... " >&6; } 6201 if ${ac_cv_path_DIFF+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203 else 6204 case $DIFF in 6205 [\\/]* | ?:[\\/]*) 6206 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6207 ;; 6208 *) 6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6210 for as_dir in $PATH 6211 do 6212 IFS=$as_save_IFS 6213 test -z "$as_dir" && as_dir=. 6214 for ac_exec_ext in '' $ac_executable_extensions; do 6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6216 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6218 break 2 6219 fi 6220 done 6221 done 6222 IFS=$as_save_IFS 6223 6224 ;; 6225 esac 6226 fi 6227 DIFF=$ac_cv_path_DIFF 6228 if test -n "$DIFF"; then 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6230 $as_echo "$DIFF" >&6; } 6231 else 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6233 $as_echo "no" >&6; } 6234 fi 6235 6236 6237 test -n "$DIFF" && break 6238 done 6239 6240 else 6241 # The variable is set, but is it from the command line or the environment? 6242 6243 # Try to remove the string !DIFF! from our list. 6244 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6245 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6246 # If it failed, the variable was not from the command line. Ignore it, 6247 # but warn the user (except for BASH, which is always set by the calling BASH). 6248 if test "xDIFF" != xBASH; then 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6250 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6251 fi 6252 # Try to locate tool using the code snippet 6253 for ac_prog in gdiff diff 6254 do 6255 # Extract the first word of "$ac_prog", so it can be a program name with args. 6256 set dummy $ac_prog; ac_word=$2 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6258 $as_echo_n "checking for $ac_word... " >&6; } 6259 if ${ac_cv_path_DIFF+:} false; then : 6260 $as_echo_n "(cached) " >&6 6261 else 6262 case $DIFF in 6263 [\\/]* | ?:[\\/]*) 6264 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6265 ;; 6266 *) 6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6268 for as_dir in $PATH 6269 do 6270 IFS=$as_save_IFS 6271 test -z "$as_dir" && as_dir=. 6272 for ac_exec_ext in '' $ac_executable_extensions; do 6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6274 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6276 break 2 6277 fi 6278 done 6279 done 6280 IFS=$as_save_IFS 6281 6282 ;; 6283 esac 6284 fi 6285 DIFF=$ac_cv_path_DIFF 6286 if test -n "$DIFF"; then 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6288 $as_echo "$DIFF" >&6; } 6289 else 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6291 $as_echo "no" >&6; } 6292 fi 6293 6294 6295 test -n "$DIFF" && break 6296 done 6297 6298 else 6299 # If it succeeded, then it was overridden by the user. We will use it 6300 # for the tool. 6301 6302 # First remove it from the list of overridden variables, so we can test 6303 # for unknown variables in the end. 6304 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6305 6306 # Check if the provided tool contains a complete path. 6307 tool_specified="$DIFF" 6308 tool_basename="${tool_specified##*/}" 6309 if test "x$tool_basename" = "x$tool_specified"; then 6310 # A command without a complete path is provided, search $PATH. 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6312 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6313 # Extract the first word of "$tool_basename", so it can be a program name with args. 6314 set dummy $tool_basename; ac_word=$2 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6316 $as_echo_n "checking for $ac_word... " >&6; } 6317 if ${ac_cv_path_DIFF+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319 else 6320 case $DIFF in 6321 [\\/]* | ?:[\\/]*) 6322 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6323 ;; 6324 *) 6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6326 for as_dir in $PATH 6327 do 6328 IFS=$as_save_IFS 6329 test -z "$as_dir" && as_dir=. 6330 for ac_exec_ext in '' $ac_executable_extensions; do 6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6332 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6334 break 2 6335 fi 6336 done 6337 done 6338 IFS=$as_save_IFS 6339 6340 ;; 6341 esac 6342 fi 6343 DIFF=$ac_cv_path_DIFF 6344 if test -n "$DIFF"; then 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6346 $as_echo "$DIFF" >&6; } 6347 else 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6349 $as_echo "no" >&6; } 6350 fi 6351 6352 6353 if test "x$DIFF" = x; then 6354 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6355 fi 6356 else 6357 # Otherwise we believe it is a complete path. Use it as it is. 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6359 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6361 $as_echo_n "checking for DIFF... " >&6; } 6362 if test ! -x "$tool_specified"; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6364 $as_echo "not found" >&6; } 6365 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6366 fi 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6368 $as_echo "$tool_specified" >&6; } 6369 fi 6370 fi 6371 fi 6372 6373 6374 6375 if test "x$DIFF" = x; then 6376 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6377 fi 6378 6379 6380 6381 6382 6383 # Publish this variable in the help. 6384 6385 6386 if test "x$DIRNAME" = x; then 6387 # The variable is not set by user, try to locate tool using the code snippet 6388 for ac_prog in dirname 6389 do 6390 # Extract the first word of "$ac_prog", so it can be a program name with args. 6391 set dummy $ac_prog; ac_word=$2 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6393 $as_echo_n "checking for $ac_word... " >&6; } 6394 if ${ac_cv_path_DIRNAME+:} false; then : 6395 $as_echo_n "(cached) " >&6 6396 else 6397 case $DIRNAME in 6398 [\\/]* | ?:[\\/]*) 6399 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6400 ;; 6401 *) 6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403 for as_dir in $PATH 6404 do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6409 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413 done 6414 done 6415 IFS=$as_save_IFS 6416 6417 ;; 6418 esac 6419 fi 6420 DIRNAME=$ac_cv_path_DIRNAME 6421 if test -n "$DIRNAME"; then 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6423 $as_echo "$DIRNAME" >&6; } 6424 else 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6426 $as_echo "no" >&6; } 6427 fi 6428 6429 6430 test -n "$DIRNAME" && break 6431 done 6432 6433 else 6434 # The variable is set, but is it from the command line or the environment? 6435 6436 # Try to remove the string !DIRNAME! from our list. 6437 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6438 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6439 # If it failed, the variable was not from the command line. Ignore it, 6440 # but warn the user (except for BASH, which is always set by the calling BASH). 6441 if test "xDIRNAME" != xBASH; then 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6443 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6444 fi 6445 # Try to locate tool using the code snippet 6446 for ac_prog in dirname 6447 do 6448 # Extract the first word of "$ac_prog", so it can be a program name with args. 6449 set dummy $ac_prog; ac_word=$2 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6451 $as_echo_n "checking for $ac_word... " >&6; } 6452 if ${ac_cv_path_DIRNAME+:} false; then : 6453 $as_echo_n "(cached) " >&6 6454 else 6455 case $DIRNAME in 6456 [\\/]* | ?:[\\/]*) 6457 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6458 ;; 6459 *) 6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6461 for as_dir in $PATH 6462 do 6463 IFS=$as_save_IFS 6464 test -z "$as_dir" && as_dir=. 6465 for ac_exec_ext in '' $ac_executable_extensions; do 6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6467 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6469 break 2 6470 fi 6471 done 6472 done 6473 IFS=$as_save_IFS 6474 6475 ;; 6476 esac 6477 fi 6478 DIRNAME=$ac_cv_path_DIRNAME 6479 if test -n "$DIRNAME"; then 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6481 $as_echo "$DIRNAME" >&6; } 6482 else 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6484 $as_echo "no" >&6; } 6485 fi 6486 6487 6488 test -n "$DIRNAME" && break 6489 done 6490 6491 else 6492 # If it succeeded, then it was overridden by the user. We will use it 6493 # for the tool. 6494 6495 # First remove it from the list of overridden variables, so we can test 6496 # for unknown variables in the end. 6497 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6498 6499 # Check if the provided tool contains a complete path. 6500 tool_specified="$DIRNAME" 6501 tool_basename="${tool_specified##*/}" 6502 if test "x$tool_basename" = "x$tool_specified"; then 6503 # A command without a complete path is provided, search $PATH. 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6505 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6506 # Extract the first word of "$tool_basename", so it can be a program name with args. 6507 set dummy $tool_basename; ac_word=$2 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6509 $as_echo_n "checking for $ac_word... " >&6; } 6510 if ${ac_cv_path_DIRNAME+:} false; then : 6511 $as_echo_n "(cached) " >&6 6512 else 6513 case $DIRNAME in 6514 [\\/]* | ?:[\\/]*) 6515 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6516 ;; 6517 *) 6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6519 for as_dir in $PATH 6520 do 6521 IFS=$as_save_IFS 6522 test -z "$as_dir" && as_dir=. 6523 for ac_exec_ext in '' $ac_executable_extensions; do 6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6525 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6527 break 2 6528 fi 6529 done 6530 done 6531 IFS=$as_save_IFS 6532 6533 ;; 6534 esac 6535 fi 6536 DIRNAME=$ac_cv_path_DIRNAME 6537 if test -n "$DIRNAME"; then 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6539 $as_echo "$DIRNAME" >&6; } 6540 else 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6542 $as_echo "no" >&6; } 6543 fi 6544 6545 6546 if test "x$DIRNAME" = x; then 6547 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6548 fi 6549 else 6550 # Otherwise we believe it is a complete path. Use it as it is. 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6552 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6554 $as_echo_n "checking for DIRNAME... " >&6; } 6555 if test ! -x "$tool_specified"; then 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6557 $as_echo "not found" >&6; } 6558 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6559 fi 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6561 $as_echo "$tool_specified" >&6; } 6562 fi 6563 fi 6564 fi 6565 6566 6567 6568 if test "x$DIRNAME" = x; then 6569 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6570 fi 6571 6572 6573 6574 6575 6576 # Publish this variable in the help. 6577 6578 6579 if test "x$ECHO" = x; then 6580 # The variable is not set by user, try to locate tool using the code snippet 6581 for ac_prog in echo 6582 do 6583 # Extract the first word of "$ac_prog", so it can be a program name with args. 6584 set dummy $ac_prog; ac_word=$2 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6586 $as_echo_n "checking for $ac_word... " >&6; } 6587 if ${ac_cv_path_ECHO+:} false; then : 6588 $as_echo_n "(cached) " >&6 6589 else 6590 case $ECHO in 6591 [\\/]* | ?:[\\/]*) 6592 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6593 ;; 6594 *) 6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6596 for as_dir in $PATH 6597 do 6598 IFS=$as_save_IFS 6599 test -z "$as_dir" && as_dir=. 6600 for ac_exec_ext in '' $ac_executable_extensions; do 6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6602 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6604 break 2 6605 fi 6606 done 6607 done 6608 IFS=$as_save_IFS 6609 6610 ;; 6611 esac 6612 fi 6613 ECHO=$ac_cv_path_ECHO 6614 if test -n "$ECHO"; then 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6616 $as_echo "$ECHO" >&6; } 6617 else 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6619 $as_echo "no" >&6; } 6620 fi 6621 6622 6623 test -n "$ECHO" && break 6624 done 6625 6626 else 6627 # The variable is set, but is it from the command line or the environment? 6628 6629 # Try to remove the string !ECHO! from our list. 6630 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6631 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6632 # If it failed, the variable was not from the command line. Ignore it, 6633 # but warn the user (except for BASH, which is always set by the calling BASH). 6634 if test "xECHO" != xBASH; then 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6636 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6637 fi 6638 # Try to locate tool using the code snippet 6639 for ac_prog in echo 6640 do 6641 # Extract the first word of "$ac_prog", so it can be a program name with args. 6642 set dummy $ac_prog; ac_word=$2 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6644 $as_echo_n "checking for $ac_word... " >&6; } 6645 if ${ac_cv_path_ECHO+:} false; then : 6646 $as_echo_n "(cached) " >&6 6647 else 6648 case $ECHO in 6649 [\\/]* | ?:[\\/]*) 6650 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6651 ;; 6652 *) 6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6654 for as_dir in $PATH 6655 do 6656 IFS=$as_save_IFS 6657 test -z "$as_dir" && as_dir=. 6658 for ac_exec_ext in '' $ac_executable_extensions; do 6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6660 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6662 break 2 6663 fi 6664 done 6665 done 6666 IFS=$as_save_IFS 6667 6668 ;; 6669 esac 6670 fi 6671 ECHO=$ac_cv_path_ECHO 6672 if test -n "$ECHO"; then 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6674 $as_echo "$ECHO" >&6; } 6675 else 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6677 $as_echo "no" >&6; } 6678 fi 6679 6680 6681 test -n "$ECHO" && break 6682 done 6683 6684 else 6685 # If it succeeded, then it was overridden by the user. We will use it 6686 # for the tool. 6687 6688 # First remove it from the list of overridden variables, so we can test 6689 # for unknown variables in the end. 6690 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6691 6692 # Check if the provided tool contains a complete path. 6693 tool_specified="$ECHO" 6694 tool_basename="${tool_specified##*/}" 6695 if test "x$tool_basename" = "x$tool_specified"; then 6696 # A command without a complete path is provided, search $PATH. 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6698 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6699 # Extract the first word of "$tool_basename", so it can be a program name with args. 6700 set dummy $tool_basename; ac_word=$2 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6702 $as_echo_n "checking for $ac_word... " >&6; } 6703 if ${ac_cv_path_ECHO+:} false; then : 6704 $as_echo_n "(cached) " >&6 6705 else 6706 case $ECHO in 6707 [\\/]* | ?:[\\/]*) 6708 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6709 ;; 6710 *) 6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6712 for as_dir in $PATH 6713 do 6714 IFS=$as_save_IFS 6715 test -z "$as_dir" && as_dir=. 6716 for ac_exec_ext in '' $ac_executable_extensions; do 6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6718 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6720 break 2 6721 fi 6722 done 6723 done 6724 IFS=$as_save_IFS 6725 6726 ;; 6727 esac 6728 fi 6729 ECHO=$ac_cv_path_ECHO 6730 if test -n "$ECHO"; then 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6732 $as_echo "$ECHO" >&6; } 6733 else 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6735 $as_echo "no" >&6; } 6736 fi 6737 6738 6739 if test "x$ECHO" = x; then 6740 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6741 fi 6742 else 6743 # Otherwise we believe it is a complete path. Use it as it is. 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6745 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6747 $as_echo_n "checking for ECHO... " >&6; } 6748 if test ! -x "$tool_specified"; then 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6750 $as_echo "not found" >&6; } 6751 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6752 fi 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6754 $as_echo "$tool_specified" >&6; } 6755 fi 6756 fi 6757 fi 6758 6759 6760 6761 if test "x$ECHO" = x; then 6762 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6763 fi 6764 6765 6766 6767 6768 6769 # Publish this variable in the help. 6770 6771 6772 if test "x$EXPR" = x; then 6773 # The variable is not set by user, try to locate tool using the code snippet 6774 for ac_prog in expr 6775 do 6776 # Extract the first word of "$ac_prog", so it can be a program name with args. 6777 set dummy $ac_prog; ac_word=$2 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6779 $as_echo_n "checking for $ac_word... " >&6; } 6780 if ${ac_cv_path_EXPR+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782 else 6783 case $EXPR in 6784 [\\/]* | ?:[\\/]*) 6785 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6786 ;; 6787 *) 6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6789 for as_dir in $PATH 6790 do 6791 IFS=$as_save_IFS 6792 test -z "$as_dir" && as_dir=. 6793 for ac_exec_ext in '' $ac_executable_extensions; do 6794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6795 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6797 break 2 6798 fi 6799 done 6800 done 6801 IFS=$as_save_IFS 6802 6803 ;; 6804 esac 6805 fi 6806 EXPR=$ac_cv_path_EXPR 6807 if test -n "$EXPR"; then 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6809 $as_echo "$EXPR" >&6; } 6810 else 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6812 $as_echo "no" >&6; } 6813 fi 6814 6815 6816 test -n "$EXPR" && break 6817 done 6818 6819 else 6820 # The variable is set, but is it from the command line or the environment? 6821 6822 # Try to remove the string !EXPR! from our list. 6823 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6824 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6825 # If it failed, the variable was not from the command line. Ignore it, 6826 # but warn the user (except for BASH, which is always set by the calling BASH). 6827 if test "xEXPR" != xBASH; then 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6829 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6830 fi 6831 # Try to locate tool using the code snippet 6832 for ac_prog in expr 6833 do 6834 # Extract the first word of "$ac_prog", so it can be a program name with args. 6835 set dummy $ac_prog; ac_word=$2 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6837 $as_echo_n "checking for $ac_word... " >&6; } 6838 if ${ac_cv_path_EXPR+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840 else 6841 case $EXPR in 6842 [\\/]* | ?:[\\/]*) 6843 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6844 ;; 6845 *) 6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6847 for as_dir in $PATH 6848 do 6849 IFS=$as_save_IFS 6850 test -z "$as_dir" && as_dir=. 6851 for ac_exec_ext in '' $ac_executable_extensions; do 6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6853 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6855 break 2 6856 fi 6857 done 6858 done 6859 IFS=$as_save_IFS 6860 6861 ;; 6862 esac 6863 fi 6864 EXPR=$ac_cv_path_EXPR 6865 if test -n "$EXPR"; then 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6867 $as_echo "$EXPR" >&6; } 6868 else 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6870 $as_echo "no" >&6; } 6871 fi 6872 6873 6874 test -n "$EXPR" && break 6875 done 6876 6877 else 6878 # If it succeeded, then it was overridden by the user. We will use it 6879 # for the tool. 6880 6881 # First remove it from the list of overridden variables, so we can test 6882 # for unknown variables in the end. 6883 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6884 6885 # Check if the provided tool contains a complete path. 6886 tool_specified="$EXPR" 6887 tool_basename="${tool_specified##*/}" 6888 if test "x$tool_basename" = "x$tool_specified"; then 6889 # A command without a complete path is provided, search $PATH. 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6891 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6892 # Extract the first word of "$tool_basename", so it can be a program name with args. 6893 set dummy $tool_basename; ac_word=$2 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6895 $as_echo_n "checking for $ac_word... " >&6; } 6896 if ${ac_cv_path_EXPR+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898 else 6899 case $EXPR in 6900 [\\/]* | ?:[\\/]*) 6901 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6902 ;; 6903 *) 6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905 for as_dir in $PATH 6906 do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6911 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915 done 6916 done 6917 IFS=$as_save_IFS 6918 6919 ;; 6920 esac 6921 fi 6922 EXPR=$ac_cv_path_EXPR 6923 if test -n "$EXPR"; then 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6925 $as_echo "$EXPR" >&6; } 6926 else 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6928 $as_echo "no" >&6; } 6929 fi 6930 6931 6932 if test "x$EXPR" = x; then 6933 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6934 fi 6935 else 6936 # Otherwise we believe it is a complete path. Use it as it is. 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6938 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6940 $as_echo_n "checking for EXPR... " >&6; } 6941 if test ! -x "$tool_specified"; then 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6943 $as_echo "not found" >&6; } 6944 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6945 fi 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6947 $as_echo "$tool_specified" >&6; } 6948 fi 6949 fi 6950 fi 6951 6952 6953 6954 if test "x$EXPR" = x; then 6955 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6956 fi 6957 6958 6959 6960 6961 6962 # Publish this variable in the help. 6963 6964 6965 if test "x$FILE" = x; then 6966 # The variable is not set by user, try to locate tool using the code snippet 6967 for ac_prog in file 6968 do 6969 # Extract the first word of "$ac_prog", so it can be a program name with args. 6970 set dummy $ac_prog; ac_word=$2 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6972 $as_echo_n "checking for $ac_word... " >&6; } 6973 if ${ac_cv_path_FILE+:} false; then : 6974 $as_echo_n "(cached) " >&6 6975 else 6976 case $FILE in 6977 [\\/]* | ?:[\\/]*) 6978 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6979 ;; 6980 *) 6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6982 for as_dir in $PATH 6983 do 6984 IFS=$as_save_IFS 6985 test -z "$as_dir" && as_dir=. 6986 for ac_exec_ext in '' $ac_executable_extensions; do 6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6988 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6990 break 2 6991 fi 6992 done 6993 done 6994 IFS=$as_save_IFS 6995 6996 ;; 6997 esac 6998 fi 6999 FILE=$ac_cv_path_FILE 7000 if test -n "$FILE"; then 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7002 $as_echo "$FILE" >&6; } 7003 else 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7005 $as_echo "no" >&6; } 7006 fi 7007 7008 7009 test -n "$FILE" && break 7010 done 7011 7012 else 7013 # The variable is set, but is it from the command line or the environment? 7014 7015 # Try to remove the string !FILE! from our list. 7016 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7017 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7018 # If it failed, the variable was not from the command line. Ignore it, 7019 # but warn the user (except for BASH, which is always set by the calling BASH). 7020 if test "xFILE" != xBASH; then 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7022 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7023 fi 7024 # Try to locate tool using the code snippet 7025 for ac_prog in file 7026 do 7027 # Extract the first word of "$ac_prog", so it can be a program name with args. 7028 set dummy $ac_prog; ac_word=$2 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7030 $as_echo_n "checking for $ac_word... " >&6; } 7031 if ${ac_cv_path_FILE+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033 else 7034 case $FILE in 7035 [\\/]* | ?:[\\/]*) 7036 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7037 ;; 7038 *) 7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040 for as_dir in $PATH 7041 do 7042 IFS=$as_save_IFS 7043 test -z "$as_dir" && as_dir=. 7044 for ac_exec_ext in '' $ac_executable_extensions; do 7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7046 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7048 break 2 7049 fi 7050 done 7051 done 7052 IFS=$as_save_IFS 7053 7054 ;; 7055 esac 7056 fi 7057 FILE=$ac_cv_path_FILE 7058 if test -n "$FILE"; then 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7060 $as_echo "$FILE" >&6; } 7061 else 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7063 $as_echo "no" >&6; } 7064 fi 7065 7066 7067 test -n "$FILE" && break 7068 done 7069 7070 else 7071 # If it succeeded, then it was overridden by the user. We will use it 7072 # for the tool. 7073 7074 # First remove it from the list of overridden variables, so we can test 7075 # for unknown variables in the end. 7076 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7077 7078 # Check if the provided tool contains a complete path. 7079 tool_specified="$FILE" 7080 tool_basename="${tool_specified##*/}" 7081 if test "x$tool_basename" = "x$tool_specified"; then 7082 # A command without a complete path is provided, search $PATH. 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7084 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7085 # Extract the first word of "$tool_basename", so it can be a program name with args. 7086 set dummy $tool_basename; ac_word=$2 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7088 $as_echo_n "checking for $ac_word... " >&6; } 7089 if ${ac_cv_path_FILE+:} false; then : 7090 $as_echo_n "(cached) " >&6 7091 else 7092 case $FILE in 7093 [\\/]* | ?:[\\/]*) 7094 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7095 ;; 7096 *) 7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7098 for as_dir in $PATH 7099 do 7100 IFS=$as_save_IFS 7101 test -z "$as_dir" && as_dir=. 7102 for ac_exec_ext in '' $ac_executable_extensions; do 7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7104 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7106 break 2 7107 fi 7108 done 7109 done 7110 IFS=$as_save_IFS 7111 7112 ;; 7113 esac 7114 fi 7115 FILE=$ac_cv_path_FILE 7116 if test -n "$FILE"; then 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7118 $as_echo "$FILE" >&6; } 7119 else 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7121 $as_echo "no" >&6; } 7122 fi 7123 7124 7125 if test "x$FILE" = x; then 7126 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7127 fi 7128 else 7129 # Otherwise we believe it is a complete path. Use it as it is. 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7131 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7133 $as_echo_n "checking for FILE... " >&6; } 7134 if test ! -x "$tool_specified"; then 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7136 $as_echo "not found" >&6; } 7137 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7138 fi 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7140 $as_echo "$tool_specified" >&6; } 7141 fi 7142 fi 7143 fi 7144 7145 7146 7147 if test "x$FILE" = x; then 7148 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7149 fi 7150 7151 7152 7153 7154 7155 # Publish this variable in the help. 7156 7157 7158 if test "x$FIND" = x; then 7159 # The variable is not set by user, try to locate tool using the code snippet 7160 for ac_prog in find 7161 do 7162 # Extract the first word of "$ac_prog", so it can be a program name with args. 7163 set dummy $ac_prog; ac_word=$2 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7165 $as_echo_n "checking for $ac_word... " >&6; } 7166 if ${ac_cv_path_FIND+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168 else 7169 case $FIND in 7170 [\\/]* | ?:[\\/]*) 7171 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7172 ;; 7173 *) 7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7175 for as_dir in $PATH 7176 do 7177 IFS=$as_save_IFS 7178 test -z "$as_dir" && as_dir=. 7179 for ac_exec_ext in '' $ac_executable_extensions; do 7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7181 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7183 break 2 7184 fi 7185 done 7186 done 7187 IFS=$as_save_IFS 7188 7189 ;; 7190 esac 7191 fi 7192 FIND=$ac_cv_path_FIND 7193 if test -n "$FIND"; then 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7195 $as_echo "$FIND" >&6; } 7196 else 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7198 $as_echo "no" >&6; } 7199 fi 7200 7201 7202 test -n "$FIND" && break 7203 done 7204 7205 else 7206 # The variable is set, but is it from the command line or the environment? 7207 7208 # Try to remove the string !FIND! from our list. 7209 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7210 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7211 # If it failed, the variable was not from the command line. Ignore it, 7212 # but warn the user (except for BASH, which is always set by the calling BASH). 7213 if test "xFIND" != xBASH; then 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7215 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7216 fi 7217 # Try to locate tool using the code snippet 7218 for ac_prog in find 7219 do 7220 # Extract the first word of "$ac_prog", so it can be a program name with args. 7221 set dummy $ac_prog; 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_FIND+:} false; then : 7225 $as_echo_n "(cached) " >&6 7226 else 7227 case $FIND in 7228 [\\/]* | ?:[\\/]*) 7229 ac_cv_path_FIND="$FIND" # 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_FIND="$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 FIND=$ac_cv_path_FIND 7251 if test -n "$FIND"; then 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7253 $as_echo "$FIND" >&6; } 7254 else 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7256 $as_echo "no" >&6; } 7257 fi 7258 7259 7260 test -n "$FIND" && break 7261 done 7262 7263 else 7264 # If it succeeded, then it was overridden by the user. We will use it 7265 # for the tool. 7266 7267 # First remove it from the list of overridden variables, so we can test 7268 # for unknown variables in the end. 7269 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7270 7271 # Check if the provided tool contains a complete path. 7272 tool_specified="$FIND" 7273 tool_basename="${tool_specified##*/}" 7274 if test "x$tool_basename" = "x$tool_specified"; then 7275 # A command without a complete path is provided, search $PATH. 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7277 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7278 # Extract the first word of "$tool_basename", so it can be a program name with args. 7279 set dummy $tool_basename; ac_word=$2 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7281 $as_echo_n "checking for $ac_word... " >&6; } 7282 if ${ac_cv_path_FIND+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284 else 7285 case $FIND in 7286 [\\/]* | ?:[\\/]*) 7287 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7288 ;; 7289 *) 7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7291 for as_dir in $PATH 7292 do 7293 IFS=$as_save_IFS 7294 test -z "$as_dir" && as_dir=. 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7297 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7299 break 2 7300 fi 7301 done 7302 done 7303 IFS=$as_save_IFS 7304 7305 ;; 7306 esac 7307 fi 7308 FIND=$ac_cv_path_FIND 7309 if test -n "$FIND"; then 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7311 $as_echo "$FIND" >&6; } 7312 else 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7314 $as_echo "no" >&6; } 7315 fi 7316 7317 7318 if test "x$FIND" = x; then 7319 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7320 fi 7321 else 7322 # Otherwise we believe it is a complete path. Use it as it is. 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7324 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7326 $as_echo_n "checking for FIND... " >&6; } 7327 if test ! -x "$tool_specified"; then 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7329 $as_echo "not found" >&6; } 7330 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7331 fi 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7333 $as_echo "$tool_specified" >&6; } 7334 fi 7335 fi 7336 fi 7337 7338 7339 7340 if test "x$FIND" = x; then 7341 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7342 fi 7343 7344 7345 7346 7347 7348 # Publish this variable in the help. 7349 7350 7351 if test "x$HEAD" = x; then 7352 # The variable is not set by user, try to locate tool using the code snippet 7353 for ac_prog in head 7354 do 7355 # Extract the first word of "$ac_prog", so it can be a program name with args. 7356 set dummy $ac_prog; ac_word=$2 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7358 $as_echo_n "checking for $ac_word... " >&6; } 7359 if ${ac_cv_path_HEAD+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361 else 7362 case $HEAD in 7363 [\\/]* | ?:[\\/]*) 7364 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7365 ;; 7366 *) 7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7368 for as_dir in $PATH 7369 do 7370 IFS=$as_save_IFS 7371 test -z "$as_dir" && as_dir=. 7372 for ac_exec_ext in '' $ac_executable_extensions; do 7373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7374 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7376 break 2 7377 fi 7378 done 7379 done 7380 IFS=$as_save_IFS 7381 7382 ;; 7383 esac 7384 fi 7385 HEAD=$ac_cv_path_HEAD 7386 if test -n "$HEAD"; then 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7388 $as_echo "$HEAD" >&6; } 7389 else 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7391 $as_echo "no" >&6; } 7392 fi 7393 7394 7395 test -n "$HEAD" && break 7396 done 7397 7398 else 7399 # The variable is set, but is it from the command line or the environment? 7400 7401 # Try to remove the string !HEAD! from our list. 7402 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7403 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7404 # If it failed, the variable was not from the command line. Ignore it, 7405 # but warn the user (except for BASH, which is always set by the calling BASH). 7406 if test "xHEAD" != xBASH; then 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7408 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7409 fi 7410 # Try to locate tool using the code snippet 7411 for ac_prog in head 7412 do 7413 # Extract the first word of "$ac_prog", so it can be a program name with args. 7414 set dummy $ac_prog; ac_word=$2 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7416 $as_echo_n "checking for $ac_word... " >&6; } 7417 if ${ac_cv_path_HEAD+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419 else 7420 case $HEAD in 7421 [\\/]* | ?:[\\/]*) 7422 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7423 ;; 7424 *) 7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7426 for as_dir in $PATH 7427 do 7428 IFS=$as_save_IFS 7429 test -z "$as_dir" && as_dir=. 7430 for ac_exec_ext in '' $ac_executable_extensions; do 7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7432 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7434 break 2 7435 fi 7436 done 7437 done 7438 IFS=$as_save_IFS 7439 7440 ;; 7441 esac 7442 fi 7443 HEAD=$ac_cv_path_HEAD 7444 if test -n "$HEAD"; then 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7446 $as_echo "$HEAD" >&6; } 7447 else 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7449 $as_echo "no" >&6; } 7450 fi 7451 7452 7453 test -n "$HEAD" && break 7454 done 7455 7456 else 7457 # If it succeeded, then it was overridden by the user. We will use it 7458 # for the tool. 7459 7460 # First remove it from the list of overridden variables, so we can test 7461 # for unknown variables in the end. 7462 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7463 7464 # Check if the provided tool contains a complete path. 7465 tool_specified="$HEAD" 7466 tool_basename="${tool_specified##*/}" 7467 if test "x$tool_basename" = "x$tool_specified"; then 7468 # A command without a complete path is provided, search $PATH. 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7470 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7471 # Extract the first word of "$tool_basename", so it can be a program name with args. 7472 set dummy $tool_basename; ac_word=$2 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474 $as_echo_n "checking for $ac_word... " >&6; } 7475 if ${ac_cv_path_HEAD+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477 else 7478 case $HEAD in 7479 [\\/]* | ?:[\\/]*) 7480 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7481 ;; 7482 *) 7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7484 for as_dir in $PATH 7485 do 7486 IFS=$as_save_IFS 7487 test -z "$as_dir" && as_dir=. 7488 for ac_exec_ext in '' $ac_executable_extensions; do 7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7490 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7492 break 2 7493 fi 7494 done 7495 done 7496 IFS=$as_save_IFS 7497 7498 ;; 7499 esac 7500 fi 7501 HEAD=$ac_cv_path_HEAD 7502 if test -n "$HEAD"; then 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7504 $as_echo "$HEAD" >&6; } 7505 else 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7507 $as_echo "no" >&6; } 7508 fi 7509 7510 7511 if test "x$HEAD" = x; then 7512 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7513 fi 7514 else 7515 # Otherwise we believe it is a complete path. Use it as it is. 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7517 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7519 $as_echo_n "checking for HEAD... " >&6; } 7520 if test ! -x "$tool_specified"; then 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7522 $as_echo "not found" >&6; } 7523 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7524 fi 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7526 $as_echo "$tool_specified" >&6; } 7527 fi 7528 fi 7529 fi 7530 7531 7532 7533 if test "x$HEAD" = x; then 7534 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7535 fi 7536 7537 7538 7539 7540 7541 # Publish this variable in the help. 7542 7543 7544 if test "x$LN" = x; then 7545 # The variable is not set by user, try to locate tool using the code snippet 7546 for ac_prog in ln 7547 do 7548 # Extract the first word of "$ac_prog", so it can be a program name with args. 7549 set dummy $ac_prog; ac_word=$2 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7551 $as_echo_n "checking for $ac_word... " >&6; } 7552 if ${ac_cv_path_LN+:} false; then : 7553 $as_echo_n "(cached) " >&6 7554 else 7555 case $LN in 7556 [\\/]* | ?:[\\/]*) 7557 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7558 ;; 7559 *) 7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7561 for as_dir in $PATH 7562 do 7563 IFS=$as_save_IFS 7564 test -z "$as_dir" && as_dir=. 7565 for ac_exec_ext in '' $ac_executable_extensions; do 7566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7567 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7569 break 2 7570 fi 7571 done 7572 done 7573 IFS=$as_save_IFS 7574 7575 ;; 7576 esac 7577 fi 7578 LN=$ac_cv_path_LN 7579 if test -n "$LN"; then 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7581 $as_echo "$LN" >&6; } 7582 else 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7584 $as_echo "no" >&6; } 7585 fi 7586 7587 7588 test -n "$LN" && break 7589 done 7590 7591 else 7592 # The variable is set, but is it from the command line or the environment? 7593 7594 # Try to remove the string !LN! from our list. 7595 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7596 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7597 # If it failed, the variable was not from the command line. Ignore it, 7598 # but warn the user (except for BASH, which is always set by the calling BASH). 7599 if test "xLN" != xBASH; then 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7601 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7602 fi 7603 # Try to locate tool using the code snippet 7604 for ac_prog in ln 7605 do 7606 # Extract the first word of "$ac_prog", so it can be a program name with args. 7607 set dummy $ac_prog; ac_word=$2 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7609 $as_echo_n "checking for $ac_word... " >&6; } 7610 if ${ac_cv_path_LN+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612 else 7613 case $LN in 7614 [\\/]* | ?:[\\/]*) 7615 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7616 ;; 7617 *) 7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7619 for as_dir in $PATH 7620 do 7621 IFS=$as_save_IFS 7622 test -z "$as_dir" && as_dir=. 7623 for ac_exec_ext in '' $ac_executable_extensions; do 7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7625 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7627 break 2 7628 fi 7629 done 7630 done 7631 IFS=$as_save_IFS 7632 7633 ;; 7634 esac 7635 fi 7636 LN=$ac_cv_path_LN 7637 if test -n "$LN"; then 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7639 $as_echo "$LN" >&6; } 7640 else 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7642 $as_echo "no" >&6; } 7643 fi 7644 7645 7646 test -n "$LN" && break 7647 done 7648 7649 else 7650 # If it succeeded, then it was overridden by the user. We will use it 7651 # for the tool. 7652 7653 # First remove it from the list of overridden variables, so we can test 7654 # for unknown variables in the end. 7655 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7656 7657 # Check if the provided tool contains a complete path. 7658 tool_specified="$LN" 7659 tool_basename="${tool_specified##*/}" 7660 if test "x$tool_basename" = "x$tool_specified"; then 7661 # A command without a complete path is provided, search $PATH. 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7663 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7664 # Extract the first word of "$tool_basename", so it can be a program name with args. 7665 set dummy $tool_basename; ac_word=$2 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7667 $as_echo_n "checking for $ac_word... " >&6; } 7668 if ${ac_cv_path_LN+:} false; then : 7669 $as_echo_n "(cached) " >&6 7670 else 7671 case $LN in 7672 [\\/]* | ?:[\\/]*) 7673 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7674 ;; 7675 *) 7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7677 for as_dir in $PATH 7678 do 7679 IFS=$as_save_IFS 7680 test -z "$as_dir" && as_dir=. 7681 for ac_exec_ext in '' $ac_executable_extensions; do 7682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7683 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7685 break 2 7686 fi 7687 done 7688 done 7689 IFS=$as_save_IFS 7690 7691 ;; 7692 esac 7693 fi 7694 LN=$ac_cv_path_LN 7695 if test -n "$LN"; then 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7697 $as_echo "$LN" >&6; } 7698 else 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7700 $as_echo "no" >&6; } 7701 fi 7702 7703 7704 if test "x$LN" = x; then 7705 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7706 fi 7707 else 7708 # Otherwise we believe it is a complete path. Use it as it is. 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7710 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7712 $as_echo_n "checking for LN... " >&6; } 7713 if test ! -x "$tool_specified"; then 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7715 $as_echo "not found" >&6; } 7716 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7717 fi 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7719 $as_echo "$tool_specified" >&6; } 7720 fi 7721 fi 7722 fi 7723 7724 7725 7726 if test "x$LN" = x; then 7727 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7728 fi 7729 7730 7731 7732 7733 7734 # Publish this variable in the help. 7735 7736 7737 if test "x$LS" = x; then 7738 # The variable is not set by user, try to locate tool using the code snippet 7739 for ac_prog in ls 7740 do 7741 # Extract the first word of "$ac_prog", so it can be a program name with args. 7742 set dummy $ac_prog; ac_word=$2 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7744 $as_echo_n "checking for $ac_word... " >&6; } 7745 if ${ac_cv_path_LS+:} false; then : 7746 $as_echo_n "(cached) " >&6 7747 else 7748 case $LS in 7749 [\\/]* | ?:[\\/]*) 7750 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7751 ;; 7752 *) 7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7754 for as_dir in $PATH 7755 do 7756 IFS=$as_save_IFS 7757 test -z "$as_dir" && as_dir=. 7758 for ac_exec_ext in '' $ac_executable_extensions; do 7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7760 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7762 break 2 7763 fi 7764 done 7765 done 7766 IFS=$as_save_IFS 7767 7768 ;; 7769 esac 7770 fi 7771 LS=$ac_cv_path_LS 7772 if test -n "$LS"; then 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7774 $as_echo "$LS" >&6; } 7775 else 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7777 $as_echo "no" >&6; } 7778 fi 7779 7780 7781 test -n "$LS" && break 7782 done 7783 7784 else 7785 # The variable is set, but is it from the command line or the environment? 7786 7787 # Try to remove the string !LS! from our list. 7788 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7789 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7790 # If it failed, the variable was not from the command line. Ignore it, 7791 # but warn the user (except for BASH, which is always set by the calling BASH). 7792 if test "xLS" != xBASH; then 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7794 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7795 fi 7796 # Try to locate tool using the code snippet 7797 for ac_prog in ls 7798 do 7799 # Extract the first word of "$ac_prog", so it can be a program name with args. 7800 set dummy $ac_prog; ac_word=$2 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7802 $as_echo_n "checking for $ac_word... " >&6; } 7803 if ${ac_cv_path_LS+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805 else 7806 case $LS in 7807 [\\/]* | ?:[\\/]*) 7808 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7809 ;; 7810 *) 7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7812 for as_dir in $PATH 7813 do 7814 IFS=$as_save_IFS 7815 test -z "$as_dir" && as_dir=. 7816 for ac_exec_ext in '' $ac_executable_extensions; do 7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7818 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7820 break 2 7821 fi 7822 done 7823 done 7824 IFS=$as_save_IFS 7825 7826 ;; 7827 esac 7828 fi 7829 LS=$ac_cv_path_LS 7830 if test -n "$LS"; then 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7832 $as_echo "$LS" >&6; } 7833 else 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7835 $as_echo "no" >&6; } 7836 fi 7837 7838 7839 test -n "$LS" && break 7840 done 7841 7842 else 7843 # If it succeeded, then it was overridden by the user. We will use it 7844 # for the tool. 7845 7846 # First remove it from the list of overridden variables, so we can test 7847 # for unknown variables in the end. 7848 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7849 7850 # Check if the provided tool contains a complete path. 7851 tool_specified="$LS" 7852 tool_basename="${tool_specified##*/}" 7853 if test "x$tool_basename" = "x$tool_specified"; then 7854 # A command without a complete path is provided, search $PATH. 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7856 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7857 # Extract the first word of "$tool_basename", so it can be a program name with args. 7858 set dummy $tool_basename; ac_word=$2 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7860 $as_echo_n "checking for $ac_word... " >&6; } 7861 if ${ac_cv_path_LS+:} false; then : 7862 $as_echo_n "(cached) " >&6 7863 else 7864 case $LS in 7865 [\\/]* | ?:[\\/]*) 7866 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7867 ;; 7868 *) 7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7870 for as_dir in $PATH 7871 do 7872 IFS=$as_save_IFS 7873 test -z "$as_dir" && as_dir=. 7874 for ac_exec_ext in '' $ac_executable_extensions; do 7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7876 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7878 break 2 7879 fi 7880 done 7881 done 7882 IFS=$as_save_IFS 7883 7884 ;; 7885 esac 7886 fi 7887 LS=$ac_cv_path_LS 7888 if test -n "$LS"; then 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7890 $as_echo "$LS" >&6; } 7891 else 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7893 $as_echo "no" >&6; } 7894 fi 7895 7896 7897 if test "x$LS" = x; then 7898 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7899 fi 7900 else 7901 # Otherwise we believe it is a complete path. Use it as it is. 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7903 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7905 $as_echo_n "checking for LS... " >&6; } 7906 if test ! -x "$tool_specified"; then 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7908 $as_echo "not found" >&6; } 7909 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7910 fi 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7912 $as_echo "$tool_specified" >&6; } 7913 fi 7914 fi 7915 fi 7916 7917 7918 7919 if test "x$LS" = x; then 7920 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7921 fi 7922 7923 7924 7925 7926 7927 # Publish this variable in the help. 7928 7929 7930 if test "x$MKDIR" = x; then 7931 # The variable is not set by user, try to locate tool using the code snippet 7932 for ac_prog in mkdir 7933 do 7934 # Extract the first word of "$ac_prog", so it can be a program name with args. 7935 set dummy $ac_prog; ac_word=$2 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7937 $as_echo_n "checking for $ac_word... " >&6; } 7938 if ${ac_cv_path_MKDIR+:} false; then : 7939 $as_echo_n "(cached) " >&6 7940 else 7941 case $MKDIR in 7942 [\\/]* | ?:[\\/]*) 7943 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7944 ;; 7945 *) 7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7947 for as_dir in $PATH 7948 do 7949 IFS=$as_save_IFS 7950 test -z "$as_dir" && as_dir=. 7951 for ac_exec_ext in '' $ac_executable_extensions; do 7952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7953 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7955 break 2 7956 fi 7957 done 7958 done 7959 IFS=$as_save_IFS 7960 7961 ;; 7962 esac 7963 fi 7964 MKDIR=$ac_cv_path_MKDIR 7965 if test -n "$MKDIR"; then 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7967 $as_echo "$MKDIR" >&6; } 7968 else 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7970 $as_echo "no" >&6; } 7971 fi 7972 7973 7974 test -n "$MKDIR" && break 7975 done 7976 7977 else 7978 # The variable is set, but is it from the command line or the environment? 7979 7980 # Try to remove the string !MKDIR! from our list. 7981 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7982 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7983 # If it failed, the variable was not from the command line. Ignore it, 7984 # but warn the user (except for BASH, which is always set by the calling BASH). 7985 if test "xMKDIR" != xBASH; then 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7987 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7988 fi 7989 # Try to locate tool using the code snippet 7990 for ac_prog in mkdir 7991 do 7992 # Extract the first word of "$ac_prog", so it can be a program name with args. 7993 set dummy $ac_prog; ac_word=$2 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7995 $as_echo_n "checking for $ac_word... " >&6; } 7996 if ${ac_cv_path_MKDIR+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998 else 7999 case $MKDIR in 8000 [\\/]* | ?:[\\/]*) 8001 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8002 ;; 8003 *) 8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8005 for as_dir in $PATH 8006 do 8007 IFS=$as_save_IFS 8008 test -z "$as_dir" && as_dir=. 8009 for ac_exec_ext in '' $ac_executable_extensions; do 8010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8011 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8013 break 2 8014 fi 8015 done 8016 done 8017 IFS=$as_save_IFS 8018 8019 ;; 8020 esac 8021 fi 8022 MKDIR=$ac_cv_path_MKDIR 8023 if test -n "$MKDIR"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8025 $as_echo "$MKDIR" >&6; } 8026 else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028 $as_echo "no" >&6; } 8029 fi 8030 8031 8032 test -n "$MKDIR" && break 8033 done 8034 8035 else 8036 # If it succeeded, then it was overridden by the user. We will use it 8037 # for the tool. 8038 8039 # First remove it from the list of overridden variables, so we can test 8040 # for unknown variables in the end. 8041 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8042 8043 # Check if the provided tool contains a complete path. 8044 tool_specified="$MKDIR" 8045 tool_basename="${tool_specified##*/}" 8046 if test "x$tool_basename" = "x$tool_specified"; then 8047 # A command without a complete path is provided, search $PATH. 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8049 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8050 # Extract the first word of "$tool_basename", so it can be a program name with args. 8051 set dummy $tool_basename; ac_word=$2 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8053 $as_echo_n "checking for $ac_word... " >&6; } 8054 if ${ac_cv_path_MKDIR+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056 else 8057 case $MKDIR in 8058 [\\/]* | ?:[\\/]*) 8059 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8060 ;; 8061 *) 8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8063 for as_dir in $PATH 8064 do 8065 IFS=$as_save_IFS 8066 test -z "$as_dir" && as_dir=. 8067 for ac_exec_ext in '' $ac_executable_extensions; do 8068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8069 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8071 break 2 8072 fi 8073 done 8074 done 8075 IFS=$as_save_IFS 8076 8077 ;; 8078 esac 8079 fi 8080 MKDIR=$ac_cv_path_MKDIR 8081 if test -n "$MKDIR"; then 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8083 $as_echo "$MKDIR" >&6; } 8084 else 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8086 $as_echo "no" >&6; } 8087 fi 8088 8089 8090 if test "x$MKDIR" = x; then 8091 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8092 fi 8093 else 8094 # Otherwise we believe it is a complete path. Use it as it is. 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8096 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8098 $as_echo_n "checking for MKDIR... " >&6; } 8099 if test ! -x "$tool_specified"; then 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8101 $as_echo "not found" >&6; } 8102 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8103 fi 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8105 $as_echo "$tool_specified" >&6; } 8106 fi 8107 fi 8108 fi 8109 8110 8111 8112 if test "x$MKDIR" = x; then 8113 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8114 fi 8115 8116 8117 8118 8119 8120 # Publish this variable in the help. 8121 8122 8123 if test "x$MKTEMP" = x; then 8124 # The variable is not set by user, try to locate tool using the code snippet 8125 for ac_prog in mktemp 8126 do 8127 # Extract the first word of "$ac_prog", so it can be a program name with args. 8128 set dummy $ac_prog; ac_word=$2 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8130 $as_echo_n "checking for $ac_word... " >&6; } 8131 if ${ac_cv_path_MKTEMP+:} false; then : 8132 $as_echo_n "(cached) " >&6 8133 else 8134 case $MKTEMP in 8135 [\\/]* | ?:[\\/]*) 8136 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8137 ;; 8138 *) 8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8140 for as_dir in $PATH 8141 do 8142 IFS=$as_save_IFS 8143 test -z "$as_dir" && as_dir=. 8144 for ac_exec_ext in '' $ac_executable_extensions; do 8145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8146 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8148 break 2 8149 fi 8150 done 8151 done 8152 IFS=$as_save_IFS 8153 8154 ;; 8155 esac 8156 fi 8157 MKTEMP=$ac_cv_path_MKTEMP 8158 if test -n "$MKTEMP"; then 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8160 $as_echo "$MKTEMP" >&6; } 8161 else 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8163 $as_echo "no" >&6; } 8164 fi 8165 8166 8167 test -n "$MKTEMP" && break 8168 done 8169 8170 else 8171 # The variable is set, but is it from the command line or the environment? 8172 8173 # Try to remove the string !MKTEMP! from our list. 8174 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8175 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8176 # If it failed, the variable was not from the command line. Ignore it, 8177 # but warn the user (except for BASH, which is always set by the calling BASH). 8178 if test "xMKTEMP" != xBASH; then 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8180 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8181 fi 8182 # Try to locate tool using the code snippet 8183 for ac_prog in mktemp 8184 do 8185 # Extract the first word of "$ac_prog", so it can be a program name with args. 8186 set dummy $ac_prog; ac_word=$2 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8188 $as_echo_n "checking for $ac_word... " >&6; } 8189 if ${ac_cv_path_MKTEMP+:} false; then : 8190 $as_echo_n "(cached) " >&6 8191 else 8192 case $MKTEMP in 8193 [\\/]* | ?:[\\/]*) 8194 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8195 ;; 8196 *) 8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8198 for as_dir in $PATH 8199 do 8200 IFS=$as_save_IFS 8201 test -z "$as_dir" && as_dir=. 8202 for ac_exec_ext in '' $ac_executable_extensions; do 8203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8204 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8206 break 2 8207 fi 8208 done 8209 done 8210 IFS=$as_save_IFS 8211 8212 ;; 8213 esac 8214 fi 8215 MKTEMP=$ac_cv_path_MKTEMP 8216 if test -n "$MKTEMP"; then 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8218 $as_echo "$MKTEMP" >&6; } 8219 else 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8221 $as_echo "no" >&6; } 8222 fi 8223 8224 8225 test -n "$MKTEMP" && break 8226 done 8227 8228 else 8229 # If it succeeded, then it was overridden by the user. We will use it 8230 # for the tool. 8231 8232 # First remove it from the list of overridden variables, so we can test 8233 # for unknown variables in the end. 8234 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8235 8236 # Check if the provided tool contains a complete path. 8237 tool_specified="$MKTEMP" 8238 tool_basename="${tool_specified##*/}" 8239 if test "x$tool_basename" = "x$tool_specified"; then 8240 # A command without a complete path is provided, search $PATH. 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8242 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8243 # Extract the first word of "$tool_basename", so it can be a program name with args. 8244 set dummy $tool_basename; ac_word=$2 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8246 $as_echo_n "checking for $ac_word... " >&6; } 8247 if ${ac_cv_path_MKTEMP+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249 else 8250 case $MKTEMP in 8251 [\\/]* | ?:[\\/]*) 8252 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8253 ;; 8254 *) 8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8256 for as_dir in $PATH 8257 do 8258 IFS=$as_save_IFS 8259 test -z "$as_dir" && as_dir=. 8260 for ac_exec_ext in '' $ac_executable_extensions; do 8261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8262 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8264 break 2 8265 fi 8266 done 8267 done 8268 IFS=$as_save_IFS 8269 8270 ;; 8271 esac 8272 fi 8273 MKTEMP=$ac_cv_path_MKTEMP 8274 if test -n "$MKTEMP"; then 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8276 $as_echo "$MKTEMP" >&6; } 8277 else 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8279 $as_echo "no" >&6; } 8280 fi 8281 8282 8283 if test "x$MKTEMP" = x; then 8284 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8285 fi 8286 else 8287 # Otherwise we believe it is a complete path. Use it as it is. 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8289 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8291 $as_echo_n "checking for MKTEMP... " >&6; } 8292 if test ! -x "$tool_specified"; then 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8294 $as_echo "not found" >&6; } 8295 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8296 fi 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8298 $as_echo "$tool_specified" >&6; } 8299 fi 8300 fi 8301 fi 8302 8303 8304 8305 if test "x$MKTEMP" = x; then 8306 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8307 fi 8308 8309 8310 8311 8312 8313 # Publish this variable in the help. 8314 8315 8316 if test "x$MV" = x; then 8317 # The variable is not set by user, try to locate tool using the code snippet 8318 for ac_prog in mv 8319 do 8320 # Extract the first word of "$ac_prog", so it can be a program name with args. 8321 set dummy $ac_prog; ac_word=$2 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8323 $as_echo_n "checking for $ac_word... " >&6; } 8324 if ${ac_cv_path_MV+:} false; then : 8325 $as_echo_n "(cached) " >&6 8326 else 8327 case $MV in 8328 [\\/]* | ?:[\\/]*) 8329 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8330 ;; 8331 *) 8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8333 for as_dir in $PATH 8334 do 8335 IFS=$as_save_IFS 8336 test -z "$as_dir" && as_dir=. 8337 for ac_exec_ext in '' $ac_executable_extensions; do 8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8339 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8341 break 2 8342 fi 8343 done 8344 done 8345 IFS=$as_save_IFS 8346 8347 ;; 8348 esac 8349 fi 8350 MV=$ac_cv_path_MV 8351 if test -n "$MV"; then 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8353 $as_echo "$MV" >&6; } 8354 else 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8356 $as_echo "no" >&6; } 8357 fi 8358 8359 8360 test -n "$MV" && break 8361 done 8362 8363 else 8364 # The variable is set, but is it from the command line or the environment? 8365 8366 # Try to remove the string !MV! from our list. 8367 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8368 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8369 # If it failed, the variable was not from the command line. Ignore it, 8370 # but warn the user (except for BASH, which is always set by the calling BASH). 8371 if test "xMV" != xBASH; then 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8373 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8374 fi 8375 # Try to locate tool using the code snippet 8376 for ac_prog in mv 8377 do 8378 # Extract the first word of "$ac_prog", so it can be a program name with args. 8379 set dummy $ac_prog; ac_word=$2 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8381 $as_echo_n "checking for $ac_word... " >&6; } 8382 if ${ac_cv_path_MV+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384 else 8385 case $MV in 8386 [\\/]* | ?:[\\/]*) 8387 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8388 ;; 8389 *) 8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8391 for as_dir in $PATH 8392 do 8393 IFS=$as_save_IFS 8394 test -z "$as_dir" && as_dir=. 8395 for ac_exec_ext in '' $ac_executable_extensions; do 8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8397 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8399 break 2 8400 fi 8401 done 8402 done 8403 IFS=$as_save_IFS 8404 8405 ;; 8406 esac 8407 fi 8408 MV=$ac_cv_path_MV 8409 if test -n "$MV"; then 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8411 $as_echo "$MV" >&6; } 8412 else 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8414 $as_echo "no" >&6; } 8415 fi 8416 8417 8418 test -n "$MV" && break 8419 done 8420 8421 else 8422 # If it succeeded, then it was overridden by the user. We will use it 8423 # for the tool. 8424 8425 # First remove it from the list of overridden variables, so we can test 8426 # for unknown variables in the end. 8427 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8428 8429 # Check if the provided tool contains a complete path. 8430 tool_specified="$MV" 8431 tool_basename="${tool_specified##*/}" 8432 if test "x$tool_basename" = "x$tool_specified"; then 8433 # A command without a complete path is provided, search $PATH. 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8435 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8436 # Extract the first word of "$tool_basename", so it can be a program name with args. 8437 set dummy $tool_basename; ac_word=$2 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8439 $as_echo_n "checking for $ac_word... " >&6; } 8440 if ${ac_cv_path_MV+:} false; then : 8441 $as_echo_n "(cached) " >&6 8442 else 8443 case $MV in 8444 [\\/]* | ?:[\\/]*) 8445 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8446 ;; 8447 *) 8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8449 for as_dir in $PATH 8450 do 8451 IFS=$as_save_IFS 8452 test -z "$as_dir" && as_dir=. 8453 for ac_exec_ext in '' $ac_executable_extensions; do 8454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8455 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8457 break 2 8458 fi 8459 done 8460 done 8461 IFS=$as_save_IFS 8462 8463 ;; 8464 esac 8465 fi 8466 MV=$ac_cv_path_MV 8467 if test -n "$MV"; then 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8469 $as_echo "$MV" >&6; } 8470 else 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8472 $as_echo "no" >&6; } 8473 fi 8474 8475 8476 if test "x$MV" = x; then 8477 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8478 fi 8479 else 8480 # Otherwise we believe it is a complete path. Use it as it is. 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8482 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8484 $as_echo_n "checking for MV... " >&6; } 8485 if test ! -x "$tool_specified"; then 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8487 $as_echo "not found" >&6; } 8488 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8489 fi 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8491 $as_echo "$tool_specified" >&6; } 8492 fi 8493 fi 8494 fi 8495 8496 8497 8498 if test "x$MV" = x; then 8499 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8500 fi 8501 8502 8503 8504 8505 8506 # Publish this variable in the help. 8507 8508 8509 if test "x$NAWK" = x; then 8510 # The variable is not set by user, try to locate tool using the code snippet 8511 for ac_prog in nawk gawk awk 8512 do 8513 # Extract the first word of "$ac_prog", so it can be a program name with args. 8514 set dummy $ac_prog; ac_word=$2 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8516 $as_echo_n "checking for $ac_word... " >&6; } 8517 if ${ac_cv_path_NAWK+:} false; then : 8518 $as_echo_n "(cached) " >&6 8519 else 8520 case $NAWK in 8521 [\\/]* | ?:[\\/]*) 8522 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8523 ;; 8524 *) 8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8526 for as_dir in $PATH 8527 do 8528 IFS=$as_save_IFS 8529 test -z "$as_dir" && as_dir=. 8530 for ac_exec_ext in '' $ac_executable_extensions; do 8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8532 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8534 break 2 8535 fi 8536 done 8537 done 8538 IFS=$as_save_IFS 8539 8540 ;; 8541 esac 8542 fi 8543 NAWK=$ac_cv_path_NAWK 8544 if test -n "$NAWK"; then 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8546 $as_echo "$NAWK" >&6; } 8547 else 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8549 $as_echo "no" >&6; } 8550 fi 8551 8552 8553 test -n "$NAWK" && break 8554 done 8555 8556 else 8557 # The variable is set, but is it from the command line or the environment? 8558 8559 # Try to remove the string !NAWK! from our list. 8560 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8561 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8562 # If it failed, the variable was not from the command line. Ignore it, 8563 # but warn the user (except for BASH, which is always set by the calling BASH). 8564 if test "xNAWK" != xBASH; then 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8566 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8567 fi 8568 # Try to locate tool using the code snippet 8569 for ac_prog in nawk gawk awk 8570 do 8571 # Extract the first word of "$ac_prog", so it can be a program name with args. 8572 set dummy $ac_prog; ac_word=$2 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8574 $as_echo_n "checking for $ac_word... " >&6; } 8575 if ${ac_cv_path_NAWK+:} false; then : 8576 $as_echo_n "(cached) " >&6 8577 else 8578 case $NAWK in 8579 [\\/]* | ?:[\\/]*) 8580 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8581 ;; 8582 *) 8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8584 for as_dir in $PATH 8585 do 8586 IFS=$as_save_IFS 8587 test -z "$as_dir" && as_dir=. 8588 for ac_exec_ext in '' $ac_executable_extensions; do 8589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8590 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8592 break 2 8593 fi 8594 done 8595 done 8596 IFS=$as_save_IFS 8597 8598 ;; 8599 esac 8600 fi 8601 NAWK=$ac_cv_path_NAWK 8602 if test -n "$NAWK"; then 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8604 $as_echo "$NAWK" >&6; } 8605 else 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8607 $as_echo "no" >&6; } 8608 fi 8609 8610 8611 test -n "$NAWK" && break 8612 done 8613 8614 else 8615 # If it succeeded, then it was overridden by the user. We will use it 8616 # for the tool. 8617 8618 # First remove it from the list of overridden variables, so we can test 8619 # for unknown variables in the end. 8620 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8621 8622 # Check if the provided tool contains a complete path. 8623 tool_specified="$NAWK" 8624 tool_basename="${tool_specified##*/}" 8625 if test "x$tool_basename" = "x$tool_specified"; then 8626 # A command without a complete path is provided, search $PATH. 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8628 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8629 # Extract the first word of "$tool_basename", so it can be a program name with args. 8630 set dummy $tool_basename; ac_word=$2 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8632 $as_echo_n "checking for $ac_word... " >&6; } 8633 if ${ac_cv_path_NAWK+:} false; then : 8634 $as_echo_n "(cached) " >&6 8635 else 8636 case $NAWK in 8637 [\\/]* | ?:[\\/]*) 8638 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8639 ;; 8640 *) 8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8642 for as_dir in $PATH 8643 do 8644 IFS=$as_save_IFS 8645 test -z "$as_dir" && as_dir=. 8646 for ac_exec_ext in '' $ac_executable_extensions; do 8647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8648 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8650 break 2 8651 fi 8652 done 8653 done 8654 IFS=$as_save_IFS 8655 8656 ;; 8657 esac 8658 fi 8659 NAWK=$ac_cv_path_NAWK 8660 if test -n "$NAWK"; then 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8662 $as_echo "$NAWK" >&6; } 8663 else 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8665 $as_echo "no" >&6; } 8666 fi 8667 8668 8669 if test "x$NAWK" = x; then 8670 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8671 fi 8672 else 8673 # Otherwise we believe it is a complete path. Use it as it is. 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8675 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8677 $as_echo_n "checking for NAWK... " >&6; } 8678 if test ! -x "$tool_specified"; then 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8680 $as_echo "not found" >&6; } 8681 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8682 fi 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8684 $as_echo "$tool_specified" >&6; } 8685 fi 8686 fi 8687 fi 8688 8689 8690 8691 if test "x$NAWK" = x; then 8692 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8693 fi 8694 8695 8696 8697 8698 8699 # Publish this variable in the help. 8700 8701 8702 if test "x$PRINTF" = x; then 8703 # The variable is not set by user, try to locate tool using the code snippet 8704 for ac_prog in printf 8705 do 8706 # Extract the first word of "$ac_prog", so it can be a program name with args. 8707 set dummy $ac_prog; ac_word=$2 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8709 $as_echo_n "checking for $ac_word... " >&6; } 8710 if ${ac_cv_path_PRINTF+:} false; then : 8711 $as_echo_n "(cached) " >&6 8712 else 8713 case $PRINTF in 8714 [\\/]* | ?:[\\/]*) 8715 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8716 ;; 8717 *) 8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8719 for as_dir in $PATH 8720 do 8721 IFS=$as_save_IFS 8722 test -z "$as_dir" && as_dir=. 8723 for ac_exec_ext in '' $ac_executable_extensions; do 8724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8725 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8727 break 2 8728 fi 8729 done 8730 done 8731 IFS=$as_save_IFS 8732 8733 ;; 8734 esac 8735 fi 8736 PRINTF=$ac_cv_path_PRINTF 8737 if test -n "$PRINTF"; then 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8739 $as_echo "$PRINTF" >&6; } 8740 else 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8742 $as_echo "no" >&6; } 8743 fi 8744 8745 8746 test -n "$PRINTF" && break 8747 done 8748 8749 else 8750 # The variable is set, but is it from the command line or the environment? 8751 8752 # Try to remove the string !PRINTF! from our list. 8753 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8754 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8755 # If it failed, the variable was not from the command line. Ignore it, 8756 # but warn the user (except for BASH, which is always set by the calling BASH). 8757 if test "xPRINTF" != xBASH; then 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8759 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8760 fi 8761 # Try to locate tool using the code snippet 8762 for ac_prog in printf 8763 do 8764 # Extract the first word of "$ac_prog", so it can be a program name with args. 8765 set dummy $ac_prog; ac_word=$2 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8767 $as_echo_n "checking for $ac_word... " >&6; } 8768 if ${ac_cv_path_PRINTF+:} false; then : 8769 $as_echo_n "(cached) " >&6 8770 else 8771 case $PRINTF in 8772 [\\/]* | ?:[\\/]*) 8773 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8774 ;; 8775 *) 8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8777 for as_dir in $PATH 8778 do 8779 IFS=$as_save_IFS 8780 test -z "$as_dir" && as_dir=. 8781 for ac_exec_ext in '' $ac_executable_extensions; do 8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8783 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8785 break 2 8786 fi 8787 done 8788 done 8789 IFS=$as_save_IFS 8790 8791 ;; 8792 esac 8793 fi 8794 PRINTF=$ac_cv_path_PRINTF 8795 if test -n "$PRINTF"; then 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8797 $as_echo "$PRINTF" >&6; } 8798 else 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8800 $as_echo "no" >&6; } 8801 fi 8802 8803 8804 test -n "$PRINTF" && break 8805 done 8806 8807 else 8808 # If it succeeded, then it was overridden by the user. We will use it 8809 # for the tool. 8810 8811 # First remove it from the list of overridden variables, so we can test 8812 # for unknown variables in the end. 8813 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8814 8815 # Check if the provided tool contains a complete path. 8816 tool_specified="$PRINTF" 8817 tool_basename="${tool_specified##*/}" 8818 if test "x$tool_basename" = "x$tool_specified"; then 8819 # A command without a complete path is provided, search $PATH. 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8821 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8822 # Extract the first word of "$tool_basename", so it can be a program name with args. 8823 set dummy $tool_basename; ac_word=$2 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8825 $as_echo_n "checking for $ac_word... " >&6; } 8826 if ${ac_cv_path_PRINTF+:} false; then : 8827 $as_echo_n "(cached) " >&6 8828 else 8829 case $PRINTF in 8830 [\\/]* | ?:[\\/]*) 8831 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8832 ;; 8833 *) 8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8835 for as_dir in $PATH 8836 do 8837 IFS=$as_save_IFS 8838 test -z "$as_dir" && as_dir=. 8839 for ac_exec_ext in '' $ac_executable_extensions; do 8840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8841 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8843 break 2 8844 fi 8845 done 8846 done 8847 IFS=$as_save_IFS 8848 8849 ;; 8850 esac 8851 fi 8852 PRINTF=$ac_cv_path_PRINTF 8853 if test -n "$PRINTF"; then 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8855 $as_echo "$PRINTF" >&6; } 8856 else 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8858 $as_echo "no" >&6; } 8859 fi 8860 8861 8862 if test "x$PRINTF" = x; then 8863 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8864 fi 8865 else 8866 # Otherwise we believe it is a complete path. Use it as it is. 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8868 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8870 $as_echo_n "checking for PRINTF... " >&6; } 8871 if test ! -x "$tool_specified"; then 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8873 $as_echo "not found" >&6; } 8874 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8875 fi 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8877 $as_echo "$tool_specified" >&6; } 8878 fi 8879 fi 8880 fi 8881 8882 8883 8884 if test "x$PRINTF" = x; then 8885 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8886 fi 8887 8888 8889 8890 8891 8892 # Publish this variable in the help. 8893 8894 8895 if test "x$RM" = x; then 8896 # The variable is not set by user, try to locate tool using the code snippet 8897 for ac_prog in rm 8898 do 8899 # Extract the first word of "$ac_prog", so it can be a program name with args. 8900 set dummy $ac_prog; ac_word=$2 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8902 $as_echo_n "checking for $ac_word... " >&6; } 8903 if ${ac_cv_path_RM+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905 else 8906 case $RM in 8907 [\\/]* | ?:[\\/]*) 8908 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8909 ;; 8910 *) 8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8912 for as_dir in $PATH 8913 do 8914 IFS=$as_save_IFS 8915 test -z "$as_dir" && as_dir=. 8916 for ac_exec_ext in '' $ac_executable_extensions; do 8917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8918 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8920 break 2 8921 fi 8922 done 8923 done 8924 IFS=$as_save_IFS 8925 8926 ;; 8927 esac 8928 fi 8929 RM=$ac_cv_path_RM 8930 if test -n "$RM"; then 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8932 $as_echo "$RM" >&6; } 8933 else 8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8935 $as_echo "no" >&6; } 8936 fi 8937 8938 8939 test -n "$RM" && break 8940 done 8941 8942 else 8943 # The variable is set, but is it from the command line or the environment? 8944 8945 # Try to remove the string !RM! from our list. 8946 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8947 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8948 # If it failed, the variable was not from the command line. Ignore it, 8949 # but warn the user (except for BASH, which is always set by the calling BASH). 8950 if test "xRM" != xBASH; then 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8952 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8953 fi 8954 # Try to locate tool using the code snippet 8955 for ac_prog in rm 8956 do 8957 # Extract the first word of "$ac_prog", so it can be a program name with args. 8958 set dummy $ac_prog; ac_word=$2 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8960 $as_echo_n "checking for $ac_word... " >&6; } 8961 if ${ac_cv_path_RM+:} false; then : 8962 $as_echo_n "(cached) " >&6 8963 else 8964 case $RM in 8965 [\\/]* | ?:[\\/]*) 8966 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8967 ;; 8968 *) 8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8970 for as_dir in $PATH 8971 do 8972 IFS=$as_save_IFS 8973 test -z "$as_dir" && as_dir=. 8974 for ac_exec_ext in '' $ac_executable_extensions; do 8975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8976 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8978 break 2 8979 fi 8980 done 8981 done 8982 IFS=$as_save_IFS 8983 8984 ;; 8985 esac 8986 fi 8987 RM=$ac_cv_path_RM 8988 if test -n "$RM"; then 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8990 $as_echo "$RM" >&6; } 8991 else 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8993 $as_echo "no" >&6; } 8994 fi 8995 8996 8997 test -n "$RM" && break 8998 done 8999 9000 else 9001 # If it succeeded, then it was overridden by the user. We will use it 9002 # for the tool. 9003 9004 # First remove it from the list of overridden variables, so we can test 9005 # for unknown variables in the end. 9006 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9007 9008 # Check if the provided tool contains a complete path. 9009 tool_specified="$RM" 9010 tool_basename="${tool_specified##*/}" 9011 if test "x$tool_basename" = "x$tool_specified"; then 9012 # A command without a complete path is provided, search $PATH. 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9014 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9015 # Extract the first word of "$tool_basename", so it can be a program name with args. 9016 set dummy $tool_basename; ac_word=$2 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9018 $as_echo_n "checking for $ac_word... " >&6; } 9019 if ${ac_cv_path_RM+:} false; then : 9020 $as_echo_n "(cached) " >&6 9021 else 9022 case $RM in 9023 [\\/]* | ?:[\\/]*) 9024 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9025 ;; 9026 *) 9027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9028 for as_dir in $PATH 9029 do 9030 IFS=$as_save_IFS 9031 test -z "$as_dir" && as_dir=. 9032 for ac_exec_ext in '' $ac_executable_extensions; do 9033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9034 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9036 break 2 9037 fi 9038 done 9039 done 9040 IFS=$as_save_IFS 9041 9042 ;; 9043 esac 9044 fi 9045 RM=$ac_cv_path_RM 9046 if test -n "$RM"; then 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9048 $as_echo "$RM" >&6; } 9049 else 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9051 $as_echo "no" >&6; } 9052 fi 9053 9054 9055 if test "x$RM" = x; then 9056 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9057 fi 9058 else 9059 # Otherwise we believe it is a complete path. Use it as it is. 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9061 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9063 $as_echo_n "checking for RM... " >&6; } 9064 if test ! -x "$tool_specified"; then 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9066 $as_echo "not found" >&6; } 9067 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9068 fi 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9070 $as_echo "$tool_specified" >&6; } 9071 fi 9072 fi 9073 fi 9074 9075 9076 9077 if test "x$RM" = x; then 9078 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9079 fi 9080 9081 9082 9083 9084 9085 # Publish this variable in the help. 9086 9087 9088 if test "x$SH" = x; then 9089 # The variable is not set by user, try to locate tool using the code snippet 9090 for ac_prog in sh 9091 do 9092 # Extract the first word of "$ac_prog", so it can be a program name with args. 9093 set dummy $ac_prog; ac_word=$2 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9095 $as_echo_n "checking for $ac_word... " >&6; } 9096 if ${ac_cv_path_SH+:} false; then : 9097 $as_echo_n "(cached) " >&6 9098 else 9099 case $SH in 9100 [\\/]* | ?:[\\/]*) 9101 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9102 ;; 9103 *) 9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9105 for as_dir in $PATH 9106 do 9107 IFS=$as_save_IFS 9108 test -z "$as_dir" && as_dir=. 9109 for ac_exec_ext in '' $ac_executable_extensions; do 9110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9111 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9113 break 2 9114 fi 9115 done 9116 done 9117 IFS=$as_save_IFS 9118 9119 ;; 9120 esac 9121 fi 9122 SH=$ac_cv_path_SH 9123 if test -n "$SH"; then 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9125 $as_echo "$SH" >&6; } 9126 else 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9128 $as_echo "no" >&6; } 9129 fi 9130 9131 9132 test -n "$SH" && break 9133 done 9134 9135 else 9136 # The variable is set, but is it from the command line or the environment? 9137 9138 # Try to remove the string !SH! from our list. 9139 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9140 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9141 # If it failed, the variable was not from the command line. Ignore it, 9142 # but warn the user (except for BASH, which is always set by the calling BASH). 9143 if test "xSH" != xBASH; then 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9145 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9146 fi 9147 # Try to locate tool using the code snippet 9148 for ac_prog in sh 9149 do 9150 # Extract the first word of "$ac_prog", so it can be a program name with args. 9151 set dummy $ac_prog; ac_word=$2 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9153 $as_echo_n "checking for $ac_word... " >&6; } 9154 if ${ac_cv_path_SH+:} false; then : 9155 $as_echo_n "(cached) " >&6 9156 else 9157 case $SH in 9158 [\\/]* | ?:[\\/]*) 9159 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9160 ;; 9161 *) 9162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9163 for as_dir in $PATH 9164 do 9165 IFS=$as_save_IFS 9166 test -z "$as_dir" && as_dir=. 9167 for ac_exec_ext in '' $ac_executable_extensions; do 9168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9169 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9171 break 2 9172 fi 9173 done 9174 done 9175 IFS=$as_save_IFS 9176 9177 ;; 9178 esac 9179 fi 9180 SH=$ac_cv_path_SH 9181 if test -n "$SH"; then 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9183 $as_echo "$SH" >&6; } 9184 else 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9186 $as_echo "no" >&6; } 9187 fi 9188 9189 9190 test -n "$SH" && break 9191 done 9192 9193 else 9194 # If it succeeded, then it was overridden by the user. We will use it 9195 # for the tool. 9196 9197 # First remove it from the list of overridden variables, so we can test 9198 # for unknown variables in the end. 9199 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9200 9201 # Check if the provided tool contains a complete path. 9202 tool_specified="$SH" 9203 tool_basename="${tool_specified##*/}" 9204 if test "x$tool_basename" = "x$tool_specified"; then 9205 # A command without a complete path is provided, search $PATH. 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9207 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9208 # Extract the first word of "$tool_basename", so it can be a program name with args. 9209 set dummy $tool_basename; ac_word=$2 9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9211 $as_echo_n "checking for $ac_word... " >&6; } 9212 if ${ac_cv_path_SH+:} false; then : 9213 $as_echo_n "(cached) " >&6 9214 else 9215 case $SH in 9216 [\\/]* | ?:[\\/]*) 9217 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9218 ;; 9219 *) 9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9221 for as_dir in $PATH 9222 do 9223 IFS=$as_save_IFS 9224 test -z "$as_dir" && as_dir=. 9225 for ac_exec_ext in '' $ac_executable_extensions; do 9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9227 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9229 break 2 9230 fi 9231 done 9232 done 9233 IFS=$as_save_IFS 9234 9235 ;; 9236 esac 9237 fi 9238 SH=$ac_cv_path_SH 9239 if test -n "$SH"; then 9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9241 $as_echo "$SH" >&6; } 9242 else 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9244 $as_echo "no" >&6; } 9245 fi 9246 9247 9248 if test "x$SH" = x; then 9249 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9250 fi 9251 else 9252 # Otherwise we believe it is a complete path. Use it as it is. 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9254 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9256 $as_echo_n "checking for SH... " >&6; } 9257 if test ! -x "$tool_specified"; then 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9259 $as_echo "not found" >&6; } 9260 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9261 fi 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9263 $as_echo "$tool_specified" >&6; } 9264 fi 9265 fi 9266 fi 9267 9268 9269 9270 if test "x$SH" = x; then 9271 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9272 fi 9273 9274 9275 9276 9277 9278 # Publish this variable in the help. 9279 9280 9281 if test "x$SORT" = x; then 9282 # The variable is not set by user, try to locate tool using the code snippet 9283 for ac_prog in sort 9284 do 9285 # Extract the first word of "$ac_prog", so it can be a program name with args. 9286 set dummy $ac_prog; ac_word=$2 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9288 $as_echo_n "checking for $ac_word... " >&6; } 9289 if ${ac_cv_path_SORT+:} false; then : 9290 $as_echo_n "(cached) " >&6 9291 else 9292 case $SORT in 9293 [\\/]* | ?:[\\/]*) 9294 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9295 ;; 9296 *) 9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9298 for as_dir in $PATH 9299 do 9300 IFS=$as_save_IFS 9301 test -z "$as_dir" && as_dir=. 9302 for ac_exec_ext in '' $ac_executable_extensions; do 9303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9304 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9306 break 2 9307 fi 9308 done 9309 done 9310 IFS=$as_save_IFS 9311 9312 ;; 9313 esac 9314 fi 9315 SORT=$ac_cv_path_SORT 9316 if test -n "$SORT"; then 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9318 $as_echo "$SORT" >&6; } 9319 else 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9321 $as_echo "no" >&6; } 9322 fi 9323 9324 9325 test -n "$SORT" && break 9326 done 9327 9328 else 9329 # The variable is set, but is it from the command line or the environment? 9330 9331 # Try to remove the string !SORT! from our list. 9332 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9333 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9334 # If it failed, the variable was not from the command line. Ignore it, 9335 # but warn the user (except for BASH, which is always set by the calling BASH). 9336 if test "xSORT" != xBASH; then 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9338 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9339 fi 9340 # Try to locate tool using the code snippet 9341 for ac_prog in sort 9342 do 9343 # Extract the first word of "$ac_prog", so it can be a program name with args. 9344 set dummy $ac_prog; ac_word=$2 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9346 $as_echo_n "checking for $ac_word... " >&6; } 9347 if ${ac_cv_path_SORT+:} false; then : 9348 $as_echo_n "(cached) " >&6 9349 else 9350 case $SORT in 9351 [\\/]* | ?:[\\/]*) 9352 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9353 ;; 9354 *) 9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9356 for as_dir in $PATH 9357 do 9358 IFS=$as_save_IFS 9359 test -z "$as_dir" && as_dir=. 9360 for ac_exec_ext in '' $ac_executable_extensions; do 9361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9362 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9364 break 2 9365 fi 9366 done 9367 done 9368 IFS=$as_save_IFS 9369 9370 ;; 9371 esac 9372 fi 9373 SORT=$ac_cv_path_SORT 9374 if test -n "$SORT"; then 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9376 $as_echo "$SORT" >&6; } 9377 else 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9379 $as_echo "no" >&6; } 9380 fi 9381 9382 9383 test -n "$SORT" && break 9384 done 9385 9386 else 9387 # If it succeeded, then it was overridden by the user. We will use it 9388 # for the tool. 9389 9390 # First remove it from the list of overridden variables, so we can test 9391 # for unknown variables in the end. 9392 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9393 9394 # Check if the provided tool contains a complete path. 9395 tool_specified="$SORT" 9396 tool_basename="${tool_specified##*/}" 9397 if test "x$tool_basename" = "x$tool_specified"; then 9398 # A command without a complete path is provided, search $PATH. 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9400 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9401 # Extract the first word of "$tool_basename", so it can be a program name with args. 9402 set dummy $tool_basename; ac_word=$2 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9404 $as_echo_n "checking for $ac_word... " >&6; } 9405 if ${ac_cv_path_SORT+:} false; then : 9406 $as_echo_n "(cached) " >&6 9407 else 9408 case $SORT in 9409 [\\/]* | ?:[\\/]*) 9410 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9411 ;; 9412 *) 9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9414 for as_dir in $PATH 9415 do 9416 IFS=$as_save_IFS 9417 test -z "$as_dir" && as_dir=. 9418 for ac_exec_ext in '' $ac_executable_extensions; do 9419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9420 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9422 break 2 9423 fi 9424 done 9425 done 9426 IFS=$as_save_IFS 9427 9428 ;; 9429 esac 9430 fi 9431 SORT=$ac_cv_path_SORT 9432 if test -n "$SORT"; then 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9434 $as_echo "$SORT" >&6; } 9435 else 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9437 $as_echo "no" >&6; } 9438 fi 9439 9440 9441 if test "x$SORT" = x; then 9442 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9443 fi 9444 else 9445 # Otherwise we believe it is a complete path. Use it as it is. 9446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9447 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9449 $as_echo_n "checking for SORT... " >&6; } 9450 if test ! -x "$tool_specified"; then 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9452 $as_echo "not found" >&6; } 9453 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9454 fi 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9456 $as_echo "$tool_specified" >&6; } 9457 fi 9458 fi 9459 fi 9460 9461 9462 9463 if test "x$SORT" = x; then 9464 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9465 fi 9466 9467 9468 9469 9470 9471 # Publish this variable in the help. 9472 9473 9474 if test "x$TAIL" = x; then 9475 # The variable is not set by user, try to locate tool using the code snippet 9476 for ac_prog in tail 9477 do 9478 # Extract the first word of "$ac_prog", so it can be a program name with args. 9479 set dummy $ac_prog; ac_word=$2 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9481 $as_echo_n "checking for $ac_word... " >&6; } 9482 if ${ac_cv_path_TAIL+:} false; then : 9483 $as_echo_n "(cached) " >&6 9484 else 9485 case $TAIL in 9486 [\\/]* | ?:[\\/]*) 9487 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9488 ;; 9489 *) 9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9491 for as_dir in $PATH 9492 do 9493 IFS=$as_save_IFS 9494 test -z "$as_dir" && as_dir=. 9495 for ac_exec_ext in '' $ac_executable_extensions; do 9496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9497 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9499 break 2 9500 fi 9501 done 9502 done 9503 IFS=$as_save_IFS 9504 9505 ;; 9506 esac 9507 fi 9508 TAIL=$ac_cv_path_TAIL 9509 if test -n "$TAIL"; then 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9511 $as_echo "$TAIL" >&6; } 9512 else 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9514 $as_echo "no" >&6; } 9515 fi 9516 9517 9518 test -n "$TAIL" && break 9519 done 9520 9521 else 9522 # The variable is set, but is it from the command line or the environment? 9523 9524 # Try to remove the string !TAIL! from our list. 9525 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9526 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9527 # If it failed, the variable was not from the command line. Ignore it, 9528 # but warn the user (except for BASH, which is always set by the calling BASH). 9529 if test "xTAIL" != xBASH; then 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9531 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9532 fi 9533 # Try to locate tool using the code snippet 9534 for ac_prog in tail 9535 do 9536 # Extract the first word of "$ac_prog", so it can be a program name with args. 9537 set dummy $ac_prog; ac_word=$2 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9539 $as_echo_n "checking for $ac_word... " >&6; } 9540 if ${ac_cv_path_TAIL+:} false; then : 9541 $as_echo_n "(cached) " >&6 9542 else 9543 case $TAIL in 9544 [\\/]* | ?:[\\/]*) 9545 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9546 ;; 9547 *) 9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9549 for as_dir in $PATH 9550 do 9551 IFS=$as_save_IFS 9552 test -z "$as_dir" && as_dir=. 9553 for ac_exec_ext in '' $ac_executable_extensions; do 9554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9555 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9557 break 2 9558 fi 9559 done 9560 done 9561 IFS=$as_save_IFS 9562 9563 ;; 9564 esac 9565 fi 9566 TAIL=$ac_cv_path_TAIL 9567 if test -n "$TAIL"; then 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9569 $as_echo "$TAIL" >&6; } 9570 else 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9572 $as_echo "no" >&6; } 9573 fi 9574 9575 9576 test -n "$TAIL" && break 9577 done 9578 9579 else 9580 # If it succeeded, then it was overridden by the user. We will use it 9581 # for the tool. 9582 9583 # First remove it from the list of overridden variables, so we can test 9584 # for unknown variables in the end. 9585 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9586 9587 # Check if the provided tool contains a complete path. 9588 tool_specified="$TAIL" 9589 tool_basename="${tool_specified##*/}" 9590 if test "x$tool_basename" = "x$tool_specified"; then 9591 # A command without a complete path is provided, search $PATH. 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9593 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9594 # Extract the first word of "$tool_basename", so it can be a program name with args. 9595 set dummy $tool_basename; ac_word=$2 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9597 $as_echo_n "checking for $ac_word... " >&6; } 9598 if ${ac_cv_path_TAIL+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600 else 9601 case $TAIL in 9602 [\\/]* | ?:[\\/]*) 9603 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9604 ;; 9605 *) 9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9607 for as_dir in $PATH 9608 do 9609 IFS=$as_save_IFS 9610 test -z "$as_dir" && as_dir=. 9611 for ac_exec_ext in '' $ac_executable_extensions; do 9612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9613 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9615 break 2 9616 fi 9617 done 9618 done 9619 IFS=$as_save_IFS 9620 9621 ;; 9622 esac 9623 fi 9624 TAIL=$ac_cv_path_TAIL 9625 if test -n "$TAIL"; then 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9627 $as_echo "$TAIL" >&6; } 9628 else 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9630 $as_echo "no" >&6; } 9631 fi 9632 9633 9634 if test "x$TAIL" = x; then 9635 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9636 fi 9637 else 9638 # Otherwise we believe it is a complete path. Use it as it is. 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9640 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9642 $as_echo_n "checking for TAIL... " >&6; } 9643 if test ! -x "$tool_specified"; then 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9645 $as_echo "not found" >&6; } 9646 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9647 fi 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9649 $as_echo "$tool_specified" >&6; } 9650 fi 9651 fi 9652 fi 9653 9654 9655 9656 if test "x$TAIL" = x; then 9657 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9658 fi 9659 9660 9661 9662 9663 9664 # Publish this variable in the help. 9665 9666 9667 if test "x$TAR" = x; then 9668 # The variable is not set by user, try to locate tool using the code snippet 9669 for ac_prog in tar 9670 do 9671 # Extract the first word of "$ac_prog", so it can be a program name with args. 9672 set dummy $ac_prog; ac_word=$2 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9674 $as_echo_n "checking for $ac_word... " >&6; } 9675 if ${ac_cv_path_TAR+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677 else 9678 case $TAR in 9679 [\\/]* | ?:[\\/]*) 9680 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9681 ;; 9682 *) 9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9684 for as_dir in $PATH 9685 do 9686 IFS=$as_save_IFS 9687 test -z "$as_dir" && as_dir=. 9688 for ac_exec_ext in '' $ac_executable_extensions; do 9689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9690 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9692 break 2 9693 fi 9694 done 9695 done 9696 IFS=$as_save_IFS 9697 9698 ;; 9699 esac 9700 fi 9701 TAR=$ac_cv_path_TAR 9702 if test -n "$TAR"; then 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9704 $as_echo "$TAR" >&6; } 9705 else 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9707 $as_echo "no" >&6; } 9708 fi 9709 9710 9711 test -n "$TAR" && break 9712 done 9713 9714 else 9715 # The variable is set, but is it from the command line or the environment? 9716 9717 # Try to remove the string !TAR! from our list. 9718 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9719 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9720 # If it failed, the variable was not from the command line. Ignore it, 9721 # but warn the user (except for BASH, which is always set by the calling BASH). 9722 if test "xTAR" != xBASH; then 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9724 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9725 fi 9726 # Try to locate tool using the code snippet 9727 for ac_prog in tar 9728 do 9729 # Extract the first word of "$ac_prog", so it can be a program name with args. 9730 set dummy $ac_prog; ac_word=$2 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9732 $as_echo_n "checking for $ac_word... " >&6; } 9733 if ${ac_cv_path_TAR+:} false; then : 9734 $as_echo_n "(cached) " >&6 9735 else 9736 case $TAR in 9737 [\\/]* | ?:[\\/]*) 9738 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9739 ;; 9740 *) 9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9742 for as_dir in $PATH 9743 do 9744 IFS=$as_save_IFS 9745 test -z "$as_dir" && as_dir=. 9746 for ac_exec_ext in '' $ac_executable_extensions; do 9747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9748 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9750 break 2 9751 fi 9752 done 9753 done 9754 IFS=$as_save_IFS 9755 9756 ;; 9757 esac 9758 fi 9759 TAR=$ac_cv_path_TAR 9760 if test -n "$TAR"; then 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9762 $as_echo "$TAR" >&6; } 9763 else 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9765 $as_echo "no" >&6; } 9766 fi 9767 9768 9769 test -n "$TAR" && break 9770 done 9771 9772 else 9773 # If it succeeded, then it was overridden by the user. We will use it 9774 # for the tool. 9775 9776 # First remove it from the list of overridden variables, so we can test 9777 # for unknown variables in the end. 9778 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9779 9780 # Check if the provided tool contains a complete path. 9781 tool_specified="$TAR" 9782 tool_basename="${tool_specified##*/}" 9783 if test "x$tool_basename" = "x$tool_specified"; then 9784 # A command without a complete path is provided, search $PATH. 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9786 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9787 # Extract the first word of "$tool_basename", so it can be a program name with args. 9788 set dummy $tool_basename; ac_word=$2 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9790 $as_echo_n "checking for $ac_word... " >&6; } 9791 if ${ac_cv_path_TAR+:} false; then : 9792 $as_echo_n "(cached) " >&6 9793 else 9794 case $TAR in 9795 [\\/]* | ?:[\\/]*) 9796 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9797 ;; 9798 *) 9799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9800 for as_dir in $PATH 9801 do 9802 IFS=$as_save_IFS 9803 test -z "$as_dir" && as_dir=. 9804 for ac_exec_ext in '' $ac_executable_extensions; do 9805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9806 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9808 break 2 9809 fi 9810 done 9811 done 9812 IFS=$as_save_IFS 9813 9814 ;; 9815 esac 9816 fi 9817 TAR=$ac_cv_path_TAR 9818 if test -n "$TAR"; then 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9820 $as_echo "$TAR" >&6; } 9821 else 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9823 $as_echo "no" >&6; } 9824 fi 9825 9826 9827 if test "x$TAR" = x; then 9828 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9829 fi 9830 else 9831 # Otherwise we believe it is a complete path. Use it as it is. 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9833 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9835 $as_echo_n "checking for TAR... " >&6; } 9836 if test ! -x "$tool_specified"; then 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9838 $as_echo "not found" >&6; } 9839 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9840 fi 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9842 $as_echo "$tool_specified" >&6; } 9843 fi 9844 fi 9845 fi 9846 9847 9848 9849 if test "x$TAR" = x; then 9850 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9851 fi 9852 9853 9854 9855 9856 9857 # Publish this variable in the help. 9858 9859 9860 if test "x$TEE" = x; then 9861 # The variable is not set by user, try to locate tool using the code snippet 9862 for ac_prog in tee 9863 do 9864 # Extract the first word of "$ac_prog", so it can be a program name with args. 9865 set dummy $ac_prog; ac_word=$2 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9867 $as_echo_n "checking for $ac_word... " >&6; } 9868 if ${ac_cv_path_TEE+:} false; then : 9869 $as_echo_n "(cached) " >&6 9870 else 9871 case $TEE in 9872 [\\/]* | ?:[\\/]*) 9873 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9874 ;; 9875 *) 9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9877 for as_dir in $PATH 9878 do 9879 IFS=$as_save_IFS 9880 test -z "$as_dir" && as_dir=. 9881 for ac_exec_ext in '' $ac_executable_extensions; do 9882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9883 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9885 break 2 9886 fi 9887 done 9888 done 9889 IFS=$as_save_IFS 9890 9891 ;; 9892 esac 9893 fi 9894 TEE=$ac_cv_path_TEE 9895 if test -n "$TEE"; then 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9897 $as_echo "$TEE" >&6; } 9898 else 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9900 $as_echo "no" >&6; } 9901 fi 9902 9903 9904 test -n "$TEE" && break 9905 done 9906 9907 else 9908 # The variable is set, but is it from the command line or the environment? 9909 9910 # Try to remove the string !TEE! from our list. 9911 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9912 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9913 # If it failed, the variable was not from the command line. Ignore it, 9914 # but warn the user (except for BASH, which is always set by the calling BASH). 9915 if test "xTEE" != xBASH; then 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9917 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9918 fi 9919 # Try to locate tool using the code snippet 9920 for ac_prog in tee 9921 do 9922 # Extract the first word of "$ac_prog", so it can be a program name with args. 9923 set dummy $ac_prog; ac_word=$2 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9925 $as_echo_n "checking for $ac_word... " >&6; } 9926 if ${ac_cv_path_TEE+:} false; then : 9927 $as_echo_n "(cached) " >&6 9928 else 9929 case $TEE in 9930 [\\/]* | ?:[\\/]*) 9931 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9932 ;; 9933 *) 9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9935 for as_dir in $PATH 9936 do 9937 IFS=$as_save_IFS 9938 test -z "$as_dir" && as_dir=. 9939 for ac_exec_ext in '' $ac_executable_extensions; do 9940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9941 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9943 break 2 9944 fi 9945 done 9946 done 9947 IFS=$as_save_IFS 9948 9949 ;; 9950 esac 9951 fi 9952 TEE=$ac_cv_path_TEE 9953 if test -n "$TEE"; then 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9955 $as_echo "$TEE" >&6; } 9956 else 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9958 $as_echo "no" >&6; } 9959 fi 9960 9961 9962 test -n "$TEE" && break 9963 done 9964 9965 else 9966 # If it succeeded, then it was overridden by the user. We will use it 9967 # for the tool. 9968 9969 # First remove it from the list of overridden variables, so we can test 9970 # for unknown variables in the end. 9971 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9972 9973 # Check if the provided tool contains a complete path. 9974 tool_specified="$TEE" 9975 tool_basename="${tool_specified##*/}" 9976 if test "x$tool_basename" = "x$tool_specified"; then 9977 # A command without a complete path is provided, search $PATH. 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9979 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9980 # Extract the first word of "$tool_basename", so it can be a program name with args. 9981 set dummy $tool_basename; ac_word=$2 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9983 $as_echo_n "checking for $ac_word... " >&6; } 9984 if ${ac_cv_path_TEE+:} false; then : 9985 $as_echo_n "(cached) " >&6 9986 else 9987 case $TEE in 9988 [\\/]* | ?:[\\/]*) 9989 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9990 ;; 9991 *) 9992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9993 for as_dir in $PATH 9994 do 9995 IFS=$as_save_IFS 9996 test -z "$as_dir" && as_dir=. 9997 for ac_exec_ext in '' $ac_executable_extensions; do 9998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9999 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10001 break 2 10002 fi 10003 done 10004 done 10005 IFS=$as_save_IFS 10006 10007 ;; 10008 esac 10009 fi 10010 TEE=$ac_cv_path_TEE 10011 if test -n "$TEE"; then 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10013 $as_echo "$TEE" >&6; } 10014 else 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10016 $as_echo "no" >&6; } 10017 fi 10018 10019 10020 if test "x$TEE" = x; then 10021 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10022 fi 10023 else 10024 # Otherwise we believe it is a complete path. Use it as it is. 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10026 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10028 $as_echo_n "checking for TEE... " >&6; } 10029 if test ! -x "$tool_specified"; then 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10031 $as_echo "not found" >&6; } 10032 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10033 fi 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10035 $as_echo "$tool_specified" >&6; } 10036 fi 10037 fi 10038 fi 10039 10040 10041 10042 if test "x$TEE" = x; then 10043 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10044 fi 10045 10046 10047 10048 10049 10050 # Publish this variable in the help. 10051 10052 10053 if test "x$TOUCH" = x; then 10054 # The variable is not set by user, try to locate tool using the code snippet 10055 for ac_prog in touch 10056 do 10057 # Extract the first word of "$ac_prog", so it can be a program name with args. 10058 set dummy $ac_prog; ac_word=$2 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10060 $as_echo_n "checking for $ac_word... " >&6; } 10061 if ${ac_cv_path_TOUCH+:} false; then : 10062 $as_echo_n "(cached) " >&6 10063 else 10064 case $TOUCH in 10065 [\\/]* | ?:[\\/]*) 10066 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10067 ;; 10068 *) 10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10070 for as_dir in $PATH 10071 do 10072 IFS=$as_save_IFS 10073 test -z "$as_dir" && as_dir=. 10074 for ac_exec_ext in '' $ac_executable_extensions; do 10075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10076 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10078 break 2 10079 fi 10080 done 10081 done 10082 IFS=$as_save_IFS 10083 10084 ;; 10085 esac 10086 fi 10087 TOUCH=$ac_cv_path_TOUCH 10088 if test -n "$TOUCH"; then 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10090 $as_echo "$TOUCH" >&6; } 10091 else 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10093 $as_echo "no" >&6; } 10094 fi 10095 10096 10097 test -n "$TOUCH" && break 10098 done 10099 10100 else 10101 # The variable is set, but is it from the command line or the environment? 10102 10103 # Try to remove the string !TOUCH! from our list. 10104 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10105 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10106 # If it failed, the variable was not from the command line. Ignore it, 10107 # but warn the user (except for BASH, which is always set by the calling BASH). 10108 if test "xTOUCH" != xBASH; then 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10110 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10111 fi 10112 # Try to locate tool using the code snippet 10113 for ac_prog in touch 10114 do 10115 # Extract the first word of "$ac_prog", so it can be a program name with args. 10116 set dummy $ac_prog; ac_word=$2 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10118 $as_echo_n "checking for $ac_word... " >&6; } 10119 if ${ac_cv_path_TOUCH+:} false; then : 10120 $as_echo_n "(cached) " >&6 10121 else 10122 case $TOUCH in 10123 [\\/]* | ?:[\\/]*) 10124 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10125 ;; 10126 *) 10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10128 for as_dir in $PATH 10129 do 10130 IFS=$as_save_IFS 10131 test -z "$as_dir" && as_dir=. 10132 for ac_exec_ext in '' $ac_executable_extensions; do 10133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10134 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10136 break 2 10137 fi 10138 done 10139 done 10140 IFS=$as_save_IFS 10141 10142 ;; 10143 esac 10144 fi 10145 TOUCH=$ac_cv_path_TOUCH 10146 if test -n "$TOUCH"; then 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10148 $as_echo "$TOUCH" >&6; } 10149 else 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10151 $as_echo "no" >&6; } 10152 fi 10153 10154 10155 test -n "$TOUCH" && break 10156 done 10157 10158 else 10159 # If it succeeded, then it was overridden by the user. We will use it 10160 # for the tool. 10161 10162 # First remove it from the list of overridden variables, so we can test 10163 # for unknown variables in the end. 10164 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10165 10166 # Check if the provided tool contains a complete path. 10167 tool_specified="$TOUCH" 10168 tool_basename="${tool_specified##*/}" 10169 if test "x$tool_basename" = "x$tool_specified"; then 10170 # A command without a complete path is provided, search $PATH. 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10172 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10173 # Extract the first word of "$tool_basename", so it can be a program name with args. 10174 set dummy $tool_basename; ac_word=$2 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10176 $as_echo_n "checking for $ac_word... " >&6; } 10177 if ${ac_cv_path_TOUCH+:} false; then : 10178 $as_echo_n "(cached) " >&6 10179 else 10180 case $TOUCH in 10181 [\\/]* | ?:[\\/]*) 10182 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10183 ;; 10184 *) 10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10186 for as_dir in $PATH 10187 do 10188 IFS=$as_save_IFS 10189 test -z "$as_dir" && as_dir=. 10190 for ac_exec_ext in '' $ac_executable_extensions; do 10191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10192 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10194 break 2 10195 fi 10196 done 10197 done 10198 IFS=$as_save_IFS 10199 10200 ;; 10201 esac 10202 fi 10203 TOUCH=$ac_cv_path_TOUCH 10204 if test -n "$TOUCH"; then 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10206 $as_echo "$TOUCH" >&6; } 10207 else 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10209 $as_echo "no" >&6; } 10210 fi 10211 10212 10213 if test "x$TOUCH" = x; then 10214 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10215 fi 10216 else 10217 # Otherwise we believe it is a complete path. Use it as it is. 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10219 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10221 $as_echo_n "checking for TOUCH... " >&6; } 10222 if test ! -x "$tool_specified"; then 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10224 $as_echo "not found" >&6; } 10225 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10226 fi 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10228 $as_echo "$tool_specified" >&6; } 10229 fi 10230 fi 10231 fi 10232 10233 10234 10235 if test "x$TOUCH" = x; then 10236 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10237 fi 10238 10239 10240 10241 10242 10243 # Publish this variable in the help. 10244 10245 10246 if test "x$TR" = x; then 10247 # The variable is not set by user, try to locate tool using the code snippet 10248 for ac_prog in tr 10249 do 10250 # Extract the first word of "$ac_prog", so it can be a program name with args. 10251 set dummy $ac_prog; ac_word=$2 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10253 $as_echo_n "checking for $ac_word... " >&6; } 10254 if ${ac_cv_path_TR+:} false; then : 10255 $as_echo_n "(cached) " >&6 10256 else 10257 case $TR in 10258 [\\/]* | ?:[\\/]*) 10259 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10260 ;; 10261 *) 10262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10263 for as_dir in $PATH 10264 do 10265 IFS=$as_save_IFS 10266 test -z "$as_dir" && as_dir=. 10267 for ac_exec_ext in '' $ac_executable_extensions; do 10268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10269 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10271 break 2 10272 fi 10273 done 10274 done 10275 IFS=$as_save_IFS 10276 10277 ;; 10278 esac 10279 fi 10280 TR=$ac_cv_path_TR 10281 if test -n "$TR"; then 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10283 $as_echo "$TR" >&6; } 10284 else 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10286 $as_echo "no" >&6; } 10287 fi 10288 10289 10290 test -n "$TR" && break 10291 done 10292 10293 else 10294 # The variable is set, but is it from the command line or the environment? 10295 10296 # Try to remove the string !TR! from our list. 10297 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10298 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10299 # If it failed, the variable was not from the command line. Ignore it, 10300 # but warn the user (except for BASH, which is always set by the calling BASH). 10301 if test "xTR" != xBASH; then 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10303 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10304 fi 10305 # Try to locate tool using the code snippet 10306 for ac_prog in tr 10307 do 10308 # Extract the first word of "$ac_prog", so it can be a program name with args. 10309 set dummy $ac_prog; ac_word=$2 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10311 $as_echo_n "checking for $ac_word... " >&6; } 10312 if ${ac_cv_path_TR+:} false; then : 10313 $as_echo_n "(cached) " >&6 10314 else 10315 case $TR in 10316 [\\/]* | ?:[\\/]*) 10317 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10318 ;; 10319 *) 10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10321 for as_dir in $PATH 10322 do 10323 IFS=$as_save_IFS 10324 test -z "$as_dir" && as_dir=. 10325 for ac_exec_ext in '' $ac_executable_extensions; do 10326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10327 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10329 break 2 10330 fi 10331 done 10332 done 10333 IFS=$as_save_IFS 10334 10335 ;; 10336 esac 10337 fi 10338 TR=$ac_cv_path_TR 10339 if test -n "$TR"; then 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10341 $as_echo "$TR" >&6; } 10342 else 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10344 $as_echo "no" >&6; } 10345 fi 10346 10347 10348 test -n "$TR" && break 10349 done 10350 10351 else 10352 # If it succeeded, then it was overridden by the user. We will use it 10353 # for the tool. 10354 10355 # First remove it from the list of overridden variables, so we can test 10356 # for unknown variables in the end. 10357 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10358 10359 # Check if the provided tool contains a complete path. 10360 tool_specified="$TR" 10361 tool_basename="${tool_specified##*/}" 10362 if test "x$tool_basename" = "x$tool_specified"; then 10363 # A command without a complete path is provided, search $PATH. 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10365 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10366 # Extract the first word of "$tool_basename", so it can be a program name with args. 10367 set dummy $tool_basename; ac_word=$2 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10369 $as_echo_n "checking for $ac_word... " >&6; } 10370 if ${ac_cv_path_TR+:} false; then : 10371 $as_echo_n "(cached) " >&6 10372 else 10373 case $TR in 10374 [\\/]* | ?:[\\/]*) 10375 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10376 ;; 10377 *) 10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10379 for as_dir in $PATH 10380 do 10381 IFS=$as_save_IFS 10382 test -z "$as_dir" && as_dir=. 10383 for ac_exec_ext in '' $ac_executable_extensions; do 10384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10385 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10387 break 2 10388 fi 10389 done 10390 done 10391 IFS=$as_save_IFS 10392 10393 ;; 10394 esac 10395 fi 10396 TR=$ac_cv_path_TR 10397 if test -n "$TR"; then 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10399 $as_echo "$TR" >&6; } 10400 else 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10402 $as_echo "no" >&6; } 10403 fi 10404 10405 10406 if test "x$TR" = x; then 10407 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10408 fi 10409 else 10410 # Otherwise we believe it is a complete path. Use it as it is. 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10412 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10414 $as_echo_n "checking for TR... " >&6; } 10415 if test ! -x "$tool_specified"; then 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10417 $as_echo "not found" >&6; } 10418 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10419 fi 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10421 $as_echo "$tool_specified" >&6; } 10422 fi 10423 fi 10424 fi 10425 10426 10427 10428 if test "x$TR" = x; then 10429 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10430 fi 10431 10432 10433 10434 10435 10436 # Publish this variable in the help. 10437 10438 10439 if test "x$UNAME" = x; then 10440 # The variable is not set by user, try to locate tool using the code snippet 10441 for ac_prog in uname 10442 do 10443 # Extract the first word of "$ac_prog", so it can be a program name with args. 10444 set dummy $ac_prog; ac_word=$2 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10446 $as_echo_n "checking for $ac_word... " >&6; } 10447 if ${ac_cv_path_UNAME+:} false; then : 10448 $as_echo_n "(cached) " >&6 10449 else 10450 case $UNAME in 10451 [\\/]* | ?:[\\/]*) 10452 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10453 ;; 10454 *) 10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10456 for as_dir in $PATH 10457 do 10458 IFS=$as_save_IFS 10459 test -z "$as_dir" && as_dir=. 10460 for ac_exec_ext in '' $ac_executable_extensions; do 10461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10462 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10464 break 2 10465 fi 10466 done 10467 done 10468 IFS=$as_save_IFS 10469 10470 ;; 10471 esac 10472 fi 10473 UNAME=$ac_cv_path_UNAME 10474 if test -n "$UNAME"; then 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10476 $as_echo "$UNAME" >&6; } 10477 else 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10479 $as_echo "no" >&6; } 10480 fi 10481 10482 10483 test -n "$UNAME" && break 10484 done 10485 10486 else 10487 # The variable is set, but is it from the command line or the environment? 10488 10489 # Try to remove the string !UNAME! from our list. 10490 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10491 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10492 # If it failed, the variable was not from the command line. Ignore it, 10493 # but warn the user (except for BASH, which is always set by the calling BASH). 10494 if test "xUNAME" != xBASH; then 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10496 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10497 fi 10498 # Try to locate tool using the code snippet 10499 for ac_prog in uname 10500 do 10501 # Extract the first word of "$ac_prog", so it can be a program name with args. 10502 set dummy $ac_prog; ac_word=$2 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10504 $as_echo_n "checking for $ac_word... " >&6; } 10505 if ${ac_cv_path_UNAME+:} false; then : 10506 $as_echo_n "(cached) " >&6 10507 else 10508 case $UNAME in 10509 [\\/]* | ?:[\\/]*) 10510 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10511 ;; 10512 *) 10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10514 for as_dir in $PATH 10515 do 10516 IFS=$as_save_IFS 10517 test -z "$as_dir" && as_dir=. 10518 for ac_exec_ext in '' $ac_executable_extensions; do 10519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10520 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10522 break 2 10523 fi 10524 done 10525 done 10526 IFS=$as_save_IFS 10527 10528 ;; 10529 esac 10530 fi 10531 UNAME=$ac_cv_path_UNAME 10532 if test -n "$UNAME"; then 10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10534 $as_echo "$UNAME" >&6; } 10535 else 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10537 $as_echo "no" >&6; } 10538 fi 10539 10540 10541 test -n "$UNAME" && break 10542 done 10543 10544 else 10545 # If it succeeded, then it was overridden by the user. We will use it 10546 # for the tool. 10547 10548 # First remove it from the list of overridden variables, so we can test 10549 # for unknown variables in the end. 10550 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10551 10552 # Check if the provided tool contains a complete path. 10553 tool_specified="$UNAME" 10554 tool_basename="${tool_specified##*/}" 10555 if test "x$tool_basename" = "x$tool_specified"; then 10556 # A command without a complete path is provided, search $PATH. 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10558 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10559 # Extract the first word of "$tool_basename", so it can be a program name with args. 10560 set dummy $tool_basename; ac_word=$2 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10562 $as_echo_n "checking for $ac_word... " >&6; } 10563 if ${ac_cv_path_UNAME+:} false; then : 10564 $as_echo_n "(cached) " >&6 10565 else 10566 case $UNAME in 10567 [\\/]* | ?:[\\/]*) 10568 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10569 ;; 10570 *) 10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10572 for as_dir in $PATH 10573 do 10574 IFS=$as_save_IFS 10575 test -z "$as_dir" && as_dir=. 10576 for ac_exec_ext in '' $ac_executable_extensions; do 10577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10578 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10580 break 2 10581 fi 10582 done 10583 done 10584 IFS=$as_save_IFS 10585 10586 ;; 10587 esac 10588 fi 10589 UNAME=$ac_cv_path_UNAME 10590 if test -n "$UNAME"; then 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10592 $as_echo "$UNAME" >&6; } 10593 else 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10595 $as_echo "no" >&6; } 10596 fi 10597 10598 10599 if test "x$UNAME" = x; then 10600 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10601 fi 10602 else 10603 # Otherwise we believe it is a complete path. Use it as it is. 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10605 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10607 $as_echo_n "checking for UNAME... " >&6; } 10608 if test ! -x "$tool_specified"; then 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10610 $as_echo "not found" >&6; } 10611 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10612 fi 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10614 $as_echo "$tool_specified" >&6; } 10615 fi 10616 fi 10617 fi 10618 10619 10620 10621 if test "x$UNAME" = x; then 10622 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10623 fi 10624 10625 10626 10627 10628 10629 # Publish this variable in the help. 10630 10631 10632 if test "x$UNIQ" = x; then 10633 # The variable is not set by user, try to locate tool using the code snippet 10634 for ac_prog in uniq 10635 do 10636 # Extract the first word of "$ac_prog", so it can be a program name with args. 10637 set dummy $ac_prog; ac_word=$2 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10639 $as_echo_n "checking for $ac_word... " >&6; } 10640 if ${ac_cv_path_UNIQ+:} false; then : 10641 $as_echo_n "(cached) " >&6 10642 else 10643 case $UNIQ in 10644 [\\/]* | ?:[\\/]*) 10645 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10646 ;; 10647 *) 10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10649 for as_dir in $PATH 10650 do 10651 IFS=$as_save_IFS 10652 test -z "$as_dir" && as_dir=. 10653 for ac_exec_ext in '' $ac_executable_extensions; do 10654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10655 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10657 break 2 10658 fi 10659 done 10660 done 10661 IFS=$as_save_IFS 10662 10663 ;; 10664 esac 10665 fi 10666 UNIQ=$ac_cv_path_UNIQ 10667 if test -n "$UNIQ"; then 10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10669 $as_echo "$UNIQ" >&6; } 10670 else 10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10672 $as_echo "no" >&6; } 10673 fi 10674 10675 10676 test -n "$UNIQ" && break 10677 done 10678 10679 else 10680 # The variable is set, but is it from the command line or the environment? 10681 10682 # Try to remove the string !UNIQ! from our list. 10683 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10684 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10685 # If it failed, the variable was not from the command line. Ignore it, 10686 # but warn the user (except for BASH, which is always set by the calling BASH). 10687 if test "xUNIQ" != xBASH; then 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10689 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10690 fi 10691 # Try to locate tool using the code snippet 10692 for ac_prog in uniq 10693 do 10694 # Extract the first word of "$ac_prog", so it can be a program name with args. 10695 set dummy $ac_prog; ac_word=$2 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10697 $as_echo_n "checking for $ac_word... " >&6; } 10698 if ${ac_cv_path_UNIQ+:} false; then : 10699 $as_echo_n "(cached) " >&6 10700 else 10701 case $UNIQ in 10702 [\\/]* | ?:[\\/]*) 10703 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10704 ;; 10705 *) 10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10707 for as_dir in $PATH 10708 do 10709 IFS=$as_save_IFS 10710 test -z "$as_dir" && as_dir=. 10711 for ac_exec_ext in '' $ac_executable_extensions; do 10712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10713 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10715 break 2 10716 fi 10717 done 10718 done 10719 IFS=$as_save_IFS 10720 10721 ;; 10722 esac 10723 fi 10724 UNIQ=$ac_cv_path_UNIQ 10725 if test -n "$UNIQ"; then 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10727 $as_echo "$UNIQ" >&6; } 10728 else 10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10730 $as_echo "no" >&6; } 10731 fi 10732 10733 10734 test -n "$UNIQ" && break 10735 done 10736 10737 else 10738 # If it succeeded, then it was overridden by the user. We will use it 10739 # for the tool. 10740 10741 # First remove it from the list of overridden variables, so we can test 10742 # for unknown variables in the end. 10743 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10744 10745 # Check if the provided tool contains a complete path. 10746 tool_specified="$UNIQ" 10747 tool_basename="${tool_specified##*/}" 10748 if test "x$tool_basename" = "x$tool_specified"; then 10749 # A command without a complete path is provided, search $PATH. 10750 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10751 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10752 # Extract the first word of "$tool_basename", so it can be a program name with args. 10753 set dummy $tool_basename; ac_word=$2 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10755 $as_echo_n "checking for $ac_word... " >&6; } 10756 if ${ac_cv_path_UNIQ+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758 else 10759 case $UNIQ in 10760 [\\/]* | ?:[\\/]*) 10761 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10762 ;; 10763 *) 10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10765 for as_dir in $PATH 10766 do 10767 IFS=$as_save_IFS 10768 test -z "$as_dir" && as_dir=. 10769 for ac_exec_ext in '' $ac_executable_extensions; do 10770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10771 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10773 break 2 10774 fi 10775 done 10776 done 10777 IFS=$as_save_IFS 10778 10779 ;; 10780 esac 10781 fi 10782 UNIQ=$ac_cv_path_UNIQ 10783 if test -n "$UNIQ"; then 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10785 $as_echo "$UNIQ" >&6; } 10786 else 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10788 $as_echo "no" >&6; } 10789 fi 10790 10791 10792 if test "x$UNIQ" = x; then 10793 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10794 fi 10795 else 10796 # Otherwise we believe it is a complete path. Use it as it is. 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10798 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10800 $as_echo_n "checking for UNIQ... " >&6; } 10801 if test ! -x "$tool_specified"; then 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10803 $as_echo "not found" >&6; } 10804 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10805 fi 10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10807 $as_echo "$tool_specified" >&6; } 10808 fi 10809 fi 10810 fi 10811 10812 10813 10814 if test "x$UNIQ" = x; then 10815 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10816 fi 10817 10818 10819 10820 10821 10822 # Publish this variable in the help. 10823 10824 10825 if test "x$WC" = x; then 10826 # The variable is not set by user, try to locate tool using the code snippet 10827 for ac_prog in wc 10828 do 10829 # Extract the first word of "$ac_prog", so it can be a program name with args. 10830 set dummy $ac_prog; ac_word=$2 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10832 $as_echo_n "checking for $ac_word... " >&6; } 10833 if ${ac_cv_path_WC+:} false; then : 10834 $as_echo_n "(cached) " >&6 10835 else 10836 case $WC in 10837 [\\/]* | ?:[\\/]*) 10838 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10839 ;; 10840 *) 10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10842 for as_dir in $PATH 10843 do 10844 IFS=$as_save_IFS 10845 test -z "$as_dir" && as_dir=. 10846 for ac_exec_ext in '' $ac_executable_extensions; do 10847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10848 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10850 break 2 10851 fi 10852 done 10853 done 10854 IFS=$as_save_IFS 10855 10856 ;; 10857 esac 10858 fi 10859 WC=$ac_cv_path_WC 10860 if test -n "$WC"; then 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10862 $as_echo "$WC" >&6; } 10863 else 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10865 $as_echo "no" >&6; } 10866 fi 10867 10868 10869 test -n "$WC" && break 10870 done 10871 10872 else 10873 # The variable is set, but is it from the command line or the environment? 10874 10875 # Try to remove the string !WC! from our list. 10876 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10877 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10878 # If it failed, the variable was not from the command line. Ignore it, 10879 # but warn the user (except for BASH, which is always set by the calling BASH). 10880 if test "xWC" != xBASH; then 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10882 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10883 fi 10884 # Try to locate tool using the code snippet 10885 for ac_prog in wc 10886 do 10887 # Extract the first word of "$ac_prog", so it can be a program name with args. 10888 set dummy $ac_prog; ac_word=$2 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10890 $as_echo_n "checking for $ac_word... " >&6; } 10891 if ${ac_cv_path_WC+:} false; then : 10892 $as_echo_n "(cached) " >&6 10893 else 10894 case $WC in 10895 [\\/]* | ?:[\\/]*) 10896 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10897 ;; 10898 *) 10899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10900 for as_dir in $PATH 10901 do 10902 IFS=$as_save_IFS 10903 test -z "$as_dir" && as_dir=. 10904 for ac_exec_ext in '' $ac_executable_extensions; do 10905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10906 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10908 break 2 10909 fi 10910 done 10911 done 10912 IFS=$as_save_IFS 10913 10914 ;; 10915 esac 10916 fi 10917 WC=$ac_cv_path_WC 10918 if test -n "$WC"; then 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10920 $as_echo "$WC" >&6; } 10921 else 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10923 $as_echo "no" >&6; } 10924 fi 10925 10926 10927 test -n "$WC" && break 10928 done 10929 10930 else 10931 # If it succeeded, then it was overridden by the user. We will use it 10932 # for the tool. 10933 10934 # First remove it from the list of overridden variables, so we can test 10935 # for unknown variables in the end. 10936 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10937 10938 # Check if the provided tool contains a complete path. 10939 tool_specified="$WC" 10940 tool_basename="${tool_specified##*/}" 10941 if test "x$tool_basename" = "x$tool_specified"; then 10942 # A command without a complete path is provided, search $PATH. 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10944 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10945 # Extract the first word of "$tool_basename", so it can be a program name with args. 10946 set dummy $tool_basename; ac_word=$2 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10948 $as_echo_n "checking for $ac_word... " >&6; } 10949 if ${ac_cv_path_WC+:} false; then : 10950 $as_echo_n "(cached) " >&6 10951 else 10952 case $WC in 10953 [\\/]* | ?:[\\/]*) 10954 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10955 ;; 10956 *) 10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10958 for as_dir in $PATH 10959 do 10960 IFS=$as_save_IFS 10961 test -z "$as_dir" && as_dir=. 10962 for ac_exec_ext in '' $ac_executable_extensions; do 10963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10964 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10966 break 2 10967 fi 10968 done 10969 done 10970 IFS=$as_save_IFS 10971 10972 ;; 10973 esac 10974 fi 10975 WC=$ac_cv_path_WC 10976 if test -n "$WC"; then 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10978 $as_echo "$WC" >&6; } 10979 else 10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10981 $as_echo "no" >&6; } 10982 fi 10983 10984 10985 if test "x$WC" = x; then 10986 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10987 fi 10988 else 10989 # Otherwise we believe it is a complete path. Use it as it is. 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10991 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10993 $as_echo_n "checking for WC... " >&6; } 10994 if test ! -x "$tool_specified"; then 10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10996 $as_echo "not found" >&6; } 10997 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10998 fi 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11000 $as_echo "$tool_specified" >&6; } 11001 fi 11002 fi 11003 fi 11004 11005 11006 11007 if test "x$WC" = x; then 11008 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11009 fi 11010 11011 11012 11013 11014 11015 # Publish this variable in the help. 11016 11017 11018 if test "x$WHICH" = x; then 11019 # The variable is not set by user, try to locate tool using the code snippet 11020 for ac_prog in which 11021 do 11022 # Extract the first word of "$ac_prog", so it can be a program name with args. 11023 set dummy $ac_prog; ac_word=$2 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11025 $as_echo_n "checking for $ac_word... " >&6; } 11026 if ${ac_cv_path_WHICH+:} false; then : 11027 $as_echo_n "(cached) " >&6 11028 else 11029 case $WHICH in 11030 [\\/]* | ?:[\\/]*) 11031 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11032 ;; 11033 *) 11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11035 for as_dir in $PATH 11036 do 11037 IFS=$as_save_IFS 11038 test -z "$as_dir" && as_dir=. 11039 for ac_exec_ext in '' $ac_executable_extensions; do 11040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11041 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11043 break 2 11044 fi 11045 done 11046 done 11047 IFS=$as_save_IFS 11048 11049 ;; 11050 esac 11051 fi 11052 WHICH=$ac_cv_path_WHICH 11053 if test -n "$WHICH"; then 11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11055 $as_echo "$WHICH" >&6; } 11056 else 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11058 $as_echo "no" >&6; } 11059 fi 11060 11061 11062 test -n "$WHICH" && break 11063 done 11064 11065 else 11066 # The variable is set, but is it from the command line or the environment? 11067 11068 # Try to remove the string !WHICH! from our list. 11069 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11070 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11071 # If it failed, the variable was not from the command line. Ignore it, 11072 # but warn the user (except for BASH, which is always set by the calling BASH). 11073 if test "xWHICH" != xBASH; then 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11075 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11076 fi 11077 # Try to locate tool using the code snippet 11078 for ac_prog in which 11079 do 11080 # Extract the first word of "$ac_prog", so it can be a program name with args. 11081 set dummy $ac_prog; ac_word=$2 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11083 $as_echo_n "checking for $ac_word... " >&6; } 11084 if ${ac_cv_path_WHICH+:} false; then : 11085 $as_echo_n "(cached) " >&6 11086 else 11087 case $WHICH in 11088 [\\/]* | ?:[\\/]*) 11089 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11090 ;; 11091 *) 11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11093 for as_dir in $PATH 11094 do 11095 IFS=$as_save_IFS 11096 test -z "$as_dir" && as_dir=. 11097 for ac_exec_ext in '' $ac_executable_extensions; do 11098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11099 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11101 break 2 11102 fi 11103 done 11104 done 11105 IFS=$as_save_IFS 11106 11107 ;; 11108 esac 11109 fi 11110 WHICH=$ac_cv_path_WHICH 11111 if test -n "$WHICH"; then 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11113 $as_echo "$WHICH" >&6; } 11114 else 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11116 $as_echo "no" >&6; } 11117 fi 11118 11119 11120 test -n "$WHICH" && break 11121 done 11122 11123 else 11124 # If it succeeded, then it was overridden by the user. We will use it 11125 # for the tool. 11126 11127 # First remove it from the list of overridden variables, so we can test 11128 # for unknown variables in the end. 11129 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11130 11131 # Check if the provided tool contains a complete path. 11132 tool_specified="$WHICH" 11133 tool_basename="${tool_specified##*/}" 11134 if test "x$tool_basename" = "x$tool_specified"; then 11135 # A command without a complete path is provided, search $PATH. 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11137 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11138 # Extract the first word of "$tool_basename", so it can be a program name with args. 11139 set dummy $tool_basename; ac_word=$2 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11141 $as_echo_n "checking for $ac_word... " >&6; } 11142 if ${ac_cv_path_WHICH+:} false; then : 11143 $as_echo_n "(cached) " >&6 11144 else 11145 case $WHICH in 11146 [\\/]* | ?:[\\/]*) 11147 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11148 ;; 11149 *) 11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11151 for as_dir in $PATH 11152 do 11153 IFS=$as_save_IFS 11154 test -z "$as_dir" && as_dir=. 11155 for ac_exec_ext in '' $ac_executable_extensions; do 11156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11157 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11159 break 2 11160 fi 11161 done 11162 done 11163 IFS=$as_save_IFS 11164 11165 ;; 11166 esac 11167 fi 11168 WHICH=$ac_cv_path_WHICH 11169 if test -n "$WHICH"; then 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11171 $as_echo "$WHICH" >&6; } 11172 else 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11174 $as_echo "no" >&6; } 11175 fi 11176 11177 11178 if test "x$WHICH" = x; then 11179 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11180 fi 11181 else 11182 # Otherwise we believe it is a complete path. Use it as it is. 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11184 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11186 $as_echo_n "checking for WHICH... " >&6; } 11187 if test ! -x "$tool_specified"; then 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11189 $as_echo "not found" >&6; } 11190 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11191 fi 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11193 $as_echo "$tool_specified" >&6; } 11194 fi 11195 fi 11196 fi 11197 11198 11199 11200 if test "x$WHICH" = x; then 11201 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11202 fi 11203 11204 11205 11206 11207 11208 # Publish this variable in the help. 11209 11210 11211 if test "x$XARGS" = x; then 11212 # The variable is not set by user, try to locate tool using the code snippet 11213 for ac_prog in xargs 11214 do 11215 # Extract the first word of "$ac_prog", so it can be a program name with args. 11216 set dummy $ac_prog; ac_word=$2 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11218 $as_echo_n "checking for $ac_word... " >&6; } 11219 if ${ac_cv_path_XARGS+:} false; then : 11220 $as_echo_n "(cached) " >&6 11221 else 11222 case $XARGS in 11223 [\\/]* | ?:[\\/]*) 11224 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11225 ;; 11226 *) 11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11228 for as_dir in $PATH 11229 do 11230 IFS=$as_save_IFS 11231 test -z "$as_dir" && as_dir=. 11232 for ac_exec_ext in '' $ac_executable_extensions; do 11233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11234 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11236 break 2 11237 fi 11238 done 11239 done 11240 IFS=$as_save_IFS 11241 11242 ;; 11243 esac 11244 fi 11245 XARGS=$ac_cv_path_XARGS 11246 if test -n "$XARGS"; then 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11248 $as_echo "$XARGS" >&6; } 11249 else 11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11251 $as_echo "no" >&6; } 11252 fi 11253 11254 11255 test -n "$XARGS" && break 11256 done 11257 11258 else 11259 # The variable is set, but is it from the command line or the environment? 11260 11261 # Try to remove the string !XARGS! from our list. 11262 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11263 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11264 # If it failed, the variable was not from the command line. Ignore it, 11265 # but warn the user (except for BASH, which is always set by the calling BASH). 11266 if test "xXARGS" != xBASH; then 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11268 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11269 fi 11270 # Try to locate tool using the code snippet 11271 for ac_prog in xargs 11272 do 11273 # Extract the first word of "$ac_prog", so it can be a program name with args. 11274 set dummy $ac_prog; ac_word=$2 11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11276 $as_echo_n "checking for $ac_word... " >&6; } 11277 if ${ac_cv_path_XARGS+:} false; then : 11278 $as_echo_n "(cached) " >&6 11279 else 11280 case $XARGS in 11281 [\\/]* | ?:[\\/]*) 11282 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11283 ;; 11284 *) 11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11286 for as_dir in $PATH 11287 do 11288 IFS=$as_save_IFS 11289 test -z "$as_dir" && as_dir=. 11290 for ac_exec_ext in '' $ac_executable_extensions; do 11291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11292 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11294 break 2 11295 fi 11296 done 11297 done 11298 IFS=$as_save_IFS 11299 11300 ;; 11301 esac 11302 fi 11303 XARGS=$ac_cv_path_XARGS 11304 if test -n "$XARGS"; then 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11306 $as_echo "$XARGS" >&6; } 11307 else 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11309 $as_echo "no" >&6; } 11310 fi 11311 11312 11313 test -n "$XARGS" && break 11314 done 11315 11316 else 11317 # If it succeeded, then it was overridden by the user. We will use it 11318 # for the tool. 11319 11320 # First remove it from the list of overridden variables, so we can test 11321 # for unknown variables in the end. 11322 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11323 11324 # Check if the provided tool contains a complete path. 11325 tool_specified="$XARGS" 11326 tool_basename="${tool_specified##*/}" 11327 if test "x$tool_basename" = "x$tool_specified"; then 11328 # A command without a complete path is provided, search $PATH. 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11330 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11331 # Extract the first word of "$tool_basename", so it can be a program name with args. 11332 set dummy $tool_basename; ac_word=$2 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11334 $as_echo_n "checking for $ac_word... " >&6; } 11335 if ${ac_cv_path_XARGS+:} false; then : 11336 $as_echo_n "(cached) " >&6 11337 else 11338 case $XARGS in 11339 [\\/]* | ?:[\\/]*) 11340 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11341 ;; 11342 *) 11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11344 for as_dir in $PATH 11345 do 11346 IFS=$as_save_IFS 11347 test -z "$as_dir" && as_dir=. 11348 for ac_exec_ext in '' $ac_executable_extensions; do 11349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11350 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11352 break 2 11353 fi 11354 done 11355 done 11356 IFS=$as_save_IFS 11357 11358 ;; 11359 esac 11360 fi 11361 XARGS=$ac_cv_path_XARGS 11362 if test -n "$XARGS"; then 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11364 $as_echo "$XARGS" >&6; } 11365 else 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11367 $as_echo "no" >&6; } 11368 fi 11369 11370 11371 if test "x$XARGS" = x; then 11372 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11373 fi 11374 else 11375 # Otherwise we believe it is a complete path. Use it as it is. 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11377 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11379 $as_echo_n "checking for XARGS... " >&6; } 11380 if test ! -x "$tool_specified"; then 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11382 $as_echo "not found" >&6; } 11383 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11384 fi 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11386 $as_echo "$tool_specified" >&6; } 11387 fi 11388 fi 11389 fi 11390 11391 11392 11393 if test "x$XARGS" = x; then 11394 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11395 fi 11396 11397 11398 11399 # Then required tools that require some special treatment. 11400 11401 11402 # Publish this variable in the help. 11403 11404 11405 if test "x$AWK" = x; then 11406 # The variable is not set by user, try to locate tool using the code snippet 11407 for ac_prog in gawk mawk nawk awk 11408 do 11409 # Extract the first word of "$ac_prog", so it can be a program name with args. 11410 set dummy $ac_prog; ac_word=$2 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11412 $as_echo_n "checking for $ac_word... " >&6; } 11413 if ${ac_cv_prog_AWK+:} false; then : 11414 $as_echo_n "(cached) " >&6 11415 else 11416 if test -n "$AWK"; then 11417 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11418 else 11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11420 for as_dir in $PATH 11421 do 11422 IFS=$as_save_IFS 11423 test -z "$as_dir" && as_dir=. 11424 for ac_exec_ext in '' $ac_executable_extensions; do 11425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11426 ac_cv_prog_AWK="$ac_prog" 11427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11428 break 2 11429 fi 11430 done 11431 done 11432 IFS=$as_save_IFS 11433 11434 fi 11435 fi 11436 AWK=$ac_cv_prog_AWK 11437 if test -n "$AWK"; then 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11439 $as_echo "$AWK" >&6; } 11440 else 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11442 $as_echo "no" >&6; } 11443 fi 11444 11445 11446 test -n "$AWK" && break 11447 done 11448 11449 else 11450 # The variable is set, but is it from the command line or the environment? 11451 11452 # Try to remove the string !AWK! from our list. 11453 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11454 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11455 # If it failed, the variable was not from the command line. Ignore it, 11456 # but warn the user (except for BASH, which is always set by the calling BASH). 11457 if test "xAWK" != xBASH; then 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11459 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11460 fi 11461 # Try to locate tool using the code snippet 11462 for ac_prog in gawk mawk nawk awk 11463 do 11464 # Extract the first word of "$ac_prog", so it can be a program name with args. 11465 set dummy $ac_prog; ac_word=$2 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11467 $as_echo_n "checking for $ac_word... " >&6; } 11468 if ${ac_cv_prog_AWK+:} false; then : 11469 $as_echo_n "(cached) " >&6 11470 else 11471 if test -n "$AWK"; then 11472 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11473 else 11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11475 for as_dir in $PATH 11476 do 11477 IFS=$as_save_IFS 11478 test -z "$as_dir" && as_dir=. 11479 for ac_exec_ext in '' $ac_executable_extensions; do 11480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11481 ac_cv_prog_AWK="$ac_prog" 11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11483 break 2 11484 fi 11485 done 11486 done 11487 IFS=$as_save_IFS 11488 11489 fi 11490 fi 11491 AWK=$ac_cv_prog_AWK 11492 if test -n "$AWK"; then 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11494 $as_echo "$AWK" >&6; } 11495 else 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11497 $as_echo "no" >&6; } 11498 fi 11499 11500 11501 test -n "$AWK" && break 11502 done 11503 11504 else 11505 # If it succeeded, then it was overridden by the user. We will use it 11506 # for the tool. 11507 11508 # First remove it from the list of overridden variables, so we can test 11509 # for unknown variables in the end. 11510 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11511 11512 # Check if the provided tool contains a complete path. 11513 tool_specified="$AWK" 11514 tool_basename="${tool_specified##*/}" 11515 if test "x$tool_basename" = "x$tool_specified"; then 11516 # A command without a complete path is provided, search $PATH. 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11518 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11519 # Extract the first word of "$tool_basename", so it can be a program name with args. 11520 set dummy $tool_basename; ac_word=$2 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11522 $as_echo_n "checking for $ac_word... " >&6; } 11523 if ${ac_cv_path_AWK+:} false; then : 11524 $as_echo_n "(cached) " >&6 11525 else 11526 case $AWK in 11527 [\\/]* | ?:[\\/]*) 11528 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11529 ;; 11530 *) 11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11532 for as_dir in $PATH 11533 do 11534 IFS=$as_save_IFS 11535 test -z "$as_dir" && as_dir=. 11536 for ac_exec_ext in '' $ac_executable_extensions; do 11537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11538 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11540 break 2 11541 fi 11542 done 11543 done 11544 IFS=$as_save_IFS 11545 11546 ;; 11547 esac 11548 fi 11549 AWK=$ac_cv_path_AWK 11550 if test -n "$AWK"; then 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11552 $as_echo "$AWK" >&6; } 11553 else 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11555 $as_echo "no" >&6; } 11556 fi 11557 11558 11559 if test "x$AWK" = x; then 11560 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11561 fi 11562 else 11563 # Otherwise we believe it is a complete path. Use it as it is. 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11565 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11567 $as_echo_n "checking for AWK... " >&6; } 11568 if test ! -x "$tool_specified"; then 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11570 $as_echo "not found" >&6; } 11571 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11572 fi 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11574 $as_echo "$tool_specified" >&6; } 11575 fi 11576 fi 11577 fi 11578 11579 11580 if test "x$AWK" = x; then 11581 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11582 fi 11583 11584 11585 11586 11587 # Publish this variable in the help. 11588 11589 11590 if test "x$GREP" = x; then 11591 # The variable is not set by user, try to locate tool using the code snippet 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11593 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11594 if ${ac_cv_path_GREP+:} false; then : 11595 $as_echo_n "(cached) " >&6 11596 else 11597 if test -z "$GREP"; then 11598 ac_path_GREP_found=false 11599 # Loop through the user's path and test for each of PROGNAME-LIST 11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11602 do 11603 IFS=$as_save_IFS 11604 test -z "$as_dir" && as_dir=. 11605 for ac_prog in grep ggrep; do 11606 for ac_exec_ext in '' $ac_executable_extensions; do 11607 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11608 as_fn_executable_p "$ac_path_GREP" || continue 11609 # Check for GNU ac_path_GREP and select it if it is found. 11610 # Check for GNU $ac_path_GREP 11611 case `"$ac_path_GREP" --version 2>&1` in 11612 *GNU*) 11613 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11614 *) 11615 ac_count=0 11616 $as_echo_n 0123456789 >"conftest.in" 11617 while : 11618 do 11619 cat "conftest.in" "conftest.in" >"conftest.tmp" 11620 mv "conftest.tmp" "conftest.in" 11621 cp "conftest.in" "conftest.nl" 11622 $as_echo 'GREP' >> "conftest.nl" 11623 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11625 as_fn_arith $ac_count + 1 && ac_count=$as_val 11626 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11627 # Best one so far, save it but keep looking for a better one 11628 ac_cv_path_GREP="$ac_path_GREP" 11629 ac_path_GREP_max=$ac_count 11630 fi 11631 # 10*(2^10) chars as input seems more than enough 11632 test $ac_count -gt 10 && break 11633 done 11634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11635 esac 11636 11637 $ac_path_GREP_found && break 3 11638 done 11639 done 11640 done 11641 IFS=$as_save_IFS 11642 if test -z "$ac_cv_path_GREP"; then 11643 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11644 fi 11645 else 11646 ac_cv_path_GREP=$GREP 11647 fi 11648 11649 fi 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11651 $as_echo "$ac_cv_path_GREP" >&6; } 11652 GREP="$ac_cv_path_GREP" 11653 11654 11655 else 11656 # The variable is set, but is it from the command line or the environment? 11657 11658 # Try to remove the string !GREP! from our list. 11659 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11660 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11661 # If it failed, the variable was not from the command line. Ignore it, 11662 # but warn the user (except for BASH, which is always set by the calling BASH). 11663 if test "xGREP" != xBASH; then 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11665 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11666 fi 11667 # Try to locate tool using the code snippet 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11669 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11670 if ${ac_cv_path_GREP+:} false; then : 11671 $as_echo_n "(cached) " >&6 11672 else 11673 if test -z "$GREP"; then 11674 ac_path_GREP_found=false 11675 # Loop through the user's path and test for each of PROGNAME-LIST 11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11678 do 11679 IFS=$as_save_IFS 11680 test -z "$as_dir" && as_dir=. 11681 for ac_prog in grep ggrep; do 11682 for ac_exec_ext in '' $ac_executable_extensions; do 11683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11684 as_fn_executable_p "$ac_path_GREP" || continue 11685 # Check for GNU ac_path_GREP and select it if it is found. 11686 # Check for GNU $ac_path_GREP 11687 case `"$ac_path_GREP" --version 2>&1` in 11688 *GNU*) 11689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11690 *) 11691 ac_count=0 11692 $as_echo_n 0123456789 >"conftest.in" 11693 while : 11694 do 11695 cat "conftest.in" "conftest.in" >"conftest.tmp" 11696 mv "conftest.tmp" "conftest.in" 11697 cp "conftest.in" "conftest.nl" 11698 $as_echo 'GREP' >> "conftest.nl" 11699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11701 as_fn_arith $ac_count + 1 && ac_count=$as_val 11702 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11703 # Best one so far, save it but keep looking for a better one 11704 ac_cv_path_GREP="$ac_path_GREP" 11705 ac_path_GREP_max=$ac_count 11706 fi 11707 # 10*(2^10) chars as input seems more than enough 11708 test $ac_count -gt 10 && break 11709 done 11710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11711 esac 11712 11713 $ac_path_GREP_found && break 3 11714 done 11715 done 11716 done 11717 IFS=$as_save_IFS 11718 if test -z "$ac_cv_path_GREP"; then 11719 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11720 fi 11721 else 11722 ac_cv_path_GREP=$GREP 11723 fi 11724 11725 fi 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11727 $as_echo "$ac_cv_path_GREP" >&6; } 11728 GREP="$ac_cv_path_GREP" 11729 11730 11731 else 11732 # If it succeeded, then it was overridden by the user. We will use it 11733 # for the tool. 11734 11735 # First remove it from the list of overridden variables, so we can test 11736 # for unknown variables in the end. 11737 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11738 11739 # Check if the provided tool contains a complete path. 11740 tool_specified="$GREP" 11741 tool_basename="${tool_specified##*/}" 11742 if test "x$tool_basename" = "x$tool_specified"; then 11743 # A command without a complete path is provided, search $PATH. 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11745 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11746 # Extract the first word of "$tool_basename", so it can be a program name with args. 11747 set dummy $tool_basename; ac_word=$2 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11749 $as_echo_n "checking for $ac_word... " >&6; } 11750 if ${ac_cv_path_GREP+:} false; then : 11751 $as_echo_n "(cached) " >&6 11752 else 11753 case $GREP in 11754 [\\/]* | ?:[\\/]*) 11755 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11756 ;; 11757 *) 11758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11759 for as_dir in $PATH 11760 do 11761 IFS=$as_save_IFS 11762 test -z "$as_dir" && as_dir=. 11763 for ac_exec_ext in '' $ac_executable_extensions; do 11764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11765 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11767 break 2 11768 fi 11769 done 11770 done 11771 IFS=$as_save_IFS 11772 11773 ;; 11774 esac 11775 fi 11776 GREP=$ac_cv_path_GREP 11777 if test -n "$GREP"; then 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11779 $as_echo "$GREP" >&6; } 11780 else 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11782 $as_echo "no" >&6; } 11783 fi 11784 11785 11786 if test "x$GREP" = x; then 11787 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11788 fi 11789 else 11790 # Otherwise we believe it is a complete path. Use it as it is. 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11792 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11794 $as_echo_n "checking for GREP... " >&6; } 11795 if test ! -x "$tool_specified"; then 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11797 $as_echo "not found" >&6; } 11798 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11799 fi 11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11801 $as_echo "$tool_specified" >&6; } 11802 fi 11803 fi 11804 fi 11805 11806 11807 if test "x$GREP" = x; then 11808 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11809 fi 11810 11811 11812 11813 11814 # Publish this variable in the help. 11815 11816 11817 if test "x$EGREP" = x; then 11818 # The variable is not set by user, try to locate tool using the code snippet 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11820 $as_echo_n "checking for egrep... " >&6; } 11821 if ${ac_cv_path_EGREP+:} false; then : 11822 $as_echo_n "(cached) " >&6 11823 else 11824 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11825 then ac_cv_path_EGREP="$GREP -E" 11826 else 11827 if test -z "$EGREP"; then 11828 ac_path_EGREP_found=false 11829 # Loop through the user's path and test for each of PROGNAME-LIST 11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11832 do 11833 IFS=$as_save_IFS 11834 test -z "$as_dir" && as_dir=. 11835 for ac_prog in egrep; do 11836 for ac_exec_ext in '' $ac_executable_extensions; do 11837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11838 as_fn_executable_p "$ac_path_EGREP" || continue 11839 # Check for GNU ac_path_EGREP and select it if it is found. 11840 # Check for GNU $ac_path_EGREP 11841 case `"$ac_path_EGREP" --version 2>&1` in 11842 *GNU*) 11843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11844 *) 11845 ac_count=0 11846 $as_echo_n 0123456789 >"conftest.in" 11847 while : 11848 do 11849 cat "conftest.in" "conftest.in" >"conftest.tmp" 11850 mv "conftest.tmp" "conftest.in" 11851 cp "conftest.in" "conftest.nl" 11852 $as_echo 'EGREP' >> "conftest.nl" 11853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11855 as_fn_arith $ac_count + 1 && ac_count=$as_val 11856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11857 # Best one so far, save it but keep looking for a better one 11858 ac_cv_path_EGREP="$ac_path_EGREP" 11859 ac_path_EGREP_max=$ac_count 11860 fi 11861 # 10*(2^10) chars as input seems more than enough 11862 test $ac_count -gt 10 && break 11863 done 11864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11865 esac 11866 11867 $ac_path_EGREP_found && break 3 11868 done 11869 done 11870 done 11871 IFS=$as_save_IFS 11872 if test -z "$ac_cv_path_EGREP"; then 11873 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11874 fi 11875 else 11876 ac_cv_path_EGREP=$EGREP 11877 fi 11878 11879 fi 11880 fi 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11882 $as_echo "$ac_cv_path_EGREP" >&6; } 11883 EGREP="$ac_cv_path_EGREP" 11884 11885 11886 else 11887 # The variable is set, but is it from the command line or the environment? 11888 11889 # Try to remove the string !EGREP! from our list. 11890 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11891 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11892 # If it failed, the variable was not from the command line. Ignore it, 11893 # but warn the user (except for BASH, which is always set by the calling BASH). 11894 if test "xEGREP" != xBASH; then 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11896 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11897 fi 11898 # Try to locate tool using the code snippet 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11900 $as_echo_n "checking for egrep... " >&6; } 11901 if ${ac_cv_path_EGREP+:} false; then : 11902 $as_echo_n "(cached) " >&6 11903 else 11904 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11905 then ac_cv_path_EGREP="$GREP -E" 11906 else 11907 if test -z "$EGREP"; then 11908 ac_path_EGREP_found=false 11909 # Loop through the user's path and test for each of PROGNAME-LIST 11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11912 do 11913 IFS=$as_save_IFS 11914 test -z "$as_dir" && as_dir=. 11915 for ac_prog in egrep; do 11916 for ac_exec_ext in '' $ac_executable_extensions; do 11917 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11918 as_fn_executable_p "$ac_path_EGREP" || continue 11919 # Check for GNU ac_path_EGREP and select it if it is found. 11920 # Check for GNU $ac_path_EGREP 11921 case `"$ac_path_EGREP" --version 2>&1` in 11922 *GNU*) 11923 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11924 *) 11925 ac_count=0 11926 $as_echo_n 0123456789 >"conftest.in" 11927 while : 11928 do 11929 cat "conftest.in" "conftest.in" >"conftest.tmp" 11930 mv "conftest.tmp" "conftest.in" 11931 cp "conftest.in" "conftest.nl" 11932 $as_echo 'EGREP' >> "conftest.nl" 11933 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11935 as_fn_arith $ac_count + 1 && ac_count=$as_val 11936 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11937 # Best one so far, save it but keep looking for a better one 11938 ac_cv_path_EGREP="$ac_path_EGREP" 11939 ac_path_EGREP_max=$ac_count 11940 fi 11941 # 10*(2^10) chars as input seems more than enough 11942 test $ac_count -gt 10 && break 11943 done 11944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11945 esac 11946 11947 $ac_path_EGREP_found && break 3 11948 done 11949 done 11950 done 11951 IFS=$as_save_IFS 11952 if test -z "$ac_cv_path_EGREP"; then 11953 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11954 fi 11955 else 11956 ac_cv_path_EGREP=$EGREP 11957 fi 11958 11959 fi 11960 fi 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11962 $as_echo "$ac_cv_path_EGREP" >&6; } 11963 EGREP="$ac_cv_path_EGREP" 11964 11965 11966 else 11967 # If it succeeded, then it was overridden by the user. We will use it 11968 # for the tool. 11969 11970 # First remove it from the list of overridden variables, so we can test 11971 # for unknown variables in the end. 11972 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11973 11974 # Check if the provided tool contains a complete path. 11975 tool_specified="$EGREP" 11976 tool_basename="${tool_specified##*/}" 11977 if test "x$tool_basename" = "x$tool_specified"; then 11978 # A command without a complete path is provided, search $PATH. 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11980 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11981 # Extract the first word of "$tool_basename", so it can be a program name with args. 11982 set dummy $tool_basename; ac_word=$2 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11984 $as_echo_n "checking for $ac_word... " >&6; } 11985 if ${ac_cv_path_EGREP+:} false; then : 11986 $as_echo_n "(cached) " >&6 11987 else 11988 case $EGREP in 11989 [\\/]* | ?:[\\/]*) 11990 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11991 ;; 11992 *) 11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11994 for as_dir in $PATH 11995 do 11996 IFS=$as_save_IFS 11997 test -z "$as_dir" && as_dir=. 11998 for ac_exec_ext in '' $ac_executable_extensions; do 11999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12000 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12002 break 2 12003 fi 12004 done 12005 done 12006 IFS=$as_save_IFS 12007 12008 ;; 12009 esac 12010 fi 12011 EGREP=$ac_cv_path_EGREP 12012 if test -n "$EGREP"; then 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12014 $as_echo "$EGREP" >&6; } 12015 else 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12017 $as_echo "no" >&6; } 12018 fi 12019 12020 12021 if test "x$EGREP" = x; then 12022 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12023 fi 12024 else 12025 # Otherwise we believe it is a complete path. Use it as it is. 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12027 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12029 $as_echo_n "checking for EGREP... " >&6; } 12030 if test ! -x "$tool_specified"; then 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12032 $as_echo "not found" >&6; } 12033 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12034 fi 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12036 $as_echo "$tool_specified" >&6; } 12037 fi 12038 fi 12039 fi 12040 12041 12042 if test "x$EGREP" = x; then 12043 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12044 fi 12045 12046 12047 12048 12049 # Publish this variable in the help. 12050 12051 12052 if test "x$FGREP" = x; then 12053 # The variable is not set by user, try to locate tool using the code snippet 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12055 $as_echo_n "checking for fgrep... " >&6; } 12056 if ${ac_cv_path_FGREP+:} false; then : 12057 $as_echo_n "(cached) " >&6 12058 else 12059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12060 then ac_cv_path_FGREP="$GREP -F" 12061 else 12062 if test -z "$FGREP"; then 12063 ac_path_FGREP_found=false 12064 # Loop through the user's path and test for each of PROGNAME-LIST 12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12067 do 12068 IFS=$as_save_IFS 12069 test -z "$as_dir" && as_dir=. 12070 for ac_prog in fgrep; do 12071 for ac_exec_ext in '' $ac_executable_extensions; do 12072 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12073 as_fn_executable_p "$ac_path_FGREP" || continue 12074 # Check for GNU ac_path_FGREP and select it if it is found. 12075 # Check for GNU $ac_path_FGREP 12076 case `"$ac_path_FGREP" --version 2>&1` in 12077 *GNU*) 12078 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12079 *) 12080 ac_count=0 12081 $as_echo_n 0123456789 >"conftest.in" 12082 while : 12083 do 12084 cat "conftest.in" "conftest.in" >"conftest.tmp" 12085 mv "conftest.tmp" "conftest.in" 12086 cp "conftest.in" "conftest.nl" 12087 $as_echo 'FGREP' >> "conftest.nl" 12088 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12090 as_fn_arith $ac_count + 1 && ac_count=$as_val 12091 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12092 # Best one so far, save it but keep looking for a better one 12093 ac_cv_path_FGREP="$ac_path_FGREP" 12094 ac_path_FGREP_max=$ac_count 12095 fi 12096 # 10*(2^10) chars as input seems more than enough 12097 test $ac_count -gt 10 && break 12098 done 12099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12100 esac 12101 12102 $ac_path_FGREP_found && break 3 12103 done 12104 done 12105 done 12106 IFS=$as_save_IFS 12107 if test -z "$ac_cv_path_FGREP"; then 12108 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12109 fi 12110 else 12111 ac_cv_path_FGREP=$FGREP 12112 fi 12113 12114 fi 12115 fi 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12117 $as_echo "$ac_cv_path_FGREP" >&6; } 12118 FGREP="$ac_cv_path_FGREP" 12119 12120 12121 else 12122 # The variable is set, but is it from the command line or the environment? 12123 12124 # Try to remove the string !FGREP! from our list. 12125 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12126 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12127 # If it failed, the variable was not from the command line. Ignore it, 12128 # but warn the user (except for BASH, which is always set by the calling BASH). 12129 if test "xFGREP" != xBASH; then 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12131 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12132 fi 12133 # Try to locate tool using the code snippet 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12135 $as_echo_n "checking for fgrep... " >&6; } 12136 if ${ac_cv_path_FGREP+:} false; then : 12137 $as_echo_n "(cached) " >&6 12138 else 12139 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12140 then ac_cv_path_FGREP="$GREP -F" 12141 else 12142 if test -z "$FGREP"; then 12143 ac_path_FGREP_found=false 12144 # Loop through the user's path and test for each of PROGNAME-LIST 12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12147 do 12148 IFS=$as_save_IFS 12149 test -z "$as_dir" && as_dir=. 12150 for ac_prog in fgrep; do 12151 for ac_exec_ext in '' $ac_executable_extensions; do 12152 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12153 as_fn_executable_p "$ac_path_FGREP" || continue 12154 # Check for GNU ac_path_FGREP and select it if it is found. 12155 # Check for GNU $ac_path_FGREP 12156 case `"$ac_path_FGREP" --version 2>&1` in 12157 *GNU*) 12158 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12159 *) 12160 ac_count=0 12161 $as_echo_n 0123456789 >"conftest.in" 12162 while : 12163 do 12164 cat "conftest.in" "conftest.in" >"conftest.tmp" 12165 mv "conftest.tmp" "conftest.in" 12166 cp "conftest.in" "conftest.nl" 12167 $as_echo 'FGREP' >> "conftest.nl" 12168 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12170 as_fn_arith $ac_count + 1 && ac_count=$as_val 12171 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12172 # Best one so far, save it but keep looking for a better one 12173 ac_cv_path_FGREP="$ac_path_FGREP" 12174 ac_path_FGREP_max=$ac_count 12175 fi 12176 # 10*(2^10) chars as input seems more than enough 12177 test $ac_count -gt 10 && break 12178 done 12179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12180 esac 12181 12182 $ac_path_FGREP_found && break 3 12183 done 12184 done 12185 done 12186 IFS=$as_save_IFS 12187 if test -z "$ac_cv_path_FGREP"; then 12188 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12189 fi 12190 else 12191 ac_cv_path_FGREP=$FGREP 12192 fi 12193 12194 fi 12195 fi 12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12197 $as_echo "$ac_cv_path_FGREP" >&6; } 12198 FGREP="$ac_cv_path_FGREP" 12199 12200 12201 else 12202 # If it succeeded, then it was overridden by the user. We will use it 12203 # for the tool. 12204 12205 # First remove it from the list of overridden variables, so we can test 12206 # for unknown variables in the end. 12207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12208 12209 # Check if the provided tool contains a complete path. 12210 tool_specified="$FGREP" 12211 tool_basename="${tool_specified##*/}" 12212 if test "x$tool_basename" = "x$tool_specified"; then 12213 # A command without a complete path is provided, search $PATH. 12214 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12215 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12216 # Extract the first word of "$tool_basename", so it can be a program name with args. 12217 set dummy $tool_basename; ac_word=$2 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12219 $as_echo_n "checking for $ac_word... " >&6; } 12220 if ${ac_cv_path_FGREP+:} false; then : 12221 $as_echo_n "(cached) " >&6 12222 else 12223 case $FGREP in 12224 [\\/]* | ?:[\\/]*) 12225 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12226 ;; 12227 *) 12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12229 for as_dir in $PATH 12230 do 12231 IFS=$as_save_IFS 12232 test -z "$as_dir" && as_dir=. 12233 for ac_exec_ext in '' $ac_executable_extensions; do 12234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12235 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12237 break 2 12238 fi 12239 done 12240 done 12241 IFS=$as_save_IFS 12242 12243 ;; 12244 esac 12245 fi 12246 FGREP=$ac_cv_path_FGREP 12247 if test -n "$FGREP"; then 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12249 $as_echo "$FGREP" >&6; } 12250 else 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12252 $as_echo "no" >&6; } 12253 fi 12254 12255 12256 if test "x$FGREP" = x; then 12257 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12258 fi 12259 else 12260 # Otherwise we believe it is a complete path. Use it as it is. 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12262 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12264 $as_echo_n "checking for FGREP... " >&6; } 12265 if test ! -x "$tool_specified"; then 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12267 $as_echo "not found" >&6; } 12268 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12269 fi 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12271 $as_echo "$tool_specified" >&6; } 12272 fi 12273 fi 12274 fi 12275 12276 12277 if test "x$FGREP" = x; then 12278 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12279 fi 12280 12281 12282 12283 12284 # Publish this variable in the help. 12285 12286 12287 if test "x$SED" = x; then 12288 # The variable is not set by user, try to locate tool using the code snippet 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12290 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12291 if ${ac_cv_path_SED+:} false; then : 12292 $as_echo_n "(cached) " >&6 12293 else 12294 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12295 for ac_i in 1 2 3 4 5 6 7; do 12296 ac_script="$ac_script$as_nl$ac_script" 12297 done 12298 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12299 { ac_script=; unset ac_script;} 12300 if test -z "$SED"; then 12301 ac_path_SED_found=false 12302 # Loop through the user's path and test for each of PROGNAME-LIST 12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12304 for as_dir in $PATH 12305 do 12306 IFS=$as_save_IFS 12307 test -z "$as_dir" && as_dir=. 12308 for ac_prog in sed gsed; do 12309 for ac_exec_ext in '' $ac_executable_extensions; do 12310 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12311 as_fn_executable_p "$ac_path_SED" || continue 12312 # Check for GNU ac_path_SED and select it if it is found. 12313 # Check for GNU $ac_path_SED 12314 case `"$ac_path_SED" --version 2>&1` in 12315 *GNU*) 12316 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12317 *) 12318 ac_count=0 12319 $as_echo_n 0123456789 >"conftest.in" 12320 while : 12321 do 12322 cat "conftest.in" "conftest.in" >"conftest.tmp" 12323 mv "conftest.tmp" "conftest.in" 12324 cp "conftest.in" "conftest.nl" 12325 $as_echo '' >> "conftest.nl" 12326 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12328 as_fn_arith $ac_count + 1 && ac_count=$as_val 12329 if test $ac_count -gt ${ac_path_SED_max-0}; then 12330 # Best one so far, save it but keep looking for a better one 12331 ac_cv_path_SED="$ac_path_SED" 12332 ac_path_SED_max=$ac_count 12333 fi 12334 # 10*(2^10) chars as input seems more than enough 12335 test $ac_count -gt 10 && break 12336 done 12337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12338 esac 12339 12340 $ac_path_SED_found && break 3 12341 done 12342 done 12343 done 12344 IFS=$as_save_IFS 12345 if test -z "$ac_cv_path_SED"; then 12346 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12347 fi 12348 else 12349 ac_cv_path_SED=$SED 12350 fi 12351 12352 fi 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12354 $as_echo "$ac_cv_path_SED" >&6; } 12355 SED="$ac_cv_path_SED" 12356 rm -f conftest.sed 12357 12358 else 12359 # The variable is set, but is it from the command line or the environment? 12360 12361 # Try to remove the string !SED! from our list. 12362 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12363 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12364 # If it failed, the variable was not from the command line. Ignore it, 12365 # but warn the user (except for BASH, which is always set by the calling BASH). 12366 if test "xSED" != xBASH; then 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12368 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12369 fi 12370 # Try to locate tool using the code snippet 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12372 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12373 if ${ac_cv_path_SED+:} false; then : 12374 $as_echo_n "(cached) " >&6 12375 else 12376 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12377 for ac_i in 1 2 3 4 5 6 7; do 12378 ac_script="$ac_script$as_nl$ac_script" 12379 done 12380 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12381 { ac_script=; unset ac_script;} 12382 if test -z "$SED"; then 12383 ac_path_SED_found=false 12384 # Loop through the user's path and test for each of PROGNAME-LIST 12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12386 for as_dir in $PATH 12387 do 12388 IFS=$as_save_IFS 12389 test -z "$as_dir" && as_dir=. 12390 for ac_prog in sed gsed; do 12391 for ac_exec_ext in '' $ac_executable_extensions; do 12392 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12393 as_fn_executable_p "$ac_path_SED" || continue 12394 # Check for GNU ac_path_SED and select it if it is found. 12395 # Check for GNU $ac_path_SED 12396 case `"$ac_path_SED" --version 2>&1` in 12397 *GNU*) 12398 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12399 *) 12400 ac_count=0 12401 $as_echo_n 0123456789 >"conftest.in" 12402 while : 12403 do 12404 cat "conftest.in" "conftest.in" >"conftest.tmp" 12405 mv "conftest.tmp" "conftest.in" 12406 cp "conftest.in" "conftest.nl" 12407 $as_echo '' >> "conftest.nl" 12408 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12410 as_fn_arith $ac_count + 1 && ac_count=$as_val 12411 if test $ac_count -gt ${ac_path_SED_max-0}; then 12412 # Best one so far, save it but keep looking for a better one 12413 ac_cv_path_SED="$ac_path_SED" 12414 ac_path_SED_max=$ac_count 12415 fi 12416 # 10*(2^10) chars as input seems more than enough 12417 test $ac_count -gt 10 && break 12418 done 12419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12420 esac 12421 12422 $ac_path_SED_found && break 3 12423 done 12424 done 12425 done 12426 IFS=$as_save_IFS 12427 if test -z "$ac_cv_path_SED"; then 12428 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12429 fi 12430 else 12431 ac_cv_path_SED=$SED 12432 fi 12433 12434 fi 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12436 $as_echo "$ac_cv_path_SED" >&6; } 12437 SED="$ac_cv_path_SED" 12438 rm -f conftest.sed 12439 12440 else 12441 # If it succeeded, then it was overridden by the user. We will use it 12442 # for the tool. 12443 12444 # First remove it from the list of overridden variables, so we can test 12445 # for unknown variables in the end. 12446 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12447 12448 # Check if the provided tool contains a complete path. 12449 tool_specified="$SED" 12450 tool_basename="${tool_specified##*/}" 12451 if test "x$tool_basename" = "x$tool_specified"; then 12452 # A command without a complete path is provided, search $PATH. 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12454 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12455 # Extract the first word of "$tool_basename", so it can be a program name with args. 12456 set dummy $tool_basename; ac_word=$2 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12458 $as_echo_n "checking for $ac_word... " >&6; } 12459 if ${ac_cv_path_SED+:} false; then : 12460 $as_echo_n "(cached) " >&6 12461 else 12462 case $SED in 12463 [\\/]* | ?:[\\/]*) 12464 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12465 ;; 12466 *) 12467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12468 for as_dir in $PATH 12469 do 12470 IFS=$as_save_IFS 12471 test -z "$as_dir" && as_dir=. 12472 for ac_exec_ext in '' $ac_executable_extensions; do 12473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12474 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12476 break 2 12477 fi 12478 done 12479 done 12480 IFS=$as_save_IFS 12481 12482 ;; 12483 esac 12484 fi 12485 SED=$ac_cv_path_SED 12486 if test -n "$SED"; then 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12488 $as_echo "$SED" >&6; } 12489 else 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12491 $as_echo "no" >&6; } 12492 fi 12493 12494 12495 if test "x$SED" = x; then 12496 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12497 fi 12498 else 12499 # Otherwise we believe it is a complete path. Use it as it is. 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12501 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12503 $as_echo_n "checking for SED... " >&6; } 12504 if test ! -x "$tool_specified"; then 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12506 $as_echo "not found" >&6; } 12507 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12508 fi 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12510 $as_echo "$tool_specified" >&6; } 12511 fi 12512 fi 12513 fi 12514 12515 12516 if test "x$SED" = x; then 12517 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12518 fi 12519 12520 12521 12522 # Always force rm. 12523 RM="$RM -f" 12524 12525 # pwd behaves differently on various platforms and some don't support the -L flag. 12526 # Always use the bash builtin pwd to get uniform behavior. 12527 THEPWDCMD=pwd 12528 12529 # These are not required on all platforms 12530 12531 12532 # Publish this variable in the help. 12533 12534 12535 if test "x$CYGPATH" = x; then 12536 # The variable is not set by user, try to locate tool using the code snippet 12537 for ac_prog in cygpath 12538 do 12539 # Extract the first word of "$ac_prog", so it can be a program name with args. 12540 set dummy $ac_prog; ac_word=$2 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12542 $as_echo_n "checking for $ac_word... " >&6; } 12543 if ${ac_cv_path_CYGPATH+:} false; then : 12544 $as_echo_n "(cached) " >&6 12545 else 12546 case $CYGPATH in 12547 [\\/]* | ?:[\\/]*) 12548 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12549 ;; 12550 *) 12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12552 for as_dir in $PATH 12553 do 12554 IFS=$as_save_IFS 12555 test -z "$as_dir" && as_dir=. 12556 for ac_exec_ext in '' $ac_executable_extensions; do 12557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12558 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12560 break 2 12561 fi 12562 done 12563 done 12564 IFS=$as_save_IFS 12565 12566 ;; 12567 esac 12568 fi 12569 CYGPATH=$ac_cv_path_CYGPATH 12570 if test -n "$CYGPATH"; then 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12572 $as_echo "$CYGPATH" >&6; } 12573 else 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12575 $as_echo "no" >&6; } 12576 fi 12577 12578 12579 test -n "$CYGPATH" && break 12580 done 12581 12582 else 12583 # The variable is set, but is it from the command line or the environment? 12584 12585 # Try to remove the string !CYGPATH! from our list. 12586 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12587 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12588 # If it failed, the variable was not from the command line. Ignore it, 12589 # but warn the user (except for BASH, which is always set by the calling BASH). 12590 if test "xCYGPATH" != xBASH; then 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12592 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12593 fi 12594 # Try to locate tool using the code snippet 12595 for ac_prog in cygpath 12596 do 12597 # Extract the first word of "$ac_prog", so it can be a program name with args. 12598 set dummy $ac_prog; ac_word=$2 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12600 $as_echo_n "checking for $ac_word... " >&6; } 12601 if ${ac_cv_path_CYGPATH+:} false; then : 12602 $as_echo_n "(cached) " >&6 12603 else 12604 case $CYGPATH in 12605 [\\/]* | ?:[\\/]*) 12606 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12607 ;; 12608 *) 12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12610 for as_dir in $PATH 12611 do 12612 IFS=$as_save_IFS 12613 test -z "$as_dir" && as_dir=. 12614 for ac_exec_ext in '' $ac_executable_extensions; do 12615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12616 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12618 break 2 12619 fi 12620 done 12621 done 12622 IFS=$as_save_IFS 12623 12624 ;; 12625 esac 12626 fi 12627 CYGPATH=$ac_cv_path_CYGPATH 12628 if test -n "$CYGPATH"; then 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12630 $as_echo "$CYGPATH" >&6; } 12631 else 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12633 $as_echo "no" >&6; } 12634 fi 12635 12636 12637 test -n "$CYGPATH" && break 12638 done 12639 12640 else 12641 # If it succeeded, then it was overridden by the user. We will use it 12642 # for the tool. 12643 12644 # First remove it from the list of overridden variables, so we can test 12645 # for unknown variables in the end. 12646 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12647 12648 # Check if the provided tool contains a complete path. 12649 tool_specified="$CYGPATH" 12650 tool_basename="${tool_specified##*/}" 12651 if test "x$tool_basename" = "x$tool_specified"; then 12652 # A command without a complete path is provided, search $PATH. 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12654 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12655 # Extract the first word of "$tool_basename", so it can be a program name with args. 12656 set dummy $tool_basename; ac_word=$2 12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12658 $as_echo_n "checking for $ac_word... " >&6; } 12659 if ${ac_cv_path_CYGPATH+:} false; then : 12660 $as_echo_n "(cached) " >&6 12661 else 12662 case $CYGPATH in 12663 [\\/]* | ?:[\\/]*) 12664 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12665 ;; 12666 *) 12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12668 for as_dir in $PATH 12669 do 12670 IFS=$as_save_IFS 12671 test -z "$as_dir" && as_dir=. 12672 for ac_exec_ext in '' $ac_executable_extensions; do 12673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12674 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12676 break 2 12677 fi 12678 done 12679 done 12680 IFS=$as_save_IFS 12681 12682 ;; 12683 esac 12684 fi 12685 CYGPATH=$ac_cv_path_CYGPATH 12686 if test -n "$CYGPATH"; then 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12688 $as_echo "$CYGPATH" >&6; } 12689 else 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12691 $as_echo "no" >&6; } 12692 fi 12693 12694 12695 if test "x$CYGPATH" = x; then 12696 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12697 fi 12698 else 12699 # Otherwise we believe it is a complete path. Use it as it is. 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12701 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12703 $as_echo_n "checking for CYGPATH... " >&6; } 12704 if test ! -x "$tool_specified"; then 12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12706 $as_echo "not found" >&6; } 12707 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12708 fi 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12710 $as_echo "$tool_specified" >&6; } 12711 fi 12712 fi 12713 fi 12714 12715 12716 12717 12718 # Publish this variable in the help. 12719 12720 12721 if test "x$READLINK" = x; then 12722 # The variable is not set by user, try to locate tool using the code snippet 12723 for ac_prog in greadlink readlink 12724 do 12725 # Extract the first word of "$ac_prog", so it can be a program name with args. 12726 set dummy $ac_prog; ac_word=$2 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12728 $as_echo_n "checking for $ac_word... " >&6; } 12729 if ${ac_cv_path_READLINK+:} false; then : 12730 $as_echo_n "(cached) " >&6 12731 else 12732 case $READLINK in 12733 [\\/]* | ?:[\\/]*) 12734 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12735 ;; 12736 *) 12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12738 for as_dir in $PATH 12739 do 12740 IFS=$as_save_IFS 12741 test -z "$as_dir" && as_dir=. 12742 for ac_exec_ext in '' $ac_executable_extensions; do 12743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12744 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12746 break 2 12747 fi 12748 done 12749 done 12750 IFS=$as_save_IFS 12751 12752 ;; 12753 esac 12754 fi 12755 READLINK=$ac_cv_path_READLINK 12756 if test -n "$READLINK"; then 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12758 $as_echo "$READLINK" >&6; } 12759 else 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12761 $as_echo "no" >&6; } 12762 fi 12763 12764 12765 test -n "$READLINK" && break 12766 done 12767 12768 else 12769 # The variable is set, but is it from the command line or the environment? 12770 12771 # Try to remove the string !READLINK! from our list. 12772 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12773 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12774 # If it failed, the variable was not from the command line. Ignore it, 12775 # but warn the user (except for BASH, which is always set by the calling BASH). 12776 if test "xREADLINK" != xBASH; then 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12778 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12779 fi 12780 # Try to locate tool using the code snippet 12781 for ac_prog in greadlink readlink 12782 do 12783 # Extract the first word of "$ac_prog", so it can be a program name with args. 12784 set dummy $ac_prog; ac_word=$2 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12786 $as_echo_n "checking for $ac_word... " >&6; } 12787 if ${ac_cv_path_READLINK+:} false; then : 12788 $as_echo_n "(cached) " >&6 12789 else 12790 case $READLINK in 12791 [\\/]* | ?:[\\/]*) 12792 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12793 ;; 12794 *) 12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12796 for as_dir in $PATH 12797 do 12798 IFS=$as_save_IFS 12799 test -z "$as_dir" && as_dir=. 12800 for ac_exec_ext in '' $ac_executable_extensions; do 12801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12802 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12804 break 2 12805 fi 12806 done 12807 done 12808 IFS=$as_save_IFS 12809 12810 ;; 12811 esac 12812 fi 12813 READLINK=$ac_cv_path_READLINK 12814 if test -n "$READLINK"; then 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12816 $as_echo "$READLINK" >&6; } 12817 else 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12819 $as_echo "no" >&6; } 12820 fi 12821 12822 12823 test -n "$READLINK" && break 12824 done 12825 12826 else 12827 # If it succeeded, then it was overridden by the user. We will use it 12828 # for the tool. 12829 12830 # First remove it from the list of overridden variables, so we can test 12831 # for unknown variables in the end. 12832 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12833 12834 # Check if the provided tool contains a complete path. 12835 tool_specified="$READLINK" 12836 tool_basename="${tool_specified##*/}" 12837 if test "x$tool_basename" = "x$tool_specified"; then 12838 # A command without a complete path is provided, search $PATH. 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12840 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12841 # Extract the first word of "$tool_basename", so it can be a program name with args. 12842 set dummy $tool_basename; ac_word=$2 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12844 $as_echo_n "checking for $ac_word... " >&6; } 12845 if ${ac_cv_path_READLINK+:} false; then : 12846 $as_echo_n "(cached) " >&6 12847 else 12848 case $READLINK in 12849 [\\/]* | ?:[\\/]*) 12850 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12851 ;; 12852 *) 12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12854 for as_dir in $PATH 12855 do 12856 IFS=$as_save_IFS 12857 test -z "$as_dir" && as_dir=. 12858 for ac_exec_ext in '' $ac_executable_extensions; do 12859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12860 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12862 break 2 12863 fi 12864 done 12865 done 12866 IFS=$as_save_IFS 12867 12868 ;; 12869 esac 12870 fi 12871 READLINK=$ac_cv_path_READLINK 12872 if test -n "$READLINK"; then 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12874 $as_echo "$READLINK" >&6; } 12875 else 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12877 $as_echo "no" >&6; } 12878 fi 12879 12880 12881 if test "x$READLINK" = x; then 12882 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12883 fi 12884 else 12885 # Otherwise we believe it is a complete path. Use it as it is. 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12887 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12889 $as_echo_n "checking for READLINK... " >&6; } 12890 if test ! -x "$tool_specified"; then 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12892 $as_echo "not found" >&6; } 12893 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12894 fi 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12896 $as_echo "$tool_specified" >&6; } 12897 fi 12898 fi 12899 fi 12900 12901 12902 12903 12904 # Publish this variable in the help. 12905 12906 12907 if test "x$DF" = x; then 12908 # The variable is not set by user, try to locate tool using the code snippet 12909 for ac_prog in df 12910 do 12911 # Extract the first word of "$ac_prog", so it can be a program name with args. 12912 set dummy $ac_prog; ac_word=$2 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12914 $as_echo_n "checking for $ac_word... " >&6; } 12915 if ${ac_cv_path_DF+:} false; then : 12916 $as_echo_n "(cached) " >&6 12917 else 12918 case $DF in 12919 [\\/]* | ?:[\\/]*) 12920 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12921 ;; 12922 *) 12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12924 for as_dir in $PATH 12925 do 12926 IFS=$as_save_IFS 12927 test -z "$as_dir" && as_dir=. 12928 for ac_exec_ext in '' $ac_executable_extensions; do 12929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12930 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12932 break 2 12933 fi 12934 done 12935 done 12936 IFS=$as_save_IFS 12937 12938 ;; 12939 esac 12940 fi 12941 DF=$ac_cv_path_DF 12942 if test -n "$DF"; then 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12944 $as_echo "$DF" >&6; } 12945 else 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12947 $as_echo "no" >&6; } 12948 fi 12949 12950 12951 test -n "$DF" && break 12952 done 12953 12954 else 12955 # The variable is set, but is it from the command line or the environment? 12956 12957 # Try to remove the string !DF! from our list. 12958 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12959 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12960 # If it failed, the variable was not from the command line. Ignore it, 12961 # but warn the user (except for BASH, which is always set by the calling BASH). 12962 if test "xDF" != xBASH; then 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12964 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12965 fi 12966 # Try to locate tool using the code snippet 12967 for ac_prog in df 12968 do 12969 # Extract the first word of "$ac_prog", so it can be a program name with args. 12970 set dummy $ac_prog; ac_word=$2 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12972 $as_echo_n "checking for $ac_word... " >&6; } 12973 if ${ac_cv_path_DF+:} false; then : 12974 $as_echo_n "(cached) " >&6 12975 else 12976 case $DF in 12977 [\\/]* | ?:[\\/]*) 12978 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12979 ;; 12980 *) 12981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12982 for as_dir in $PATH 12983 do 12984 IFS=$as_save_IFS 12985 test -z "$as_dir" && as_dir=. 12986 for ac_exec_ext in '' $ac_executable_extensions; do 12987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12988 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12990 break 2 12991 fi 12992 done 12993 done 12994 IFS=$as_save_IFS 12995 12996 ;; 12997 esac 12998 fi 12999 DF=$ac_cv_path_DF 13000 if test -n "$DF"; then 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13002 $as_echo "$DF" >&6; } 13003 else 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13005 $as_echo "no" >&6; } 13006 fi 13007 13008 13009 test -n "$DF" && break 13010 done 13011 13012 else 13013 # If it succeeded, then it was overridden by the user. We will use it 13014 # for the tool. 13015 13016 # First remove it from the list of overridden variables, so we can test 13017 # for unknown variables in the end. 13018 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13019 13020 # Check if the provided tool contains a complete path. 13021 tool_specified="$DF" 13022 tool_basename="${tool_specified##*/}" 13023 if test "x$tool_basename" = "x$tool_specified"; then 13024 # A command without a complete path is provided, search $PATH. 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13026 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13027 # Extract the first word of "$tool_basename", so it can be a program name with args. 13028 set dummy $tool_basename; ac_word=$2 13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13030 $as_echo_n "checking for $ac_word... " >&6; } 13031 if ${ac_cv_path_DF+:} false; then : 13032 $as_echo_n "(cached) " >&6 13033 else 13034 case $DF in 13035 [\\/]* | ?:[\\/]*) 13036 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13037 ;; 13038 *) 13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13040 for as_dir in $PATH 13041 do 13042 IFS=$as_save_IFS 13043 test -z "$as_dir" && as_dir=. 13044 for ac_exec_ext in '' $ac_executable_extensions; do 13045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13046 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13048 break 2 13049 fi 13050 done 13051 done 13052 IFS=$as_save_IFS 13053 13054 ;; 13055 esac 13056 fi 13057 DF=$ac_cv_path_DF 13058 if test -n "$DF"; then 13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13060 $as_echo "$DF" >&6; } 13061 else 13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13063 $as_echo "no" >&6; } 13064 fi 13065 13066 13067 if test "x$DF" = x; then 13068 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13069 fi 13070 else 13071 # Otherwise we believe it is a complete path. Use it as it is. 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13073 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13075 $as_echo_n "checking for DF... " >&6; } 13076 if test ! -x "$tool_specified"; then 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13078 $as_echo "not found" >&6; } 13079 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13080 fi 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13082 $as_echo "$tool_specified" >&6; } 13083 fi 13084 fi 13085 fi 13086 13087 13088 13089 13090 # Publish this variable in the help. 13091 13092 13093 if test "x$SETFILE" = x; then 13094 # The variable is not set by user, try to locate tool using the code snippet 13095 for ac_prog in SetFile 13096 do 13097 # Extract the first word of "$ac_prog", so it can be a program name with args. 13098 set dummy $ac_prog; ac_word=$2 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13100 $as_echo_n "checking for $ac_word... " >&6; } 13101 if ${ac_cv_path_SETFILE+:} false; then : 13102 $as_echo_n "(cached) " >&6 13103 else 13104 case $SETFILE in 13105 [\\/]* | ?:[\\/]*) 13106 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13107 ;; 13108 *) 13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13110 for as_dir in $PATH 13111 do 13112 IFS=$as_save_IFS 13113 test -z "$as_dir" && as_dir=. 13114 for ac_exec_ext in '' $ac_executable_extensions; do 13115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13116 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13118 break 2 13119 fi 13120 done 13121 done 13122 IFS=$as_save_IFS 13123 13124 ;; 13125 esac 13126 fi 13127 SETFILE=$ac_cv_path_SETFILE 13128 if test -n "$SETFILE"; then 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13130 $as_echo "$SETFILE" >&6; } 13131 else 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13133 $as_echo "no" >&6; } 13134 fi 13135 13136 13137 test -n "$SETFILE" && break 13138 done 13139 13140 else 13141 # The variable is set, but is it from the command line or the environment? 13142 13143 # Try to remove the string !SETFILE! from our list. 13144 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13145 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13146 # If it failed, the variable was not from the command line. Ignore it, 13147 # but warn the user (except for BASH, which is always set by the calling BASH). 13148 if test "xSETFILE" != xBASH; then 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13150 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13151 fi 13152 # Try to locate tool using the code snippet 13153 for ac_prog in SetFile 13154 do 13155 # Extract the first word of "$ac_prog", so it can be a program name with args. 13156 set dummy $ac_prog; ac_word=$2 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13158 $as_echo_n "checking for $ac_word... " >&6; } 13159 if ${ac_cv_path_SETFILE+:} false; then : 13160 $as_echo_n "(cached) " >&6 13161 else 13162 case $SETFILE in 13163 [\\/]* | ?:[\\/]*) 13164 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13165 ;; 13166 *) 13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13168 for as_dir in $PATH 13169 do 13170 IFS=$as_save_IFS 13171 test -z "$as_dir" && as_dir=. 13172 for ac_exec_ext in '' $ac_executable_extensions; do 13173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13174 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13176 break 2 13177 fi 13178 done 13179 done 13180 IFS=$as_save_IFS 13181 13182 ;; 13183 esac 13184 fi 13185 SETFILE=$ac_cv_path_SETFILE 13186 if test -n "$SETFILE"; then 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13188 $as_echo "$SETFILE" >&6; } 13189 else 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13191 $as_echo "no" >&6; } 13192 fi 13193 13194 13195 test -n "$SETFILE" && break 13196 done 13197 13198 else 13199 # If it succeeded, then it was overridden by the user. We will use it 13200 # for the tool. 13201 13202 # First remove it from the list of overridden variables, so we can test 13203 # for unknown variables in the end. 13204 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13205 13206 # Check if the provided tool contains a complete path. 13207 tool_specified="$SETFILE" 13208 tool_basename="${tool_specified##*/}" 13209 if test "x$tool_basename" = "x$tool_specified"; then 13210 # A command without a complete path is provided, search $PATH. 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13212 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13213 # Extract the first word of "$tool_basename", so it can be a program name with args. 13214 set dummy $tool_basename; ac_word=$2 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13216 $as_echo_n "checking for $ac_word... " >&6; } 13217 if ${ac_cv_path_SETFILE+:} false; then : 13218 $as_echo_n "(cached) " >&6 13219 else 13220 case $SETFILE in 13221 [\\/]* | ?:[\\/]*) 13222 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13223 ;; 13224 *) 13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13226 for as_dir in $PATH 13227 do 13228 IFS=$as_save_IFS 13229 test -z "$as_dir" && as_dir=. 13230 for ac_exec_ext in '' $ac_executable_extensions; do 13231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13232 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13234 break 2 13235 fi 13236 done 13237 done 13238 IFS=$as_save_IFS 13239 13240 ;; 13241 esac 13242 fi 13243 SETFILE=$ac_cv_path_SETFILE 13244 if test -n "$SETFILE"; then 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13246 $as_echo "$SETFILE" >&6; } 13247 else 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13249 $as_echo "no" >&6; } 13250 fi 13251 13252 13253 if test "x$SETFILE" = x; then 13254 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13255 fi 13256 else 13257 # Otherwise we believe it is a complete path. Use it as it is. 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13259 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13261 $as_echo_n "checking for SETFILE... " >&6; } 13262 if test ! -x "$tool_specified"; then 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13264 $as_echo "not found" >&6; } 13265 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13266 fi 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13268 $as_echo "$tool_specified" >&6; } 13269 fi 13270 fi 13271 fi 13272 13273 13274 13275 13276 # Publish this variable in the help. 13277 13278 13279 if test "x$CPIO" = x; then 13280 # The variable is not set by user, try to locate tool using the code snippet 13281 for ac_prog in cpio bsdcpio 13282 do 13283 # Extract the first word of "$ac_prog", so it can be a program name with args. 13284 set dummy $ac_prog; ac_word=$2 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13286 $as_echo_n "checking for $ac_word... " >&6; } 13287 if ${ac_cv_path_CPIO+:} false; then : 13288 $as_echo_n "(cached) " >&6 13289 else 13290 case $CPIO in 13291 [\\/]* | ?:[\\/]*) 13292 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13293 ;; 13294 *) 13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13296 for as_dir in $PATH 13297 do 13298 IFS=$as_save_IFS 13299 test -z "$as_dir" && as_dir=. 13300 for ac_exec_ext in '' $ac_executable_extensions; do 13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13302 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13304 break 2 13305 fi 13306 done 13307 done 13308 IFS=$as_save_IFS 13309 13310 ;; 13311 esac 13312 fi 13313 CPIO=$ac_cv_path_CPIO 13314 if test -n "$CPIO"; then 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13316 $as_echo "$CPIO" >&6; } 13317 else 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13319 $as_echo "no" >&6; } 13320 fi 13321 13322 13323 test -n "$CPIO" && break 13324 done 13325 13326 else 13327 # The variable is set, but is it from the command line or the environment? 13328 13329 # Try to remove the string !CPIO! from our list. 13330 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13331 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13332 # If it failed, the variable was not from the command line. Ignore it, 13333 # but warn the user (except for BASH, which is always set by the calling BASH). 13334 if test "xCPIO" != xBASH; then 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13336 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13337 fi 13338 # Try to locate tool using the code snippet 13339 for ac_prog in cpio bsdcpio 13340 do 13341 # Extract the first word of "$ac_prog", so it can be a program name with args. 13342 set dummy $ac_prog; ac_word=$2 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13344 $as_echo_n "checking for $ac_word... " >&6; } 13345 if ${ac_cv_path_CPIO+:} false; then : 13346 $as_echo_n "(cached) " >&6 13347 else 13348 case $CPIO in 13349 [\\/]* | ?:[\\/]*) 13350 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13351 ;; 13352 *) 13353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13354 for as_dir in $PATH 13355 do 13356 IFS=$as_save_IFS 13357 test -z "$as_dir" && as_dir=. 13358 for ac_exec_ext in '' $ac_executable_extensions; do 13359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13360 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13362 break 2 13363 fi 13364 done 13365 done 13366 IFS=$as_save_IFS 13367 13368 ;; 13369 esac 13370 fi 13371 CPIO=$ac_cv_path_CPIO 13372 if test -n "$CPIO"; then 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13374 $as_echo "$CPIO" >&6; } 13375 else 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13377 $as_echo "no" >&6; } 13378 fi 13379 13380 13381 test -n "$CPIO" && break 13382 done 13383 13384 else 13385 # If it succeeded, then it was overridden by the user. We will use it 13386 # for the tool. 13387 13388 # First remove it from the list of overridden variables, so we can test 13389 # for unknown variables in the end. 13390 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13391 13392 # Check if the provided tool contains a complete path. 13393 tool_specified="$CPIO" 13394 tool_basename="${tool_specified##*/}" 13395 if test "x$tool_basename" = "x$tool_specified"; then 13396 # A command without a complete path is provided, search $PATH. 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13398 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13399 # Extract the first word of "$tool_basename", so it can be a program name with args. 13400 set dummy $tool_basename; ac_word=$2 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13402 $as_echo_n "checking for $ac_word... " >&6; } 13403 if ${ac_cv_path_CPIO+:} false; then : 13404 $as_echo_n "(cached) " >&6 13405 else 13406 case $CPIO in 13407 [\\/]* | ?:[\\/]*) 13408 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13409 ;; 13410 *) 13411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13412 for as_dir in $PATH 13413 do 13414 IFS=$as_save_IFS 13415 test -z "$as_dir" && as_dir=. 13416 for ac_exec_ext in '' $ac_executable_extensions; do 13417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13418 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13420 break 2 13421 fi 13422 done 13423 done 13424 IFS=$as_save_IFS 13425 13426 ;; 13427 esac 13428 fi 13429 CPIO=$ac_cv_path_CPIO 13430 if test -n "$CPIO"; then 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13432 $as_echo "$CPIO" >&6; } 13433 else 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13435 $as_echo "no" >&6; } 13436 fi 13437 13438 13439 if test "x$CPIO" = x; then 13440 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13441 fi 13442 else 13443 # Otherwise we believe it is a complete path. Use it as it is. 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13445 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13447 $as_echo_n "checking for CPIO... " >&6; } 13448 if test ! -x "$tool_specified"; then 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13450 $as_echo "not found" >&6; } 13451 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13452 fi 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13454 $as_echo "$tool_specified" >&6; } 13455 fi 13456 fi 13457 fi 13458 13459 13460 13461 13462 # Now we can determine OpenJDK build and target platforms. This is required to 13463 # have early on. 13464 # Make sure we can run config.sub. 13465 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13466 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13467 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13469 $as_echo_n "checking build system type... " >&6; } 13470 if ${ac_cv_build+:} false; then : 13471 $as_echo_n "(cached) " >&6 13472 else 13473 ac_build_alias=$build_alias 13474 test "x$ac_build_alias" = x && 13475 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13476 test "x$ac_build_alias" = x && 13477 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13478 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13480 13481 fi 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13483 $as_echo "$ac_cv_build" >&6; } 13484 case $ac_cv_build in 13485 *-*-*) ;; 13486 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13487 esac 13488 build=$ac_cv_build 13489 ac_save_IFS=$IFS; IFS='-' 13490 set x $ac_cv_build 13491 shift 13492 build_cpu=$1 13493 build_vendor=$2 13494 shift; shift 13495 # Remember, the first character of IFS is used to create $*, 13496 # except with old shells: 13497 build_os=$* 13498 IFS=$ac_save_IFS 13499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13500 13501 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13503 $as_echo_n "checking host system type... " >&6; } 13504 if ${ac_cv_host+:} false; then : 13505 $as_echo_n "(cached) " >&6 13506 else 13507 if test "x$host_alias" = x; then 13508 ac_cv_host=$ac_cv_build 13509 else 13510 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13512 fi 13513 13514 fi 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13516 $as_echo "$ac_cv_host" >&6; } 13517 case $ac_cv_host in 13518 *-*-*) ;; 13519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13520 esac 13521 host=$ac_cv_host 13522 ac_save_IFS=$IFS; IFS='-' 13523 set x $ac_cv_host 13524 shift 13525 host_cpu=$1 13526 host_vendor=$2 13527 shift; shift 13528 # Remember, the first character of IFS is used to create $*, 13529 # except with old shells: 13530 host_os=$* 13531 IFS=$ac_save_IFS 13532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13533 13534 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13536 $as_echo_n "checking target system type... " >&6; } 13537 if ${ac_cv_target+:} false; then : 13538 $as_echo_n "(cached) " >&6 13539 else 13540 if test "x$target_alias" = x; then 13541 ac_cv_target=$ac_cv_host 13542 else 13543 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13545 fi 13546 13547 fi 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13549 $as_echo "$ac_cv_target" >&6; } 13550 case $ac_cv_target in 13551 *-*-*) ;; 13552 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13553 esac 13554 target=$ac_cv_target 13555 ac_save_IFS=$IFS; IFS='-' 13556 set x $ac_cv_target 13557 shift 13558 target_cpu=$1 13559 target_vendor=$2 13560 shift; shift 13561 # Remember, the first character of IFS is used to create $*, 13562 # except with old shells: 13563 target_os=$* 13564 IFS=$ac_save_IFS 13565 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13566 13567 13568 # The aliases save the names the user supplied, while $host etc. 13569 # will get canonicalized. 13570 test -n "$target_alias" && 13571 test "$program_prefix$program_suffix$program_transform_name" = \ 13572 NONENONEs,x,x, && 13573 program_prefix=${target_alias}- 13574 13575 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13576 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13577 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13578 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13579 # to use the configure naming style. 13580 13581 13582 13583 13584 13585 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13586 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13587 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13588 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13589 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13590 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13591 13592 13593 13594 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13595 13596 case "$build_os" in 13597 *linux*) 13598 VAR_OS=linux 13599 VAR_OS_API=posix 13600 VAR_OS_ENV=linux 13601 ;; 13602 *solaris*) 13603 VAR_OS=solaris 13604 VAR_OS_API=posix 13605 VAR_OS_ENV=solaris 13606 ;; 13607 *darwin*) 13608 VAR_OS=macosx 13609 VAR_OS_API=posix 13610 VAR_OS_ENV=macosx 13611 ;; 13612 *bsd*) 13613 VAR_OS=bsd 13614 VAR_OS_API=posix 13615 VAR_OS_ENV=bsd 13616 ;; 13617 *cygwin*) 13618 VAR_OS=windows 13619 VAR_OS_API=winapi 13620 VAR_OS_ENV=windows.cygwin 13621 ;; 13622 *mingw*) 13623 VAR_OS=windows 13624 VAR_OS_API=winapi 13625 VAR_OS_ENV=windows.msys 13626 ;; 13627 *aix*) 13628 VAR_OS=aix 13629 VAR_OS_API=posix 13630 VAR_OS_ENV=aix 13631 ;; 13632 *) 13633 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13634 ;; 13635 esac 13636 13637 13638 # First argument is the cpu name from the trip/quad 13639 case "$build_cpu" in 13640 x86_64) 13641 VAR_CPU=x86_64 13642 VAR_CPU_ARCH=x86 13643 VAR_CPU_BITS=64 13644 VAR_CPU_ENDIAN=little 13645 ;; 13646 i?86) 13647 VAR_CPU=x86 13648 VAR_CPU_ARCH=x86 13649 VAR_CPU_BITS=32 13650 VAR_CPU_ENDIAN=little 13651 ;; 13652 arm*) 13653 VAR_CPU=arm 13654 VAR_CPU_ARCH=arm 13655 VAR_CPU_BITS=32 13656 VAR_CPU_ENDIAN=little 13657 ;; 13658 aarch64) 13659 VAR_CPU=aarch64 13660 VAR_CPU_ARCH=aarch64 13661 VAR_CPU_BITS=64 13662 VAR_CPU_ENDIAN=little 13663 ;; 13664 powerpc) 13665 VAR_CPU=ppc 13666 VAR_CPU_ARCH=ppc 13667 VAR_CPU_BITS=32 13668 VAR_CPU_ENDIAN=big 13669 ;; 13670 powerpc64) 13671 VAR_CPU=ppc64 13672 VAR_CPU_ARCH=ppc 13673 VAR_CPU_BITS=64 13674 VAR_CPU_ENDIAN=big 13675 ;; 13676 powerpc64le) 13677 VAR_CPU=ppc64le 13678 VAR_CPU_ARCH=ppc 13679 VAR_CPU_BITS=64 13680 VAR_CPU_ENDIAN=little 13681 ;; 13682 s390) 13683 VAR_CPU=s390 13684 VAR_CPU_ARCH=s390 13685 VAR_CPU_BITS=32 13686 VAR_CPU_ENDIAN=big 13687 ;; 13688 s390x) 13689 VAR_CPU=s390x 13690 VAR_CPU_ARCH=s390 13691 VAR_CPU_BITS=64 13692 VAR_CPU_ENDIAN=big 13693 ;; 13694 sparc) 13695 VAR_CPU=sparc 13696 VAR_CPU_ARCH=sparc 13697 VAR_CPU_BITS=32 13698 VAR_CPU_ENDIAN=big 13699 ;; 13700 sparcv9|sparc64) 13701 VAR_CPU=sparcv9 13702 VAR_CPU_ARCH=sparc 13703 VAR_CPU_BITS=64 13704 VAR_CPU_ENDIAN=big 13705 ;; 13706 *) 13707 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13708 ;; 13709 esac 13710 13711 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13712 OPENJDK_BUILD_OS="$VAR_OS" 13713 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13714 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13715 OPENJDK_BUILD_CPU="$VAR_CPU" 13716 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13717 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13718 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13719 13720 13721 13722 13723 13724 13725 13726 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13728 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13730 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13731 13732 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13733 13734 case "$host_os" in 13735 *linux*) 13736 VAR_OS=linux 13737 VAR_OS_API=posix 13738 VAR_OS_ENV=linux 13739 ;; 13740 *solaris*) 13741 VAR_OS=solaris 13742 VAR_OS_API=posix 13743 VAR_OS_ENV=solaris 13744 ;; 13745 *darwin*) 13746 VAR_OS=macosx 13747 VAR_OS_API=posix 13748 VAR_OS_ENV=macosx 13749 ;; 13750 *bsd*) 13751 VAR_OS=bsd 13752 VAR_OS_API=posix 13753 VAR_OS_ENV=bsd 13754 ;; 13755 *cygwin*) 13756 VAR_OS=windows 13757 VAR_OS_API=winapi 13758 VAR_OS_ENV=windows.cygwin 13759 ;; 13760 *mingw*) 13761 VAR_OS=windows 13762 VAR_OS_API=winapi 13763 VAR_OS_ENV=windows.msys 13764 ;; 13765 *aix*) 13766 VAR_OS=aix 13767 VAR_OS_API=posix 13768 VAR_OS_ENV=aix 13769 ;; 13770 *) 13771 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13772 ;; 13773 esac 13774 13775 13776 # First argument is the cpu name from the trip/quad 13777 case "$host_cpu" in 13778 x86_64) 13779 VAR_CPU=x86_64 13780 VAR_CPU_ARCH=x86 13781 VAR_CPU_BITS=64 13782 VAR_CPU_ENDIAN=little 13783 ;; 13784 i?86) 13785 VAR_CPU=x86 13786 VAR_CPU_ARCH=x86 13787 VAR_CPU_BITS=32 13788 VAR_CPU_ENDIAN=little 13789 ;; 13790 arm*) 13791 VAR_CPU=arm 13792 VAR_CPU_ARCH=arm 13793 VAR_CPU_BITS=32 13794 VAR_CPU_ENDIAN=little 13795 ;; 13796 aarch64) 13797 VAR_CPU=aarch64 13798 VAR_CPU_ARCH=aarch64 13799 VAR_CPU_BITS=64 13800 VAR_CPU_ENDIAN=little 13801 ;; 13802 powerpc) 13803 VAR_CPU=ppc 13804 VAR_CPU_ARCH=ppc 13805 VAR_CPU_BITS=32 13806 VAR_CPU_ENDIAN=big 13807 ;; 13808 powerpc64) 13809 VAR_CPU=ppc64 13810 VAR_CPU_ARCH=ppc 13811 VAR_CPU_BITS=64 13812 VAR_CPU_ENDIAN=big 13813 ;; 13814 powerpc64le) 13815 VAR_CPU=ppc64le 13816 VAR_CPU_ARCH=ppc 13817 VAR_CPU_BITS=64 13818 VAR_CPU_ENDIAN=little 13819 ;; 13820 s390) 13821 VAR_CPU=s390 13822 VAR_CPU_ARCH=s390 13823 VAR_CPU_BITS=32 13824 VAR_CPU_ENDIAN=big 13825 ;; 13826 s390x) 13827 VAR_CPU=s390x 13828 VAR_CPU_ARCH=s390 13829 VAR_CPU_BITS=64 13830 VAR_CPU_ENDIAN=big 13831 ;; 13832 sparc) 13833 VAR_CPU=sparc 13834 VAR_CPU_ARCH=sparc 13835 VAR_CPU_BITS=32 13836 VAR_CPU_ENDIAN=big 13837 ;; 13838 sparcv9|sparc64) 13839 VAR_CPU=sparcv9 13840 VAR_CPU_ARCH=sparc 13841 VAR_CPU_BITS=64 13842 VAR_CPU_ENDIAN=big 13843 ;; 13844 *) 13845 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13846 ;; 13847 esac 13848 13849 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13850 OPENJDK_TARGET_OS="$VAR_OS" 13851 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13852 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13853 OPENJDK_TARGET_CPU="$VAR_CPU" 13854 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13855 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13856 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13857 13858 13859 13860 13861 13862 13863 13864 13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13866 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13868 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13869 13870 13871 13872 # Check whether --with-target-bits was given. 13873 if test "${with_target_bits+set}" = set; then : 13874 withval=$with_target_bits; 13875 fi 13876 13877 13878 # We have three types of compiles: 13879 # native == normal compilation, target system == build system 13880 # cross == traditional cross compilation, target system != build system; special toolchain needed 13881 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13882 # 13883 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13884 # We're doing a proper cross-compilation 13885 COMPILE_TYPE="cross" 13886 else 13887 COMPILE_TYPE="native" 13888 fi 13889 13890 if test "x$with_target_bits" != x; then 13891 if test "x$COMPILE_TYPE" = "xcross"; then 13892 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13893 fi 13894 13895 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13896 # A reduced build is requested 13897 COMPILE_TYPE="reduced" 13898 OPENJDK_TARGET_CPU_BITS=32 13899 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13900 OPENJDK_TARGET_CPU=x86 13901 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13902 OPENJDK_TARGET_CPU=sparc 13903 else 13904 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13905 fi 13906 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13907 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 13908 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13910 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13911 else 13912 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13913 fi 13914 fi 13915 13916 13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13918 $as_echo_n "checking compilation type... " >&6; } 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13920 $as_echo "$COMPILE_TYPE" >&6; } 13921 13922 13923 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13924 REQUIRED_OS_NAME=SunOS 13925 REQUIRED_OS_VERSION=5.10 13926 fi 13927 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13928 REQUIRED_OS_NAME=Linux 13929 REQUIRED_OS_VERSION=2.6 13930 fi 13931 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13932 REQUIRED_OS_NAME=Windows 13933 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13934 REQUIRED_OS_VERSION=5.2 13935 else 13936 REQUIRED_OS_VERSION=5.1 13937 fi 13938 fi 13939 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13940 REQUIRED_OS_NAME=Darwin 13941 REQUIRED_OS_VERSION=11.2 13942 fi 13943 13944 13945 13946 13947 13948 # Also store the legacy naming of the cpu. 13949 # Ie i586 and amd64 instead of x86 and x86_64 13950 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13951 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13952 OPENJDK_TARGET_CPU_LEGACY="i586" 13953 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13954 # On all platforms except MacOSX replace x86_64 with amd64. 13955 OPENJDK_TARGET_CPU_LEGACY="amd64" 13956 fi 13957 13958 13959 # And the second legacy naming of the cpu. 13960 # Ie i386 and amd64 instead of x86 and x86_64. 13961 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13962 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13963 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13964 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13965 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13966 fi 13967 13968 13969 # This is the name of the cpu (but using i386 and amd64 instead of 13970 # x86 and x86_64, respectively), preceeded by a /, to be used when 13971 # locating libraries. On macosx, it's empty, though. 13972 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13973 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13974 OPENJDK_TARGET_CPU_LIBDIR="" 13975 fi 13976 13977 13978 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13979 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13980 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13981 OPENJDK_TARGET_CPU_ISADIR="" 13982 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13983 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13984 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13985 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13986 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13987 fi 13988 fi 13989 13990 13991 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13992 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13993 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13994 # On linux only, we replace x86 with i386. 13995 OPENJDK_TARGET_CPU_OSARCH="i386" 13996 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13997 # On all platforms except macosx, we replace x86_64 with amd64. 13998 OPENJDK_TARGET_CPU_OSARCH="amd64" 13999 fi 14000 14001 14002 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 14003 if test "x$OPENJDK_TARGET_CPU" = xx86; then 14004 OPENJDK_TARGET_CPU_JLI="i386" 14005 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14006 # On all platforms except macosx, we replace x86_64 with amd64. 14007 OPENJDK_TARGET_CPU_JLI="amd64" 14008 fi 14009 # Now setup the -D flags for building libjli. 14010 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 14011 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 14012 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 14013 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 14014 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 14015 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 14016 fi 14017 fi 14018 14019 14020 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 14021 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 14022 OPENJDK_TARGET_OS_API_DIR="solaris" 14023 fi 14024 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 14025 OPENJDK_TARGET_OS_API_DIR="windows" 14026 fi 14027 14028 14029 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 14030 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 14031 else 14032 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 14033 fi 14034 14035 14036 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14037 A_LP64="LP64:=" 14038 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 14039 # unpack200.exe 14040 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 14041 ADD_LP64="-D_LP64=1" 14042 fi 14043 fi 14044 LP64=$A_LP64 14045 14046 14047 if test "x$COMPILE_TYPE" = "xcross"; then 14048 # FIXME: ... or should this include reduced builds..? 14049 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 14050 else 14051 DEFINE_CROSS_COMPILE_ARCH="" 14052 fi 14053 14054 14055 # ZERO_ARCHDEF is used to enable architecture-specific code 14056 case "${OPENJDK_TARGET_CPU}" in 14057 ppc) ZERO_ARCHDEF=PPC32 ;; 14058 ppc64) ZERO_ARCHDEF=PPC64 ;; 14059 s390*) ZERO_ARCHDEF=S390 ;; 14060 sparc*) ZERO_ARCHDEF=SPARC ;; 14061 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14062 x86) ZERO_ARCHDEF=IA32 ;; 14063 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14064 esac 14065 14066 14067 14068 14069 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14070 14071 # Save the current directory this script was started from 14072 CURDIR="$PWD" 14073 14074 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14075 PATH_SEP=";" 14076 14077 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14078 if test $SRC_ROOT_LENGTH -gt 100; then 14079 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14080 fi 14081 14082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14084 $as_echo_n "checking cygwin release... " >&6; } 14085 CYGWIN_VERSION=`$UNAME -r` 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14087 $as_echo "$CYGWIN_VERSION" >&6; } 14088 WINDOWS_ENV_VENDOR='cygwin' 14089 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14090 14091 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 14092 if test "x$CYGWIN_VERSION_OLD" != x; then 14093 { $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 14094 $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;} 14095 as_fn_error $? "Cannot continue" "$LINENO" 5 14096 fi 14097 if test "x$CYGPATH" = x; then 14098 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14099 fi 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14101 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14102 # The cmd output ends with Windows line endings (CR/LF) 14103 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 14104 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14105 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14107 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14108 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14109 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14110 if test "x$test_cygdrive_prefix" = x; then 14111 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14112 fi 14113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14115 $as_echo_n "checking msys release... " >&6; } 14116 MSYS_VERSION=`$UNAME -r` 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14118 $as_echo "$MSYS_VERSION" >&6; } 14119 14120 WINDOWS_ENV_VENDOR='msys' 14121 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14122 14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14124 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14125 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14126 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14127 14128 windows_path="$MSYS_ROOT_PATH" 14129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14130 unix_path=`$CYGPATH -u "$windows_path"` 14131 MSYS_ROOT_PATH="$unix_path" 14132 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14133 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14134 MSYS_ROOT_PATH="$unix_path" 14135 fi 14136 14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14138 $as_echo "$MSYS_ROOT_PATH" >&6; } 14139 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14140 else 14141 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14142 fi 14143 14144 # Test if windows or unix (cygwin/msys) find is first in path. 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14146 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14147 FIND_BINARY_OUTPUT=`find --version 2>&1` 14148 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14150 $as_echo "unix style" >&6; } 14151 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14153 $as_echo "Windows" >&6; } 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14155 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14156 { $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 14157 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14158 as_fn_error $? "Cannot continue" "$LINENO" 5 14159 else 14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14161 $as_echo "unknown" >&6; } 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14163 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14164 fi 14165 14166 else 14167 PATH_SEP=":" 14168 fi 14169 14170 14171 # We get the top-level directory from the supporting wrappers. 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14173 $as_echo_n "checking for top-level directory... " >&6; } 14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14175 $as_echo "$TOPDIR" >&6; } 14176 14177 14178 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14179 14180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14181 14182 # Input might be given as Windows format, start by converting to 14183 # unix format. 14184 path="$CURDIR" 14185 new_path=`$CYGPATH -u "$path"` 14186 14187 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14188 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14189 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14190 # "foo.exe" is OK but "foo" is an error. 14191 # 14192 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14193 # It is also a way to make sure we got the proper file name for the real test later on. 14194 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14195 if test "x$test_shortpath" = x; then 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14197 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14198 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14199 fi 14200 14201 # Call helper function which possibly converts this using DOS-style short mode. 14202 # If so, the updated path is stored in $new_path. 14203 14204 input_path="$new_path" 14205 # Check if we need to convert this using DOS-style short mode. If the path 14206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14207 # take no chances and rewrite it. 14208 # Note: m4 eats our [], so we need to use [ and ] instead. 14209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14210 if test "x$has_forbidden_chars" != x; then 14211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14212 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14213 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14214 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14215 # Going to short mode and back again did indeed matter. Since short mode is 14216 # case insensitive, let's make it lowercase to improve readability. 14217 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14218 # Now convert it back to Unix-style (cygpath) 14219 input_path=`$CYGPATH -u "$shortmode_path"` 14220 new_path="$input_path" 14221 fi 14222 fi 14223 14224 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14225 if test "x$test_cygdrive_prefix" = x; then 14226 # As a simple fix, exclude /usr/bin since it's not a real path. 14227 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14228 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14229 # a path prefixed by /cygdrive for fixpath to work. 14230 new_path="$CYGWIN_ROOT_PATH$input_path" 14231 fi 14232 fi 14233 14234 14235 if test "x$path" != "x$new_path"; then 14236 CURDIR="$new_path" 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14238 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14239 fi 14240 14241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14242 14243 path="$CURDIR" 14244 has_colon=`$ECHO $path | $GREP ^.:` 14245 new_path="$path" 14246 if test "x$has_colon" = x; then 14247 # Not in mixed or Windows style, start by that. 14248 new_path=`cmd //c echo $path` 14249 fi 14250 14251 14252 input_path="$new_path" 14253 # Check if we need to convert this using DOS-style short mode. If the path 14254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14255 # take no chances and rewrite it. 14256 # Note: m4 eats our [], so we need to use [ and ] instead. 14257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14258 if test "x$has_forbidden_chars" != x; then 14259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14260 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14261 fi 14262 14263 14264 windows_path="$new_path" 14265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14266 unix_path=`$CYGPATH -u "$windows_path"` 14267 new_path="$unix_path" 14268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14269 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14270 new_path="$unix_path" 14271 fi 14272 14273 if test "x$path" != "x$new_path"; then 14274 CURDIR="$new_path" 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14276 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14277 fi 14278 14279 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14280 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14281 14282 else 14283 # We're on a posix platform. Hooray! :) 14284 path="$CURDIR" 14285 has_space=`$ECHO "$path" | $GREP " "` 14286 if test "x$has_space" != x; then 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14288 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14289 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14290 fi 14291 14292 # Use eval to expand a potential ~ 14293 eval path="$path" 14294 if test ! -f "$path" && test ! -d "$path"; then 14295 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14296 fi 14297 14298 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14299 fi 14300 14301 14302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14303 14304 # Input might be given as Windows format, start by converting to 14305 # unix format. 14306 path="$TOPDIR" 14307 new_path=`$CYGPATH -u "$path"` 14308 14309 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14310 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14311 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14312 # "foo.exe" is OK but "foo" is an error. 14313 # 14314 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14315 # It is also a way to make sure we got the proper file name for the real test later on. 14316 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14317 if test "x$test_shortpath" = x; then 14318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14319 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14320 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14321 fi 14322 14323 # Call helper function which possibly converts this using DOS-style short mode. 14324 # If so, the updated path is stored in $new_path. 14325 14326 input_path="$new_path" 14327 # Check if we need to convert this using DOS-style short mode. If the path 14328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14329 # take no chances and rewrite it. 14330 # Note: m4 eats our [], so we need to use [ and ] instead. 14331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14332 if test "x$has_forbidden_chars" != x; then 14333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14334 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14335 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14336 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14337 # Going to short mode and back again did indeed matter. Since short mode is 14338 # case insensitive, let's make it lowercase to improve readability. 14339 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14340 # Now convert it back to Unix-style (cygpath) 14341 input_path=`$CYGPATH -u "$shortmode_path"` 14342 new_path="$input_path" 14343 fi 14344 fi 14345 14346 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14347 if test "x$test_cygdrive_prefix" = x; then 14348 # As a simple fix, exclude /usr/bin since it's not a real path. 14349 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14350 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14351 # a path prefixed by /cygdrive for fixpath to work. 14352 new_path="$CYGWIN_ROOT_PATH$input_path" 14353 fi 14354 fi 14355 14356 14357 if test "x$path" != "x$new_path"; then 14358 TOPDIR="$new_path" 14359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14360 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14361 fi 14362 14363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14364 14365 path="$TOPDIR" 14366 has_colon=`$ECHO $path | $GREP ^.:` 14367 new_path="$path" 14368 if test "x$has_colon" = x; then 14369 # Not in mixed or Windows style, start by that. 14370 new_path=`cmd //c echo $path` 14371 fi 14372 14373 14374 input_path="$new_path" 14375 # Check if we need to convert this using DOS-style short mode. If the path 14376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14377 # take no chances and rewrite it. 14378 # Note: m4 eats our [], so we need to use [ and ] instead. 14379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14380 if test "x$has_forbidden_chars" != x; then 14381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14382 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14383 fi 14384 14385 14386 windows_path="$new_path" 14387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14388 unix_path=`$CYGPATH -u "$windows_path"` 14389 new_path="$unix_path" 14390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14391 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14392 new_path="$unix_path" 14393 fi 14394 14395 if test "x$path" != "x$new_path"; then 14396 TOPDIR="$new_path" 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14398 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14399 fi 14400 14401 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14402 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14403 14404 else 14405 # We're on a posix platform. Hooray! :) 14406 path="$TOPDIR" 14407 has_space=`$ECHO "$path" | $GREP " "` 14408 if test "x$has_space" != x; then 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14410 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14411 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14412 fi 14413 14414 # Use eval to expand a potential ~ 14415 eval path="$path" 14416 if test ! -f "$path" && test ! -d "$path"; then 14417 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14418 fi 14419 14420 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14421 fi 14422 14423 # SRC_ROOT is a traditional alias for TOPDIR. 14424 SRC_ROOT=$TOPDIR 14425 14426 # Locate the directory of this script. 14427 AUTOCONF_DIR=$TOPDIR/common/autoconf 14428 14429 14430 # Setup default logging of stdout and stderr to build.log in the output root. 14431 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14432 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14433 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14434 14435 14436 14437 14438 14439 # Check if it's a pure open build or if custom sources are to be used. 14440 14441 # Check whether --enable-openjdk-only was given. 14442 if test "${enable_openjdk_only+set}" = set; then : 14443 enableval=$enable_openjdk_only; 14444 else 14445 enable_openjdk_only="no" 14446 fi 14447 14448 14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14450 $as_echo_n "checking for presence of closed sources... " >&6; } 14451 if test -d "$SRC_ROOT/jdk/src/closed"; then 14452 CLOSED_SOURCE_PRESENT=yes 14453 else 14454 CLOSED_SOURCE_PRESENT=no 14455 fi 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14457 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14458 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14460 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14461 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14463 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14464 14465 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14466 OPENJDK=true 14467 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14469 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14470 fi 14471 else 14472 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14473 OPENJDK=true 14474 else 14475 OPENJDK=false 14476 fi 14477 fi 14478 14479 if test "x$OPENJDK" = "xtrue"; then 14480 SET_OPENJDK="OPENJDK=true" 14481 fi 14482 14483 14484 14485 14486 # These are needed to be able to create a configuration name (and thus the output directory) 14487 14488 ############################################################################### 14489 # 14490 # Check which variant of the JDK that we want to build. 14491 # Currently we have: 14492 # normal: standard edition 14493 # but the custom make system may add other variants 14494 # 14495 # Effectively the JDK variant gives a name to a specific set of 14496 # modules to compile into the JDK. In the future, these modules 14497 # might even be Jigsaw modules. 14498 # 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14500 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14501 14502 # Check whether --with-jdk-variant was given. 14503 if test "${with_jdk_variant+set}" = set; then : 14504 withval=$with_jdk_variant; 14505 fi 14506 14507 14508 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14509 JDK_VARIANT="normal" 14510 else 14511 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14512 fi 14513 14514 14515 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14517 $as_echo "$JDK_VARIANT" >&6; } 14518 14519 14520 ############################################################################### 14521 # 14522 # Check which interpreter of the JVM we want to build. 14523 # Currently we have: 14524 # template: Template interpreter (the default) 14525 # cpp : C++ interpreter 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14527 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14528 14529 # Check whether --with-jvm-interpreter was given. 14530 if test "${with_jvm_interpreter+set}" = set; then : 14531 withval=$with_jvm_interpreter; 14532 fi 14533 14534 14535 if test "x$with_jvm_interpreter" = x; then 14536 with_jvm_interpreter="template" 14537 fi 14538 14539 JVM_INTERPRETER="$with_jvm_interpreter" 14540 14541 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14542 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14543 fi 14544 14545 14546 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14548 $as_echo "$with_jvm_interpreter" >&6; } 14549 14550 14551 14552 ############################################################################### 14553 # 14554 # Check which variants of the JVM that we want to build. 14555 # Currently we have: 14556 # server: normal interpreter and a tiered C1/C2 compiler 14557 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14558 # minimal1: reduced form of client with optional VM services and features stripped out 14559 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14560 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14561 # zero: no machine code interpreter, no compiler 14562 # zeroshark: zero interpreter and shark/llvm compiler backend 14563 # core: interpreter only, no compiler (only works on some platforms) 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14565 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14566 14567 # Check whether --with-jvm-variants was given. 14568 if test "${with_jvm_variants+set}" = set; then : 14569 withval=$with_jvm_variants; 14570 fi 14571 14572 14573 if test "x$with_jvm_variants" = x; then 14574 with_jvm_variants="server" 14575 fi 14576 14577 JVM_VARIANTS=",$with_jvm_variants," 14578 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'` 14579 14580 if test "x$TEST_VARIANTS" != "x,"; then 14581 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14582 fi 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14584 $as_echo "$with_jvm_variants" >&6; } 14585 14586 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14587 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14588 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14589 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14590 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14591 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14592 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14593 14594 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14595 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14596 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14597 fi 14598 fi 14599 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14600 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14601 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14602 fi 14603 fi 14604 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14605 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14606 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14607 fi 14608 fi 14609 14610 # Replace the commas with AND for use in the build directory name. 14611 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14612 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'` 14613 if test "x$COUNT_VARIANTS" != "x,1"; then 14614 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14615 else 14616 BUILDING_MULTIPLE_JVM_VARIANTS=no 14617 fi 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 INCLUDE_SA=true 14629 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14630 INCLUDE_SA=false 14631 fi 14632 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14633 INCLUDE_SA=false 14634 fi 14635 if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then 14636 INCLUDE_SA=false 14637 fi 14638 14639 14640 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14641 MACOSX_UNIVERSAL="false" 14642 fi 14643 14644 14645 14646 14647 ############################################################################### 14648 # 14649 # Set the debug level 14650 # release: no debug information, all optimizations, no asserts. 14651 # fastdebug: debug information (-g), all optimizations, all asserts 14652 # slowdebug: debug information (-g), no optimizations, all asserts 14653 # 14654 DEBUG_LEVEL="release" 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14656 $as_echo_n "checking which debug level to use... " >&6; } 14657 # Check whether --enable-debug was given. 14658 if test "${enable_debug+set}" = set; then : 14659 enableval=$enable_debug; 14660 ENABLE_DEBUG="${enableval}" 14661 DEBUG_LEVEL="fastdebug" 14662 14663 else 14664 ENABLE_DEBUG="no" 14665 fi 14666 14667 14668 14669 # Check whether --with-debug-level was given. 14670 if test "${with_debug_level+set}" = set; then : 14671 withval=$with_debug_level; 14672 DEBUG_LEVEL="${withval}" 14673 if test "x$ENABLE_DEBUG" = xyes; then 14674 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14675 fi 14676 14677 fi 14678 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14680 $as_echo "$DEBUG_LEVEL" >&6; } 14681 14682 if test "x$DEBUG_LEVEL" != xrelease && \ 14683 test "x$DEBUG_LEVEL" != xfastdebug && \ 14684 test "x$DEBUG_LEVEL" != xslowdebug; then 14685 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14686 fi 14687 14688 14689 ############################################################################### 14690 # 14691 # Setup legacy vars/targets and new vars to deal with different debug levels. 14692 # 14693 14694 case $DEBUG_LEVEL in 14695 release ) 14696 VARIANT="OPT" 14697 FASTDEBUG="false" 14698 DEBUG_CLASSFILES="false" 14699 BUILD_VARIANT_RELEASE="" 14700 HOTSPOT_DEBUG_LEVEL="product" 14701 HOTSPOT_EXPORT="product" 14702 ;; 14703 fastdebug ) 14704 VARIANT="DBG" 14705 FASTDEBUG="true" 14706 DEBUG_CLASSFILES="true" 14707 BUILD_VARIANT_RELEASE="-fastdebug" 14708 HOTSPOT_DEBUG_LEVEL="fastdebug" 14709 HOTSPOT_EXPORT="fastdebug" 14710 ;; 14711 slowdebug ) 14712 VARIANT="DBG" 14713 FASTDEBUG="false" 14714 DEBUG_CLASSFILES="true" 14715 BUILD_VARIANT_RELEASE="-debug" 14716 HOTSPOT_DEBUG_LEVEL="jvmg" 14717 HOTSPOT_EXPORT="debug" 14718 ;; 14719 esac 14720 14721 ##### 14722 # Generate the legacy makefile targets for hotspot. 14723 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14724 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14725 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14726 # But until then ... 14727 HOTSPOT_TARGET="" 14728 14729 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14730 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14731 fi 14732 14733 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14734 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14735 fi 14736 14737 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14738 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14739 fi 14740 14741 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14742 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14743 fi 14744 14745 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14746 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14747 fi 14748 14749 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14750 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14751 fi 14752 14753 if test "x$JVM_VARIANT_CORE" = xtrue; then 14754 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14755 fi 14756 14757 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14758 14759 # On Macosx universal binaries are produced, but they only contain 14760 # 64 bit intel. This invalidates control of which jvms are built 14761 # from configure, but only server is valid anyway. Fix this 14762 # when hotspot makefiles are rewritten. 14763 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14764 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14765 fi 14766 14767 ##### 14768 14769 14770 14771 14772 14773 14774 14775 14776 # With basic setup done, call the custom early hook. 14777 14778 14779 # Check if we have devkits, extra paths or sysroot set. 14780 14781 14782 # Check whether --with-devkit was given. 14783 if test "${with_devkit+set}" = set; then : 14784 withval=$with_devkit; 14785 fi 14786 14787 14788 if test "x$with_devkit" = xyes; then 14789 as_fn_error $? "--with-devkit must have a value" "$LINENO" 5 14790 elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then 14791 14792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14793 14794 # Input might be given as Windows format, start by converting to 14795 # unix format. 14796 path="$with_devkit" 14797 new_path=`$CYGPATH -u "$path"` 14798 14799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14802 # "foo.exe" is OK but "foo" is an error. 14803 # 14804 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14805 # It is also a way to make sure we got the proper file name for the real test later on. 14806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14807 if test "x$test_shortpath" = x; then 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14809 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14810 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14811 fi 14812 14813 # Call helper function which possibly converts this using DOS-style short mode. 14814 # If so, the updated path is stored in $new_path. 14815 14816 input_path="$new_path" 14817 # Check if we need to convert this using DOS-style short mode. If the path 14818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14819 # take no chances and rewrite it. 14820 # Note: m4 eats our [], so we need to use [ and ] instead. 14821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14822 if test "x$has_forbidden_chars" != x; then 14823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14824 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14825 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14826 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14827 # Going to short mode and back again did indeed matter. Since short mode is 14828 # case insensitive, let's make it lowercase to improve readability. 14829 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14830 # Now convert it back to Unix-style (cygpath) 14831 input_path=`$CYGPATH -u "$shortmode_path"` 14832 new_path="$input_path" 14833 fi 14834 fi 14835 14836 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14837 if test "x$test_cygdrive_prefix" = x; then 14838 # As a simple fix, exclude /usr/bin since it's not a real path. 14839 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14840 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14841 # a path prefixed by /cygdrive for fixpath to work. 14842 new_path="$CYGWIN_ROOT_PATH$input_path" 14843 fi 14844 fi 14845 14846 14847 if test "x$path" != "x$new_path"; then 14848 with_devkit="$new_path" 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14850 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14851 fi 14852 14853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14854 14855 path="$with_devkit" 14856 has_colon=`$ECHO $path | $GREP ^.:` 14857 new_path="$path" 14858 if test "x$has_colon" = x; then 14859 # Not in mixed or Windows style, start by that. 14860 new_path=`cmd //c echo $path` 14861 fi 14862 14863 14864 input_path="$new_path" 14865 # Check if we need to convert this using DOS-style short mode. If the path 14866 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14867 # take no chances and rewrite it. 14868 # Note: m4 eats our [], so we need to use [ and ] instead. 14869 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14870 if test "x$has_forbidden_chars" != x; then 14871 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14872 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14873 fi 14874 14875 14876 windows_path="$new_path" 14877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14878 unix_path=`$CYGPATH -u "$windows_path"` 14879 new_path="$unix_path" 14880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14881 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14882 new_path="$unix_path" 14883 fi 14884 14885 if test "x$path" != "x$new_path"; then 14886 with_devkit="$new_path" 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14888 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14889 fi 14890 14891 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14892 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14893 14894 else 14895 # We're on a posix platform. Hooray! :) 14896 path="$with_devkit" 14897 has_space=`$ECHO "$path" | $GREP " "` 14898 if test "x$has_space" != x; then 14899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14900 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14901 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14902 fi 14903 14904 # Use eval to expand a potential ~ 14905 eval path="$path" 14906 if test ! -f "$path" && test ! -d "$path"; then 14907 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14908 fi 14909 14910 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14911 fi 14912 14913 DEVKIT_ROOT="$with_devkit" 14914 # Check for a meta data info file in the root of the devkit 14915 if test -f "$DEVKIT_ROOT/devkit.info"; then 14916 . $DEVKIT_ROOT/devkit.info 14917 # This potentially sets the following: 14918 # A descriptive name of the devkit 14919 14920 if test "x$DEVKIT_NAME" = x; then 14921 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 14922 fi 14923 14924 # Corresponds to --with-extra-path 14925 14926 if test "x$DEVKIT_EXTRA_PATH" = x; then 14927 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 14928 fi 14929 14930 # Corresponds to --with-toolchain-path 14931 14932 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14933 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 14934 fi 14935 14936 # Corresponds to --with-sysroot 14937 14938 if test "x$DEVKIT_SYSROOT" = x; then 14939 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 14940 fi 14941 14942 14943 # Identifies the Visual Studio version in the devkit 14944 14945 if test "x$DEVKIT_VS_VERSION" = x; then 14946 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 14947 fi 14948 14949 # The Visual Studio include environment variable 14950 14951 if test "x$DEVKIT_VS_INCLUDE" = x; then 14952 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 14953 fi 14954 14955 # The Visual Studio lib environment variable 14956 14957 if test "x$DEVKIT_VS_LIB" = x; then 14958 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 14959 fi 14960 14961 # Corresponds to --with-msvcr-dll 14962 14963 if test "x$DEVKIT_MSVCR_DLL" = x; then 14964 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 14965 fi 14966 14967 # Corresponds to --with-msvcp-dll 14968 14969 if test "x$DEVKIT_MSVCP_DLL" = x; then 14970 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 14971 fi 14972 14973 # Corresponds to --with-ucrt-dll-dir 14974 14975 if test "x$DEVKIT_UCRT_DLL_DIR" = x; then 14976 eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}" 14977 fi 14978 14979 fi 14980 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14982 $as_echo_n "checking for devkit... " >&6; } 14983 if test "x$DEVKIT_NAME" != x; then 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14985 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14986 else 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14988 $as_echo "$DEVKIT_ROOT" >&6; } 14989 fi 14990 14991 14992 if test "x$DEVKIT_EXTRA_PATH" != x; then 14993 if test "x$EXTRA_PATH" = x; then 14994 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14995 else 14996 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14997 fi 14998 fi 14999 15000 15001 # Fallback default of just /bin if DEVKIT_PATH is not defined 15002 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15003 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 15004 fi 15005 15006 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 15007 if test "x$TOOLCHAIN_PATH" = x; then 15008 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 15009 else 15010 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 15011 fi 15012 fi 15013 15014 15015 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 15016 # places for backwards compatiblity. 15017 if test "x$DEVKIT_SYSROOT" != x; then 15018 SYSROOT="$DEVKIT_SYSROOT" 15019 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 15020 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 15021 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 15022 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 15023 fi 15024 15025 if test "x$DEVKIT_ROOT" != x; then 15026 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 15027 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15028 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 15029 fi 15030 15031 fi 15032 fi 15033 15034 # You can force the sysroot if the sysroot encoded into the compiler tools 15035 # is not correct. 15036 15037 # Check whether --with-sys-root was given. 15038 if test "${with_sys_root+set}" = set; then : 15039 withval=$with_sys_root; SYSROOT=$with_sys_root 15040 15041 fi 15042 15043 15044 15045 # Check whether --with-sysroot was given. 15046 if test "${with_sysroot+set}" = set; then : 15047 withval=$with_sysroot; SYSROOT=$with_sysroot 15048 15049 fi 15050 15051 15052 15053 # Check whether --with-tools-dir was given. 15054 if test "${with_tools_dir+set}" = set; then : 15055 withval=$with_tools_dir; 15056 if test "x$with_tools_dir" != x; then 15057 if test "x$TOOLCHAIN_PATH" = x; then 15058 TOOLCHAIN_PATH="$with_tools_dir" 15059 else 15060 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 15061 fi 15062 fi 15063 15064 15065 fi 15066 15067 15068 15069 # Check whether --with-toolchain-path was given. 15070 if test "${with_toolchain_path+set}" = set; then : 15071 withval=$with_toolchain_path; 15072 if test "x$with_toolchain_path" != x; then 15073 if test "x$TOOLCHAIN_PATH" = x; then 15074 TOOLCHAIN_PATH="$with_toolchain_path" 15075 else 15076 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15077 fi 15078 fi 15079 15080 15081 fi 15082 15083 15084 15085 # Check whether --with-extra-path was given. 15086 if test "${with_extra_path+set}" = set; then : 15087 withval=$with_extra_path; 15088 if test "x$with_extra_path" != x; then 15089 if test "x$EXTRA_PATH" = x; then 15090 EXTRA_PATH="$with_extra_path" 15091 else 15092 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15093 fi 15094 fi 15095 15096 15097 fi 15098 15099 15100 # Prepend the extra path to the global path 15101 15102 if test "x$EXTRA_PATH" != x; then 15103 if test "x$PATH" = x; then 15104 PATH="$EXTRA_PATH" 15105 else 15106 PATH="$EXTRA_PATH:$PATH" 15107 fi 15108 fi 15109 15110 15111 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15112 # Add extra search paths on solaris for utilities like ar and as etc... 15113 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15114 fi 15115 15116 # Xcode version will be validated later 15117 15118 # Check whether --with-xcode-path was given. 15119 if test "${with_xcode_path+set}" = set; then : 15120 withval=$with_xcode_path; XCODE_PATH=$with_xcode_path 15121 15122 fi 15123 15124 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15126 $as_echo_n "checking for sysroot... " >&6; } 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15128 $as_echo "$SYSROOT" >&6; } 15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15130 $as_echo_n "checking for toolchain path... " >&6; } 15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15132 $as_echo "$TOOLCHAIN_PATH" >&6; } 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15134 $as_echo_n "checking for extra path... " >&6; } 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15136 $as_echo "$EXTRA_PATH" >&6; } 15137 15138 15139 # To properly create a configuration name, we need to have the OpenJDK target 15140 # and options (variants and debug level) parsed. 15141 15142 15143 15144 # Check whether --with-conf-name was given. 15145 if test "${with_conf_name+set}" = set; then : 15146 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15147 fi 15148 15149 15150 # Test from where we are running configure, in or outside of src root. 15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15152 $as_echo_n "checking where to store configuration... " >&6; } 15153 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15154 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15155 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15156 # We are running configure from the src root. 15157 # Create a default ./build/target-variant-debuglevel output root. 15158 if test "x${CONF_NAME}" = x; then 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15160 $as_echo "in default location" >&6; } 15161 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15162 else 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15164 $as_echo "in build directory with custom name" >&6; } 15165 fi 15166 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15167 $MKDIR -p "$OUTPUT_ROOT" 15168 if test ! -d "$OUTPUT_ROOT"; then 15169 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15170 fi 15171 else 15172 # We are running configure from outside of the src dir. 15173 # Then use the current directory as output dir! 15174 # If configuration is situated in normal build directory, just use the build 15175 # directory name as configuration name, otherwise use the complete path. 15176 if test "x${CONF_NAME}" = x; then 15177 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15178 fi 15179 OUTPUT_ROOT="$CURDIR" 15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15181 $as_echo "in current directory" >&6; } 15182 15183 # WARNING: This might be a bad thing to do. You need to be sure you want to 15184 # have a configuration in this directory. Do some sanity checks! 15185 15186 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15187 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15188 # other files 15189 files_present=`$LS $OUTPUT_ROOT` 15190 # Configure has already touched config.log and confdefs.h in the current dir when this check 15191 # is performed. 15192 filtered_files=`$ECHO "$files_present" \ 15193 | $SED -e 's/config.log//g' \ 15194 -e 's/confdefs.h//g' \ 15195 -e 's/fixpath.exe//g' \ 15196 -e 's/ //g' \ 15197 | $TR -d '\n'` 15198 if test "x$filtered_files" != x; then 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15200 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15201 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15202 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15203 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15204 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15206 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15208 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15210 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15211 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15212 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15213 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15214 fi 15215 fi 15216 fi 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15218 $as_echo_n "checking what configuration name to use... " >&6; } 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15220 $as_echo "$CONF_NAME" >&6; } 15221 15222 15223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15224 15225 # Input might be given as Windows format, start by converting to 15226 # unix format. 15227 path="$OUTPUT_ROOT" 15228 new_path=`$CYGPATH -u "$path"` 15229 15230 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15231 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15232 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15233 # "foo.exe" is OK but "foo" is an error. 15234 # 15235 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15236 # It is also a way to make sure we got the proper file name for the real test later on. 15237 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15238 if test "x$test_shortpath" = x; then 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15240 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15241 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15242 fi 15243 15244 # Call helper function which possibly converts this using DOS-style short mode. 15245 # If so, the updated path is stored in $new_path. 15246 15247 input_path="$new_path" 15248 # Check if we need to convert this using DOS-style short mode. If the path 15249 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15250 # take no chances and rewrite it. 15251 # Note: m4 eats our [], so we need to use [ and ] instead. 15252 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15253 if test "x$has_forbidden_chars" != x; then 15254 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15255 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15256 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15257 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15258 # Going to short mode and back again did indeed matter. Since short mode is 15259 # case insensitive, let's make it lowercase to improve readability. 15260 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15261 # Now convert it back to Unix-style (cygpath) 15262 input_path=`$CYGPATH -u "$shortmode_path"` 15263 new_path="$input_path" 15264 fi 15265 fi 15266 15267 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15268 if test "x$test_cygdrive_prefix" = x; then 15269 # As a simple fix, exclude /usr/bin since it's not a real path. 15270 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15271 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15272 # a path prefixed by /cygdrive for fixpath to work. 15273 new_path="$CYGWIN_ROOT_PATH$input_path" 15274 fi 15275 fi 15276 15277 15278 if test "x$path" != "x$new_path"; then 15279 OUTPUT_ROOT="$new_path" 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15281 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15282 fi 15283 15284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15285 15286 path="$OUTPUT_ROOT" 15287 has_colon=`$ECHO $path | $GREP ^.:` 15288 new_path="$path" 15289 if test "x$has_colon" = x; then 15290 # Not in mixed or Windows style, start by that. 15291 new_path=`cmd //c echo $path` 15292 fi 15293 15294 15295 input_path="$new_path" 15296 # Check if we need to convert this using DOS-style short mode. If the path 15297 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15298 # take no chances and rewrite it. 15299 # Note: m4 eats our [], so we need to use [ and ] instead. 15300 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15301 if test "x$has_forbidden_chars" != x; then 15302 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15303 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15304 fi 15305 15306 15307 windows_path="$new_path" 15308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15309 unix_path=`$CYGPATH -u "$windows_path"` 15310 new_path="$unix_path" 15311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15313 new_path="$unix_path" 15314 fi 15315 15316 if test "x$path" != "x$new_path"; then 15317 OUTPUT_ROOT="$new_path" 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15319 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15320 fi 15321 15322 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15323 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15324 15325 else 15326 # We're on a posix platform. Hooray! :) 15327 path="$OUTPUT_ROOT" 15328 has_space=`$ECHO "$path" | $GREP " "` 15329 if test "x$has_space" != x; then 15330 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15331 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15332 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15333 fi 15334 15335 # Use eval to expand a potential ~ 15336 eval path="$path" 15337 if test ! -f "$path" && test ! -d "$path"; then 15338 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15339 fi 15340 15341 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15342 fi 15343 15344 15345 SPEC=$OUTPUT_ROOT/spec.gmk 15346 15347 CONF_NAME=$CONF_NAME 15348 15349 OUTPUT_ROOT=$OUTPUT_ROOT 15350 15351 15352 # Most of the probed defines are put into config.h 15353 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15354 15355 # The spec.gmk file contains all variables for the make system. 15356 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15357 15358 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15359 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15360 15361 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15362 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15363 15364 # The compare.sh is used to compare the build output to other builds. 15365 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15366 15367 # Spec.sh is currently used by compare-objects.sh 15368 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15369 15370 # The generated Makefile knows where the spec.gmk is and where the source is. 15371 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15372 # which will look for generated configurations 15373 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15374 15375 15376 15377 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15378 15379 for ac_prog in apt-get yum port pkgutil pkgadd 15380 do 15381 # Extract the first word of "$ac_prog", so it can be a program name with args. 15382 set dummy $ac_prog; ac_word=$2 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15384 $as_echo_n "checking for $ac_word... " >&6; } 15385 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15386 $as_echo_n "(cached) " >&6 15387 else 15388 if test -n "$PKGHANDLER"; then 15389 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15390 else 15391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15392 for as_dir in $PATH 15393 do 15394 IFS=$as_save_IFS 15395 test -z "$as_dir" && as_dir=. 15396 for ac_exec_ext in '' $ac_executable_extensions; do 15397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15398 ac_cv_prog_PKGHANDLER="$ac_prog" 15399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15400 break 2 15401 fi 15402 done 15403 done 15404 IFS=$as_save_IFS 15405 15406 fi 15407 fi 15408 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15409 if test -n "$PKGHANDLER"; then 15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15411 $as_echo "$PKGHANDLER" >&6; } 15412 else 15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15414 $as_echo "no" >&6; } 15415 fi 15416 15417 15418 test -n "$PKGHANDLER" && break 15419 done 15420 15421 15422 15423 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15424 15425 15426 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15427 if test "x$MAKE" != x; then 15428 # User has supplied a make, test it. 15429 if test ! -f "$MAKE"; then 15430 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15431 fi 15432 15433 MAKE_CANDIDATE=""$MAKE"" 15434 DESCRIPTION="user supplied MAKE=$MAKE" 15435 if test "x$MAKE_CANDIDATE" != x; then 15436 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15437 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15438 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15439 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15440 if test "x$IS_GNU_MAKE" = x; then 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15442 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15443 else 15444 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15445 if test "x$IS_MODERN_MAKE" = x; then 15446 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15447 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15448 else 15449 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15451 MAKE_EXPECTED_ENV='cygwin' 15452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15453 MAKE_EXPECTED_ENV='msys' 15454 else 15455 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15456 fi 15457 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15458 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15459 else 15460 # Not relevant for non-Windows 15461 IS_MAKE_CORRECT_ENV=true 15462 fi 15463 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15464 { $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 15465 $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;} 15466 else 15467 FOUND_MAKE=$MAKE_CANDIDATE 15468 15469 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15470 15471 # First separate the path from the arguments. This will split at the first 15472 # space. 15473 complete="$FOUND_MAKE" 15474 path="${complete%% *}" 15475 tmp="$complete EOL" 15476 arguments="${tmp#* }" 15477 15478 # Input might be given as Windows format, start by converting to 15479 # unix format. 15480 new_path=`$CYGPATH -u "$path"` 15481 15482 # Now try to locate executable using which 15483 new_path=`$WHICH "$new_path" 2> /dev/null` 15484 # bat and cmd files are not always considered executable in cygwin causing which 15485 # to not find them 15486 if test "x$new_path" = x \ 15487 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15488 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15489 new_path=`$CYGPATH -u "$path"` 15490 fi 15491 if test "x$new_path" = x; then 15492 # Oops. Which didn't find the executable. 15493 # The splitting of arguments from the executable at a space might have been incorrect, 15494 # since paths with space are more likely in Windows. Give it another try with the whole 15495 # argument. 15496 path="$complete" 15497 arguments="EOL" 15498 new_path=`$CYGPATH -u "$path"` 15499 new_path=`$WHICH "$new_path" 2> /dev/null` 15500 # bat and cmd files are not always considered executable in cygwin causing which 15501 # to not find them 15502 if test "x$new_path" = x \ 15503 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15504 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15505 new_path=`$CYGPATH -u "$path"` 15506 fi 15507 if test "x$new_path" = x; then 15508 # It's still not found. Now this is an unrecoverable error. 15509 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15510 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15511 has_space=`$ECHO "$complete" | $GREP " "` 15512 if test "x$has_space" != x; then 15513 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15514 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15515 fi 15516 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15517 fi 15518 fi 15519 15520 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15521 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15522 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15523 # "foo.exe" is OK but "foo" is an error. 15524 # 15525 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15526 # It is also a way to make sure we got the proper file name for the real test later on. 15527 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15528 if test "x$test_shortpath" = x; then 15529 # Short path failed, file does not exist as specified. 15530 # Try adding .exe or .cmd 15531 if test -f "${new_path}.exe"; then 15532 input_to_shortpath="${new_path}.exe" 15533 elif test -f "${new_path}.cmd"; then 15534 input_to_shortpath="${new_path}.cmd" 15535 else 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15537 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15538 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15539 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15540 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15541 fi 15542 else 15543 input_to_shortpath="$new_path" 15544 fi 15545 15546 # Call helper function which possibly converts this using DOS-style short mode. 15547 # If so, the updated path is stored in $new_path. 15548 new_path="$input_to_shortpath" 15549 15550 input_path="$input_to_shortpath" 15551 # Check if we need to convert this using DOS-style short mode. If the path 15552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15553 # take no chances and rewrite it. 15554 # Note: m4 eats our [], so we need to use [ and ] instead. 15555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15556 if test "x$has_forbidden_chars" != x; then 15557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15558 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15559 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15560 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15561 # Going to short mode and back again did indeed matter. Since short mode is 15562 # case insensitive, let's make it lowercase to improve readability. 15563 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15564 # Now convert it back to Unix-style (cygpath) 15565 input_path=`$CYGPATH -u "$shortmode_path"` 15566 new_path="$input_path" 15567 fi 15568 fi 15569 15570 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15571 if test "x$test_cygdrive_prefix" = x; then 15572 # As a simple fix, exclude /usr/bin since it's not a real path. 15573 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15574 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15575 # a path prefixed by /cygdrive for fixpath to work. 15576 new_path="$CYGWIN_ROOT_PATH$input_path" 15577 fi 15578 fi 15579 15580 # remove trailing .exe if any 15581 new_path="${new_path/%.exe/}" 15582 15583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15584 15585 # First separate the path from the arguments. This will split at the first 15586 # space. 15587 complete="$FOUND_MAKE" 15588 path="${complete%% *}" 15589 tmp="$complete EOL" 15590 arguments="${tmp#* }" 15591 15592 # Input might be given as Windows format, start by converting to 15593 # unix format. 15594 new_path="$path" 15595 15596 windows_path="$new_path" 15597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15598 unix_path=`$CYGPATH -u "$windows_path"` 15599 new_path="$unix_path" 15600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15601 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15602 new_path="$unix_path" 15603 fi 15604 15605 15606 # Now try to locate executable using which 15607 new_path=`$WHICH "$new_path" 2> /dev/null` 15608 15609 if test "x$new_path" = x; then 15610 # Oops. Which didn't find the executable. 15611 # The splitting of arguments from the executable at a space might have been incorrect, 15612 # since paths with space are more likely in Windows. Give it another try with the whole 15613 # argument. 15614 path="$complete" 15615 arguments="EOL" 15616 new_path="$path" 15617 15618 windows_path="$new_path" 15619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15620 unix_path=`$CYGPATH -u "$windows_path"` 15621 new_path="$unix_path" 15622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15623 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15624 new_path="$unix_path" 15625 fi 15626 15627 15628 new_path=`$WHICH "$new_path" 2> /dev/null` 15629 # bat and cmd files are not always considered executable in MSYS causing which 15630 # to not find them 15631 if test "x$new_path" = x \ 15632 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15633 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15634 new_path="$path" 15635 15636 windows_path="$new_path" 15637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15638 unix_path=`$CYGPATH -u "$windows_path"` 15639 new_path="$unix_path" 15640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15642 new_path="$unix_path" 15643 fi 15644 15645 fi 15646 15647 if test "x$new_path" = x; then 15648 # It's still not found. Now this is an unrecoverable error. 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15650 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15651 has_space=`$ECHO "$complete" | $GREP " "` 15652 if test "x$has_space" != x; then 15653 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15654 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15655 fi 15656 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15657 fi 15658 fi 15659 15660 # Now new_path has a complete unix path to the binary 15661 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15662 # Keep paths in /bin as-is, but remove trailing .exe if any 15663 new_path="${new_path/%.exe/}" 15664 # Do not save /bin paths to all_fixpath_prefixes! 15665 else 15666 # Not in mixed or Windows style, start by that. 15667 new_path=`cmd //c echo $new_path` 15668 15669 input_path="$new_path" 15670 # Check if we need to convert this using DOS-style short mode. If the path 15671 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15672 # take no chances and rewrite it. 15673 # Note: m4 eats our [], so we need to use [ and ] instead. 15674 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15675 if test "x$has_forbidden_chars" != x; then 15676 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15677 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15678 fi 15679 15680 # Output is in $new_path 15681 15682 windows_path="$new_path" 15683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15684 unix_path=`$CYGPATH -u "$windows_path"` 15685 new_path="$unix_path" 15686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15688 new_path="$unix_path" 15689 fi 15690 15691 # remove trailing .exe if any 15692 new_path="${new_path/%.exe/}" 15693 15694 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15695 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15696 fi 15697 15698 else 15699 # We're on a posix platform. Hooray! :) 15700 # First separate the path from the arguments. This will split at the first 15701 # space. 15702 complete="$FOUND_MAKE" 15703 path="${complete%% *}" 15704 tmp="$complete EOL" 15705 arguments="${tmp#* }" 15706 15707 # Cannot rely on the command "which" here since it doesn't always work. 15708 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15709 if test -z "$is_absolute_path"; then 15710 # Path to executable is not absolute. Find it. 15711 IFS_save="$IFS" 15712 IFS=: 15713 for p in $PATH; do 15714 if test -f "$p/$path" && test -x "$p/$path"; then 15715 new_path="$p/$path" 15716 break 15717 fi 15718 done 15719 IFS="$IFS_save" 15720 else 15721 # This is an absolute path, we can use it without further modifications. 15722 new_path="$path" 15723 fi 15724 15725 if test "x$new_path" = x; then 15726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15727 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15728 has_space=`$ECHO "$complete" | $GREP " "` 15729 if test "x$has_space" != x; then 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15731 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15732 fi 15733 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15734 fi 15735 fi 15736 15737 # Now join together the path and the arguments once again 15738 if test "x$arguments" != xEOL; then 15739 new_complete="$new_path ${arguments% *}" 15740 else 15741 new_complete="$new_path" 15742 fi 15743 15744 if test "x$complete" != "x$new_complete"; then 15745 FOUND_MAKE="$new_complete" 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15747 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15748 fi 15749 15750 fi 15751 fi 15752 fi 15753 fi 15754 15755 if test "x$FOUND_MAKE" = x; then 15756 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15757 fi 15758 else 15759 # Try our hardest to locate a correct version of GNU make 15760 for ac_prog in gmake 15761 do 15762 # Extract the first word of "$ac_prog", so it can be a program name with args. 15763 set dummy $ac_prog; ac_word=$2 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15765 $as_echo_n "checking for $ac_word... " >&6; } 15766 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15767 $as_echo_n "(cached) " >&6 15768 else 15769 case $CHECK_GMAKE in 15770 [\\/]* | ?:[\\/]*) 15771 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15772 ;; 15773 *) 15774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15775 for as_dir in $PATH 15776 do 15777 IFS=$as_save_IFS 15778 test -z "$as_dir" && as_dir=. 15779 for ac_exec_ext in '' $ac_executable_extensions; do 15780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15781 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15783 break 2 15784 fi 15785 done 15786 done 15787 IFS=$as_save_IFS 15788 15789 ;; 15790 esac 15791 fi 15792 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15793 if test -n "$CHECK_GMAKE"; then 15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15795 $as_echo "$CHECK_GMAKE" >&6; } 15796 else 15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15798 $as_echo "no" >&6; } 15799 fi 15800 15801 15802 test -n "$CHECK_GMAKE" && break 15803 done 15804 15805 15806 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15807 DESCRIPTION="gmake in PATH" 15808 if test "x$MAKE_CANDIDATE" != x; then 15809 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15810 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15811 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15812 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15813 if test "x$IS_GNU_MAKE" = x; then 15814 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15815 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15816 else 15817 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15818 if test "x$IS_MODERN_MAKE" = x; then 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15820 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15821 else 15822 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15824 MAKE_EXPECTED_ENV='cygwin' 15825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15826 MAKE_EXPECTED_ENV='msys' 15827 else 15828 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15829 fi 15830 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15831 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15832 else 15833 # Not relevant for non-Windows 15834 IS_MAKE_CORRECT_ENV=true 15835 fi 15836 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15837 { $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 15838 $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;} 15839 else 15840 FOUND_MAKE=$MAKE_CANDIDATE 15841 15842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15843 15844 # First separate the path from the arguments. This will split at the first 15845 # space. 15846 complete="$FOUND_MAKE" 15847 path="${complete%% *}" 15848 tmp="$complete EOL" 15849 arguments="${tmp#* }" 15850 15851 # Input might be given as Windows format, start by converting to 15852 # unix format. 15853 new_path=`$CYGPATH -u "$path"` 15854 15855 # Now try to locate executable using which 15856 new_path=`$WHICH "$new_path" 2> /dev/null` 15857 # bat and cmd files are not always considered executable in cygwin causing which 15858 # to not find them 15859 if test "x$new_path" = x \ 15860 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15861 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15862 new_path=`$CYGPATH -u "$path"` 15863 fi 15864 if test "x$new_path" = x; then 15865 # Oops. Which didn't find the executable. 15866 # The splitting of arguments from the executable at a space might have been incorrect, 15867 # since paths with space are more likely in Windows. Give it another try with the whole 15868 # argument. 15869 path="$complete" 15870 arguments="EOL" 15871 new_path=`$CYGPATH -u "$path"` 15872 new_path=`$WHICH "$new_path" 2> /dev/null` 15873 # bat and cmd files are not always considered executable in cygwin causing which 15874 # to not find them 15875 if test "x$new_path" = x \ 15876 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15877 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15878 new_path=`$CYGPATH -u "$path"` 15879 fi 15880 if test "x$new_path" = x; then 15881 # It's still not found. Now this is an unrecoverable error. 15882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15883 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15884 has_space=`$ECHO "$complete" | $GREP " "` 15885 if test "x$has_space" != x; then 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15887 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15888 fi 15889 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15890 fi 15891 fi 15892 15893 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15894 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15895 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15896 # "foo.exe" is OK but "foo" is an error. 15897 # 15898 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15899 # It is also a way to make sure we got the proper file name for the real test later on. 15900 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15901 if test "x$test_shortpath" = x; then 15902 # Short path failed, file does not exist as specified. 15903 # Try adding .exe or .cmd 15904 if test -f "${new_path}.exe"; then 15905 input_to_shortpath="${new_path}.exe" 15906 elif test -f "${new_path}.cmd"; then 15907 input_to_shortpath="${new_path}.cmd" 15908 else 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15910 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15911 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15912 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15913 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15914 fi 15915 else 15916 input_to_shortpath="$new_path" 15917 fi 15918 15919 # Call helper function which possibly converts this using DOS-style short mode. 15920 # If so, the updated path is stored in $new_path. 15921 new_path="$input_to_shortpath" 15922 15923 input_path="$input_to_shortpath" 15924 # Check if we need to convert this using DOS-style short mode. If the path 15925 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15926 # take no chances and rewrite it. 15927 # Note: m4 eats our [], so we need to use [ and ] instead. 15928 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15929 if test "x$has_forbidden_chars" != x; then 15930 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15931 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15932 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15933 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15934 # Going to short mode and back again did indeed matter. Since short mode is 15935 # case insensitive, let's make it lowercase to improve readability. 15936 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15937 # Now convert it back to Unix-style (cygpath) 15938 input_path=`$CYGPATH -u "$shortmode_path"` 15939 new_path="$input_path" 15940 fi 15941 fi 15942 15943 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15944 if test "x$test_cygdrive_prefix" = x; then 15945 # As a simple fix, exclude /usr/bin since it's not a real path. 15946 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15947 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15948 # a path prefixed by /cygdrive for fixpath to work. 15949 new_path="$CYGWIN_ROOT_PATH$input_path" 15950 fi 15951 fi 15952 15953 # remove trailing .exe if any 15954 new_path="${new_path/%.exe/}" 15955 15956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15957 15958 # First separate the path from the arguments. This will split at the first 15959 # space. 15960 complete="$FOUND_MAKE" 15961 path="${complete%% *}" 15962 tmp="$complete EOL" 15963 arguments="${tmp#* }" 15964 15965 # Input might be given as Windows format, start by converting to 15966 # unix format. 15967 new_path="$path" 15968 15969 windows_path="$new_path" 15970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15971 unix_path=`$CYGPATH -u "$windows_path"` 15972 new_path="$unix_path" 15973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15975 new_path="$unix_path" 15976 fi 15977 15978 15979 # Now try to locate executable using which 15980 new_path=`$WHICH "$new_path" 2> /dev/null` 15981 15982 if test "x$new_path" = x; then 15983 # Oops. Which didn't find the executable. 15984 # The splitting of arguments from the executable at a space might have been incorrect, 15985 # since paths with space are more likely in Windows. Give it another try with the whole 15986 # argument. 15987 path="$complete" 15988 arguments="EOL" 15989 new_path="$path" 15990 15991 windows_path="$new_path" 15992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15993 unix_path=`$CYGPATH -u "$windows_path"` 15994 new_path="$unix_path" 15995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15997 new_path="$unix_path" 15998 fi 15999 16000 16001 new_path=`$WHICH "$new_path" 2> /dev/null` 16002 # bat and cmd files are not always considered executable in MSYS causing which 16003 # to not find them 16004 if test "x$new_path" = x \ 16005 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16006 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16007 new_path="$path" 16008 16009 windows_path="$new_path" 16010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16011 unix_path=`$CYGPATH -u "$windows_path"` 16012 new_path="$unix_path" 16013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16015 new_path="$unix_path" 16016 fi 16017 16018 fi 16019 16020 if test "x$new_path" = x; then 16021 # It's still not found. Now this is an unrecoverable error. 16022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16023 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16024 has_space=`$ECHO "$complete" | $GREP " "` 16025 if test "x$has_space" != x; then 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16027 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16028 fi 16029 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16030 fi 16031 fi 16032 16033 # Now new_path has a complete unix path to the binary 16034 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16035 # Keep paths in /bin as-is, but remove trailing .exe if any 16036 new_path="${new_path/%.exe/}" 16037 # Do not save /bin paths to all_fixpath_prefixes! 16038 else 16039 # Not in mixed or Windows style, start by that. 16040 new_path=`cmd //c echo $new_path` 16041 16042 input_path="$new_path" 16043 # Check if we need to convert this using DOS-style short mode. If the path 16044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16045 # take no chances and rewrite it. 16046 # Note: m4 eats our [], so we need to use [ and ] instead. 16047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16048 if test "x$has_forbidden_chars" != x; then 16049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16050 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16051 fi 16052 16053 # Output is in $new_path 16054 16055 windows_path="$new_path" 16056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16057 unix_path=`$CYGPATH -u "$windows_path"` 16058 new_path="$unix_path" 16059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16061 new_path="$unix_path" 16062 fi 16063 16064 # remove trailing .exe if any 16065 new_path="${new_path/%.exe/}" 16066 16067 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16068 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16069 fi 16070 16071 else 16072 # We're on a posix platform. Hooray! :) 16073 # First separate the path from the arguments. This will split at the first 16074 # space. 16075 complete="$FOUND_MAKE" 16076 path="${complete%% *}" 16077 tmp="$complete EOL" 16078 arguments="${tmp#* }" 16079 16080 # Cannot rely on the command "which" here since it doesn't always work. 16081 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16082 if test -z "$is_absolute_path"; then 16083 # Path to executable is not absolute. Find it. 16084 IFS_save="$IFS" 16085 IFS=: 16086 for p in $PATH; do 16087 if test -f "$p/$path" && test -x "$p/$path"; then 16088 new_path="$p/$path" 16089 break 16090 fi 16091 done 16092 IFS="$IFS_save" 16093 else 16094 # This is an absolute path, we can use it without further modifications. 16095 new_path="$path" 16096 fi 16097 16098 if test "x$new_path" = x; then 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16100 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16101 has_space=`$ECHO "$complete" | $GREP " "` 16102 if test "x$has_space" != x; then 16103 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16104 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16105 fi 16106 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16107 fi 16108 fi 16109 16110 # Now join together the path and the arguments once again 16111 if test "x$arguments" != xEOL; then 16112 new_complete="$new_path ${arguments% *}" 16113 else 16114 new_complete="$new_path" 16115 fi 16116 16117 if test "x$complete" != "x$new_complete"; then 16118 FOUND_MAKE="$new_complete" 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16120 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16121 fi 16122 16123 fi 16124 fi 16125 fi 16126 fi 16127 16128 16129 if test "x$FOUND_MAKE" = x; then 16130 for ac_prog in make 16131 do 16132 # Extract the first word of "$ac_prog", so it can be a program name with args. 16133 set dummy $ac_prog; ac_word=$2 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16135 $as_echo_n "checking for $ac_word... " >&6; } 16136 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16137 $as_echo_n "(cached) " >&6 16138 else 16139 case $CHECK_MAKE in 16140 [\\/]* | ?:[\\/]*) 16141 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16142 ;; 16143 *) 16144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16145 for as_dir in $PATH 16146 do 16147 IFS=$as_save_IFS 16148 test -z "$as_dir" && as_dir=. 16149 for ac_exec_ext in '' $ac_executable_extensions; do 16150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16151 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16153 break 2 16154 fi 16155 done 16156 done 16157 IFS=$as_save_IFS 16158 16159 ;; 16160 esac 16161 fi 16162 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16163 if test -n "$CHECK_MAKE"; then 16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16165 $as_echo "$CHECK_MAKE" >&6; } 16166 else 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16168 $as_echo "no" >&6; } 16169 fi 16170 16171 16172 test -n "$CHECK_MAKE" && break 16173 done 16174 16175 16176 MAKE_CANDIDATE=""$CHECK_MAKE"" 16177 DESCRIPTION="make in PATH" 16178 if test "x$MAKE_CANDIDATE" != x; then 16179 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16180 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16181 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16182 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16183 if test "x$IS_GNU_MAKE" = x; then 16184 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16185 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16186 else 16187 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16188 if test "x$IS_MODERN_MAKE" = x; then 16189 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16190 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16191 else 16192 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16194 MAKE_EXPECTED_ENV='cygwin' 16195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16196 MAKE_EXPECTED_ENV='msys' 16197 else 16198 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16199 fi 16200 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16201 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16202 else 16203 # Not relevant for non-Windows 16204 IS_MAKE_CORRECT_ENV=true 16205 fi 16206 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16207 { $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 16208 $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;} 16209 else 16210 FOUND_MAKE=$MAKE_CANDIDATE 16211 16212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16213 16214 # First separate the path from the arguments. This will split at the first 16215 # space. 16216 complete="$FOUND_MAKE" 16217 path="${complete%% *}" 16218 tmp="$complete EOL" 16219 arguments="${tmp#* }" 16220 16221 # Input might be given as Windows format, start by converting to 16222 # unix format. 16223 new_path=`$CYGPATH -u "$path"` 16224 16225 # Now try to locate executable using which 16226 new_path=`$WHICH "$new_path" 2> /dev/null` 16227 # bat and cmd files are not always considered executable in cygwin causing which 16228 # to not find them 16229 if test "x$new_path" = x \ 16230 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16231 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16232 new_path=`$CYGPATH -u "$path"` 16233 fi 16234 if test "x$new_path" = x; then 16235 # Oops. Which didn't find the executable. 16236 # The splitting of arguments from the executable at a space might have been incorrect, 16237 # since paths with space are more likely in Windows. Give it another try with the whole 16238 # argument. 16239 path="$complete" 16240 arguments="EOL" 16241 new_path=`$CYGPATH -u "$path"` 16242 new_path=`$WHICH "$new_path" 2> /dev/null` 16243 # bat and cmd files are not always considered executable in cygwin causing which 16244 # to not find them 16245 if test "x$new_path" = x \ 16246 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16247 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16248 new_path=`$CYGPATH -u "$path"` 16249 fi 16250 if test "x$new_path" = x; then 16251 # It's still not found. Now this is an unrecoverable error. 16252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16253 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16254 has_space=`$ECHO "$complete" | $GREP " "` 16255 if test "x$has_space" != x; then 16256 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16257 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16258 fi 16259 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16260 fi 16261 fi 16262 16263 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16264 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16265 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16266 # "foo.exe" is OK but "foo" is an error. 16267 # 16268 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16269 # It is also a way to make sure we got the proper file name for the real test later on. 16270 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16271 if test "x$test_shortpath" = x; then 16272 # Short path failed, file does not exist as specified. 16273 # Try adding .exe or .cmd 16274 if test -f "${new_path}.exe"; then 16275 input_to_shortpath="${new_path}.exe" 16276 elif test -f "${new_path}.cmd"; then 16277 input_to_shortpath="${new_path}.cmd" 16278 else 16279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16280 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16282 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16283 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16284 fi 16285 else 16286 input_to_shortpath="$new_path" 16287 fi 16288 16289 # Call helper function which possibly converts this using DOS-style short mode. 16290 # If so, the updated path is stored in $new_path. 16291 new_path="$input_to_shortpath" 16292 16293 input_path="$input_to_shortpath" 16294 # Check if we need to convert this using DOS-style short mode. If the path 16295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16296 # take no chances and rewrite it. 16297 # Note: m4 eats our [], so we need to use [ and ] instead. 16298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16299 if test "x$has_forbidden_chars" != x; then 16300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16301 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16302 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16303 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16304 # Going to short mode and back again did indeed matter. Since short mode is 16305 # case insensitive, let's make it lowercase to improve readability. 16306 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16307 # Now convert it back to Unix-style (cygpath) 16308 input_path=`$CYGPATH -u "$shortmode_path"` 16309 new_path="$input_path" 16310 fi 16311 fi 16312 16313 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16314 if test "x$test_cygdrive_prefix" = x; then 16315 # As a simple fix, exclude /usr/bin since it's not a real path. 16316 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16317 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16318 # a path prefixed by /cygdrive for fixpath to work. 16319 new_path="$CYGWIN_ROOT_PATH$input_path" 16320 fi 16321 fi 16322 16323 # remove trailing .exe if any 16324 new_path="${new_path/%.exe/}" 16325 16326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16327 16328 # First separate the path from the arguments. This will split at the first 16329 # space. 16330 complete="$FOUND_MAKE" 16331 path="${complete%% *}" 16332 tmp="$complete EOL" 16333 arguments="${tmp#* }" 16334 16335 # Input might be given as Windows format, start by converting to 16336 # unix format. 16337 new_path="$path" 16338 16339 windows_path="$new_path" 16340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16341 unix_path=`$CYGPATH -u "$windows_path"` 16342 new_path="$unix_path" 16343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16344 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16345 new_path="$unix_path" 16346 fi 16347 16348 16349 # Now try to locate executable using which 16350 new_path=`$WHICH "$new_path" 2> /dev/null` 16351 16352 if test "x$new_path" = x; then 16353 # Oops. Which didn't find the executable. 16354 # The splitting of arguments from the executable at a space might have been incorrect, 16355 # since paths with space are more likely in Windows. Give it another try with the whole 16356 # argument. 16357 path="$complete" 16358 arguments="EOL" 16359 new_path="$path" 16360 16361 windows_path="$new_path" 16362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16363 unix_path=`$CYGPATH -u "$windows_path"` 16364 new_path="$unix_path" 16365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16367 new_path="$unix_path" 16368 fi 16369 16370 16371 new_path=`$WHICH "$new_path" 2> /dev/null` 16372 # bat and cmd files are not always considered executable in MSYS causing which 16373 # to not find them 16374 if test "x$new_path" = x \ 16375 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16376 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16377 new_path="$path" 16378 16379 windows_path="$new_path" 16380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16381 unix_path=`$CYGPATH -u "$windows_path"` 16382 new_path="$unix_path" 16383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16385 new_path="$unix_path" 16386 fi 16387 16388 fi 16389 16390 if test "x$new_path" = x; then 16391 # It's still not found. Now this is an unrecoverable error. 16392 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16393 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16394 has_space=`$ECHO "$complete" | $GREP " "` 16395 if test "x$has_space" != x; then 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16397 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16398 fi 16399 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16400 fi 16401 fi 16402 16403 # Now new_path has a complete unix path to the binary 16404 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16405 # Keep paths in /bin as-is, but remove trailing .exe if any 16406 new_path="${new_path/%.exe/}" 16407 # Do not save /bin paths to all_fixpath_prefixes! 16408 else 16409 # Not in mixed or Windows style, start by that. 16410 new_path=`cmd //c echo $new_path` 16411 16412 input_path="$new_path" 16413 # Check if we need to convert this using DOS-style short mode. If the path 16414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16415 # take no chances and rewrite it. 16416 # Note: m4 eats our [], so we need to use [ and ] instead. 16417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16418 if test "x$has_forbidden_chars" != x; then 16419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16420 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16421 fi 16422 16423 # Output is in $new_path 16424 16425 windows_path="$new_path" 16426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16427 unix_path=`$CYGPATH -u "$windows_path"` 16428 new_path="$unix_path" 16429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16431 new_path="$unix_path" 16432 fi 16433 16434 # remove trailing .exe if any 16435 new_path="${new_path/%.exe/}" 16436 16437 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16438 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16439 fi 16440 16441 else 16442 # We're on a posix platform. Hooray! :) 16443 # First separate the path from the arguments. This will split at the first 16444 # space. 16445 complete="$FOUND_MAKE" 16446 path="${complete%% *}" 16447 tmp="$complete EOL" 16448 arguments="${tmp#* }" 16449 16450 # Cannot rely on the command "which" here since it doesn't always work. 16451 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16452 if test -z "$is_absolute_path"; then 16453 # Path to executable is not absolute. Find it. 16454 IFS_save="$IFS" 16455 IFS=: 16456 for p in $PATH; do 16457 if test -f "$p/$path" && test -x "$p/$path"; then 16458 new_path="$p/$path" 16459 break 16460 fi 16461 done 16462 IFS="$IFS_save" 16463 else 16464 # This is an absolute path, we can use it without further modifications. 16465 new_path="$path" 16466 fi 16467 16468 if test "x$new_path" = x; then 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16470 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16471 has_space=`$ECHO "$complete" | $GREP " "` 16472 if test "x$has_space" != x; then 16473 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16474 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16475 fi 16476 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16477 fi 16478 fi 16479 16480 # Now join together the path and the arguments once again 16481 if test "x$arguments" != xEOL; then 16482 new_complete="$new_path ${arguments% *}" 16483 else 16484 new_complete="$new_path" 16485 fi 16486 16487 if test "x$complete" != "x$new_complete"; then 16488 FOUND_MAKE="$new_complete" 16489 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16490 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16491 fi 16492 16493 fi 16494 fi 16495 fi 16496 fi 16497 16498 fi 16499 16500 if test "x$FOUND_MAKE" = x; then 16501 if test "x$TOOLCHAIN_PATH" != x; then 16502 # We have a toolchain path, check that as well before giving up. 16503 OLD_PATH=$PATH 16504 PATH=$TOOLCHAIN_PATH:$PATH 16505 for ac_prog in gmake 16506 do 16507 # Extract the first word of "$ac_prog", so it can be a program name with args. 16508 set dummy $ac_prog; ac_word=$2 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16510 $as_echo_n "checking for $ac_word... " >&6; } 16511 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16512 $as_echo_n "(cached) " >&6 16513 else 16514 case $CHECK_TOOLSDIR_GMAKE in 16515 [\\/]* | ?:[\\/]*) 16516 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16517 ;; 16518 *) 16519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16520 for as_dir in $PATH 16521 do 16522 IFS=$as_save_IFS 16523 test -z "$as_dir" && as_dir=. 16524 for ac_exec_ext in '' $ac_executable_extensions; do 16525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16526 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16528 break 2 16529 fi 16530 done 16531 done 16532 IFS=$as_save_IFS 16533 16534 ;; 16535 esac 16536 fi 16537 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16538 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16540 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16541 else 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16543 $as_echo "no" >&6; } 16544 fi 16545 16546 16547 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16548 done 16549 16550 16551 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16552 DESCRIPTION="gmake in tools-dir" 16553 if test "x$MAKE_CANDIDATE" != x; then 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16555 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16556 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16557 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16558 if test "x$IS_GNU_MAKE" = x; then 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16560 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16561 else 16562 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16563 if test "x$IS_MODERN_MAKE" = x; then 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16565 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16566 else 16567 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16569 MAKE_EXPECTED_ENV='cygwin' 16570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16571 MAKE_EXPECTED_ENV='msys' 16572 else 16573 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16574 fi 16575 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16576 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16577 else 16578 # Not relevant for non-Windows 16579 IS_MAKE_CORRECT_ENV=true 16580 fi 16581 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16582 { $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 16583 $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;} 16584 else 16585 FOUND_MAKE=$MAKE_CANDIDATE 16586 16587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16588 16589 # First separate the path from the arguments. This will split at the first 16590 # space. 16591 complete="$FOUND_MAKE" 16592 path="${complete%% *}" 16593 tmp="$complete EOL" 16594 arguments="${tmp#* }" 16595 16596 # Input might be given as Windows format, start by converting to 16597 # unix format. 16598 new_path=`$CYGPATH -u "$path"` 16599 16600 # Now try to locate executable using which 16601 new_path=`$WHICH "$new_path" 2> /dev/null` 16602 # bat and cmd files are not always considered executable in cygwin causing which 16603 # to not find them 16604 if test "x$new_path" = x \ 16605 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16606 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16607 new_path=`$CYGPATH -u "$path"` 16608 fi 16609 if test "x$new_path" = x; then 16610 # Oops. Which didn't find the executable. 16611 # The splitting of arguments from the executable at a space might have been incorrect, 16612 # since paths with space are more likely in Windows. Give it another try with the whole 16613 # argument. 16614 path="$complete" 16615 arguments="EOL" 16616 new_path=`$CYGPATH -u "$path"` 16617 new_path=`$WHICH "$new_path" 2> /dev/null` 16618 # bat and cmd files are not always considered executable in cygwin causing which 16619 # to not find them 16620 if test "x$new_path" = x \ 16621 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16622 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16623 new_path=`$CYGPATH -u "$path"` 16624 fi 16625 if test "x$new_path" = x; then 16626 # It's still not found. Now this is an unrecoverable error. 16627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16628 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16629 has_space=`$ECHO "$complete" | $GREP " "` 16630 if test "x$has_space" != x; then 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16632 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16633 fi 16634 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16635 fi 16636 fi 16637 16638 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16639 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16640 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16641 # "foo.exe" is OK but "foo" is an error. 16642 # 16643 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16644 # It is also a way to make sure we got the proper file name for the real test later on. 16645 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16646 if test "x$test_shortpath" = x; then 16647 # Short path failed, file does not exist as specified. 16648 # Try adding .exe or .cmd 16649 if test -f "${new_path}.exe"; then 16650 input_to_shortpath="${new_path}.exe" 16651 elif test -f "${new_path}.cmd"; then 16652 input_to_shortpath="${new_path}.cmd" 16653 else 16654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16655 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16656 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16657 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16658 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16659 fi 16660 else 16661 input_to_shortpath="$new_path" 16662 fi 16663 16664 # Call helper function which possibly converts this using DOS-style short mode. 16665 # If so, the updated path is stored in $new_path. 16666 new_path="$input_to_shortpath" 16667 16668 input_path="$input_to_shortpath" 16669 # Check if we need to convert this using DOS-style short mode. If the path 16670 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16671 # take no chances and rewrite it. 16672 # Note: m4 eats our [], so we need to use [ and ] instead. 16673 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16674 if test "x$has_forbidden_chars" != x; then 16675 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16676 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16677 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16678 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16679 # Going to short mode and back again did indeed matter. Since short mode is 16680 # case insensitive, let's make it lowercase to improve readability. 16681 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16682 # Now convert it back to Unix-style (cygpath) 16683 input_path=`$CYGPATH -u "$shortmode_path"` 16684 new_path="$input_path" 16685 fi 16686 fi 16687 16688 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16689 if test "x$test_cygdrive_prefix" = x; then 16690 # As a simple fix, exclude /usr/bin since it's not a real path. 16691 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16692 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16693 # a path prefixed by /cygdrive for fixpath to work. 16694 new_path="$CYGWIN_ROOT_PATH$input_path" 16695 fi 16696 fi 16697 16698 # remove trailing .exe if any 16699 new_path="${new_path/%.exe/}" 16700 16701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16702 16703 # First separate the path from the arguments. This will split at the first 16704 # space. 16705 complete="$FOUND_MAKE" 16706 path="${complete%% *}" 16707 tmp="$complete EOL" 16708 arguments="${tmp#* }" 16709 16710 # Input might be given as Windows format, start by converting to 16711 # unix format. 16712 new_path="$path" 16713 16714 windows_path="$new_path" 16715 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16716 unix_path=`$CYGPATH -u "$windows_path"` 16717 new_path="$unix_path" 16718 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16719 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16720 new_path="$unix_path" 16721 fi 16722 16723 16724 # Now try to locate executable using which 16725 new_path=`$WHICH "$new_path" 2> /dev/null` 16726 16727 if test "x$new_path" = x; then 16728 # Oops. Which didn't find the executable. 16729 # The splitting of arguments from the executable at a space might have been incorrect, 16730 # since paths with space are more likely in Windows. Give it another try with the whole 16731 # argument. 16732 path="$complete" 16733 arguments="EOL" 16734 new_path="$path" 16735 16736 windows_path="$new_path" 16737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16738 unix_path=`$CYGPATH -u "$windows_path"` 16739 new_path="$unix_path" 16740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16742 new_path="$unix_path" 16743 fi 16744 16745 16746 new_path=`$WHICH "$new_path" 2> /dev/null` 16747 # bat and cmd files are not always considered executable in MSYS causing which 16748 # to not find them 16749 if test "x$new_path" = x \ 16750 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16751 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16752 new_path="$path" 16753 16754 windows_path="$new_path" 16755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16756 unix_path=`$CYGPATH -u "$windows_path"` 16757 new_path="$unix_path" 16758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16759 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16760 new_path="$unix_path" 16761 fi 16762 16763 fi 16764 16765 if test "x$new_path" = x; then 16766 # It's still not found. Now this is an unrecoverable error. 16767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16768 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16769 has_space=`$ECHO "$complete" | $GREP " "` 16770 if test "x$has_space" != x; then 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16772 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16773 fi 16774 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16775 fi 16776 fi 16777 16778 # Now new_path has a complete unix path to the binary 16779 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16780 # Keep paths in /bin as-is, but remove trailing .exe if any 16781 new_path="${new_path/%.exe/}" 16782 # Do not save /bin paths to all_fixpath_prefixes! 16783 else 16784 # Not in mixed or Windows style, start by that. 16785 new_path=`cmd //c echo $new_path` 16786 16787 input_path="$new_path" 16788 # Check if we need to convert this using DOS-style short mode. If the path 16789 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16790 # take no chances and rewrite it. 16791 # Note: m4 eats our [], so we need to use [ and ] instead. 16792 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16793 if test "x$has_forbidden_chars" != x; then 16794 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16795 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16796 fi 16797 16798 # Output is in $new_path 16799 16800 windows_path="$new_path" 16801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16802 unix_path=`$CYGPATH -u "$windows_path"` 16803 new_path="$unix_path" 16804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16806 new_path="$unix_path" 16807 fi 16808 16809 # remove trailing .exe if any 16810 new_path="${new_path/%.exe/}" 16811 16812 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16813 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16814 fi 16815 16816 else 16817 # We're on a posix platform. Hooray! :) 16818 # First separate the path from the arguments. This will split at the first 16819 # space. 16820 complete="$FOUND_MAKE" 16821 path="${complete%% *}" 16822 tmp="$complete EOL" 16823 arguments="${tmp#* }" 16824 16825 # Cannot rely on the command "which" here since it doesn't always work. 16826 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16827 if test -z "$is_absolute_path"; then 16828 # Path to executable is not absolute. Find it. 16829 IFS_save="$IFS" 16830 IFS=: 16831 for p in $PATH; do 16832 if test -f "$p/$path" && test -x "$p/$path"; then 16833 new_path="$p/$path" 16834 break 16835 fi 16836 done 16837 IFS="$IFS_save" 16838 else 16839 # This is an absolute path, we can use it without further modifications. 16840 new_path="$path" 16841 fi 16842 16843 if test "x$new_path" = x; then 16844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16845 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16846 has_space=`$ECHO "$complete" | $GREP " "` 16847 if test "x$has_space" != x; then 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16849 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16850 fi 16851 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16852 fi 16853 fi 16854 16855 # Now join together the path and the arguments once again 16856 if test "x$arguments" != xEOL; then 16857 new_complete="$new_path ${arguments% *}" 16858 else 16859 new_complete="$new_path" 16860 fi 16861 16862 if test "x$complete" != "x$new_complete"; then 16863 FOUND_MAKE="$new_complete" 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16865 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16866 fi 16867 16868 fi 16869 fi 16870 fi 16871 fi 16872 16873 if test "x$FOUND_MAKE" = x; then 16874 for ac_prog in make 16875 do 16876 # Extract the first word of "$ac_prog", so it can be a program name with args. 16877 set dummy $ac_prog; ac_word=$2 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16879 $as_echo_n "checking for $ac_word... " >&6; } 16880 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882 else 16883 case $CHECK_TOOLSDIR_MAKE in 16884 [\\/]* | ?:[\\/]*) 16885 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16886 ;; 16887 *) 16888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16889 for as_dir in $PATH 16890 do 16891 IFS=$as_save_IFS 16892 test -z "$as_dir" && as_dir=. 16893 for ac_exec_ext in '' $ac_executable_extensions; do 16894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16895 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16897 break 2 16898 fi 16899 done 16900 done 16901 IFS=$as_save_IFS 16902 16903 ;; 16904 esac 16905 fi 16906 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16907 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16909 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16910 else 16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16912 $as_echo "no" >&6; } 16913 fi 16914 16915 16916 test -n "$CHECK_TOOLSDIR_MAKE" && break 16917 done 16918 16919 16920 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16921 DESCRIPTION="make in tools-dir" 16922 if test "x$MAKE_CANDIDATE" != x; then 16923 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16924 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16925 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16926 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16927 if test "x$IS_GNU_MAKE" = x; then 16928 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16929 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16930 else 16931 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16932 if test "x$IS_MODERN_MAKE" = x; then 16933 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16934 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16935 else 16936 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16938 MAKE_EXPECTED_ENV='cygwin' 16939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16940 MAKE_EXPECTED_ENV='msys' 16941 else 16942 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16943 fi 16944 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16945 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16946 else 16947 # Not relevant for non-Windows 16948 IS_MAKE_CORRECT_ENV=true 16949 fi 16950 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16951 { $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 16952 $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;} 16953 else 16954 FOUND_MAKE=$MAKE_CANDIDATE 16955 16956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16957 16958 # First separate the path from the arguments. This will split at the first 16959 # space. 16960 complete="$FOUND_MAKE" 16961 path="${complete%% *}" 16962 tmp="$complete EOL" 16963 arguments="${tmp#* }" 16964 16965 # Input might be given as Windows format, start by converting to 16966 # unix format. 16967 new_path=`$CYGPATH -u "$path"` 16968 16969 # Now try to locate executable using which 16970 new_path=`$WHICH "$new_path" 2> /dev/null` 16971 # bat and cmd files are not always considered executable in cygwin causing which 16972 # to not find them 16973 if test "x$new_path" = x \ 16974 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16975 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16976 new_path=`$CYGPATH -u "$path"` 16977 fi 16978 if test "x$new_path" = x; then 16979 # Oops. Which didn't find the executable. 16980 # The splitting of arguments from the executable at a space might have been incorrect, 16981 # since paths with space are more likely in Windows. Give it another try with the whole 16982 # argument. 16983 path="$complete" 16984 arguments="EOL" 16985 new_path=`$CYGPATH -u "$path"` 16986 new_path=`$WHICH "$new_path" 2> /dev/null` 16987 # bat and cmd files are not always considered executable in cygwin causing which 16988 # to not find them 16989 if test "x$new_path" = x \ 16990 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16991 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16992 new_path=`$CYGPATH -u "$path"` 16993 fi 16994 if test "x$new_path" = x; then 16995 # It's still not found. Now this is an unrecoverable error. 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16997 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16998 has_space=`$ECHO "$complete" | $GREP " "` 16999 if test "x$has_space" != x; then 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17001 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17002 fi 17003 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17004 fi 17005 fi 17006 17007 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17008 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17009 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17010 # "foo.exe" is OK but "foo" is an error. 17011 # 17012 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17013 # It is also a way to make sure we got the proper file name for the real test later on. 17014 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17015 if test "x$test_shortpath" = x; then 17016 # Short path failed, file does not exist as specified. 17017 # Try adding .exe or .cmd 17018 if test -f "${new_path}.exe"; then 17019 input_to_shortpath="${new_path}.exe" 17020 elif test -f "${new_path}.cmd"; then 17021 input_to_shortpath="${new_path}.cmd" 17022 else 17023 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17024 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17026 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17027 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17028 fi 17029 else 17030 input_to_shortpath="$new_path" 17031 fi 17032 17033 # Call helper function which possibly converts this using DOS-style short mode. 17034 # If so, the updated path is stored in $new_path. 17035 new_path="$input_to_shortpath" 17036 17037 input_path="$input_to_shortpath" 17038 # Check if we need to convert this using DOS-style short mode. If the path 17039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17040 # take no chances and rewrite it. 17041 # Note: m4 eats our [], so we need to use [ and ] instead. 17042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17043 if test "x$has_forbidden_chars" != x; then 17044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17045 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17046 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17047 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17048 # Going to short mode and back again did indeed matter. Since short mode is 17049 # case insensitive, let's make it lowercase to improve readability. 17050 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17051 # Now convert it back to Unix-style (cygpath) 17052 input_path=`$CYGPATH -u "$shortmode_path"` 17053 new_path="$input_path" 17054 fi 17055 fi 17056 17057 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17058 if test "x$test_cygdrive_prefix" = x; then 17059 # As a simple fix, exclude /usr/bin since it's not a real path. 17060 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17061 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17062 # a path prefixed by /cygdrive for fixpath to work. 17063 new_path="$CYGWIN_ROOT_PATH$input_path" 17064 fi 17065 fi 17066 17067 # remove trailing .exe if any 17068 new_path="${new_path/%.exe/}" 17069 17070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17071 17072 # First separate the path from the arguments. This will split at the first 17073 # space. 17074 complete="$FOUND_MAKE" 17075 path="${complete%% *}" 17076 tmp="$complete EOL" 17077 arguments="${tmp#* }" 17078 17079 # Input might be given as Windows format, start by converting to 17080 # unix format. 17081 new_path="$path" 17082 17083 windows_path="$new_path" 17084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17085 unix_path=`$CYGPATH -u "$windows_path"` 17086 new_path="$unix_path" 17087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17089 new_path="$unix_path" 17090 fi 17091 17092 17093 # Now try to locate executable using which 17094 new_path=`$WHICH "$new_path" 2> /dev/null` 17095 17096 if test "x$new_path" = x; then 17097 # Oops. Which didn't find the executable. 17098 # The splitting of arguments from the executable at a space might have been incorrect, 17099 # since paths with space are more likely in Windows. Give it another try with the whole 17100 # argument. 17101 path="$complete" 17102 arguments="EOL" 17103 new_path="$path" 17104 17105 windows_path="$new_path" 17106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17107 unix_path=`$CYGPATH -u "$windows_path"` 17108 new_path="$unix_path" 17109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17111 new_path="$unix_path" 17112 fi 17113 17114 17115 new_path=`$WHICH "$new_path" 2> /dev/null` 17116 # bat and cmd files are not always considered executable in MSYS causing which 17117 # to not find them 17118 if test "x$new_path" = x \ 17119 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17120 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17121 new_path="$path" 17122 17123 windows_path="$new_path" 17124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17125 unix_path=`$CYGPATH -u "$windows_path"` 17126 new_path="$unix_path" 17127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17128 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17129 new_path="$unix_path" 17130 fi 17131 17132 fi 17133 17134 if test "x$new_path" = x; then 17135 # It's still not found. Now this is an unrecoverable error. 17136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17137 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17138 has_space=`$ECHO "$complete" | $GREP " "` 17139 if test "x$has_space" != x; then 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17141 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17142 fi 17143 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17144 fi 17145 fi 17146 17147 # Now new_path has a complete unix path to the binary 17148 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17149 # Keep paths in /bin as-is, but remove trailing .exe if any 17150 new_path="${new_path/%.exe/}" 17151 # Do not save /bin paths to all_fixpath_prefixes! 17152 else 17153 # Not in mixed or Windows style, start by that. 17154 new_path=`cmd //c echo $new_path` 17155 17156 input_path="$new_path" 17157 # Check if we need to convert this using DOS-style short mode. If the path 17158 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17159 # take no chances and rewrite it. 17160 # Note: m4 eats our [], so we need to use [ and ] instead. 17161 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17162 if test "x$has_forbidden_chars" != x; then 17163 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17164 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17165 fi 17166 17167 # Output is in $new_path 17168 17169 windows_path="$new_path" 17170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17171 unix_path=`$CYGPATH -u "$windows_path"` 17172 new_path="$unix_path" 17173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17175 new_path="$unix_path" 17176 fi 17177 17178 # remove trailing .exe if any 17179 new_path="${new_path/%.exe/}" 17180 17181 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17182 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17183 fi 17184 17185 else 17186 # We're on a posix platform. Hooray! :) 17187 # First separate the path from the arguments. This will split at the first 17188 # space. 17189 complete="$FOUND_MAKE" 17190 path="${complete%% *}" 17191 tmp="$complete EOL" 17192 arguments="${tmp#* }" 17193 17194 # Cannot rely on the command "which" here since it doesn't always work. 17195 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17196 if test -z "$is_absolute_path"; then 17197 # Path to executable is not absolute. Find it. 17198 IFS_save="$IFS" 17199 IFS=: 17200 for p in $PATH; do 17201 if test -f "$p/$path" && test -x "$p/$path"; then 17202 new_path="$p/$path" 17203 break 17204 fi 17205 done 17206 IFS="$IFS_save" 17207 else 17208 # This is an absolute path, we can use it without further modifications. 17209 new_path="$path" 17210 fi 17211 17212 if test "x$new_path" = x; then 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17214 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17215 has_space=`$ECHO "$complete" | $GREP " "` 17216 if test "x$has_space" != x; then 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17218 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17219 fi 17220 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17221 fi 17222 fi 17223 17224 # Now join together the path and the arguments once again 17225 if test "x$arguments" != xEOL; then 17226 new_complete="$new_path ${arguments% *}" 17227 else 17228 new_complete="$new_path" 17229 fi 17230 17231 if test "x$complete" != "x$new_complete"; then 17232 FOUND_MAKE="$new_complete" 17233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17234 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17235 fi 17236 17237 fi 17238 fi 17239 fi 17240 fi 17241 17242 fi 17243 PATH=$OLD_PATH 17244 fi 17245 fi 17246 17247 if test "x$FOUND_MAKE" = x; then 17248 as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 17249 fi 17250 fi 17251 17252 MAKE=$FOUND_MAKE 17253 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17255 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17256 17257 17258 17259 # Test if find supports -delete 17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17261 $as_echo_n "checking if find supports -delete... " >&6; } 17262 FIND_DELETE="-delete" 17263 17264 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17265 17266 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17267 17268 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17269 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17270 # No, it does not. 17271 rm $DELETEDIR/TestIfFindSupportsDelete 17272 FIND_DELETE="-exec rm \{\} \+" 17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17274 $as_echo "no" >&6; } 17275 else 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17277 $as_echo "yes" >&6; } 17278 fi 17279 rmdir $DELETEDIR 17280 17281 17282 17283 # These tools might not be installed by default, 17284 # need hint on how to install them. 17285 17286 17287 17288 # Publish this variable in the help. 17289 17290 17291 if test "x$UNZIP" = x; then 17292 # The variable is not set by user, try to locate tool using the code snippet 17293 for ac_prog in unzip 17294 do 17295 # Extract the first word of "$ac_prog", so it can be a program name with args. 17296 set dummy $ac_prog; ac_word=$2 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17298 $as_echo_n "checking for $ac_word... " >&6; } 17299 if ${ac_cv_path_UNZIP+:} false; then : 17300 $as_echo_n "(cached) " >&6 17301 else 17302 case $UNZIP in 17303 [\\/]* | ?:[\\/]*) 17304 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17305 ;; 17306 *) 17307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17308 for as_dir in $PATH 17309 do 17310 IFS=$as_save_IFS 17311 test -z "$as_dir" && as_dir=. 17312 for ac_exec_ext in '' $ac_executable_extensions; do 17313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17314 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17316 break 2 17317 fi 17318 done 17319 done 17320 IFS=$as_save_IFS 17321 17322 ;; 17323 esac 17324 fi 17325 UNZIP=$ac_cv_path_UNZIP 17326 if test -n "$UNZIP"; then 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17328 $as_echo "$UNZIP" >&6; } 17329 else 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17331 $as_echo "no" >&6; } 17332 fi 17333 17334 17335 test -n "$UNZIP" && break 17336 done 17337 17338 else 17339 # The variable is set, but is it from the command line or the environment? 17340 17341 # Try to remove the string !UNZIP! from our list. 17342 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17343 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17344 # If it failed, the variable was not from the command line. Ignore it, 17345 # but warn the user (except for BASH, which is always set by the calling BASH). 17346 if test "xUNZIP" != xBASH; then 17347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17348 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17349 fi 17350 # Try to locate tool using the code snippet 17351 for ac_prog in unzip 17352 do 17353 # Extract the first word of "$ac_prog", so it can be a program name with args. 17354 set dummy $ac_prog; ac_word=$2 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17356 $as_echo_n "checking for $ac_word... " >&6; } 17357 if ${ac_cv_path_UNZIP+:} false; then : 17358 $as_echo_n "(cached) " >&6 17359 else 17360 case $UNZIP in 17361 [\\/]* | ?:[\\/]*) 17362 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17363 ;; 17364 *) 17365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17366 for as_dir in $PATH 17367 do 17368 IFS=$as_save_IFS 17369 test -z "$as_dir" && as_dir=. 17370 for ac_exec_ext in '' $ac_executable_extensions; do 17371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17372 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17374 break 2 17375 fi 17376 done 17377 done 17378 IFS=$as_save_IFS 17379 17380 ;; 17381 esac 17382 fi 17383 UNZIP=$ac_cv_path_UNZIP 17384 if test -n "$UNZIP"; then 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17386 $as_echo "$UNZIP" >&6; } 17387 else 17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17389 $as_echo "no" >&6; } 17390 fi 17391 17392 17393 test -n "$UNZIP" && break 17394 done 17395 17396 else 17397 # If it succeeded, then it was overridden by the user. We will use it 17398 # for the tool. 17399 17400 # First remove it from the list of overridden variables, so we can test 17401 # for unknown variables in the end. 17402 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17403 17404 # Check if the provided tool contains a complete path. 17405 tool_specified="$UNZIP" 17406 tool_basename="${tool_specified##*/}" 17407 if test "x$tool_basename" = "x$tool_specified"; then 17408 # A command without a complete path is provided, search $PATH. 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17410 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17411 # Extract the first word of "$tool_basename", so it can be a program name with args. 17412 set dummy $tool_basename; ac_word=$2 17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17414 $as_echo_n "checking for $ac_word... " >&6; } 17415 if ${ac_cv_path_UNZIP+:} false; then : 17416 $as_echo_n "(cached) " >&6 17417 else 17418 case $UNZIP in 17419 [\\/]* | ?:[\\/]*) 17420 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17421 ;; 17422 *) 17423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17424 for as_dir in $PATH 17425 do 17426 IFS=$as_save_IFS 17427 test -z "$as_dir" && as_dir=. 17428 for ac_exec_ext in '' $ac_executable_extensions; do 17429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17430 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17432 break 2 17433 fi 17434 done 17435 done 17436 IFS=$as_save_IFS 17437 17438 ;; 17439 esac 17440 fi 17441 UNZIP=$ac_cv_path_UNZIP 17442 if test -n "$UNZIP"; then 17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17444 $as_echo "$UNZIP" >&6; } 17445 else 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17447 $as_echo "no" >&6; } 17448 fi 17449 17450 17451 if test "x$UNZIP" = x; then 17452 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17453 fi 17454 else 17455 # Otherwise we believe it is a complete path. Use it as it is. 17456 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17457 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17459 $as_echo_n "checking for UNZIP... " >&6; } 17460 if test ! -x "$tool_specified"; then 17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17462 $as_echo "not found" >&6; } 17463 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17464 fi 17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17466 $as_echo "$tool_specified" >&6; } 17467 fi 17468 fi 17469 fi 17470 17471 17472 17473 if test "x$UNZIP" = x; then 17474 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17475 fi 17476 17477 17478 17479 17480 17481 # Publish this variable in the help. 17482 17483 17484 if test "x$ZIP" = x; then 17485 # The variable is not set by user, try to locate tool using the code snippet 17486 for ac_prog in zip 17487 do 17488 # Extract the first word of "$ac_prog", so it can be a program name with args. 17489 set dummy $ac_prog; ac_word=$2 17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17491 $as_echo_n "checking for $ac_word... " >&6; } 17492 if ${ac_cv_path_ZIP+:} false; then : 17493 $as_echo_n "(cached) " >&6 17494 else 17495 case $ZIP in 17496 [\\/]* | ?:[\\/]*) 17497 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17498 ;; 17499 *) 17500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17501 for as_dir in $PATH 17502 do 17503 IFS=$as_save_IFS 17504 test -z "$as_dir" && as_dir=. 17505 for ac_exec_ext in '' $ac_executable_extensions; do 17506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17507 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17509 break 2 17510 fi 17511 done 17512 done 17513 IFS=$as_save_IFS 17514 17515 ;; 17516 esac 17517 fi 17518 ZIP=$ac_cv_path_ZIP 17519 if test -n "$ZIP"; then 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17521 $as_echo "$ZIP" >&6; } 17522 else 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17524 $as_echo "no" >&6; } 17525 fi 17526 17527 17528 test -n "$ZIP" && break 17529 done 17530 17531 else 17532 # The variable is set, but is it from the command line or the environment? 17533 17534 # Try to remove the string !ZIP! from our list. 17535 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17536 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17537 # If it failed, the variable was not from the command line. Ignore it, 17538 # but warn the user (except for BASH, which is always set by the calling BASH). 17539 if test "xZIP" != xBASH; then 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17541 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17542 fi 17543 # Try to locate tool using the code snippet 17544 for ac_prog in zip 17545 do 17546 # Extract the first word of "$ac_prog", so it can be a program name with args. 17547 set dummy $ac_prog; ac_word=$2 17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17549 $as_echo_n "checking for $ac_word... " >&6; } 17550 if ${ac_cv_path_ZIP+:} false; then : 17551 $as_echo_n "(cached) " >&6 17552 else 17553 case $ZIP in 17554 [\\/]* | ?:[\\/]*) 17555 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17556 ;; 17557 *) 17558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17559 for as_dir in $PATH 17560 do 17561 IFS=$as_save_IFS 17562 test -z "$as_dir" && as_dir=. 17563 for ac_exec_ext in '' $ac_executable_extensions; do 17564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17565 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17567 break 2 17568 fi 17569 done 17570 done 17571 IFS=$as_save_IFS 17572 17573 ;; 17574 esac 17575 fi 17576 ZIP=$ac_cv_path_ZIP 17577 if test -n "$ZIP"; then 17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17579 $as_echo "$ZIP" >&6; } 17580 else 17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17582 $as_echo "no" >&6; } 17583 fi 17584 17585 17586 test -n "$ZIP" && break 17587 done 17588 17589 else 17590 # If it succeeded, then it was overridden by the user. We will use it 17591 # for the tool. 17592 17593 # First remove it from the list of overridden variables, so we can test 17594 # for unknown variables in the end. 17595 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17596 17597 # Check if the provided tool contains a complete path. 17598 tool_specified="$ZIP" 17599 tool_basename="${tool_specified##*/}" 17600 if test "x$tool_basename" = "x$tool_specified"; then 17601 # A command without a complete path is provided, search $PATH. 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17603 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17604 # Extract the first word of "$tool_basename", so it can be a program name with args. 17605 set dummy $tool_basename; ac_word=$2 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17607 $as_echo_n "checking for $ac_word... " >&6; } 17608 if ${ac_cv_path_ZIP+:} false; then : 17609 $as_echo_n "(cached) " >&6 17610 else 17611 case $ZIP in 17612 [\\/]* | ?:[\\/]*) 17613 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17614 ;; 17615 *) 17616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17617 for as_dir in $PATH 17618 do 17619 IFS=$as_save_IFS 17620 test -z "$as_dir" && as_dir=. 17621 for ac_exec_ext in '' $ac_executable_extensions; do 17622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17623 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17625 break 2 17626 fi 17627 done 17628 done 17629 IFS=$as_save_IFS 17630 17631 ;; 17632 esac 17633 fi 17634 ZIP=$ac_cv_path_ZIP 17635 if test -n "$ZIP"; then 17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17637 $as_echo "$ZIP" >&6; } 17638 else 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17640 $as_echo "no" >&6; } 17641 fi 17642 17643 17644 if test "x$ZIP" = x; then 17645 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17646 fi 17647 else 17648 # Otherwise we believe it is a complete path. Use it as it is. 17649 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17650 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17652 $as_echo_n "checking for ZIP... " >&6; } 17653 if test ! -x "$tool_specified"; then 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17655 $as_echo "not found" >&6; } 17656 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17657 fi 17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17659 $as_echo "$tool_specified" >&6; } 17660 fi 17661 fi 17662 fi 17663 17664 17665 17666 if test "x$ZIP" = x; then 17667 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17668 fi 17669 17670 17671 17672 # Non-required basic tools 17673 17674 17675 17676 # Publish this variable in the help. 17677 17678 17679 if test "x$LDD" = x; then 17680 # The variable is not set by user, try to locate tool using the code snippet 17681 for ac_prog in ldd 17682 do 17683 # Extract the first word of "$ac_prog", so it can be a program name with args. 17684 set dummy $ac_prog; ac_word=$2 17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17686 $as_echo_n "checking for $ac_word... " >&6; } 17687 if ${ac_cv_path_LDD+:} false; then : 17688 $as_echo_n "(cached) " >&6 17689 else 17690 case $LDD in 17691 [\\/]* | ?:[\\/]*) 17692 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17693 ;; 17694 *) 17695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17696 for as_dir in $PATH 17697 do 17698 IFS=$as_save_IFS 17699 test -z "$as_dir" && as_dir=. 17700 for ac_exec_ext in '' $ac_executable_extensions; do 17701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17702 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17704 break 2 17705 fi 17706 done 17707 done 17708 IFS=$as_save_IFS 17709 17710 ;; 17711 esac 17712 fi 17713 LDD=$ac_cv_path_LDD 17714 if test -n "$LDD"; then 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17716 $as_echo "$LDD" >&6; } 17717 else 17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17719 $as_echo "no" >&6; } 17720 fi 17721 17722 17723 test -n "$LDD" && break 17724 done 17725 17726 else 17727 # The variable is set, but is it from the command line or the environment? 17728 17729 # Try to remove the string !LDD! from our list. 17730 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17731 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17732 # If it failed, the variable was not from the command line. Ignore it, 17733 # but warn the user (except for BASH, which is always set by the calling BASH). 17734 if test "xLDD" != xBASH; then 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17736 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17737 fi 17738 # Try to locate tool using the code snippet 17739 for ac_prog in ldd 17740 do 17741 # Extract the first word of "$ac_prog", so it can be a program name with args. 17742 set dummy $ac_prog; ac_word=$2 17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17744 $as_echo_n "checking for $ac_word... " >&6; } 17745 if ${ac_cv_path_LDD+:} false; then : 17746 $as_echo_n "(cached) " >&6 17747 else 17748 case $LDD in 17749 [\\/]* | ?:[\\/]*) 17750 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17751 ;; 17752 *) 17753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17754 for as_dir in $PATH 17755 do 17756 IFS=$as_save_IFS 17757 test -z "$as_dir" && as_dir=. 17758 for ac_exec_ext in '' $ac_executable_extensions; do 17759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17760 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17762 break 2 17763 fi 17764 done 17765 done 17766 IFS=$as_save_IFS 17767 17768 ;; 17769 esac 17770 fi 17771 LDD=$ac_cv_path_LDD 17772 if test -n "$LDD"; then 17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17774 $as_echo "$LDD" >&6; } 17775 else 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17777 $as_echo "no" >&6; } 17778 fi 17779 17780 17781 test -n "$LDD" && break 17782 done 17783 17784 else 17785 # If it succeeded, then it was overridden by the user. We will use it 17786 # for the tool. 17787 17788 # First remove it from the list of overridden variables, so we can test 17789 # for unknown variables in the end. 17790 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17791 17792 # Check if the provided tool contains a complete path. 17793 tool_specified="$LDD" 17794 tool_basename="${tool_specified##*/}" 17795 if test "x$tool_basename" = "x$tool_specified"; then 17796 # A command without a complete path is provided, search $PATH. 17797 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17798 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17799 # Extract the first word of "$tool_basename", so it can be a program name with args. 17800 set dummy $tool_basename; ac_word=$2 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17802 $as_echo_n "checking for $ac_word... " >&6; } 17803 if ${ac_cv_path_LDD+:} false; then : 17804 $as_echo_n "(cached) " >&6 17805 else 17806 case $LDD in 17807 [\\/]* | ?:[\\/]*) 17808 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17809 ;; 17810 *) 17811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17812 for as_dir in $PATH 17813 do 17814 IFS=$as_save_IFS 17815 test -z "$as_dir" && as_dir=. 17816 for ac_exec_ext in '' $ac_executable_extensions; do 17817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17818 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17820 break 2 17821 fi 17822 done 17823 done 17824 IFS=$as_save_IFS 17825 17826 ;; 17827 esac 17828 fi 17829 LDD=$ac_cv_path_LDD 17830 if test -n "$LDD"; then 17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17832 $as_echo "$LDD" >&6; } 17833 else 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17835 $as_echo "no" >&6; } 17836 fi 17837 17838 17839 if test "x$LDD" = x; then 17840 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17841 fi 17842 else 17843 # Otherwise we believe it is a complete path. Use it as it is. 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17845 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17847 $as_echo_n "checking for LDD... " >&6; } 17848 if test ! -x "$tool_specified"; then 17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17850 $as_echo "not found" >&6; } 17851 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17852 fi 17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17854 $as_echo "$tool_specified" >&6; } 17855 fi 17856 fi 17857 fi 17858 17859 17860 if test "x$LDD" = "x"; then 17861 # List shared lib dependencies is used for 17862 # debug output and checking for forbidden dependencies. 17863 # We can build without it. 17864 LDD="true" 17865 fi 17866 17867 17868 # Publish this variable in the help. 17869 17870 17871 if test "x$READELF" = x; then 17872 # The variable is not set by user, try to locate tool using the code snippet 17873 for ac_prog in readelf greadelf 17874 do 17875 # Extract the first word of "$ac_prog", so it can be a program name with args. 17876 set dummy $ac_prog; ac_word=$2 17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17878 $as_echo_n "checking for $ac_word... " >&6; } 17879 if ${ac_cv_path_READELF+:} false; then : 17880 $as_echo_n "(cached) " >&6 17881 else 17882 case $READELF in 17883 [\\/]* | ?:[\\/]*) 17884 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17885 ;; 17886 *) 17887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17888 for as_dir in $PATH 17889 do 17890 IFS=$as_save_IFS 17891 test -z "$as_dir" && as_dir=. 17892 for ac_exec_ext in '' $ac_executable_extensions; do 17893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17894 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17896 break 2 17897 fi 17898 done 17899 done 17900 IFS=$as_save_IFS 17901 17902 ;; 17903 esac 17904 fi 17905 READELF=$ac_cv_path_READELF 17906 if test -n "$READELF"; then 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17908 $as_echo "$READELF" >&6; } 17909 else 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17911 $as_echo "no" >&6; } 17912 fi 17913 17914 17915 test -n "$READELF" && break 17916 done 17917 17918 else 17919 # The variable is set, but is it from the command line or the environment? 17920 17921 # Try to remove the string !READELF! from our list. 17922 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17923 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17924 # If it failed, the variable was not from the command line. Ignore it, 17925 # but warn the user (except for BASH, which is always set by the calling BASH). 17926 if test "xREADELF" != xBASH; then 17927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17928 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17929 fi 17930 # Try to locate tool using the code snippet 17931 for ac_prog in readelf greadelf 17932 do 17933 # Extract the first word of "$ac_prog", so it can be a program name with args. 17934 set dummy $ac_prog; ac_word=$2 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17936 $as_echo_n "checking for $ac_word... " >&6; } 17937 if ${ac_cv_path_READELF+:} false; then : 17938 $as_echo_n "(cached) " >&6 17939 else 17940 case $READELF in 17941 [\\/]* | ?:[\\/]*) 17942 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17943 ;; 17944 *) 17945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17946 for as_dir in $PATH 17947 do 17948 IFS=$as_save_IFS 17949 test -z "$as_dir" && as_dir=. 17950 for ac_exec_ext in '' $ac_executable_extensions; do 17951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17952 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17954 break 2 17955 fi 17956 done 17957 done 17958 IFS=$as_save_IFS 17959 17960 ;; 17961 esac 17962 fi 17963 READELF=$ac_cv_path_READELF 17964 if test -n "$READELF"; then 17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17966 $as_echo "$READELF" >&6; } 17967 else 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17969 $as_echo "no" >&6; } 17970 fi 17971 17972 17973 test -n "$READELF" && break 17974 done 17975 17976 else 17977 # If it succeeded, then it was overridden by the user. We will use it 17978 # for the tool. 17979 17980 # First remove it from the list of overridden variables, so we can test 17981 # for unknown variables in the end. 17982 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17983 17984 # Check if the provided tool contains a complete path. 17985 tool_specified="$READELF" 17986 tool_basename="${tool_specified##*/}" 17987 if test "x$tool_basename" = "x$tool_specified"; then 17988 # A command without a complete path is provided, search $PATH. 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17990 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17991 # Extract the first word of "$tool_basename", so it can be a program name with args. 17992 set dummy $tool_basename; ac_word=$2 17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17994 $as_echo_n "checking for $ac_word... " >&6; } 17995 if ${ac_cv_path_READELF+:} false; then : 17996 $as_echo_n "(cached) " >&6 17997 else 17998 case $READELF in 17999 [\\/]* | ?:[\\/]*) 18000 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18001 ;; 18002 *) 18003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18004 for as_dir in $PATH 18005 do 18006 IFS=$as_save_IFS 18007 test -z "$as_dir" && as_dir=. 18008 for ac_exec_ext in '' $ac_executable_extensions; do 18009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18010 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18012 break 2 18013 fi 18014 done 18015 done 18016 IFS=$as_save_IFS 18017 18018 ;; 18019 esac 18020 fi 18021 READELF=$ac_cv_path_READELF 18022 if test -n "$READELF"; then 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18024 $as_echo "$READELF" >&6; } 18025 else 18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18027 $as_echo "no" >&6; } 18028 fi 18029 18030 18031 if test "x$READELF" = x; then 18032 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18033 fi 18034 else 18035 # Otherwise we believe it is a complete path. Use it as it is. 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18037 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18039 $as_echo_n "checking for READELF... " >&6; } 18040 if test ! -x "$tool_specified"; then 18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18042 $as_echo "not found" >&6; } 18043 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18044 fi 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18046 $as_echo "$tool_specified" >&6; } 18047 fi 18048 fi 18049 fi 18050 18051 18052 18053 18054 # Publish this variable in the help. 18055 18056 18057 if test "x$HG" = x; then 18058 # The variable is not set by user, try to locate tool using the code snippet 18059 for ac_prog in hg 18060 do 18061 # Extract the first word of "$ac_prog", so it can be a program name with args. 18062 set dummy $ac_prog; ac_word=$2 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18064 $as_echo_n "checking for $ac_word... " >&6; } 18065 if ${ac_cv_path_HG+:} false; then : 18066 $as_echo_n "(cached) " >&6 18067 else 18068 case $HG in 18069 [\\/]* | ?:[\\/]*) 18070 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18071 ;; 18072 *) 18073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18074 for as_dir in $PATH 18075 do 18076 IFS=$as_save_IFS 18077 test -z "$as_dir" && as_dir=. 18078 for ac_exec_ext in '' $ac_executable_extensions; do 18079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18080 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18082 break 2 18083 fi 18084 done 18085 done 18086 IFS=$as_save_IFS 18087 18088 ;; 18089 esac 18090 fi 18091 HG=$ac_cv_path_HG 18092 if test -n "$HG"; then 18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18094 $as_echo "$HG" >&6; } 18095 else 18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18097 $as_echo "no" >&6; } 18098 fi 18099 18100 18101 test -n "$HG" && break 18102 done 18103 18104 else 18105 # The variable is set, but is it from the command line or the environment? 18106 18107 # Try to remove the string !HG! from our list. 18108 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18109 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18110 # If it failed, the variable was not from the command line. Ignore it, 18111 # but warn the user (except for BASH, which is always set by the calling BASH). 18112 if test "xHG" != xBASH; then 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18114 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18115 fi 18116 # Try to locate tool using the code snippet 18117 for ac_prog in hg 18118 do 18119 # Extract the first word of "$ac_prog", so it can be a program name with args. 18120 set dummy $ac_prog; ac_word=$2 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18122 $as_echo_n "checking for $ac_word... " >&6; } 18123 if ${ac_cv_path_HG+:} false; then : 18124 $as_echo_n "(cached) " >&6 18125 else 18126 case $HG in 18127 [\\/]* | ?:[\\/]*) 18128 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18129 ;; 18130 *) 18131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18132 for as_dir in $PATH 18133 do 18134 IFS=$as_save_IFS 18135 test -z "$as_dir" && as_dir=. 18136 for ac_exec_ext in '' $ac_executable_extensions; do 18137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18138 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18140 break 2 18141 fi 18142 done 18143 done 18144 IFS=$as_save_IFS 18145 18146 ;; 18147 esac 18148 fi 18149 HG=$ac_cv_path_HG 18150 if test -n "$HG"; then 18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18152 $as_echo "$HG" >&6; } 18153 else 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18155 $as_echo "no" >&6; } 18156 fi 18157 18158 18159 test -n "$HG" && break 18160 done 18161 18162 else 18163 # If it succeeded, then it was overridden by the user. We will use it 18164 # for the tool. 18165 18166 # First remove it from the list of overridden variables, so we can test 18167 # for unknown variables in the end. 18168 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18169 18170 # Check if the provided tool contains a complete path. 18171 tool_specified="$HG" 18172 tool_basename="${tool_specified##*/}" 18173 if test "x$tool_basename" = "x$tool_specified"; then 18174 # A command without a complete path is provided, search $PATH. 18175 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18176 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18177 # Extract the first word of "$tool_basename", so it can be a program name with args. 18178 set dummy $tool_basename; ac_word=$2 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18180 $as_echo_n "checking for $ac_word... " >&6; } 18181 if ${ac_cv_path_HG+:} false; then : 18182 $as_echo_n "(cached) " >&6 18183 else 18184 case $HG in 18185 [\\/]* | ?:[\\/]*) 18186 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18187 ;; 18188 *) 18189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18190 for as_dir in $PATH 18191 do 18192 IFS=$as_save_IFS 18193 test -z "$as_dir" && as_dir=. 18194 for ac_exec_ext in '' $ac_executable_extensions; do 18195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18196 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18198 break 2 18199 fi 18200 done 18201 done 18202 IFS=$as_save_IFS 18203 18204 ;; 18205 esac 18206 fi 18207 HG=$ac_cv_path_HG 18208 if test -n "$HG"; then 18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18210 $as_echo "$HG" >&6; } 18211 else 18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18213 $as_echo "no" >&6; } 18214 fi 18215 18216 18217 if test "x$HG" = x; then 18218 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18219 fi 18220 else 18221 # Otherwise we believe it is a complete path. Use it as it is. 18222 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18223 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18225 $as_echo_n "checking for HG... " >&6; } 18226 if test ! -x "$tool_specified"; then 18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18228 $as_echo "not found" >&6; } 18229 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18230 fi 18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18232 $as_echo "$tool_specified" >&6; } 18233 fi 18234 fi 18235 fi 18236 18237 18238 18239 18240 # Publish this variable in the help. 18241 18242 18243 if test "x$STAT" = x; then 18244 # The variable is not set by user, try to locate tool using the code snippet 18245 for ac_prog in stat 18246 do 18247 # Extract the first word of "$ac_prog", so it can be a program name with args. 18248 set dummy $ac_prog; ac_word=$2 18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18250 $as_echo_n "checking for $ac_word... " >&6; } 18251 if ${ac_cv_path_STAT+:} false; then : 18252 $as_echo_n "(cached) " >&6 18253 else 18254 case $STAT in 18255 [\\/]* | ?:[\\/]*) 18256 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18257 ;; 18258 *) 18259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18260 for as_dir in $PATH 18261 do 18262 IFS=$as_save_IFS 18263 test -z "$as_dir" && as_dir=. 18264 for ac_exec_ext in '' $ac_executable_extensions; do 18265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18266 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18268 break 2 18269 fi 18270 done 18271 done 18272 IFS=$as_save_IFS 18273 18274 ;; 18275 esac 18276 fi 18277 STAT=$ac_cv_path_STAT 18278 if test -n "$STAT"; then 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18280 $as_echo "$STAT" >&6; } 18281 else 18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18283 $as_echo "no" >&6; } 18284 fi 18285 18286 18287 test -n "$STAT" && break 18288 done 18289 18290 else 18291 # The variable is set, but is it from the command line or the environment? 18292 18293 # Try to remove the string !STAT! from our list. 18294 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18295 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18296 # If it failed, the variable was not from the command line. Ignore it, 18297 # but warn the user (except for BASH, which is always set by the calling BASH). 18298 if test "xSTAT" != xBASH; then 18299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18300 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18301 fi 18302 # Try to locate tool using the code snippet 18303 for ac_prog in stat 18304 do 18305 # Extract the first word of "$ac_prog", so it can be a program name with args. 18306 set dummy $ac_prog; ac_word=$2 18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18308 $as_echo_n "checking for $ac_word... " >&6; } 18309 if ${ac_cv_path_STAT+:} false; then : 18310 $as_echo_n "(cached) " >&6 18311 else 18312 case $STAT in 18313 [\\/]* | ?:[\\/]*) 18314 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18315 ;; 18316 *) 18317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18318 for as_dir in $PATH 18319 do 18320 IFS=$as_save_IFS 18321 test -z "$as_dir" && as_dir=. 18322 for ac_exec_ext in '' $ac_executable_extensions; do 18323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18324 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18326 break 2 18327 fi 18328 done 18329 done 18330 IFS=$as_save_IFS 18331 18332 ;; 18333 esac 18334 fi 18335 STAT=$ac_cv_path_STAT 18336 if test -n "$STAT"; then 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18338 $as_echo "$STAT" >&6; } 18339 else 18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18341 $as_echo "no" >&6; } 18342 fi 18343 18344 18345 test -n "$STAT" && break 18346 done 18347 18348 else 18349 # If it succeeded, then it was overridden by the user. We will use it 18350 # for the tool. 18351 18352 # First remove it from the list of overridden variables, so we can test 18353 # for unknown variables in the end. 18354 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18355 18356 # Check if the provided tool contains a complete path. 18357 tool_specified="$STAT" 18358 tool_basename="${tool_specified##*/}" 18359 if test "x$tool_basename" = "x$tool_specified"; then 18360 # A command without a complete path is provided, search $PATH. 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18362 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18363 # Extract the first word of "$tool_basename", so it can be a program name with args. 18364 set dummy $tool_basename; ac_word=$2 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18366 $as_echo_n "checking for $ac_word... " >&6; } 18367 if ${ac_cv_path_STAT+:} false; then : 18368 $as_echo_n "(cached) " >&6 18369 else 18370 case $STAT in 18371 [\\/]* | ?:[\\/]*) 18372 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18373 ;; 18374 *) 18375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18376 for as_dir in $PATH 18377 do 18378 IFS=$as_save_IFS 18379 test -z "$as_dir" && as_dir=. 18380 for ac_exec_ext in '' $ac_executable_extensions; do 18381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18382 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18384 break 2 18385 fi 18386 done 18387 done 18388 IFS=$as_save_IFS 18389 18390 ;; 18391 esac 18392 fi 18393 STAT=$ac_cv_path_STAT 18394 if test -n "$STAT"; then 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18396 $as_echo "$STAT" >&6; } 18397 else 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18399 $as_echo "no" >&6; } 18400 fi 18401 18402 18403 if test "x$STAT" = x; then 18404 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18405 fi 18406 else 18407 # Otherwise we believe it is a complete path. Use it as it is. 18408 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18409 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18411 $as_echo_n "checking for STAT... " >&6; } 18412 if test ! -x "$tool_specified"; then 18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18414 $as_echo "not found" >&6; } 18415 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18416 fi 18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18418 $as_echo "$tool_specified" >&6; } 18419 fi 18420 fi 18421 fi 18422 18423 18424 18425 18426 # Publish this variable in the help. 18427 18428 18429 if test "x$TIME" = x; then 18430 # The variable is not set by user, try to locate tool using the code snippet 18431 for ac_prog in time 18432 do 18433 # Extract the first word of "$ac_prog", so it can be a program name with args. 18434 set dummy $ac_prog; ac_word=$2 18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18436 $as_echo_n "checking for $ac_word... " >&6; } 18437 if ${ac_cv_path_TIME+:} false; then : 18438 $as_echo_n "(cached) " >&6 18439 else 18440 case $TIME in 18441 [\\/]* | ?:[\\/]*) 18442 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18443 ;; 18444 *) 18445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18446 for as_dir in $PATH 18447 do 18448 IFS=$as_save_IFS 18449 test -z "$as_dir" && as_dir=. 18450 for ac_exec_ext in '' $ac_executable_extensions; do 18451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18452 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18454 break 2 18455 fi 18456 done 18457 done 18458 IFS=$as_save_IFS 18459 18460 ;; 18461 esac 18462 fi 18463 TIME=$ac_cv_path_TIME 18464 if test -n "$TIME"; then 18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18466 $as_echo "$TIME" >&6; } 18467 else 18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18469 $as_echo "no" >&6; } 18470 fi 18471 18472 18473 test -n "$TIME" && break 18474 done 18475 18476 else 18477 # The variable is set, but is it from the command line or the environment? 18478 18479 # Try to remove the string !TIME! from our list. 18480 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18481 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18482 # If it failed, the variable was not from the command line. Ignore it, 18483 # but warn the user (except for BASH, which is always set by the calling BASH). 18484 if test "xTIME" != xBASH; then 18485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18486 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18487 fi 18488 # Try to locate tool using the code snippet 18489 for ac_prog in time 18490 do 18491 # Extract the first word of "$ac_prog", so it can be a program name with args. 18492 set dummy $ac_prog; ac_word=$2 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18494 $as_echo_n "checking for $ac_word... " >&6; } 18495 if ${ac_cv_path_TIME+:} false; then : 18496 $as_echo_n "(cached) " >&6 18497 else 18498 case $TIME in 18499 [\\/]* | ?:[\\/]*) 18500 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18501 ;; 18502 *) 18503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18504 for as_dir in $PATH 18505 do 18506 IFS=$as_save_IFS 18507 test -z "$as_dir" && as_dir=. 18508 for ac_exec_ext in '' $ac_executable_extensions; do 18509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18510 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18512 break 2 18513 fi 18514 done 18515 done 18516 IFS=$as_save_IFS 18517 18518 ;; 18519 esac 18520 fi 18521 TIME=$ac_cv_path_TIME 18522 if test -n "$TIME"; then 18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18524 $as_echo "$TIME" >&6; } 18525 else 18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18527 $as_echo "no" >&6; } 18528 fi 18529 18530 18531 test -n "$TIME" && break 18532 done 18533 18534 else 18535 # If it succeeded, then it was overridden by the user. We will use it 18536 # for the tool. 18537 18538 # First remove it from the list of overridden variables, so we can test 18539 # for unknown variables in the end. 18540 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18541 18542 # Check if the provided tool contains a complete path. 18543 tool_specified="$TIME" 18544 tool_basename="${tool_specified##*/}" 18545 if test "x$tool_basename" = "x$tool_specified"; then 18546 # A command without a complete path is provided, search $PATH. 18547 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18548 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18549 # Extract the first word of "$tool_basename", so it can be a program name with args. 18550 set dummy $tool_basename; ac_word=$2 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18552 $as_echo_n "checking for $ac_word... " >&6; } 18553 if ${ac_cv_path_TIME+:} false; then : 18554 $as_echo_n "(cached) " >&6 18555 else 18556 case $TIME in 18557 [\\/]* | ?:[\\/]*) 18558 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18559 ;; 18560 *) 18561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18562 for as_dir in $PATH 18563 do 18564 IFS=$as_save_IFS 18565 test -z "$as_dir" && as_dir=. 18566 for ac_exec_ext in '' $ac_executable_extensions; do 18567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18568 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18570 break 2 18571 fi 18572 done 18573 done 18574 IFS=$as_save_IFS 18575 18576 ;; 18577 esac 18578 fi 18579 TIME=$ac_cv_path_TIME 18580 if test -n "$TIME"; then 18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18582 $as_echo "$TIME" >&6; } 18583 else 18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18585 $as_echo "no" >&6; } 18586 fi 18587 18588 18589 if test "x$TIME" = x; then 18590 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18591 fi 18592 else 18593 # Otherwise we believe it is a complete path. Use it as it is. 18594 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18595 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18597 $as_echo_n "checking for TIME... " >&6; } 18598 if test ! -x "$tool_specified"; then 18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18600 $as_echo "not found" >&6; } 18601 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18602 fi 18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18604 $as_echo "$tool_specified" >&6; } 18605 fi 18606 fi 18607 fi 18608 18609 18610 # Check if it's GNU time 18611 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18612 if test "x$IS_GNU_TIME" != x; then 18613 IS_GNU_TIME=yes 18614 else 18615 IS_GNU_TIME=no 18616 fi 18617 18618 18619 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18620 18621 18622 18623 # Publish this variable in the help. 18624 18625 18626 if test "x$COMM" = x; then 18627 # The variable is not set by user, try to locate tool using the code snippet 18628 for ac_prog in comm 18629 do 18630 # Extract the first word of "$ac_prog", so it can be a program name with args. 18631 set dummy $ac_prog; ac_word=$2 18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18633 $as_echo_n "checking for $ac_word... " >&6; } 18634 if ${ac_cv_path_COMM+:} false; then : 18635 $as_echo_n "(cached) " >&6 18636 else 18637 case $COMM in 18638 [\\/]* | ?:[\\/]*) 18639 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18640 ;; 18641 *) 18642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18643 for as_dir in $PATH 18644 do 18645 IFS=$as_save_IFS 18646 test -z "$as_dir" && as_dir=. 18647 for ac_exec_ext in '' $ac_executable_extensions; do 18648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18649 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18651 break 2 18652 fi 18653 done 18654 done 18655 IFS=$as_save_IFS 18656 18657 ;; 18658 esac 18659 fi 18660 COMM=$ac_cv_path_COMM 18661 if test -n "$COMM"; then 18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18663 $as_echo "$COMM" >&6; } 18664 else 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18666 $as_echo "no" >&6; } 18667 fi 18668 18669 18670 test -n "$COMM" && break 18671 done 18672 18673 else 18674 # The variable is set, but is it from the command line or the environment? 18675 18676 # Try to remove the string !COMM! from our list. 18677 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18678 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18679 # If it failed, the variable was not from the command line. Ignore it, 18680 # but warn the user (except for BASH, which is always set by the calling BASH). 18681 if test "xCOMM" != xBASH; then 18682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18683 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18684 fi 18685 # Try to locate tool using the code snippet 18686 for ac_prog in comm 18687 do 18688 # Extract the first word of "$ac_prog", so it can be a program name with args. 18689 set dummy $ac_prog; ac_word=$2 18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18691 $as_echo_n "checking for $ac_word... " >&6; } 18692 if ${ac_cv_path_COMM+:} false; then : 18693 $as_echo_n "(cached) " >&6 18694 else 18695 case $COMM in 18696 [\\/]* | ?:[\\/]*) 18697 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18698 ;; 18699 *) 18700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18701 for as_dir in $PATH 18702 do 18703 IFS=$as_save_IFS 18704 test -z "$as_dir" && as_dir=. 18705 for ac_exec_ext in '' $ac_executable_extensions; do 18706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18707 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18709 break 2 18710 fi 18711 done 18712 done 18713 IFS=$as_save_IFS 18714 18715 ;; 18716 esac 18717 fi 18718 COMM=$ac_cv_path_COMM 18719 if test -n "$COMM"; then 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18721 $as_echo "$COMM" >&6; } 18722 else 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18724 $as_echo "no" >&6; } 18725 fi 18726 18727 18728 test -n "$COMM" && break 18729 done 18730 18731 else 18732 # If it succeeded, then it was overridden by the user. We will use it 18733 # for the tool. 18734 18735 # First remove it from the list of overridden variables, so we can test 18736 # for unknown variables in the end. 18737 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18738 18739 # Check if the provided tool contains a complete path. 18740 tool_specified="$COMM" 18741 tool_basename="${tool_specified##*/}" 18742 if test "x$tool_basename" = "x$tool_specified"; then 18743 # A command without a complete path is provided, search $PATH. 18744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18745 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18746 # Extract the first word of "$tool_basename", so it can be a program name with args. 18747 set dummy $tool_basename; ac_word=$2 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18749 $as_echo_n "checking for $ac_word... " >&6; } 18750 if ${ac_cv_path_COMM+:} false; then : 18751 $as_echo_n "(cached) " >&6 18752 else 18753 case $COMM in 18754 [\\/]* | ?:[\\/]*) 18755 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18756 ;; 18757 *) 18758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18759 for as_dir in $PATH 18760 do 18761 IFS=$as_save_IFS 18762 test -z "$as_dir" && as_dir=. 18763 for ac_exec_ext in '' $ac_executable_extensions; do 18764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18765 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18767 break 2 18768 fi 18769 done 18770 done 18771 IFS=$as_save_IFS 18772 18773 ;; 18774 esac 18775 fi 18776 COMM=$ac_cv_path_COMM 18777 if test -n "$COMM"; then 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18779 $as_echo "$COMM" >&6; } 18780 else 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18782 $as_echo "no" >&6; } 18783 fi 18784 18785 18786 if test "x$COMM" = x; then 18787 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18788 fi 18789 else 18790 # Otherwise we believe it is a complete path. Use it as it is. 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18792 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18794 $as_echo_n "checking for COMM... " >&6; } 18795 if test ! -x "$tool_specified"; then 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18797 $as_echo "not found" >&6; } 18798 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18799 fi 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18801 $as_echo "$tool_specified" >&6; } 18802 fi 18803 fi 18804 fi 18805 18806 18807 18808 if test "x$COMM" = x; then 18809 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18810 fi 18811 18812 18813 fi 18814 18815 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18816 18817 18818 18819 # Publish this variable in the help. 18820 18821 18822 if test "x$DSYMUTIL" = x; then 18823 # The variable is not set by user, try to locate tool using the code snippet 18824 for ac_prog in dsymutil 18825 do 18826 # Extract the first word of "$ac_prog", so it can be a program name with args. 18827 set dummy $ac_prog; ac_word=$2 18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18829 $as_echo_n "checking for $ac_word... " >&6; } 18830 if ${ac_cv_path_DSYMUTIL+:} false; then : 18831 $as_echo_n "(cached) " >&6 18832 else 18833 case $DSYMUTIL in 18834 [\\/]* | ?:[\\/]*) 18835 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18836 ;; 18837 *) 18838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18839 for as_dir in $PATH 18840 do 18841 IFS=$as_save_IFS 18842 test -z "$as_dir" && as_dir=. 18843 for ac_exec_ext in '' $ac_executable_extensions; do 18844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18845 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18847 break 2 18848 fi 18849 done 18850 done 18851 IFS=$as_save_IFS 18852 18853 ;; 18854 esac 18855 fi 18856 DSYMUTIL=$ac_cv_path_DSYMUTIL 18857 if test -n "$DSYMUTIL"; then 18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18859 $as_echo "$DSYMUTIL" >&6; } 18860 else 18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18862 $as_echo "no" >&6; } 18863 fi 18864 18865 18866 test -n "$DSYMUTIL" && break 18867 done 18868 18869 else 18870 # The variable is set, but is it from the command line or the environment? 18871 18872 # Try to remove the string !DSYMUTIL! from our list. 18873 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18874 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18875 # If it failed, the variable was not from the command line. Ignore it, 18876 # but warn the user (except for BASH, which is always set by the calling BASH). 18877 if test "xDSYMUTIL" != xBASH; then 18878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18879 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18880 fi 18881 # Try to locate tool using the code snippet 18882 for ac_prog in dsymutil 18883 do 18884 # Extract the first word of "$ac_prog", so it can be a program name with args. 18885 set dummy $ac_prog; ac_word=$2 18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18887 $as_echo_n "checking for $ac_word... " >&6; } 18888 if ${ac_cv_path_DSYMUTIL+:} false; then : 18889 $as_echo_n "(cached) " >&6 18890 else 18891 case $DSYMUTIL in 18892 [\\/]* | ?:[\\/]*) 18893 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18894 ;; 18895 *) 18896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18897 for as_dir in $PATH 18898 do 18899 IFS=$as_save_IFS 18900 test -z "$as_dir" && as_dir=. 18901 for ac_exec_ext in '' $ac_executable_extensions; do 18902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18903 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18905 break 2 18906 fi 18907 done 18908 done 18909 IFS=$as_save_IFS 18910 18911 ;; 18912 esac 18913 fi 18914 DSYMUTIL=$ac_cv_path_DSYMUTIL 18915 if test -n "$DSYMUTIL"; then 18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18917 $as_echo "$DSYMUTIL" >&6; } 18918 else 18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18920 $as_echo "no" >&6; } 18921 fi 18922 18923 18924 test -n "$DSYMUTIL" && break 18925 done 18926 18927 else 18928 # If it succeeded, then it was overridden by the user. We will use it 18929 # for the tool. 18930 18931 # First remove it from the list of overridden variables, so we can test 18932 # for unknown variables in the end. 18933 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18934 18935 # Check if the provided tool contains a complete path. 18936 tool_specified="$DSYMUTIL" 18937 tool_basename="${tool_specified##*/}" 18938 if test "x$tool_basename" = "x$tool_specified"; then 18939 # A command without a complete path is provided, search $PATH. 18940 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18941 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18942 # Extract the first word of "$tool_basename", so it can be a program name with args. 18943 set dummy $tool_basename; ac_word=$2 18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18945 $as_echo_n "checking for $ac_word... " >&6; } 18946 if ${ac_cv_path_DSYMUTIL+:} false; then : 18947 $as_echo_n "(cached) " >&6 18948 else 18949 case $DSYMUTIL in 18950 [\\/]* | ?:[\\/]*) 18951 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18952 ;; 18953 *) 18954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18955 for as_dir in $PATH 18956 do 18957 IFS=$as_save_IFS 18958 test -z "$as_dir" && as_dir=. 18959 for ac_exec_ext in '' $ac_executable_extensions; do 18960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18961 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18963 break 2 18964 fi 18965 done 18966 done 18967 IFS=$as_save_IFS 18968 18969 ;; 18970 esac 18971 fi 18972 DSYMUTIL=$ac_cv_path_DSYMUTIL 18973 if test -n "$DSYMUTIL"; then 18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18975 $as_echo "$DSYMUTIL" >&6; } 18976 else 18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18978 $as_echo "no" >&6; } 18979 fi 18980 18981 18982 if test "x$DSYMUTIL" = x; then 18983 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18984 fi 18985 else 18986 # Otherwise we believe it is a complete path. Use it as it is. 18987 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18988 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18990 $as_echo_n "checking for DSYMUTIL... " >&6; } 18991 if test ! -x "$tool_specified"; then 18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18993 $as_echo "not found" >&6; } 18994 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18995 fi 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18997 $as_echo "$tool_specified" >&6; } 18998 fi 18999 fi 19000 fi 19001 19002 19003 19004 if test "x$DSYMUTIL" = x; then 19005 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19006 fi 19007 19008 19009 19010 19011 19012 # Publish this variable in the help. 19013 19014 19015 if test "x$XATTR" = x; then 19016 # The variable is not set by user, try to locate tool using the code snippet 19017 for ac_prog in xattr 19018 do 19019 # Extract the first word of "$ac_prog", so it can be a program name with args. 19020 set dummy $ac_prog; ac_word=$2 19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19022 $as_echo_n "checking for $ac_word... " >&6; } 19023 if ${ac_cv_path_XATTR+:} false; then : 19024 $as_echo_n "(cached) " >&6 19025 else 19026 case $XATTR in 19027 [\\/]* | ?:[\\/]*) 19028 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19029 ;; 19030 *) 19031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19032 for as_dir in $PATH 19033 do 19034 IFS=$as_save_IFS 19035 test -z "$as_dir" && as_dir=. 19036 for ac_exec_ext in '' $ac_executable_extensions; do 19037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19038 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19040 break 2 19041 fi 19042 done 19043 done 19044 IFS=$as_save_IFS 19045 19046 ;; 19047 esac 19048 fi 19049 XATTR=$ac_cv_path_XATTR 19050 if test -n "$XATTR"; then 19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19052 $as_echo "$XATTR" >&6; } 19053 else 19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19055 $as_echo "no" >&6; } 19056 fi 19057 19058 19059 test -n "$XATTR" && break 19060 done 19061 19062 else 19063 # The variable is set, but is it from the command line or the environment? 19064 19065 # Try to remove the string !XATTR! from our list. 19066 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19067 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19068 # If it failed, the variable was not from the command line. Ignore it, 19069 # but warn the user (except for BASH, which is always set by the calling BASH). 19070 if test "xXATTR" != xBASH; then 19071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19072 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19073 fi 19074 # Try to locate tool using the code snippet 19075 for ac_prog in xattr 19076 do 19077 # Extract the first word of "$ac_prog", so it can be a program name with args. 19078 set dummy $ac_prog; ac_word=$2 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19080 $as_echo_n "checking for $ac_word... " >&6; } 19081 if ${ac_cv_path_XATTR+:} false; then : 19082 $as_echo_n "(cached) " >&6 19083 else 19084 case $XATTR in 19085 [\\/]* | ?:[\\/]*) 19086 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19087 ;; 19088 *) 19089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19090 for as_dir in $PATH 19091 do 19092 IFS=$as_save_IFS 19093 test -z "$as_dir" && as_dir=. 19094 for ac_exec_ext in '' $ac_executable_extensions; do 19095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19096 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19098 break 2 19099 fi 19100 done 19101 done 19102 IFS=$as_save_IFS 19103 19104 ;; 19105 esac 19106 fi 19107 XATTR=$ac_cv_path_XATTR 19108 if test -n "$XATTR"; then 19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19110 $as_echo "$XATTR" >&6; } 19111 else 19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19113 $as_echo "no" >&6; } 19114 fi 19115 19116 19117 test -n "$XATTR" && break 19118 done 19119 19120 else 19121 # If it succeeded, then it was overridden by the user. We will use it 19122 # for the tool. 19123 19124 # First remove it from the list of overridden variables, so we can test 19125 # for unknown variables in the end. 19126 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19127 19128 # Check if the provided tool contains a complete path. 19129 tool_specified="$XATTR" 19130 tool_basename="${tool_specified##*/}" 19131 if test "x$tool_basename" = "x$tool_specified"; then 19132 # A command without a complete path is provided, search $PATH. 19133 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19134 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19135 # Extract the first word of "$tool_basename", so it can be a program name with args. 19136 set dummy $tool_basename; ac_word=$2 19137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19138 $as_echo_n "checking for $ac_word... " >&6; } 19139 if ${ac_cv_path_XATTR+:} false; then : 19140 $as_echo_n "(cached) " >&6 19141 else 19142 case $XATTR in 19143 [\\/]* | ?:[\\/]*) 19144 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19145 ;; 19146 *) 19147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19148 for as_dir in $PATH 19149 do 19150 IFS=$as_save_IFS 19151 test -z "$as_dir" && as_dir=. 19152 for ac_exec_ext in '' $ac_executable_extensions; do 19153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19154 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19156 break 2 19157 fi 19158 done 19159 done 19160 IFS=$as_save_IFS 19161 19162 ;; 19163 esac 19164 fi 19165 XATTR=$ac_cv_path_XATTR 19166 if test -n "$XATTR"; then 19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19168 $as_echo "$XATTR" >&6; } 19169 else 19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19171 $as_echo "no" >&6; } 19172 fi 19173 19174 19175 if test "x$XATTR" = x; then 19176 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19177 fi 19178 else 19179 # Otherwise we believe it is a complete path. Use it as it is. 19180 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19181 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19183 $as_echo_n "checking for XATTR... " >&6; } 19184 if test ! -x "$tool_specified"; then 19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19186 $as_echo "not found" >&6; } 19187 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19188 fi 19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19190 $as_echo "$tool_specified" >&6; } 19191 fi 19192 fi 19193 fi 19194 19195 19196 19197 if test "x$XATTR" = x; then 19198 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19199 fi 19200 19201 19202 19203 19204 # Publish this variable in the help. 19205 19206 19207 if test "x$CODESIGN" = x; then 19208 # The variable is not set by user, try to locate tool using the code snippet 19209 for ac_prog in codesign 19210 do 19211 # Extract the first word of "$ac_prog", so it can be a program name with args. 19212 set dummy $ac_prog; ac_word=$2 19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19214 $as_echo_n "checking for $ac_word... " >&6; } 19215 if ${ac_cv_path_CODESIGN+:} false; then : 19216 $as_echo_n "(cached) " >&6 19217 else 19218 case $CODESIGN in 19219 [\\/]* | ?:[\\/]*) 19220 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19221 ;; 19222 *) 19223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19224 for as_dir in $PATH 19225 do 19226 IFS=$as_save_IFS 19227 test -z "$as_dir" && as_dir=. 19228 for ac_exec_ext in '' $ac_executable_extensions; do 19229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19230 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19232 break 2 19233 fi 19234 done 19235 done 19236 IFS=$as_save_IFS 19237 19238 ;; 19239 esac 19240 fi 19241 CODESIGN=$ac_cv_path_CODESIGN 19242 if test -n "$CODESIGN"; then 19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19244 $as_echo "$CODESIGN" >&6; } 19245 else 19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19247 $as_echo "no" >&6; } 19248 fi 19249 19250 19251 test -n "$CODESIGN" && break 19252 done 19253 19254 else 19255 # The variable is set, but is it from the command line or the environment? 19256 19257 # Try to remove the string !CODESIGN! from our list. 19258 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19259 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19260 # If it failed, the variable was not from the command line. Ignore it, 19261 # but warn the user (except for BASH, which is always set by the calling BASH). 19262 if test "xCODESIGN" != xBASH; then 19263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19264 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19265 fi 19266 # Try to locate tool using the code snippet 19267 for ac_prog in codesign 19268 do 19269 # Extract the first word of "$ac_prog", so it can be a program name with args. 19270 set dummy $ac_prog; ac_word=$2 19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19272 $as_echo_n "checking for $ac_word... " >&6; } 19273 if ${ac_cv_path_CODESIGN+:} false; then : 19274 $as_echo_n "(cached) " >&6 19275 else 19276 case $CODESIGN in 19277 [\\/]* | ?:[\\/]*) 19278 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19279 ;; 19280 *) 19281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19282 for as_dir in $PATH 19283 do 19284 IFS=$as_save_IFS 19285 test -z "$as_dir" && as_dir=. 19286 for ac_exec_ext in '' $ac_executable_extensions; do 19287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19288 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19290 break 2 19291 fi 19292 done 19293 done 19294 IFS=$as_save_IFS 19295 19296 ;; 19297 esac 19298 fi 19299 CODESIGN=$ac_cv_path_CODESIGN 19300 if test -n "$CODESIGN"; then 19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19302 $as_echo "$CODESIGN" >&6; } 19303 else 19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19305 $as_echo "no" >&6; } 19306 fi 19307 19308 19309 test -n "$CODESIGN" && break 19310 done 19311 19312 else 19313 # If it succeeded, then it was overridden by the user. We will use it 19314 # for the tool. 19315 19316 # First remove it from the list of overridden variables, so we can test 19317 # for unknown variables in the end. 19318 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19319 19320 # Check if the provided tool contains a complete path. 19321 tool_specified="$CODESIGN" 19322 tool_basename="${tool_specified##*/}" 19323 if test "x$tool_basename" = "x$tool_specified"; then 19324 # A command without a complete path is provided, search $PATH. 19325 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19326 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19327 # Extract the first word of "$tool_basename", so it can be a program name with args. 19328 set dummy $tool_basename; ac_word=$2 19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19330 $as_echo_n "checking for $ac_word... " >&6; } 19331 if ${ac_cv_path_CODESIGN+:} false; then : 19332 $as_echo_n "(cached) " >&6 19333 else 19334 case $CODESIGN in 19335 [\\/]* | ?:[\\/]*) 19336 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19337 ;; 19338 *) 19339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19340 for as_dir in $PATH 19341 do 19342 IFS=$as_save_IFS 19343 test -z "$as_dir" && as_dir=. 19344 for ac_exec_ext in '' $ac_executable_extensions; do 19345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19346 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19348 break 2 19349 fi 19350 done 19351 done 19352 IFS=$as_save_IFS 19353 19354 ;; 19355 esac 19356 fi 19357 CODESIGN=$ac_cv_path_CODESIGN 19358 if test -n "$CODESIGN"; then 19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19360 $as_echo "$CODESIGN" >&6; } 19361 else 19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19363 $as_echo "no" >&6; } 19364 fi 19365 19366 19367 if test "x$CODESIGN" = x; then 19368 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19369 fi 19370 else 19371 # Otherwise we believe it is a complete path. Use it as it is. 19372 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19373 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19375 $as_echo_n "checking for CODESIGN... " >&6; } 19376 if test ! -x "$tool_specified"; then 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19378 $as_echo "not found" >&6; } 19379 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19380 fi 19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19382 $as_echo "$tool_specified" >&6; } 19383 fi 19384 fi 19385 fi 19386 19387 19388 if test "x$CODESIGN" != "x"; then 19389 # Verify that the openjdk_codesign certificate is present 19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19391 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19392 rm -f codesign-testfile 19393 touch codesign-testfile 19394 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19395 rm -f codesign-testfile 19396 if test "x$CODESIGN" = x; then 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19398 $as_echo "no" >&6; } 19399 else 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19401 $as_echo "yes" >&6; } 19402 fi 19403 fi 19404 fi 19405 19406 19407 # Check if pkg-config is available. 19408 19409 19410 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19411 if test -n "$ac_tool_prefix"; then 19412 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19413 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19415 $as_echo_n "checking for $ac_word... " >&6; } 19416 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19417 $as_echo_n "(cached) " >&6 19418 else 19419 case $PKG_CONFIG in 19420 [\\/]* | ?:[\\/]*) 19421 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19422 ;; 19423 *) 19424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19425 for as_dir in $PATH 19426 do 19427 IFS=$as_save_IFS 19428 test -z "$as_dir" && as_dir=. 19429 for ac_exec_ext in '' $ac_executable_extensions; do 19430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19431 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19433 break 2 19434 fi 19435 done 19436 done 19437 IFS=$as_save_IFS 19438 19439 ;; 19440 esac 19441 fi 19442 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19443 if test -n "$PKG_CONFIG"; then 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19445 $as_echo "$PKG_CONFIG" >&6; } 19446 else 19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19448 $as_echo "no" >&6; } 19449 fi 19450 19451 19452 fi 19453 if test -z "$ac_cv_path_PKG_CONFIG"; then 19454 ac_pt_PKG_CONFIG=$PKG_CONFIG 19455 # Extract the first word of "pkg-config", so it can be a program name with args. 19456 set dummy pkg-config; ac_word=$2 19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19458 $as_echo_n "checking for $ac_word... " >&6; } 19459 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19460 $as_echo_n "(cached) " >&6 19461 else 19462 case $ac_pt_PKG_CONFIG in 19463 [\\/]* | ?:[\\/]*) 19464 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19465 ;; 19466 *) 19467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19468 for as_dir in $PATH 19469 do 19470 IFS=$as_save_IFS 19471 test -z "$as_dir" && as_dir=. 19472 for ac_exec_ext in '' $ac_executable_extensions; do 19473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19474 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19476 break 2 19477 fi 19478 done 19479 done 19480 IFS=$as_save_IFS 19481 19482 ;; 19483 esac 19484 fi 19485 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19486 if test -n "$ac_pt_PKG_CONFIG"; then 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19488 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19489 else 19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19491 $as_echo "no" >&6; } 19492 fi 19493 19494 if test "x$ac_pt_PKG_CONFIG" = x; then 19495 PKG_CONFIG="" 19496 else 19497 case $cross_compiling:$ac_tool_warned in 19498 yes:) 19499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19501 ac_tool_warned=yes ;; 19502 esac 19503 PKG_CONFIG=$ac_pt_PKG_CONFIG 19504 fi 19505 else 19506 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19507 fi 19508 19509 fi 19510 if test -n "$PKG_CONFIG"; then 19511 _pkg_min_version=0.9.0 19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19513 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19514 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19516 $as_echo "yes" >&6; } 19517 else 19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19519 $as_echo "no" >&6; } 19520 PKG_CONFIG="" 19521 fi 19522 19523 fi 19524 19525 # After basic tools have been setup, we can check build os specific details. 19526 19527 ############################################################################### 19528 19529 # Note that this is the build platform OS version! 19530 19531 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19532 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19533 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19534 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19535 19536 19537 19538 19539 19540 # Setup builddeps, for automatic downloading of tools we need. 19541 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19542 # boot-jdk setup, but we need to have basic tools setup first. 19543 19544 19545 # Check whether --with-builddeps-conf was given. 19546 if test "${with_builddeps_conf+set}" = set; then : 19547 withval=$with_builddeps_conf; 19548 fi 19549 19550 19551 19552 # Check whether --with-builddeps-server was given. 19553 if test "${with_builddeps_server+set}" = set; then : 19554 withval=$with_builddeps_server; 19555 fi 19556 19557 19558 19559 # Check whether --with-builddeps-dir was given. 19560 if test "${with_builddeps_dir+set}" = set; then : 19561 withval=$with_builddeps_dir; 19562 else 19563 with_builddeps_dir=/localhome/builddeps 19564 fi 19565 19566 19567 19568 # Check whether --with-builddeps-group was given. 19569 if test "${with_builddeps_group+set}" = set; then : 19570 withval=$with_builddeps_group; 19571 fi 19572 19573 19574 19575 19576 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19577 if test "x$with_builddeps_conf" != x; then 19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19579 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19580 builddepsfile=$with_builddeps_conf 19581 if test -s $builddepsfile; then 19582 . $builddepsfile 19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19584 $as_echo "loaded!" >&6; } 19585 else 19586 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19587 fi 19588 else 19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19590 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19591 builddepsfile=`mktemp` 19592 touch $builddepsfile 19593 # Put all found confs into a single file. 19594 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19595 # Source the file to acquire the variables 19596 if test -s $builddepsfile; then 19597 . $builddepsfile 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19599 $as_echo "found at least one!" >&6; } 19600 else 19601 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19602 fi 19603 fi 19604 # Create build and target names that use _ instead of "-" and ".". 19605 # This is necessary to use them in variable names. 19606 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19607 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19608 # Extract rewrite information for build and target 19609 eval rewritten_build=\${REWRITE_${build_var}} 19610 if test "x$rewritten_build" = x; then 19611 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19612 echo Build stays the same $rewritten_build 19613 else 19614 echo Rewriting build for builddeps into $rewritten_build 19615 fi 19616 eval rewritten_target=\${REWRITE_${target_var}} 19617 if test "x$rewritten_target" = x; then 19618 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19619 echo Target stays the same $rewritten_target 19620 else 19621 echo Rewriting target for builddeps into $rewritten_target 19622 fi 19623 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19624 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19625 fi 19626 for ac_prog in 7z unzip 19627 do 19628 # Extract the first word of "$ac_prog", so it can be a program name with args. 19629 set dummy $ac_prog; ac_word=$2 19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19631 $as_echo_n "checking for $ac_word... " >&6; } 19632 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19633 $as_echo_n "(cached) " >&6 19634 else 19635 if test -n "$BDEPS_UNZIP"; then 19636 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19637 else 19638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19639 for as_dir in $PATH 19640 do 19641 IFS=$as_save_IFS 19642 test -z "$as_dir" && as_dir=. 19643 for ac_exec_ext in '' $ac_executable_extensions; do 19644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19645 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19647 break 2 19648 fi 19649 done 19650 done 19651 IFS=$as_save_IFS 19652 19653 fi 19654 fi 19655 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19656 if test -n "$BDEPS_UNZIP"; then 19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19658 $as_echo "$BDEPS_UNZIP" >&6; } 19659 else 19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19661 $as_echo "no" >&6; } 19662 fi 19663 19664 19665 test -n "$BDEPS_UNZIP" && break 19666 done 19667 19668 if test "x$BDEPS_UNZIP" = x7z; then 19669 BDEPS_UNZIP="7z x" 19670 fi 19671 19672 for ac_prog in wget lftp ftp 19673 do 19674 # Extract the first word of "$ac_prog", so it can be a program name with args. 19675 set dummy $ac_prog; ac_word=$2 19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19677 $as_echo_n "checking for $ac_word... " >&6; } 19678 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19679 $as_echo_n "(cached) " >&6 19680 else 19681 if test -n "$BDEPS_FTP"; then 19682 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19683 else 19684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19685 for as_dir in $PATH 19686 do 19687 IFS=$as_save_IFS 19688 test -z "$as_dir" && as_dir=. 19689 for ac_exec_ext in '' $ac_executable_extensions; do 19690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19691 ac_cv_prog_BDEPS_FTP="$ac_prog" 19692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19693 break 2 19694 fi 19695 done 19696 done 19697 IFS=$as_save_IFS 19698 19699 fi 19700 fi 19701 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19702 if test -n "$BDEPS_FTP"; then 19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19704 $as_echo "$BDEPS_FTP" >&6; } 19705 else 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19707 $as_echo "no" >&6; } 19708 fi 19709 19710 19711 test -n "$BDEPS_FTP" && break 19712 done 19713 19714 19715 19716 ############################################################################### 19717 # 19718 # Determine OpenJDK variants, options and version numbers. 19719 # 19720 ############################################################################### 19721 19722 # We need build & target for this. 19723 19724 19725 ############################################################################### 19726 # 19727 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19728 # We always build headless support. 19729 # 19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19731 $as_echo_n "checking headful support... " >&6; } 19732 # Check whether --enable-headful was given. 19733 if test "${enable_headful+set}" = set; then : 19734 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19735 else 19736 SUPPORT_HEADFUL=yes 19737 fi 19738 19739 19740 SUPPORT_HEADLESS=yes 19741 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19742 19743 if test "x$SUPPORT_HEADFUL" = xyes; then 19744 # We are building both headful and headless. 19745 headful_msg="include support for both headful and headless" 19746 fi 19747 19748 if test "x$SUPPORT_HEADFUL" = xno; then 19749 # Thus we are building headless only. 19750 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19751 headful_msg="headless only" 19752 fi 19753 19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19755 $as_echo "$headful_msg" >&6; } 19756 19757 19758 19759 19760 19761 # Control wether Hotspot runs Queens test after build. 19762 # Check whether --enable-hotspot-test-in-build was given. 19763 if test "${enable_hotspot_test_in_build+set}" = set; then : 19764 enableval=$enable_hotspot_test_in_build; 19765 else 19766 enable_hotspot_test_in_build=no 19767 fi 19768 19769 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19770 TEST_IN_BUILD=true 19771 else 19772 TEST_IN_BUILD=false 19773 fi 19774 19775 19776 ############################################################################### 19777 # 19778 # Choose cacerts source file 19779 # 19780 19781 # Check whether --with-cacerts-file was given. 19782 if test "${with_cacerts_file+set}" = set; then : 19783 withval=$with_cacerts_file; 19784 fi 19785 19786 if test "x$with_cacerts_file" != x; then 19787 CACERTS_FILE=$with_cacerts_file 19788 fi 19789 19790 19791 ############################################################################### 19792 # 19793 # Enable or disable unlimited crypto 19794 # 19795 # Check whether --enable-unlimited-crypto was given. 19796 if test "${enable_unlimited_crypto+set}" = set; then : 19797 enableval=$enable_unlimited_crypto; 19798 else 19799 enable_unlimited_crypto=no 19800 fi 19801 19802 if test "x$enable_unlimited_crypto" = "xyes"; then 19803 UNLIMITED_CRYPTO=true 19804 else 19805 UNLIMITED_CRYPTO=false 19806 fi 19807 19808 19809 ############################################################################### 19810 # 19811 # Enable or disable the elliptic curve crypto implementation 19812 # 19813 19814 19815 ############################################################################### 19816 # 19817 # Compress jars 19818 # 19819 COMPRESS_JARS=false 19820 19821 19822 19823 ############################################################################### 19824 # 19825 # Enable or disable JFR 19826 # 19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build JFR" >&5 19828 $as_echo_n "checking whether to build JFR... " >&6; } 19829 # Check whether --enable-jfr was given. 19830 if test "${enable_jfr+set}" = set; then : 19831 enableval=$enable_jfr; 19832 else 19833 enable_jfr=auto 19834 fi 19835 19836 if test "x$enable_jfr" = "xno"; then 19837 ENABLE_JFR=false 19838 elif test "x$enable_jfr" = "xyes" -o "x$enable_jfr" = "xauto"; then 19839 if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then 19840 if test "x$enable_jfr" = "xyes"; then 19841 as_fn_error $? "cannot enable JFR on minimal1 VM or zero build" "$LINENO" 5 19842 else 19843 ENABLE_JFR=false 19844 fi 19845 elif test "x$OPENJDK_TARGET_OS" = xaix; then 19846 if test "x$enable_jfr" = "xyes"; then 19847 as_fn_error $? "AIX does not support JFR" "$LINENO" 5 19848 else 19849 ENABLE_JFR=false 19850 fi 19851 else 19852 ENABLE_JFR=true 19853 fi 19854 else 19855 as_fn_error $? "--enable-jfr must be set to either yes or no" "$LINENO" 5 19856 fi 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JFR" >&5 19858 $as_echo "$ENABLE_JFR" >&6; } 19859 19860 19861 19862 # Source the version numbers 19863 . $AUTOCONF_DIR/version-numbers 19864 19865 # Get the settings from parameters 19866 19867 # Check whether --with-milestone was given. 19868 if test "${with_milestone+set}" = set; then : 19869 withval=$with_milestone; 19870 fi 19871 19872 if test "x$with_milestone" = xyes; then 19873 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19874 elif test "x$with_milestone" != x; then 19875 MILESTONE="$with_milestone" 19876 fi 19877 if test "x$MILESTONE" = x; then 19878 MILESTONE=internal 19879 fi 19880 19881 19882 # Check whether --with-update-version was given. 19883 if test "${with_update_version+set}" = set; then : 19884 withval=$with_update_version; 19885 fi 19886 19887 if test "x$with_update_version" = xyes; then 19888 as_fn_error $? "Update version must have a value" "$LINENO" 5 19889 elif test "x$with_update_version" != x; then 19890 JDK_UPDATE_VERSION="$with_update_version" 19891 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19892 # to a bug in expr (which reduces it to just X). To work around this, we 19893 # always add a 0 to one digit update versions. 19894 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19895 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19896 fi 19897 fi 19898 19899 19900 # Check whether --with-user-release-suffix was given. 19901 if test "${with_user_release_suffix+set}" = set; then : 19902 withval=$with_user_release_suffix; 19903 fi 19904 19905 if test "x$with_user_release_suffix" = xyes; then 19906 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19907 elif test "x$with_user_release_suffix" != x; then 19908 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19909 fi 19910 19911 19912 # Check whether --with-build-number was given. 19913 if test "${with_build_number+set}" = set; then : 19914 withval=$with_build_number; 19915 fi 19916 19917 if test "x$with_build_number" = xyes; then 19918 as_fn_error $? "Build number must have a value" "$LINENO" 5 19919 elif test "x$with_build_number" != x; then 19920 JDK_BUILD_NUMBER="$with_build_number" 19921 fi 19922 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19923 if test "x$JDK_BUILD_NUMBER" = x; then 19924 JDK_BUILD_NUMBER=b00 19925 if test "x$USER_RELEASE_SUFFIX" = x; then 19926 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19927 # Avoid [:alnum:] since it depends on the locale. 19928 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19929 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19930 fi 19931 fi 19932 19933 # Now set the JDK version, milestone, build number etc. 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 # The vendor name, if any 19949 19950 # Check whether --with-vendor-name was given. 19951 if test "${with_vendor_name+set}" = set; then : 19952 withval=$with_vendor_name; 19953 fi 19954 19955 if test "x$with_vendor_name" = xyes; then 19956 as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5 19957 elif ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then 19958 as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5 19959 elif test "x$with_vendor_name" != x; then 19960 # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty. 19961 # Otherwise we will use the value from "version-numbers" included above. 19962 COMPANY_NAME="$with_vendor_name" 19963 fi 19964 19965 19966 # The vendor URL, if any 19967 19968 # Check whether --with-vendor-url was given. 19969 if test "${with_vendor_url+set}" = set; then : 19970 withval=$with_vendor_url; 19971 fi 19972 19973 if test "x$with_vendor_url" = xyes; then 19974 as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5 19975 elif ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then 19976 as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5 19977 else 19978 VENDOR_URL="$with_vendor_url" 19979 fi 19980 19981 19982 # The vendor bug URL, if any 19983 19984 # Check whether --with-vendor-bug-url was given. 19985 if test "${with_vendor_bug_url+set}" = set; then : 19986 withval=$with_vendor_bug_url; 19987 fi 19988 19989 if test "x$with_vendor_bug_url" = xyes; then 19990 as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5 19991 elif ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then 19992 as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5 19993 else 19994 VENDOR_URL_BUG="$with_vendor_bug_url" 19995 fi 19996 19997 19998 # The vendor VM bug URL, if any 19999 20000 # Check whether --with-vendor-vm-bug-url was given. 20001 if test "${with_vendor_vm_bug_url+set}" = set; then : 20002 withval=$with_vendor_vm_bug_url; 20003 fi 20004 20005 if test "x$with_vendor_vm_bug_url" = xyes; then 20006 as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5 20007 elif ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then 20008 as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5 20009 else 20010 VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url" 20011 fi 20012 20013 20014 20015 # Check whether --with-copyright-year was given. 20016 if test "${with_copyright_year+set}" = set; then : 20017 withval=$with_copyright_year; 20018 fi 20019 20020 if test "x$with_copyright_year" = xyes; then 20021 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 20022 elif test "x$with_copyright_year" != x; then 20023 COPYRIGHT_YEAR="$with_copyright_year" 20024 else 20025 COPYRIGHT_YEAR=`date +'%Y'` 20026 fi 20027 20028 20029 if test "x$JDK_UPDATE_VERSION" != x; then 20030 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20031 else 20032 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20033 fi 20034 20035 20036 # The cooked update version used to encode trailing letters in the update 20037 # version into a trailing number. That is no longer needed, but need to 20038 # keep the format in 8u for compatibility. 20039 COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0" 20040 20041 20042 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20043 20044 20045 20046 ############################################################################### 20047 # 20048 # Setup BootJDK, used to bootstrap the build. 20049 # 20050 ############################################################################### 20051 20052 20053 BOOT_JDK_FOUND=no 20054 20055 # Check whether --with-boot-jdk was given. 20056 if test "${with_boot_jdk+set}" = set; then : 20057 withval=$with_boot_jdk; 20058 fi 20059 20060 20061 # We look for the Boot JDK through various means, going from more certain to 20062 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20063 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20064 # must check if this is indeed valid; otherwise we'll continue looking. 20065 20066 # Test: Is bootjdk explicitely set by command line arguments? 20067 20068 if test "x$BOOT_JDK_FOUND" = xno; then 20069 # Now execute the test 20070 20071 if test "x$with_boot_jdk" != x; then 20072 BOOT_JDK=$with_boot_jdk 20073 BOOT_JDK_FOUND=maybe 20074 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20075 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20076 fi 20077 20078 20079 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20080 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20081 # Do we have a bin/java? 20082 if test ! -x "$BOOT_JDK/bin/java"; then 20083 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20084 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20085 BOOT_JDK_FOUND=no 20086 else 20087 # Do we have a bin/javac? 20088 if test ! -x "$BOOT_JDK/bin/javac"; then 20089 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20090 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20091 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20092 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20093 BOOT_JDK_FOUND=no 20094 else 20095 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20096 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20097 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20098 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20099 BOOT_JDK_FOUND=no 20100 else 20101 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20102 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20103 20104 # Extra M4 quote needed to protect [] in grep expression. 20105 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20106 if test "x$FOUND_VERSION_78" = x; then 20107 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20109 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20110 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20111 BOOT_JDK_FOUND=no 20112 else 20113 # We're done! :-) 20114 BOOT_JDK_FOUND=yes 20115 20116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20117 20118 # Input might be given as Windows format, start by converting to 20119 # unix format. 20120 path="$BOOT_JDK" 20121 new_path=`$CYGPATH -u "$path"` 20122 20123 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20124 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20125 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20126 # "foo.exe" is OK but "foo" is an error. 20127 # 20128 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20129 # It is also a way to make sure we got the proper file name for the real test later on. 20130 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20131 if test "x$test_shortpath" = x; then 20132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20133 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20134 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20135 fi 20136 20137 # Call helper function which possibly converts this using DOS-style short mode. 20138 # If so, the updated path is stored in $new_path. 20139 20140 input_path="$new_path" 20141 # Check if we need to convert this using DOS-style short mode. If the path 20142 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20143 # take no chances and rewrite it. 20144 # Note: m4 eats our [], so we need to use [ and ] instead. 20145 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20146 if test "x$has_forbidden_chars" != x; then 20147 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20148 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20149 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20150 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20151 # Going to short mode and back again did indeed matter. Since short mode is 20152 # case insensitive, let's make it lowercase to improve readability. 20153 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20154 # Now convert it back to Unix-style (cygpath) 20155 input_path=`$CYGPATH -u "$shortmode_path"` 20156 new_path="$input_path" 20157 fi 20158 fi 20159 20160 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20161 if test "x$test_cygdrive_prefix" = x; then 20162 # As a simple fix, exclude /usr/bin since it's not a real path. 20163 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20164 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20165 # a path prefixed by /cygdrive for fixpath to work. 20166 new_path="$CYGWIN_ROOT_PATH$input_path" 20167 fi 20168 fi 20169 20170 20171 if test "x$path" != "x$new_path"; then 20172 BOOT_JDK="$new_path" 20173 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20174 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20175 fi 20176 20177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20178 20179 path="$BOOT_JDK" 20180 has_colon=`$ECHO $path | $GREP ^.:` 20181 new_path="$path" 20182 if test "x$has_colon" = x; then 20183 # Not in mixed or Windows style, start by that. 20184 new_path=`cmd //c echo $path` 20185 fi 20186 20187 20188 input_path="$new_path" 20189 # Check if we need to convert this using DOS-style short mode. If the path 20190 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20191 # take no chances and rewrite it. 20192 # Note: m4 eats our [], so we need to use [ and ] instead. 20193 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20194 if test "x$has_forbidden_chars" != x; then 20195 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20196 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20197 fi 20198 20199 20200 windows_path="$new_path" 20201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20202 unix_path=`$CYGPATH -u "$windows_path"` 20203 new_path="$unix_path" 20204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20205 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20206 new_path="$unix_path" 20207 fi 20208 20209 if test "x$path" != "x$new_path"; then 20210 BOOT_JDK="$new_path" 20211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20212 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20213 fi 20214 20215 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20216 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20217 20218 else 20219 # We're on a posix platform. Hooray! :) 20220 path="$BOOT_JDK" 20221 has_space=`$ECHO "$path" | $GREP " "` 20222 if test "x$has_space" != x; then 20223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20224 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20225 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20226 fi 20227 20228 # Use eval to expand a potential ~ 20229 eval path="$path" 20230 if test ! -f "$path" && test ! -d "$path"; then 20231 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20232 fi 20233 20234 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20235 fi 20236 20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20238 $as_echo_n "checking for Boot JDK... " >&6; } 20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20240 $as_echo "$BOOT_JDK" >&6; } 20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20242 $as_echo_n "checking Boot JDK version... " >&6; } 20243 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20245 $as_echo "$BOOT_JDK_VERSION" >&6; } 20246 fi # end check jdk version 20247 fi # end check rt.jar 20248 fi # end check javac 20249 fi # end check java 20250 fi # end check boot jdk found 20251 fi 20252 20253 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20254 # Having specified an argument which is incorrect will produce an instant failure; 20255 # we should not go on looking 20256 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20257 fi 20258 20259 # Test: Is bootjdk available from builddeps? 20260 20261 if test "x$BOOT_JDK_FOUND" = xno; then 20262 # Now execute the test 20263 20264 20265 20266 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20267 # Source the builddeps file again, to make sure it uses the latest variables! 20268 . $builddepsfile 20269 # Look for a target and build machine specific resource! 20270 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20271 if test "x$resource" = x; then 20272 # Ok, lets instead look for a target specific resource 20273 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20274 fi 20275 if test "x$resource" = x; then 20276 # Ok, lets instead look for a build specific resource 20277 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20278 fi 20279 if test "x$resource" = x; then 20280 # Ok, lets instead look for a generic resource 20281 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20282 resource=${builddep_bootjdk} 20283 fi 20284 if test "x$resource" != x; then 20285 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20286 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20287 # If the resource in the builddeps.conf file is an existing directory, 20288 # for example /java/linux/cups 20289 if test -d ${resource}; then 20290 depdir=${resource} 20291 else 20292 20293 # bootjdk is for example mymodule 20294 # $resource is for example libs/general/libmymod_1_2_3.zip 20295 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20296 # $with_builddeps_dir is for example /localhome/builddeps 20297 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20298 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20299 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20300 filename=`basename $resource` 20301 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20302 filebase=${filename%%.*} 20303 extension=${filename#*.} 20304 installdir=$with_builddeps_dir/$filebase 20305 if test ! -f $installdir/$filename.unpacked; then 20306 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20307 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20308 if test ! -d $installdir; then 20309 mkdir -p $installdir 20310 fi 20311 if test ! -d $installdir; then 20312 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20313 fi 20314 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20315 touch $tmpfile 20316 if test ! -f $tmpfile; then 20317 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20318 fi 20319 20320 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20321 # $tmpfile is the local file name for the downloaded file. 20322 VALID_TOOL=no 20323 if test "x$BDEPS_FTP" = xwget; then 20324 VALID_TOOL=yes 20325 wget -O $tmpfile $with_builddeps_server/$resource 20326 fi 20327 if test "x$BDEPS_FTP" = xlftp; then 20328 VALID_TOOL=yes 20329 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20330 fi 20331 if test "x$BDEPS_FTP" = xftp; then 20332 VALID_TOOL=yes 20333 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20334 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20335 FTPUSERPWD=${FTPSERVER%%@*} 20336 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20337 FTPUSER=${userpwd%%:*} 20338 FTPPWD=${userpwd#*@} 20339 FTPSERVER=${FTPSERVER#*@} 20340 else 20341 FTPUSER=ftp 20342 FTPPWD=ftp 20343 fi 20344 # the "pass" command does not work on some 20345 # ftp clients (read ftp.exe) but if it works, 20346 # passive mode is better! 20347 ( \ 20348 echo "user $FTPUSER $FTPPWD" ; \ 20349 echo "pass" ; \ 20350 echo "bin" ; \ 20351 echo "get $FTPPATH $tmpfile" ; \ 20352 ) | ftp -in $FTPSERVER 20353 fi 20354 if test "x$VALID_TOOL" != xyes; then 20355 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20356 fi 20357 20358 mv $tmpfile $installdir/$filename 20359 if test ! -s $installdir/$filename; then 20360 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20361 fi 20362 case "$extension" in 20363 zip) echo "Unzipping $installdir/$filename..." 20364 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20365 ;; 20366 tar.gz) echo "Untaring $installdir/$filename..." 20367 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20368 ;; 20369 tgz) echo "Untaring $installdir/$filename..." 20370 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20371 ;; 20372 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20373 ;; 20374 esac 20375 fi 20376 if test -f $installdir/$filename.unpacked; then 20377 depdir=$installdir 20378 fi 20379 20380 fi 20381 # Source the builddeps file again, because in the previous command, the depdir 20382 # was updated to point at the current build dependency install directory. 20383 . $builddepsfile 20384 # Now extract variables from the builddeps.conf files. 20385 theroot=${builddep_bootjdk_ROOT} 20386 thecflags=${builddep_bootjdk_CFLAGS} 20387 thelibs=${builddep_bootjdk_LIBS} 20388 if test "x$depdir" = x; then 20389 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20390 fi 20391 BOOT_JDK=$depdir 20392 if test "x$theroot" != x; then 20393 BOOT_JDK="$theroot" 20394 fi 20395 if test "x$thecflags" != x; then 20396 BOOT_JDK_CFLAGS="$thecflags" 20397 fi 20398 if test "x$thelibs" != x; then 20399 BOOT_JDK_LIBS="$thelibs" 20400 fi 20401 BOOT_JDK_FOUND=maybe 20402 else BOOT_JDK_FOUND=no 20403 20404 fi 20405 else BOOT_JDK_FOUND=no 20406 20407 fi 20408 20409 20410 20411 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20412 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20413 # Do we have a bin/java? 20414 if test ! -x "$BOOT_JDK/bin/java"; then 20415 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20416 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20417 BOOT_JDK_FOUND=no 20418 else 20419 # Do we have a bin/javac? 20420 if test ! -x "$BOOT_JDK/bin/javac"; then 20421 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20422 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20423 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20424 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20425 BOOT_JDK_FOUND=no 20426 else 20427 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20428 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20429 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20430 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20431 BOOT_JDK_FOUND=no 20432 else 20433 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20434 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20435 20436 # Extra M4 quote needed to protect [] in grep expression. 20437 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20438 if test "x$FOUND_VERSION_78" = x; then 20439 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20440 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20441 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20442 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20443 BOOT_JDK_FOUND=no 20444 else 20445 # We're done! :-) 20446 BOOT_JDK_FOUND=yes 20447 20448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20449 20450 # Input might be given as Windows format, start by converting to 20451 # unix format. 20452 path="$BOOT_JDK" 20453 new_path=`$CYGPATH -u "$path"` 20454 20455 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20456 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20457 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20458 # "foo.exe" is OK but "foo" is an error. 20459 # 20460 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20461 # It is also a way to make sure we got the proper file name for the real test later on. 20462 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20463 if test "x$test_shortpath" = x; then 20464 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20465 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20466 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20467 fi 20468 20469 # Call helper function which possibly converts this using DOS-style short mode. 20470 # If so, the updated path is stored in $new_path. 20471 20472 input_path="$new_path" 20473 # Check if we need to convert this using DOS-style short mode. If the path 20474 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20475 # take no chances and rewrite it. 20476 # Note: m4 eats our [], so we need to use [ and ] instead. 20477 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20478 if test "x$has_forbidden_chars" != x; then 20479 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20480 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20481 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20482 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20483 # Going to short mode and back again did indeed matter. Since short mode is 20484 # case insensitive, let's make it lowercase to improve readability. 20485 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20486 # Now convert it back to Unix-style (cygpath) 20487 input_path=`$CYGPATH -u "$shortmode_path"` 20488 new_path="$input_path" 20489 fi 20490 fi 20491 20492 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20493 if test "x$test_cygdrive_prefix" = x; then 20494 # As a simple fix, exclude /usr/bin since it's not a real path. 20495 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20496 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20497 # a path prefixed by /cygdrive for fixpath to work. 20498 new_path="$CYGWIN_ROOT_PATH$input_path" 20499 fi 20500 fi 20501 20502 20503 if test "x$path" != "x$new_path"; then 20504 BOOT_JDK="$new_path" 20505 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20506 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20507 fi 20508 20509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20510 20511 path="$BOOT_JDK" 20512 has_colon=`$ECHO $path | $GREP ^.:` 20513 new_path="$path" 20514 if test "x$has_colon" = x; then 20515 # Not in mixed or Windows style, start by that. 20516 new_path=`cmd //c echo $path` 20517 fi 20518 20519 20520 input_path="$new_path" 20521 # Check if we need to convert this using DOS-style short mode. If the path 20522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20523 # take no chances and rewrite it. 20524 # Note: m4 eats our [], so we need to use [ and ] instead. 20525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20526 if test "x$has_forbidden_chars" != x; then 20527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20528 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20529 fi 20530 20531 20532 windows_path="$new_path" 20533 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20534 unix_path=`$CYGPATH -u "$windows_path"` 20535 new_path="$unix_path" 20536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20537 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20538 new_path="$unix_path" 20539 fi 20540 20541 if test "x$path" != "x$new_path"; then 20542 BOOT_JDK="$new_path" 20543 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20544 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20545 fi 20546 20547 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20548 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20549 20550 else 20551 # We're on a posix platform. Hooray! :) 20552 path="$BOOT_JDK" 20553 has_space=`$ECHO "$path" | $GREP " "` 20554 if test "x$has_space" != x; then 20555 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20556 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20557 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20558 fi 20559 20560 # Use eval to expand a potential ~ 20561 eval path="$path" 20562 if test ! -f "$path" && test ! -d "$path"; then 20563 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20564 fi 20565 20566 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20567 fi 20568 20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20570 $as_echo_n "checking for Boot JDK... " >&6; } 20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20572 $as_echo "$BOOT_JDK" >&6; } 20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20574 $as_echo_n "checking Boot JDK version... " >&6; } 20575 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20577 $as_echo "$BOOT_JDK_VERSION" >&6; } 20578 fi # end check jdk version 20579 fi # end check rt.jar 20580 fi # end check javac 20581 fi # end check java 20582 fi # end check boot jdk found 20583 fi 20584 20585 20586 # Test: Is $JAVA_HOME set? 20587 20588 if test "x$BOOT_JDK_FOUND" = xno; then 20589 # Now execute the test 20590 20591 if test "x$JAVA_HOME" != x; then 20592 JAVA_HOME_PROCESSED="$JAVA_HOME" 20593 20594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20595 20596 # Input might be given as Windows format, start by converting to 20597 # unix format. 20598 path="$JAVA_HOME_PROCESSED" 20599 new_path=`$CYGPATH -u "$path"` 20600 20601 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20602 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20603 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20604 # "foo.exe" is OK but "foo" is an error. 20605 # 20606 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20607 # It is also a way to make sure we got the proper file name for the real test later on. 20608 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20609 if test "x$test_shortpath" = x; then 20610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20611 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20612 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 20613 fi 20614 20615 # Call helper function which possibly converts this using DOS-style short mode. 20616 # If so, the updated path is stored in $new_path. 20617 20618 input_path="$new_path" 20619 # Check if we need to convert this using DOS-style short mode. If the path 20620 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20621 # take no chances and rewrite it. 20622 # Note: m4 eats our [], so we need to use [ and ] instead. 20623 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20624 if test "x$has_forbidden_chars" != x; then 20625 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20626 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20627 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20628 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20629 # Going to short mode and back again did indeed matter. Since short mode is 20630 # case insensitive, let's make it lowercase to improve readability. 20631 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20632 # Now convert it back to Unix-style (cygpath) 20633 input_path=`$CYGPATH -u "$shortmode_path"` 20634 new_path="$input_path" 20635 fi 20636 fi 20637 20638 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20639 if test "x$test_cygdrive_prefix" = x; then 20640 # As a simple fix, exclude /usr/bin since it's not a real path. 20641 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20642 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20643 # a path prefixed by /cygdrive for fixpath to work. 20644 new_path="$CYGWIN_ROOT_PATH$input_path" 20645 fi 20646 fi 20647 20648 20649 if test "x$path" != "x$new_path"; then 20650 JAVA_HOME_PROCESSED="$new_path" 20651 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20652 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20653 fi 20654 20655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20656 20657 path="$JAVA_HOME_PROCESSED" 20658 has_colon=`$ECHO $path | $GREP ^.:` 20659 new_path="$path" 20660 if test "x$has_colon" = x; then 20661 # Not in mixed or Windows style, start by that. 20662 new_path=`cmd //c echo $path` 20663 fi 20664 20665 20666 input_path="$new_path" 20667 # Check if we need to convert this using DOS-style short mode. If the path 20668 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20669 # take no chances and rewrite it. 20670 # Note: m4 eats our [], so we need to use [ and ] instead. 20671 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20672 if test "x$has_forbidden_chars" != x; then 20673 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20674 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20675 fi 20676 20677 20678 windows_path="$new_path" 20679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20680 unix_path=`$CYGPATH -u "$windows_path"` 20681 new_path="$unix_path" 20682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20683 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20684 new_path="$unix_path" 20685 fi 20686 20687 if test "x$path" != "x$new_path"; then 20688 JAVA_HOME_PROCESSED="$new_path" 20689 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20690 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20691 fi 20692 20693 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20694 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20695 20696 else 20697 # We're on a posix platform. Hooray! :) 20698 path="$JAVA_HOME_PROCESSED" 20699 has_space=`$ECHO "$path" | $GREP " "` 20700 if test "x$has_space" != x; then 20701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20702 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20703 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20704 fi 20705 20706 # Use eval to expand a potential ~ 20707 eval path="$path" 20708 if test ! -f "$path" && test ! -d "$path"; then 20709 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 20710 fi 20711 20712 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 20713 fi 20714 20715 if test ! -d "$JAVA_HOME_PROCESSED"; then 20716 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 20717 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 20718 else 20719 # Aha, the user has set a JAVA_HOME 20720 # let us use that as the Boot JDK. 20721 BOOT_JDK="$JAVA_HOME_PROCESSED" 20722 BOOT_JDK_FOUND=maybe 20723 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 20724 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 20725 fi 20726 fi 20727 20728 20729 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20730 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20731 # Do we have a bin/java? 20732 if test ! -x "$BOOT_JDK/bin/java"; then 20733 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20735 BOOT_JDK_FOUND=no 20736 else 20737 # Do we have a bin/javac? 20738 if test ! -x "$BOOT_JDK/bin/javac"; then 20739 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20740 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20741 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20742 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20743 BOOT_JDK_FOUND=no 20744 else 20745 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20746 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20747 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20749 BOOT_JDK_FOUND=no 20750 else 20751 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20752 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20753 20754 # Extra M4 quote needed to protect [] in grep expression. 20755 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20756 if test "x$FOUND_VERSION_78" = x; then 20757 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20758 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20759 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20760 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20761 BOOT_JDK_FOUND=no 20762 else 20763 # We're done! :-) 20764 BOOT_JDK_FOUND=yes 20765 20766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20767 20768 # Input might be given as Windows format, start by converting to 20769 # unix format. 20770 path="$BOOT_JDK" 20771 new_path=`$CYGPATH -u "$path"` 20772 20773 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20774 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20775 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20776 # "foo.exe" is OK but "foo" is an error. 20777 # 20778 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20779 # It is also a way to make sure we got the proper file name for the real test later on. 20780 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20781 if test "x$test_shortpath" = x; then 20782 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20783 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20784 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20785 fi 20786 20787 # Call helper function which possibly converts this using DOS-style short mode. 20788 # If so, the updated path is stored in $new_path. 20789 20790 input_path="$new_path" 20791 # Check if we need to convert this using DOS-style short mode. If the path 20792 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20793 # take no chances and rewrite it. 20794 # Note: m4 eats our [], so we need to use [ and ] instead. 20795 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20796 if test "x$has_forbidden_chars" != x; then 20797 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20798 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20799 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20800 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20801 # Going to short mode and back again did indeed matter. Since short mode is 20802 # case insensitive, let's make it lowercase to improve readability. 20803 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20804 # Now convert it back to Unix-style (cygpath) 20805 input_path=`$CYGPATH -u "$shortmode_path"` 20806 new_path="$input_path" 20807 fi 20808 fi 20809 20810 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20811 if test "x$test_cygdrive_prefix" = x; then 20812 # As a simple fix, exclude /usr/bin since it's not a real path. 20813 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20814 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20815 # a path prefixed by /cygdrive for fixpath to work. 20816 new_path="$CYGWIN_ROOT_PATH$input_path" 20817 fi 20818 fi 20819 20820 20821 if test "x$path" != "x$new_path"; then 20822 BOOT_JDK="$new_path" 20823 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20824 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20825 fi 20826 20827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20828 20829 path="$BOOT_JDK" 20830 has_colon=`$ECHO $path | $GREP ^.:` 20831 new_path="$path" 20832 if test "x$has_colon" = x; then 20833 # Not in mixed or Windows style, start by that. 20834 new_path=`cmd //c echo $path` 20835 fi 20836 20837 20838 input_path="$new_path" 20839 # Check if we need to convert this using DOS-style short mode. If the path 20840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20841 # take no chances and rewrite it. 20842 # Note: m4 eats our [], so we need to use [ and ] instead. 20843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20844 if test "x$has_forbidden_chars" != x; then 20845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20846 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20847 fi 20848 20849 20850 windows_path="$new_path" 20851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20852 unix_path=`$CYGPATH -u "$windows_path"` 20853 new_path="$unix_path" 20854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20855 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20856 new_path="$unix_path" 20857 fi 20858 20859 if test "x$path" != "x$new_path"; then 20860 BOOT_JDK="$new_path" 20861 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20862 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20863 fi 20864 20865 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20866 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20867 20868 else 20869 # We're on a posix platform. Hooray! :) 20870 path="$BOOT_JDK" 20871 has_space=`$ECHO "$path" | $GREP " "` 20872 if test "x$has_space" != x; then 20873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20874 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20875 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20876 fi 20877 20878 # Use eval to expand a potential ~ 20879 eval path="$path" 20880 if test ! -f "$path" && test ! -d "$path"; then 20881 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20882 fi 20883 20884 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20885 fi 20886 20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20888 $as_echo_n "checking for Boot JDK... " >&6; } 20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20890 $as_echo "$BOOT_JDK" >&6; } 20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20892 $as_echo_n "checking Boot JDK version... " >&6; } 20893 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20895 $as_echo "$BOOT_JDK_VERSION" >&6; } 20896 fi # end check jdk version 20897 fi # end check rt.jar 20898 fi # end check javac 20899 fi # end check java 20900 fi # end check boot jdk found 20901 fi 20902 20903 20904 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 20905 20906 if test "x$BOOT_JDK_FOUND" = xno; then 20907 # Now execute the test 20908 20909 if test -x /usr/libexec/java_home; then 20910 BOOT_JDK=`/usr/libexec/java_home` 20911 BOOT_JDK_FOUND=maybe 20912 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5 20913 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;} 20914 fi 20915 20916 20917 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20918 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20919 # Do we have a bin/java? 20920 if test ! -x "$BOOT_JDK/bin/java"; then 20921 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20922 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20923 BOOT_JDK_FOUND=no 20924 else 20925 # Do we have a bin/javac? 20926 if test ! -x "$BOOT_JDK/bin/javac"; then 20927 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20928 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20929 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20930 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20931 BOOT_JDK_FOUND=no 20932 else 20933 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20934 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20935 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20936 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20937 BOOT_JDK_FOUND=no 20938 else 20939 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20940 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20941 20942 # Extra M4 quote needed to protect [] in grep expression. 20943 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20944 if test "x$FOUND_VERSION_78" = x; then 20945 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20947 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20948 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20949 BOOT_JDK_FOUND=no 20950 else 20951 # We're done! :-) 20952 BOOT_JDK_FOUND=yes 20953 20954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20955 20956 # Input might be given as Windows format, start by converting to 20957 # unix format. 20958 path="$BOOT_JDK" 20959 new_path=`$CYGPATH -u "$path"` 20960 20961 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20962 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20963 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20964 # "foo.exe" is OK but "foo" is an error. 20965 # 20966 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20967 # It is also a way to make sure we got the proper file name for the real test later on. 20968 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20969 if test "x$test_shortpath" = x; then 20970 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20971 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20972 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20973 fi 20974 20975 # Call helper function which possibly converts this using DOS-style short mode. 20976 # If so, the updated path is stored in $new_path. 20977 20978 input_path="$new_path" 20979 # Check if we need to convert this using DOS-style short mode. If the path 20980 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20981 # take no chances and rewrite it. 20982 # Note: m4 eats our [], so we need to use [ and ] instead. 20983 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20984 if test "x$has_forbidden_chars" != x; then 20985 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20986 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20987 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20988 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20989 # Going to short mode and back again did indeed matter. Since short mode is 20990 # case insensitive, let's make it lowercase to improve readability. 20991 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20992 # Now convert it back to Unix-style (cygpath) 20993 input_path=`$CYGPATH -u "$shortmode_path"` 20994 new_path="$input_path" 20995 fi 20996 fi 20997 20998 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20999 if test "x$test_cygdrive_prefix" = x; then 21000 # As a simple fix, exclude /usr/bin since it's not a real path. 21001 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21002 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21003 # a path prefixed by /cygdrive for fixpath to work. 21004 new_path="$CYGWIN_ROOT_PATH$input_path" 21005 fi 21006 fi 21007 21008 21009 if test "x$path" != "x$new_path"; then 21010 BOOT_JDK="$new_path" 21011 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21012 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21013 fi 21014 21015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21016 21017 path="$BOOT_JDK" 21018 has_colon=`$ECHO $path | $GREP ^.:` 21019 new_path="$path" 21020 if test "x$has_colon" = x; then 21021 # Not in mixed or Windows style, start by that. 21022 new_path=`cmd //c echo $path` 21023 fi 21024 21025 21026 input_path="$new_path" 21027 # Check if we need to convert this using DOS-style short mode. If the path 21028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21029 # take no chances and rewrite it. 21030 # Note: m4 eats our [], so we need to use [ and ] instead. 21031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21032 if test "x$has_forbidden_chars" != x; then 21033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21034 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21035 fi 21036 21037 21038 windows_path="$new_path" 21039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21040 unix_path=`$CYGPATH -u "$windows_path"` 21041 new_path="$unix_path" 21042 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21043 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21044 new_path="$unix_path" 21045 fi 21046 21047 if test "x$path" != "x$new_path"; then 21048 BOOT_JDK="$new_path" 21049 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21050 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21051 fi 21052 21053 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21054 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21055 21056 else 21057 # We're on a posix platform. Hooray! :) 21058 path="$BOOT_JDK" 21059 has_space=`$ECHO "$path" | $GREP " "` 21060 if test "x$has_space" != x; then 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21062 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21063 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21064 fi 21065 21066 # Use eval to expand a potential ~ 21067 eval path="$path" 21068 if test ! -f "$path" && test ! -d "$path"; then 21069 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21070 fi 21071 21072 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21073 fi 21074 21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21076 $as_echo_n "checking for Boot JDK... " >&6; } 21077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21078 $as_echo "$BOOT_JDK" >&6; } 21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21080 $as_echo_n "checking Boot JDK version... " >&6; } 21081 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21083 $as_echo "$BOOT_JDK_VERSION" >&6; } 21084 fi # end check jdk version 21085 fi # end check rt.jar 21086 fi # end check javac 21087 fi # end check java 21088 fi # end check boot jdk found 21089 fi 21090 21091 21092 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21093 21094 if test "x$BOOT_JDK_FOUND" = xno; then 21095 # Now execute the test 21096 21097 # Extract the first word of "javac", so it can be a program name with args. 21098 set dummy javac; ac_word=$2 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21100 $as_echo_n "checking for $ac_word... " >&6; } 21101 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21102 $as_echo_n "(cached) " >&6 21103 else 21104 case $JAVAC_CHECK in 21105 [\\/]* | ?:[\\/]*) 21106 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21107 ;; 21108 *) 21109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21110 for as_dir in $PATH 21111 do 21112 IFS=$as_save_IFS 21113 test -z "$as_dir" && as_dir=. 21114 for ac_exec_ext in '' $ac_executable_extensions; do 21115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21116 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21118 break 2 21119 fi 21120 done 21121 done 21122 IFS=$as_save_IFS 21123 21124 ;; 21125 esac 21126 fi 21127 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21128 if test -n "$JAVAC_CHECK"; then 21129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21130 $as_echo "$JAVAC_CHECK" >&6; } 21131 else 21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21133 $as_echo "no" >&6; } 21134 fi 21135 21136 21137 # Extract the first word of "java", so it can be a program name with args. 21138 set dummy java; ac_word=$2 21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21140 $as_echo_n "checking for $ac_word... " >&6; } 21141 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21142 $as_echo_n "(cached) " >&6 21143 else 21144 case $JAVA_CHECK in 21145 [\\/]* | ?:[\\/]*) 21146 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21147 ;; 21148 *) 21149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21150 for as_dir in $PATH 21151 do 21152 IFS=$as_save_IFS 21153 test -z "$as_dir" && as_dir=. 21154 for ac_exec_ext in '' $ac_executable_extensions; do 21155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21156 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21158 break 2 21159 fi 21160 done 21161 done 21162 IFS=$as_save_IFS 21163 21164 ;; 21165 esac 21166 fi 21167 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21168 if test -n "$JAVA_CHECK"; then 21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21170 $as_echo "$JAVA_CHECK" >&6; } 21171 else 21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21173 $as_echo "no" >&6; } 21174 fi 21175 21176 21177 BINARY="$JAVAC_CHECK" 21178 if test "x$JAVAC_CHECK" = x; then 21179 BINARY="$JAVA_CHECK" 21180 fi 21181 if test "x$BINARY" != x; then 21182 # So there is a java(c) binary, it might be part of a JDK. 21183 # Lets find the JDK/JRE directory by following symbolic links. 21184 # Linux/GNU systems often have links from /usr/bin/java to 21185 # /etc/alternatives/java to the real JDK binary. 21186 21187 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21188 # Follow a chain of symbolic links. Use readlink 21189 # where it exists, else fall back to horribly 21190 # complicated shell code. 21191 if test "x$READLINK_TESTED" != yes; then 21192 # On MacOSX there is a readlink tool with a different 21193 # purpose than the GNU readlink tool. Check the found readlink. 21194 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21195 if test "x$ISGNU" = x; then 21196 # A readlink that we do not know how to use. 21197 # Are there other non-GNU readlinks out there? 21198 READLINK_TESTED=yes 21199 READLINK= 21200 fi 21201 fi 21202 21203 if test "x$READLINK" != x; then 21204 BINARY=`$READLINK -f $BINARY` 21205 else 21206 # Save the current directory for restoring afterwards 21207 STARTDIR=$PWD 21208 COUNTER=0 21209 sym_link_dir=`$DIRNAME $BINARY` 21210 sym_link_file=`$BASENAME $BINARY` 21211 cd $sym_link_dir 21212 # Use -P flag to resolve symlinks in directories. 21213 cd `$THEPWDCMD -P` 21214 sym_link_dir=`$THEPWDCMD -P` 21215 # Resolve file symlinks 21216 while test $COUNTER -lt 20; do 21217 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21218 if test "x$ISLINK" == x; then 21219 # This is not a symbolic link! We are done! 21220 break 21221 fi 21222 # Again resolve directory symlinks since the target of the just found 21223 # link could be in a different directory 21224 cd `$DIRNAME $ISLINK` 21225 sym_link_dir=`$THEPWDCMD -P` 21226 sym_link_file=`$BASENAME $ISLINK` 21227 let COUNTER=COUNTER+1 21228 done 21229 cd $STARTDIR 21230 BINARY=$sym_link_dir/$sym_link_file 21231 fi 21232 fi 21233 21234 BOOT_JDK=`dirname "$BINARY"` 21235 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21236 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21237 # Looks like we found ourselves an JDK 21238 BOOT_JDK_FOUND=maybe 21239 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21240 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21241 fi 21242 fi 21243 21244 21245 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21246 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21247 # Do we have a bin/java? 21248 if test ! -x "$BOOT_JDK/bin/java"; then 21249 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21250 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21251 BOOT_JDK_FOUND=no 21252 else 21253 # Do we have a bin/javac? 21254 if test ! -x "$BOOT_JDK/bin/javac"; then 21255 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21257 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21258 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21259 BOOT_JDK_FOUND=no 21260 else 21261 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21262 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21263 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21264 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21265 BOOT_JDK_FOUND=no 21266 else 21267 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21268 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21269 21270 # Extra M4 quote needed to protect [] in grep expression. 21271 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21272 if test "x$FOUND_VERSION_78" = x; then 21273 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21274 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21275 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21276 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21277 BOOT_JDK_FOUND=no 21278 else 21279 # We're done! :-) 21280 BOOT_JDK_FOUND=yes 21281 21282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21283 21284 # Input might be given as Windows format, start by converting to 21285 # unix format. 21286 path="$BOOT_JDK" 21287 new_path=`$CYGPATH -u "$path"` 21288 21289 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21290 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21291 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21292 # "foo.exe" is OK but "foo" is an error. 21293 # 21294 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21295 # It is also a way to make sure we got the proper file name for the real test later on. 21296 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21297 if test "x$test_shortpath" = x; then 21298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21299 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21300 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21301 fi 21302 21303 # Call helper function which possibly converts this using DOS-style short mode. 21304 # If so, the updated path is stored in $new_path. 21305 21306 input_path="$new_path" 21307 # Check if we need to convert this using DOS-style short mode. If the path 21308 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21309 # take no chances and rewrite it. 21310 # Note: m4 eats our [], so we need to use [ and ] instead. 21311 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21312 if test "x$has_forbidden_chars" != x; then 21313 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21314 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21315 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21316 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21317 # Going to short mode and back again did indeed matter. Since short mode is 21318 # case insensitive, let's make it lowercase to improve readability. 21319 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21320 # Now convert it back to Unix-style (cygpath) 21321 input_path=`$CYGPATH -u "$shortmode_path"` 21322 new_path="$input_path" 21323 fi 21324 fi 21325 21326 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21327 if test "x$test_cygdrive_prefix" = x; then 21328 # As a simple fix, exclude /usr/bin since it's not a real path. 21329 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21330 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21331 # a path prefixed by /cygdrive for fixpath to work. 21332 new_path="$CYGWIN_ROOT_PATH$input_path" 21333 fi 21334 fi 21335 21336 21337 if test "x$path" != "x$new_path"; then 21338 BOOT_JDK="$new_path" 21339 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21340 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21341 fi 21342 21343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21344 21345 path="$BOOT_JDK" 21346 has_colon=`$ECHO $path | $GREP ^.:` 21347 new_path="$path" 21348 if test "x$has_colon" = x; then 21349 # Not in mixed or Windows style, start by that. 21350 new_path=`cmd //c echo $path` 21351 fi 21352 21353 21354 input_path="$new_path" 21355 # Check if we need to convert this using DOS-style short mode. If the path 21356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21357 # take no chances and rewrite it. 21358 # Note: m4 eats our [], so we need to use [ and ] instead. 21359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21360 if test "x$has_forbidden_chars" != x; then 21361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21362 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21363 fi 21364 21365 21366 windows_path="$new_path" 21367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21368 unix_path=`$CYGPATH -u "$windows_path"` 21369 new_path="$unix_path" 21370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21372 new_path="$unix_path" 21373 fi 21374 21375 if test "x$path" != "x$new_path"; then 21376 BOOT_JDK="$new_path" 21377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21378 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21379 fi 21380 21381 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21382 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21383 21384 else 21385 # We're on a posix platform. Hooray! :) 21386 path="$BOOT_JDK" 21387 has_space=`$ECHO "$path" | $GREP " "` 21388 if test "x$has_space" != x; then 21389 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21390 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21391 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21392 fi 21393 21394 # Use eval to expand a potential ~ 21395 eval path="$path" 21396 if test ! -f "$path" && test ! -d "$path"; then 21397 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21398 fi 21399 21400 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21401 fi 21402 21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21404 $as_echo_n "checking for Boot JDK... " >&6; } 21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21406 $as_echo "$BOOT_JDK" >&6; } 21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21408 $as_echo_n "checking Boot JDK version... " >&6; } 21409 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21411 $as_echo "$BOOT_JDK_VERSION" >&6; } 21412 fi # end check jdk version 21413 fi # end check rt.jar 21414 fi # end check javac 21415 fi # end check java 21416 fi # end check boot jdk found 21417 fi 21418 21419 21420 # Test: Is there a JDK installed in default, well-known locations? 21421 21422 if test "x$BOOT_JDK_FOUND" = xno; then 21423 # Now execute the test 21424 21425 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21426 21427 if test "x$BOOT_JDK_FOUND" = xno; then 21428 # Now execute the test 21429 21430 if test "x$ProgramW6432" != x; then 21431 VIRTUAL_DIR="$ProgramW6432/Java" 21432 21433 windows_path="$VIRTUAL_DIR" 21434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21435 unix_path=`$CYGPATH -u "$windows_path"` 21436 VIRTUAL_DIR="$unix_path" 21437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21438 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21439 VIRTUAL_DIR="$unix_path" 21440 fi 21441 21442 21443 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21444 BOOT_JDK_SUFFIX="" 21445 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21446 if test "x$ALL_JDKS_FOUND" != x; then 21447 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21448 21449 if test "x$BOOT_JDK_FOUND" = xno; then 21450 # Now execute the test 21451 21452 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21453 if test -d "$BOOT_JDK"; then 21454 BOOT_JDK_FOUND=maybe 21455 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21456 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21457 fi 21458 21459 21460 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21461 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21462 # Do we have a bin/java? 21463 if test ! -x "$BOOT_JDK/bin/java"; then 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21465 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21466 BOOT_JDK_FOUND=no 21467 else 21468 # Do we have a bin/javac? 21469 if test ! -x "$BOOT_JDK/bin/javac"; then 21470 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21472 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21473 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21474 BOOT_JDK_FOUND=no 21475 else 21476 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21477 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21478 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21479 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21480 BOOT_JDK_FOUND=no 21481 else 21482 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21483 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21484 21485 # Extra M4 quote needed to protect [] in grep expression. 21486 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21487 if test "x$FOUND_VERSION_78" = x; then 21488 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21489 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21490 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21491 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21492 BOOT_JDK_FOUND=no 21493 else 21494 # We're done! :-) 21495 BOOT_JDK_FOUND=yes 21496 21497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21498 21499 # Input might be given as Windows format, start by converting to 21500 # unix format. 21501 path="$BOOT_JDK" 21502 new_path=`$CYGPATH -u "$path"` 21503 21504 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21505 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21506 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21507 # "foo.exe" is OK but "foo" is an error. 21508 # 21509 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21510 # It is also a way to make sure we got the proper file name for the real test later on. 21511 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21512 if test "x$test_shortpath" = x; then 21513 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21514 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21515 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21516 fi 21517 21518 # Call helper function which possibly converts this using DOS-style short mode. 21519 # If so, the updated path is stored in $new_path. 21520 21521 input_path="$new_path" 21522 # Check if we need to convert this using DOS-style short mode. If the path 21523 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21524 # take no chances and rewrite it. 21525 # Note: m4 eats our [], so we need to use [ and ] instead. 21526 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21527 if test "x$has_forbidden_chars" != x; then 21528 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21529 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21530 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21531 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21532 # Going to short mode and back again did indeed matter. Since short mode is 21533 # case insensitive, let's make it lowercase to improve readability. 21534 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21535 # Now convert it back to Unix-style (cygpath) 21536 input_path=`$CYGPATH -u "$shortmode_path"` 21537 new_path="$input_path" 21538 fi 21539 fi 21540 21541 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21542 if test "x$test_cygdrive_prefix" = x; then 21543 # As a simple fix, exclude /usr/bin since it's not a real path. 21544 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21545 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21546 # a path prefixed by /cygdrive for fixpath to work. 21547 new_path="$CYGWIN_ROOT_PATH$input_path" 21548 fi 21549 fi 21550 21551 21552 if test "x$path" != "x$new_path"; then 21553 BOOT_JDK="$new_path" 21554 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21555 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21556 fi 21557 21558 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21559 21560 path="$BOOT_JDK" 21561 has_colon=`$ECHO $path | $GREP ^.:` 21562 new_path="$path" 21563 if test "x$has_colon" = x; then 21564 # Not in mixed or Windows style, start by that. 21565 new_path=`cmd //c echo $path` 21566 fi 21567 21568 21569 input_path="$new_path" 21570 # Check if we need to convert this using DOS-style short mode. If the path 21571 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21572 # take no chances and rewrite it. 21573 # Note: m4 eats our [], so we need to use [ and ] instead. 21574 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21575 if test "x$has_forbidden_chars" != x; then 21576 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21577 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21578 fi 21579 21580 21581 windows_path="$new_path" 21582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21583 unix_path=`$CYGPATH -u "$windows_path"` 21584 new_path="$unix_path" 21585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21586 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21587 new_path="$unix_path" 21588 fi 21589 21590 if test "x$path" != "x$new_path"; then 21591 BOOT_JDK="$new_path" 21592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21593 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21594 fi 21595 21596 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21597 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21598 21599 else 21600 # We're on a posix platform. Hooray! :) 21601 path="$BOOT_JDK" 21602 has_space=`$ECHO "$path" | $GREP " "` 21603 if test "x$has_space" != x; then 21604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21605 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21606 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21607 fi 21608 21609 # Use eval to expand a potential ~ 21610 eval path="$path" 21611 if test ! -f "$path" && test ! -d "$path"; then 21612 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21613 fi 21614 21615 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21616 fi 21617 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21619 $as_echo_n "checking for Boot JDK... " >&6; } 21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21621 $as_echo "$BOOT_JDK" >&6; } 21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21623 $as_echo_n "checking Boot JDK version... " >&6; } 21624 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21626 $as_echo "$BOOT_JDK_VERSION" >&6; } 21627 fi # end check jdk version 21628 fi # end check rt.jar 21629 fi # end check javac 21630 fi # end check java 21631 fi # end check boot jdk found 21632 fi 21633 21634 done 21635 fi 21636 21637 fi 21638 21639 21640 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21641 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21642 # Do we have a bin/java? 21643 if test ! -x "$BOOT_JDK/bin/java"; then 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21645 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21646 BOOT_JDK_FOUND=no 21647 else 21648 # Do we have a bin/javac? 21649 if test ! -x "$BOOT_JDK/bin/javac"; then 21650 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21651 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21652 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21653 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21654 BOOT_JDK_FOUND=no 21655 else 21656 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21657 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21658 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21659 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21660 BOOT_JDK_FOUND=no 21661 else 21662 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21663 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21664 21665 # Extra M4 quote needed to protect [] in grep expression. 21666 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21667 if test "x$FOUND_VERSION_78" = x; then 21668 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21669 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21670 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21671 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21672 BOOT_JDK_FOUND=no 21673 else 21674 # We're done! :-) 21675 BOOT_JDK_FOUND=yes 21676 21677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21678 21679 # Input might be given as Windows format, start by converting to 21680 # unix format. 21681 path="$BOOT_JDK" 21682 new_path=`$CYGPATH -u "$path"` 21683 21684 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21685 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21686 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21687 # "foo.exe" is OK but "foo" is an error. 21688 # 21689 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21690 # It is also a way to make sure we got the proper file name for the real test later on. 21691 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21692 if test "x$test_shortpath" = x; then 21693 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21694 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21695 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21696 fi 21697 21698 # Call helper function which possibly converts this using DOS-style short mode. 21699 # If so, the updated path is stored in $new_path. 21700 21701 input_path="$new_path" 21702 # Check if we need to convert this using DOS-style short mode. If the path 21703 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21704 # take no chances and rewrite it. 21705 # Note: m4 eats our [], so we need to use [ and ] instead. 21706 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21707 if test "x$has_forbidden_chars" != x; then 21708 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21709 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21710 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21711 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21712 # Going to short mode and back again did indeed matter. Since short mode is 21713 # case insensitive, let's make it lowercase to improve readability. 21714 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21715 # Now convert it back to Unix-style (cygpath) 21716 input_path=`$CYGPATH -u "$shortmode_path"` 21717 new_path="$input_path" 21718 fi 21719 fi 21720 21721 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21722 if test "x$test_cygdrive_prefix" = x; then 21723 # As a simple fix, exclude /usr/bin since it's not a real path. 21724 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21725 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21726 # a path prefixed by /cygdrive for fixpath to work. 21727 new_path="$CYGWIN_ROOT_PATH$input_path" 21728 fi 21729 fi 21730 21731 21732 if test "x$path" != "x$new_path"; then 21733 BOOT_JDK="$new_path" 21734 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21735 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21736 fi 21737 21738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21739 21740 path="$BOOT_JDK" 21741 has_colon=`$ECHO $path | $GREP ^.:` 21742 new_path="$path" 21743 if test "x$has_colon" = x; then 21744 # Not in mixed or Windows style, start by that. 21745 new_path=`cmd //c echo $path` 21746 fi 21747 21748 21749 input_path="$new_path" 21750 # Check if we need to convert this using DOS-style short mode. If the path 21751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21752 # take no chances and rewrite it. 21753 # Note: m4 eats our [], so we need to use [ and ] instead. 21754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21755 if test "x$has_forbidden_chars" != x; then 21756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21757 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21758 fi 21759 21760 21761 windows_path="$new_path" 21762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21763 unix_path=`$CYGPATH -u "$windows_path"` 21764 new_path="$unix_path" 21765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21767 new_path="$unix_path" 21768 fi 21769 21770 if test "x$path" != "x$new_path"; then 21771 BOOT_JDK="$new_path" 21772 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21773 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21774 fi 21775 21776 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21777 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21778 21779 else 21780 # We're on a posix platform. Hooray! :) 21781 path="$BOOT_JDK" 21782 has_space=`$ECHO "$path" | $GREP " "` 21783 if test "x$has_space" != x; then 21784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21785 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21786 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21787 fi 21788 21789 # Use eval to expand a potential ~ 21790 eval path="$path" 21791 if test ! -f "$path" && test ! -d "$path"; then 21792 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21793 fi 21794 21795 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21796 fi 21797 21798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21799 $as_echo_n "checking for Boot JDK... " >&6; } 21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21801 $as_echo "$BOOT_JDK" >&6; } 21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21803 $as_echo_n "checking Boot JDK version... " >&6; } 21804 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21806 $as_echo "$BOOT_JDK_VERSION" >&6; } 21807 fi # end check jdk version 21808 fi # end check rt.jar 21809 fi # end check javac 21810 fi # end check java 21811 fi # end check boot jdk found 21812 fi 21813 21814 21815 if test "x$BOOT_JDK_FOUND" = xno; then 21816 # Now execute the test 21817 21818 if test "x$PROGRAMW6432" != x; then 21819 VIRTUAL_DIR="$PROGRAMW6432/Java" 21820 21821 windows_path="$VIRTUAL_DIR" 21822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21823 unix_path=`$CYGPATH -u "$windows_path"` 21824 VIRTUAL_DIR="$unix_path" 21825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21827 VIRTUAL_DIR="$unix_path" 21828 fi 21829 21830 21831 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21832 BOOT_JDK_SUFFIX="" 21833 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21834 if test "x$ALL_JDKS_FOUND" != x; then 21835 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21836 21837 if test "x$BOOT_JDK_FOUND" = xno; then 21838 # Now execute the test 21839 21840 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21841 if test -d "$BOOT_JDK"; then 21842 BOOT_JDK_FOUND=maybe 21843 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21844 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21845 fi 21846 21847 21848 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21849 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21850 # Do we have a bin/java? 21851 if test ! -x "$BOOT_JDK/bin/java"; then 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21853 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21854 BOOT_JDK_FOUND=no 21855 else 21856 # Do we have a bin/javac? 21857 if test ! -x "$BOOT_JDK/bin/javac"; then 21858 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21861 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21862 BOOT_JDK_FOUND=no 21863 else 21864 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21865 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21866 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21867 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21868 BOOT_JDK_FOUND=no 21869 else 21870 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21871 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21872 21873 # Extra M4 quote needed to protect [] in grep expression. 21874 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21875 if test "x$FOUND_VERSION_78" = x; then 21876 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21877 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21878 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21879 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21880 BOOT_JDK_FOUND=no 21881 else 21882 # We're done! :-) 21883 BOOT_JDK_FOUND=yes 21884 21885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21886 21887 # Input might be given as Windows format, start by converting to 21888 # unix format. 21889 path="$BOOT_JDK" 21890 new_path=`$CYGPATH -u "$path"` 21891 21892 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21893 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21894 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21895 # "foo.exe" is OK but "foo" is an error. 21896 # 21897 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21898 # It is also a way to make sure we got the proper file name for the real test later on. 21899 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21900 if test "x$test_shortpath" = x; then 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21902 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21903 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21904 fi 21905 21906 # Call helper function which possibly converts this using DOS-style short mode. 21907 # If so, the updated path is stored in $new_path. 21908 21909 input_path="$new_path" 21910 # Check if we need to convert this using DOS-style short mode. If the path 21911 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21912 # take no chances and rewrite it. 21913 # Note: m4 eats our [], so we need to use [ and ] instead. 21914 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21915 if test "x$has_forbidden_chars" != x; then 21916 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21917 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21918 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21919 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21920 # Going to short mode and back again did indeed matter. Since short mode is 21921 # case insensitive, let's make it lowercase to improve readability. 21922 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21923 # Now convert it back to Unix-style (cygpath) 21924 input_path=`$CYGPATH -u "$shortmode_path"` 21925 new_path="$input_path" 21926 fi 21927 fi 21928 21929 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21930 if test "x$test_cygdrive_prefix" = x; then 21931 # As a simple fix, exclude /usr/bin since it's not a real path. 21932 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21933 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21934 # a path prefixed by /cygdrive for fixpath to work. 21935 new_path="$CYGWIN_ROOT_PATH$input_path" 21936 fi 21937 fi 21938 21939 21940 if test "x$path" != "x$new_path"; then 21941 BOOT_JDK="$new_path" 21942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21943 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21944 fi 21945 21946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21947 21948 path="$BOOT_JDK" 21949 has_colon=`$ECHO $path | $GREP ^.:` 21950 new_path="$path" 21951 if test "x$has_colon" = x; then 21952 # Not in mixed or Windows style, start by that. 21953 new_path=`cmd //c echo $path` 21954 fi 21955 21956 21957 input_path="$new_path" 21958 # Check if we need to convert this using DOS-style short mode. If the path 21959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21960 # take no chances and rewrite it. 21961 # Note: m4 eats our [], so we need to use [ and ] instead. 21962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21963 if test "x$has_forbidden_chars" != x; then 21964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21965 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21966 fi 21967 21968 21969 windows_path="$new_path" 21970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21971 unix_path=`$CYGPATH -u "$windows_path"` 21972 new_path="$unix_path" 21973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21975 new_path="$unix_path" 21976 fi 21977 21978 if test "x$path" != "x$new_path"; then 21979 BOOT_JDK="$new_path" 21980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21981 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21982 fi 21983 21984 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21985 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21986 21987 else 21988 # We're on a posix platform. Hooray! :) 21989 path="$BOOT_JDK" 21990 has_space=`$ECHO "$path" | $GREP " "` 21991 if test "x$has_space" != x; then 21992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21993 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21994 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21995 fi 21996 21997 # Use eval to expand a potential ~ 21998 eval path="$path" 21999 if test ! -f "$path" && test ! -d "$path"; then 22000 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22001 fi 22002 22003 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22004 fi 22005 22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22007 $as_echo_n "checking for Boot JDK... " >&6; } 22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22009 $as_echo "$BOOT_JDK" >&6; } 22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22011 $as_echo_n "checking Boot JDK version... " >&6; } 22012 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22014 $as_echo "$BOOT_JDK_VERSION" >&6; } 22015 fi # end check jdk version 22016 fi # end check rt.jar 22017 fi # end check javac 22018 fi # end check java 22019 fi # end check boot jdk found 22020 fi 22021 22022 done 22023 fi 22024 22025 fi 22026 22027 22028 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22029 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22030 # Do we have a bin/java? 22031 if test ! -x "$BOOT_JDK/bin/java"; then 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22033 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22034 BOOT_JDK_FOUND=no 22035 else 22036 # Do we have a bin/javac? 22037 if test ! -x "$BOOT_JDK/bin/javac"; then 22038 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22040 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22041 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22042 BOOT_JDK_FOUND=no 22043 else 22044 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22045 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22046 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22047 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22048 BOOT_JDK_FOUND=no 22049 else 22050 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22051 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22052 22053 # Extra M4 quote needed to protect [] in grep expression. 22054 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22055 if test "x$FOUND_VERSION_78" = x; then 22056 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22057 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22058 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22059 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22060 BOOT_JDK_FOUND=no 22061 else 22062 # We're done! :-) 22063 BOOT_JDK_FOUND=yes 22064 22065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22066 22067 # Input might be given as Windows format, start by converting to 22068 # unix format. 22069 path="$BOOT_JDK" 22070 new_path=`$CYGPATH -u "$path"` 22071 22072 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22073 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22074 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22075 # "foo.exe" is OK but "foo" is an error. 22076 # 22077 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22078 # It is also a way to make sure we got the proper file name for the real test later on. 22079 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22080 if test "x$test_shortpath" = x; then 22081 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22082 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22083 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22084 fi 22085 22086 # Call helper function which possibly converts this using DOS-style short mode. 22087 # If so, the updated path is stored in $new_path. 22088 22089 input_path="$new_path" 22090 # Check if we need to convert this using DOS-style short mode. If the path 22091 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22092 # take no chances and rewrite it. 22093 # Note: m4 eats our [], so we need to use [ and ] instead. 22094 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22095 if test "x$has_forbidden_chars" != x; then 22096 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22097 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22098 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22099 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22100 # Going to short mode and back again did indeed matter. Since short mode is 22101 # case insensitive, let's make it lowercase to improve readability. 22102 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22103 # Now convert it back to Unix-style (cygpath) 22104 input_path=`$CYGPATH -u "$shortmode_path"` 22105 new_path="$input_path" 22106 fi 22107 fi 22108 22109 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22110 if test "x$test_cygdrive_prefix" = x; then 22111 # As a simple fix, exclude /usr/bin since it's not a real path. 22112 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22113 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22114 # a path prefixed by /cygdrive for fixpath to work. 22115 new_path="$CYGWIN_ROOT_PATH$input_path" 22116 fi 22117 fi 22118 22119 22120 if test "x$path" != "x$new_path"; then 22121 BOOT_JDK="$new_path" 22122 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22123 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22124 fi 22125 22126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22127 22128 path="$BOOT_JDK" 22129 has_colon=`$ECHO $path | $GREP ^.:` 22130 new_path="$path" 22131 if test "x$has_colon" = x; then 22132 # Not in mixed or Windows style, start by that. 22133 new_path=`cmd //c echo $path` 22134 fi 22135 22136 22137 input_path="$new_path" 22138 # Check if we need to convert this using DOS-style short mode. If the path 22139 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22140 # take no chances and rewrite it. 22141 # Note: m4 eats our [], so we need to use [ and ] instead. 22142 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22143 if test "x$has_forbidden_chars" != x; then 22144 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22145 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22146 fi 22147 22148 22149 windows_path="$new_path" 22150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22151 unix_path=`$CYGPATH -u "$windows_path"` 22152 new_path="$unix_path" 22153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22154 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22155 new_path="$unix_path" 22156 fi 22157 22158 if test "x$path" != "x$new_path"; then 22159 BOOT_JDK="$new_path" 22160 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22161 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22162 fi 22163 22164 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22165 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22166 22167 else 22168 # We're on a posix platform. Hooray! :) 22169 path="$BOOT_JDK" 22170 has_space=`$ECHO "$path" | $GREP " "` 22171 if test "x$has_space" != x; then 22172 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22173 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22174 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22175 fi 22176 22177 # Use eval to expand a potential ~ 22178 eval path="$path" 22179 if test ! -f "$path" && test ! -d "$path"; then 22180 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22181 fi 22182 22183 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22184 fi 22185 22186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22187 $as_echo_n "checking for Boot JDK... " >&6; } 22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22189 $as_echo "$BOOT_JDK" >&6; } 22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22191 $as_echo_n "checking Boot JDK version... " >&6; } 22192 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22194 $as_echo "$BOOT_JDK_VERSION" >&6; } 22195 fi # end check jdk version 22196 fi # end check rt.jar 22197 fi # end check javac 22198 fi # end check java 22199 fi # end check boot jdk found 22200 fi 22201 22202 22203 if test "x$BOOT_JDK_FOUND" = xno; then 22204 # Now execute the test 22205 22206 if test "x$PROGRAMFILES" != x; then 22207 VIRTUAL_DIR="$PROGRAMFILES/Java" 22208 22209 windows_path="$VIRTUAL_DIR" 22210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22211 unix_path=`$CYGPATH -u "$windows_path"` 22212 VIRTUAL_DIR="$unix_path" 22213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22215 VIRTUAL_DIR="$unix_path" 22216 fi 22217 22218 22219 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22220 BOOT_JDK_SUFFIX="" 22221 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22222 if test "x$ALL_JDKS_FOUND" != x; then 22223 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22224 22225 if test "x$BOOT_JDK_FOUND" = xno; then 22226 # Now execute the test 22227 22228 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22229 if test -d "$BOOT_JDK"; then 22230 BOOT_JDK_FOUND=maybe 22231 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22232 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22233 fi 22234 22235 22236 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22237 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22238 # Do we have a bin/java? 22239 if test ! -x "$BOOT_JDK/bin/java"; then 22240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22242 BOOT_JDK_FOUND=no 22243 else 22244 # Do we have a bin/javac? 22245 if test ! -x "$BOOT_JDK/bin/javac"; then 22246 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22248 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22249 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22250 BOOT_JDK_FOUND=no 22251 else 22252 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22253 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22254 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22255 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22256 BOOT_JDK_FOUND=no 22257 else 22258 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22259 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22260 22261 # Extra M4 quote needed to protect [] in grep expression. 22262 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22263 if test "x$FOUND_VERSION_78" = x; then 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22266 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22267 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22268 BOOT_JDK_FOUND=no 22269 else 22270 # We're done! :-) 22271 BOOT_JDK_FOUND=yes 22272 22273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22274 22275 # Input might be given as Windows format, start by converting to 22276 # unix format. 22277 path="$BOOT_JDK" 22278 new_path=`$CYGPATH -u "$path"` 22279 22280 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22281 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22282 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22283 # "foo.exe" is OK but "foo" is an error. 22284 # 22285 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22286 # It is also a way to make sure we got the proper file name for the real test later on. 22287 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22288 if test "x$test_shortpath" = x; then 22289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22290 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22291 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22292 fi 22293 22294 # Call helper function which possibly converts this using DOS-style short mode. 22295 # If so, the updated path is stored in $new_path. 22296 22297 input_path="$new_path" 22298 # Check if we need to convert this using DOS-style short mode. If the path 22299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22300 # take no chances and rewrite it. 22301 # Note: m4 eats our [], so we need to use [ and ] instead. 22302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22303 if test "x$has_forbidden_chars" != x; then 22304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22305 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22306 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22307 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22308 # Going to short mode and back again did indeed matter. Since short mode is 22309 # case insensitive, let's make it lowercase to improve readability. 22310 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22311 # Now convert it back to Unix-style (cygpath) 22312 input_path=`$CYGPATH -u "$shortmode_path"` 22313 new_path="$input_path" 22314 fi 22315 fi 22316 22317 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22318 if test "x$test_cygdrive_prefix" = x; then 22319 # As a simple fix, exclude /usr/bin since it's not a real path. 22320 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22321 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22322 # a path prefixed by /cygdrive for fixpath to work. 22323 new_path="$CYGWIN_ROOT_PATH$input_path" 22324 fi 22325 fi 22326 22327 22328 if test "x$path" != "x$new_path"; then 22329 BOOT_JDK="$new_path" 22330 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22331 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22332 fi 22333 22334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22335 22336 path="$BOOT_JDK" 22337 has_colon=`$ECHO $path | $GREP ^.:` 22338 new_path="$path" 22339 if test "x$has_colon" = x; then 22340 # Not in mixed or Windows style, start by that. 22341 new_path=`cmd //c echo $path` 22342 fi 22343 22344 22345 input_path="$new_path" 22346 # Check if we need to convert this using DOS-style short mode. If the path 22347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22348 # take no chances and rewrite it. 22349 # Note: m4 eats our [], so we need to use [ and ] instead. 22350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22351 if test "x$has_forbidden_chars" != x; then 22352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22353 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22354 fi 22355 22356 22357 windows_path="$new_path" 22358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22359 unix_path=`$CYGPATH -u "$windows_path"` 22360 new_path="$unix_path" 22361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22363 new_path="$unix_path" 22364 fi 22365 22366 if test "x$path" != "x$new_path"; then 22367 BOOT_JDK="$new_path" 22368 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22369 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22370 fi 22371 22372 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22373 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22374 22375 else 22376 # We're on a posix platform. Hooray! :) 22377 path="$BOOT_JDK" 22378 has_space=`$ECHO "$path" | $GREP " "` 22379 if test "x$has_space" != x; then 22380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22381 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22382 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22383 fi 22384 22385 # Use eval to expand a potential ~ 22386 eval path="$path" 22387 if test ! -f "$path" && test ! -d "$path"; then 22388 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22389 fi 22390 22391 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22392 fi 22393 22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22395 $as_echo_n "checking for Boot JDK... " >&6; } 22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22397 $as_echo "$BOOT_JDK" >&6; } 22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22399 $as_echo_n "checking Boot JDK version... " >&6; } 22400 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22402 $as_echo "$BOOT_JDK_VERSION" >&6; } 22403 fi # end check jdk version 22404 fi # end check rt.jar 22405 fi # end check javac 22406 fi # end check java 22407 fi # end check boot jdk found 22408 fi 22409 22410 done 22411 fi 22412 22413 fi 22414 22415 22416 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22417 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22418 # Do we have a bin/java? 22419 if test ! -x "$BOOT_JDK/bin/java"; then 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22421 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22422 BOOT_JDK_FOUND=no 22423 else 22424 # Do we have a bin/javac? 22425 if test ! -x "$BOOT_JDK/bin/javac"; then 22426 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22428 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22429 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22430 BOOT_JDK_FOUND=no 22431 else 22432 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22433 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22434 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22435 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22436 BOOT_JDK_FOUND=no 22437 else 22438 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22439 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22440 22441 # Extra M4 quote needed to protect [] in grep expression. 22442 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22443 if test "x$FOUND_VERSION_78" = x; then 22444 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22445 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22446 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22447 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22448 BOOT_JDK_FOUND=no 22449 else 22450 # We're done! :-) 22451 BOOT_JDK_FOUND=yes 22452 22453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22454 22455 # Input might be given as Windows format, start by converting to 22456 # unix format. 22457 path="$BOOT_JDK" 22458 new_path=`$CYGPATH -u "$path"` 22459 22460 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22461 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22462 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22463 # "foo.exe" is OK but "foo" is an error. 22464 # 22465 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22466 # It is also a way to make sure we got the proper file name for the real test later on. 22467 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22468 if test "x$test_shortpath" = x; then 22469 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22470 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22471 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22472 fi 22473 22474 # Call helper function which possibly converts this using DOS-style short mode. 22475 # If so, the updated path is stored in $new_path. 22476 22477 input_path="$new_path" 22478 # Check if we need to convert this using DOS-style short mode. If the path 22479 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22480 # take no chances and rewrite it. 22481 # Note: m4 eats our [], so we need to use [ and ] instead. 22482 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22483 if test "x$has_forbidden_chars" != x; then 22484 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22485 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22486 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22487 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22488 # Going to short mode and back again did indeed matter. Since short mode is 22489 # case insensitive, let's make it lowercase to improve readability. 22490 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22491 # Now convert it back to Unix-style (cygpath) 22492 input_path=`$CYGPATH -u "$shortmode_path"` 22493 new_path="$input_path" 22494 fi 22495 fi 22496 22497 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22498 if test "x$test_cygdrive_prefix" = x; then 22499 # As a simple fix, exclude /usr/bin since it's not a real path. 22500 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22501 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22502 # a path prefixed by /cygdrive for fixpath to work. 22503 new_path="$CYGWIN_ROOT_PATH$input_path" 22504 fi 22505 fi 22506 22507 22508 if test "x$path" != "x$new_path"; then 22509 BOOT_JDK="$new_path" 22510 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22511 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22512 fi 22513 22514 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22515 22516 path="$BOOT_JDK" 22517 has_colon=`$ECHO $path | $GREP ^.:` 22518 new_path="$path" 22519 if test "x$has_colon" = x; then 22520 # Not in mixed or Windows style, start by that. 22521 new_path=`cmd //c echo $path` 22522 fi 22523 22524 22525 input_path="$new_path" 22526 # Check if we need to convert this using DOS-style short mode. If the path 22527 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22528 # take no chances and rewrite it. 22529 # Note: m4 eats our [], so we need to use [ and ] instead. 22530 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22531 if test "x$has_forbidden_chars" != x; then 22532 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22533 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22534 fi 22535 22536 22537 windows_path="$new_path" 22538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22539 unix_path=`$CYGPATH -u "$windows_path"` 22540 new_path="$unix_path" 22541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22543 new_path="$unix_path" 22544 fi 22545 22546 if test "x$path" != "x$new_path"; then 22547 BOOT_JDK="$new_path" 22548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22549 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22550 fi 22551 22552 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22553 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22554 22555 else 22556 # We're on a posix platform. Hooray! :) 22557 path="$BOOT_JDK" 22558 has_space=`$ECHO "$path" | $GREP " "` 22559 if test "x$has_space" != x; then 22560 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22561 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22562 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22563 fi 22564 22565 # Use eval to expand a potential ~ 22566 eval path="$path" 22567 if test ! -f "$path" && test ! -d "$path"; then 22568 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22569 fi 22570 22571 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22572 fi 22573 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22575 $as_echo_n "checking for Boot JDK... " >&6; } 22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22577 $as_echo "$BOOT_JDK" >&6; } 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22579 $as_echo_n "checking Boot JDK version... " >&6; } 22580 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22582 $as_echo "$BOOT_JDK_VERSION" >&6; } 22583 fi # end check jdk version 22584 fi # end check rt.jar 22585 fi # end check javac 22586 fi # end check java 22587 fi # end check boot jdk found 22588 fi 22589 22590 22591 if test "x$BOOT_JDK_FOUND" = xno; then 22592 # Now execute the test 22593 22594 if test "x$ProgramFiles" != x; then 22595 VIRTUAL_DIR="$ProgramFiles/Java" 22596 22597 windows_path="$VIRTUAL_DIR" 22598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22599 unix_path=`$CYGPATH -u "$windows_path"` 22600 VIRTUAL_DIR="$unix_path" 22601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22603 VIRTUAL_DIR="$unix_path" 22604 fi 22605 22606 22607 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22608 BOOT_JDK_SUFFIX="" 22609 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22610 if test "x$ALL_JDKS_FOUND" != x; then 22611 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22612 22613 if test "x$BOOT_JDK_FOUND" = xno; then 22614 # Now execute the test 22615 22616 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22617 if test -d "$BOOT_JDK"; then 22618 BOOT_JDK_FOUND=maybe 22619 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22620 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22621 fi 22622 22623 22624 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22625 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22626 # Do we have a bin/java? 22627 if test ! -x "$BOOT_JDK/bin/java"; then 22628 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22630 BOOT_JDK_FOUND=no 22631 else 22632 # Do we have a bin/javac? 22633 if test ! -x "$BOOT_JDK/bin/javac"; then 22634 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22635 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22636 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22637 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22638 BOOT_JDK_FOUND=no 22639 else 22640 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22641 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22642 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22644 BOOT_JDK_FOUND=no 22645 else 22646 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22647 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22648 22649 # Extra M4 quote needed to protect [] in grep expression. 22650 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22651 if test "x$FOUND_VERSION_78" = x; then 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22655 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22656 BOOT_JDK_FOUND=no 22657 else 22658 # We're done! :-) 22659 BOOT_JDK_FOUND=yes 22660 22661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22662 22663 # Input might be given as Windows format, start by converting to 22664 # unix format. 22665 path="$BOOT_JDK" 22666 new_path=`$CYGPATH -u "$path"` 22667 22668 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22669 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22670 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22671 # "foo.exe" is OK but "foo" is an error. 22672 # 22673 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22674 # It is also a way to make sure we got the proper file name for the real test later on. 22675 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22676 if test "x$test_shortpath" = x; then 22677 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22678 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22679 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22680 fi 22681 22682 # Call helper function which possibly converts this using DOS-style short mode. 22683 # If so, the updated path is stored in $new_path. 22684 22685 input_path="$new_path" 22686 # Check if we need to convert this using DOS-style short mode. If the path 22687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22688 # take no chances and rewrite it. 22689 # Note: m4 eats our [], so we need to use [ and ] instead. 22690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22691 if test "x$has_forbidden_chars" != x; then 22692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22693 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22694 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22695 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22696 # Going to short mode and back again did indeed matter. Since short mode is 22697 # case insensitive, let's make it lowercase to improve readability. 22698 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22699 # Now convert it back to Unix-style (cygpath) 22700 input_path=`$CYGPATH -u "$shortmode_path"` 22701 new_path="$input_path" 22702 fi 22703 fi 22704 22705 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22706 if test "x$test_cygdrive_prefix" = x; then 22707 # As a simple fix, exclude /usr/bin since it's not a real path. 22708 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22709 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22710 # a path prefixed by /cygdrive for fixpath to work. 22711 new_path="$CYGWIN_ROOT_PATH$input_path" 22712 fi 22713 fi 22714 22715 22716 if test "x$path" != "x$new_path"; then 22717 BOOT_JDK="$new_path" 22718 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22720 fi 22721 22722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22723 22724 path="$BOOT_JDK" 22725 has_colon=`$ECHO $path | $GREP ^.:` 22726 new_path="$path" 22727 if test "x$has_colon" = x; then 22728 # Not in mixed or Windows style, start by that. 22729 new_path=`cmd //c echo $path` 22730 fi 22731 22732 22733 input_path="$new_path" 22734 # Check if we need to convert this using DOS-style short mode. If the path 22735 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22736 # take no chances and rewrite it. 22737 # Note: m4 eats our [], so we need to use [ and ] instead. 22738 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22739 if test "x$has_forbidden_chars" != x; then 22740 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22741 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22742 fi 22743 22744 22745 windows_path="$new_path" 22746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22747 unix_path=`$CYGPATH -u "$windows_path"` 22748 new_path="$unix_path" 22749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22751 new_path="$unix_path" 22752 fi 22753 22754 if test "x$path" != "x$new_path"; then 22755 BOOT_JDK="$new_path" 22756 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22757 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22758 fi 22759 22760 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22761 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22762 22763 else 22764 # We're on a posix platform. Hooray! :) 22765 path="$BOOT_JDK" 22766 has_space=`$ECHO "$path" | $GREP " "` 22767 if test "x$has_space" != x; then 22768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22770 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22771 fi 22772 22773 # Use eval to expand a potential ~ 22774 eval path="$path" 22775 if test ! -f "$path" && test ! -d "$path"; then 22776 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22777 fi 22778 22779 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22780 fi 22781 22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22783 $as_echo_n "checking for Boot JDK... " >&6; } 22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22785 $as_echo "$BOOT_JDK" >&6; } 22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22787 $as_echo_n "checking Boot JDK version... " >&6; } 22788 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22790 $as_echo "$BOOT_JDK_VERSION" >&6; } 22791 fi # end check jdk version 22792 fi # end check rt.jar 22793 fi # end check javac 22794 fi # end check java 22795 fi # end check boot jdk found 22796 fi 22797 22798 done 22799 fi 22800 22801 fi 22802 22803 22804 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22805 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22806 # Do we have a bin/java? 22807 if test ! -x "$BOOT_JDK/bin/java"; then 22808 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22809 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22810 BOOT_JDK_FOUND=no 22811 else 22812 # Do we have a bin/javac? 22813 if test ! -x "$BOOT_JDK/bin/javac"; then 22814 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22815 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22816 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22817 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22818 BOOT_JDK_FOUND=no 22819 else 22820 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22821 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22822 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22824 BOOT_JDK_FOUND=no 22825 else 22826 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22827 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22828 22829 # Extra M4 quote needed to protect [] in grep expression. 22830 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22831 if test "x$FOUND_VERSION_78" = x; then 22832 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22833 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22834 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22835 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22836 BOOT_JDK_FOUND=no 22837 else 22838 # We're done! :-) 22839 BOOT_JDK_FOUND=yes 22840 22841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22842 22843 # Input might be given as Windows format, start by converting to 22844 # unix format. 22845 path="$BOOT_JDK" 22846 new_path=`$CYGPATH -u "$path"` 22847 22848 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22849 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22850 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22851 # "foo.exe" is OK but "foo" is an error. 22852 # 22853 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22854 # It is also a way to make sure we got the proper file name for the real test later on. 22855 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22856 if test "x$test_shortpath" = x; then 22857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22858 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22859 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22860 fi 22861 22862 # Call helper function which possibly converts this using DOS-style short mode. 22863 # If so, the updated path is stored in $new_path. 22864 22865 input_path="$new_path" 22866 # Check if we need to convert this using DOS-style short mode. If the path 22867 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22868 # take no chances and rewrite it. 22869 # Note: m4 eats our [], so we need to use [ and ] instead. 22870 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22871 if test "x$has_forbidden_chars" != x; then 22872 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22873 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22874 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22875 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22876 # Going to short mode and back again did indeed matter. Since short mode is 22877 # case insensitive, let's make it lowercase to improve readability. 22878 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22879 # Now convert it back to Unix-style (cygpath) 22880 input_path=`$CYGPATH -u "$shortmode_path"` 22881 new_path="$input_path" 22882 fi 22883 fi 22884 22885 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22886 if test "x$test_cygdrive_prefix" = x; then 22887 # As a simple fix, exclude /usr/bin since it's not a real path. 22888 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22889 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22890 # a path prefixed by /cygdrive for fixpath to work. 22891 new_path="$CYGWIN_ROOT_PATH$input_path" 22892 fi 22893 fi 22894 22895 22896 if test "x$path" != "x$new_path"; then 22897 BOOT_JDK="$new_path" 22898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22899 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22900 fi 22901 22902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22903 22904 path="$BOOT_JDK" 22905 has_colon=`$ECHO $path | $GREP ^.:` 22906 new_path="$path" 22907 if test "x$has_colon" = x; then 22908 # Not in mixed or Windows style, start by that. 22909 new_path=`cmd //c echo $path` 22910 fi 22911 22912 22913 input_path="$new_path" 22914 # Check if we need to convert this using DOS-style short mode. If the path 22915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22916 # take no chances and rewrite it. 22917 # Note: m4 eats our [], so we need to use [ and ] instead. 22918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22919 if test "x$has_forbidden_chars" != x; then 22920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22921 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22922 fi 22923 22924 22925 windows_path="$new_path" 22926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22927 unix_path=`$CYGPATH -u "$windows_path"` 22928 new_path="$unix_path" 22929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22931 new_path="$unix_path" 22932 fi 22933 22934 if test "x$path" != "x$new_path"; then 22935 BOOT_JDK="$new_path" 22936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22937 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22938 fi 22939 22940 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22941 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22942 22943 else 22944 # We're on a posix platform. Hooray! :) 22945 path="$BOOT_JDK" 22946 has_space=`$ECHO "$path" | $GREP " "` 22947 if test "x$has_space" != x; then 22948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22949 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22950 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22951 fi 22952 22953 # Use eval to expand a potential ~ 22954 eval path="$path" 22955 if test ! -f "$path" && test ! -d "$path"; then 22956 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22957 fi 22958 22959 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22960 fi 22961 22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22963 $as_echo_n "checking for Boot JDK... " >&6; } 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22965 $as_echo "$BOOT_JDK" >&6; } 22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22967 $as_echo_n "checking Boot JDK version... " >&6; } 22968 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22970 $as_echo "$BOOT_JDK_VERSION" >&6; } 22971 fi # end check jdk version 22972 fi # end check rt.jar 22973 fi # end check javac 22974 fi # end check java 22975 fi # end check boot jdk found 22976 fi 22977 22978 22979 if test "x$BOOT_JDK_FOUND" = xno; then 22980 # Now execute the test 22981 22982 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 22983 BOOT_JDK_SUFFIX="" 22984 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22985 if test "x$ALL_JDKS_FOUND" != x; then 22986 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22987 22988 if test "x$BOOT_JDK_FOUND" = xno; then 22989 # Now execute the test 22990 22991 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22992 if test -d "$BOOT_JDK"; then 22993 BOOT_JDK_FOUND=maybe 22994 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22995 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22996 fi 22997 22998 22999 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23000 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23001 # Do we have a bin/java? 23002 if test ! -x "$BOOT_JDK/bin/java"; then 23003 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23004 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23005 BOOT_JDK_FOUND=no 23006 else 23007 # Do we have a bin/javac? 23008 if test ! -x "$BOOT_JDK/bin/javac"; then 23009 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23010 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23011 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23012 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23013 BOOT_JDK_FOUND=no 23014 else 23015 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23016 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23017 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23018 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23019 BOOT_JDK_FOUND=no 23020 else 23021 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23022 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23023 23024 # Extra M4 quote needed to protect [] in grep expression. 23025 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23026 if test "x$FOUND_VERSION_78" = x; then 23027 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23028 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23029 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23030 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23031 BOOT_JDK_FOUND=no 23032 else 23033 # We're done! :-) 23034 BOOT_JDK_FOUND=yes 23035 23036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23037 23038 # Input might be given as Windows format, start by converting to 23039 # unix format. 23040 path="$BOOT_JDK" 23041 new_path=`$CYGPATH -u "$path"` 23042 23043 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23044 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23045 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23046 # "foo.exe" is OK but "foo" is an error. 23047 # 23048 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23049 # It is also a way to make sure we got the proper file name for the real test later on. 23050 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23051 if test "x$test_shortpath" = x; then 23052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23053 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23054 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23055 fi 23056 23057 # Call helper function which possibly converts this using DOS-style short mode. 23058 # If so, the updated path is stored in $new_path. 23059 23060 input_path="$new_path" 23061 # Check if we need to convert this using DOS-style short mode. If the path 23062 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23063 # take no chances and rewrite it. 23064 # Note: m4 eats our [], so we need to use [ and ] instead. 23065 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23066 if test "x$has_forbidden_chars" != x; then 23067 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23068 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23069 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23070 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23071 # Going to short mode and back again did indeed matter. Since short mode is 23072 # case insensitive, let's make it lowercase to improve readability. 23073 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23074 # Now convert it back to Unix-style (cygpath) 23075 input_path=`$CYGPATH -u "$shortmode_path"` 23076 new_path="$input_path" 23077 fi 23078 fi 23079 23080 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23081 if test "x$test_cygdrive_prefix" = x; then 23082 # As a simple fix, exclude /usr/bin since it's not a real path. 23083 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23084 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23085 # a path prefixed by /cygdrive for fixpath to work. 23086 new_path="$CYGWIN_ROOT_PATH$input_path" 23087 fi 23088 fi 23089 23090 23091 if test "x$path" != "x$new_path"; then 23092 BOOT_JDK="$new_path" 23093 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23094 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23095 fi 23096 23097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23098 23099 path="$BOOT_JDK" 23100 has_colon=`$ECHO $path | $GREP ^.:` 23101 new_path="$path" 23102 if test "x$has_colon" = x; then 23103 # Not in mixed or Windows style, start by that. 23104 new_path=`cmd //c echo $path` 23105 fi 23106 23107 23108 input_path="$new_path" 23109 # Check if we need to convert this using DOS-style short mode. If the path 23110 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23111 # take no chances and rewrite it. 23112 # Note: m4 eats our [], so we need to use [ and ] instead. 23113 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23114 if test "x$has_forbidden_chars" != x; then 23115 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23116 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23117 fi 23118 23119 23120 windows_path="$new_path" 23121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23122 unix_path=`$CYGPATH -u "$windows_path"` 23123 new_path="$unix_path" 23124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23126 new_path="$unix_path" 23127 fi 23128 23129 if test "x$path" != "x$new_path"; then 23130 BOOT_JDK="$new_path" 23131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23132 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23133 fi 23134 23135 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23136 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23137 23138 else 23139 # We're on a posix platform. Hooray! :) 23140 path="$BOOT_JDK" 23141 has_space=`$ECHO "$path" | $GREP " "` 23142 if test "x$has_space" != x; then 23143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23144 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23145 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23146 fi 23147 23148 # Use eval to expand a potential ~ 23149 eval path="$path" 23150 if test ! -f "$path" && test ! -d "$path"; then 23151 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23152 fi 23153 23154 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23155 fi 23156 23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23158 $as_echo_n "checking for Boot JDK... " >&6; } 23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23160 $as_echo "$BOOT_JDK" >&6; } 23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23162 $as_echo_n "checking Boot JDK version... " >&6; } 23163 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23165 $as_echo "$BOOT_JDK_VERSION" >&6; } 23166 fi # end check jdk version 23167 fi # end check rt.jar 23168 fi # end check javac 23169 fi # end check java 23170 fi # end check boot jdk found 23171 fi 23172 23173 done 23174 fi 23175 23176 23177 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23178 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23179 # Do we have a bin/java? 23180 if test ! -x "$BOOT_JDK/bin/java"; then 23181 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23182 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23183 BOOT_JDK_FOUND=no 23184 else 23185 # Do we have a bin/javac? 23186 if test ! -x "$BOOT_JDK/bin/javac"; then 23187 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23188 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23189 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23190 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23191 BOOT_JDK_FOUND=no 23192 else 23193 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23194 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23195 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23196 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23197 BOOT_JDK_FOUND=no 23198 else 23199 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23200 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23201 23202 # Extra M4 quote needed to protect [] in grep expression. 23203 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23204 if test "x$FOUND_VERSION_78" = x; then 23205 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23206 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23207 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23208 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23209 BOOT_JDK_FOUND=no 23210 else 23211 # We're done! :-) 23212 BOOT_JDK_FOUND=yes 23213 23214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23215 23216 # Input might be given as Windows format, start by converting to 23217 # unix format. 23218 path="$BOOT_JDK" 23219 new_path=`$CYGPATH -u "$path"` 23220 23221 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23222 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23223 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23224 # "foo.exe" is OK but "foo" is an error. 23225 # 23226 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23227 # It is also a way to make sure we got the proper file name for the real test later on. 23228 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23229 if test "x$test_shortpath" = x; then 23230 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23231 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23232 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23233 fi 23234 23235 # Call helper function which possibly converts this using DOS-style short mode. 23236 # If so, the updated path is stored in $new_path. 23237 23238 input_path="$new_path" 23239 # Check if we need to convert this using DOS-style short mode. If the path 23240 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23241 # take no chances and rewrite it. 23242 # Note: m4 eats our [], so we need to use [ and ] instead. 23243 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23244 if test "x$has_forbidden_chars" != x; then 23245 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23246 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23247 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23248 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23249 # Going to short mode and back again did indeed matter. Since short mode is 23250 # case insensitive, let's make it lowercase to improve readability. 23251 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23252 # Now convert it back to Unix-style (cygpath) 23253 input_path=`$CYGPATH -u "$shortmode_path"` 23254 new_path="$input_path" 23255 fi 23256 fi 23257 23258 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23259 if test "x$test_cygdrive_prefix" = x; then 23260 # As a simple fix, exclude /usr/bin since it's not a real path. 23261 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23262 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23263 # a path prefixed by /cygdrive for fixpath to work. 23264 new_path="$CYGWIN_ROOT_PATH$input_path" 23265 fi 23266 fi 23267 23268 23269 if test "x$path" != "x$new_path"; then 23270 BOOT_JDK="$new_path" 23271 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23272 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23273 fi 23274 23275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23276 23277 path="$BOOT_JDK" 23278 has_colon=`$ECHO $path | $GREP ^.:` 23279 new_path="$path" 23280 if test "x$has_colon" = x; then 23281 # Not in mixed or Windows style, start by that. 23282 new_path=`cmd //c echo $path` 23283 fi 23284 23285 23286 input_path="$new_path" 23287 # Check if we need to convert this using DOS-style short mode. If the path 23288 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23289 # take no chances and rewrite it. 23290 # Note: m4 eats our [], so we need to use [ and ] instead. 23291 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23292 if test "x$has_forbidden_chars" != x; then 23293 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23294 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23295 fi 23296 23297 23298 windows_path="$new_path" 23299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23300 unix_path=`$CYGPATH -u "$windows_path"` 23301 new_path="$unix_path" 23302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23303 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23304 new_path="$unix_path" 23305 fi 23306 23307 if test "x$path" != "x$new_path"; then 23308 BOOT_JDK="$new_path" 23309 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23310 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23311 fi 23312 23313 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23314 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23315 23316 else 23317 # We're on a posix platform. Hooray! :) 23318 path="$BOOT_JDK" 23319 has_space=`$ECHO "$path" | $GREP " "` 23320 if test "x$has_space" != x; then 23321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23322 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23323 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23324 fi 23325 23326 # Use eval to expand a potential ~ 23327 eval path="$path" 23328 if test ! -f "$path" && test ! -d "$path"; then 23329 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23330 fi 23331 23332 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23333 fi 23334 23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23336 $as_echo_n "checking for Boot JDK... " >&6; } 23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23338 $as_echo "$BOOT_JDK" >&6; } 23339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23340 $as_echo_n "checking Boot JDK version... " >&6; } 23341 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23343 $as_echo "$BOOT_JDK_VERSION" >&6; } 23344 fi # end check jdk version 23345 fi # end check rt.jar 23346 fi # end check javac 23347 fi # end check java 23348 fi # end check boot jdk found 23349 fi 23350 23351 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23352 23353 if test "x$BOOT_JDK_FOUND" = xno; then 23354 # Now execute the test 23355 23356 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23357 BOOT_JDK_SUFFIX="/Contents/Home" 23358 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23359 if test "x$ALL_JDKS_FOUND" != x; then 23360 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23361 23362 if test "x$BOOT_JDK_FOUND" = xno; then 23363 # Now execute the test 23364 23365 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23366 if test -d "$BOOT_JDK"; then 23367 BOOT_JDK_FOUND=maybe 23368 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23369 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23370 fi 23371 23372 23373 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23374 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23375 # Do we have a bin/java? 23376 if test ! -x "$BOOT_JDK/bin/java"; then 23377 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23378 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23379 BOOT_JDK_FOUND=no 23380 else 23381 # Do we have a bin/javac? 23382 if test ! -x "$BOOT_JDK/bin/javac"; then 23383 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23384 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23385 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23386 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23387 BOOT_JDK_FOUND=no 23388 else 23389 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23390 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23391 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23392 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23393 BOOT_JDK_FOUND=no 23394 else 23395 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23396 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23397 23398 # Extra M4 quote needed to protect [] in grep expression. 23399 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23400 if test "x$FOUND_VERSION_78" = x; then 23401 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23402 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23403 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23404 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23405 BOOT_JDK_FOUND=no 23406 else 23407 # We're done! :-) 23408 BOOT_JDK_FOUND=yes 23409 23410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23411 23412 # Input might be given as Windows format, start by converting to 23413 # unix format. 23414 path="$BOOT_JDK" 23415 new_path=`$CYGPATH -u "$path"` 23416 23417 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23418 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23419 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23420 # "foo.exe" is OK but "foo" is an error. 23421 # 23422 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23423 # It is also a way to make sure we got the proper file name for the real test later on. 23424 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23425 if test "x$test_shortpath" = x; then 23426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23427 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23428 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23429 fi 23430 23431 # Call helper function which possibly converts this using DOS-style short mode. 23432 # If so, the updated path is stored in $new_path. 23433 23434 input_path="$new_path" 23435 # Check if we need to convert this using DOS-style short mode. If the path 23436 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23437 # take no chances and rewrite it. 23438 # Note: m4 eats our [], so we need to use [ and ] instead. 23439 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23440 if test "x$has_forbidden_chars" != x; then 23441 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23442 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23443 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23444 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23445 # Going to short mode and back again did indeed matter. Since short mode is 23446 # case insensitive, let's make it lowercase to improve readability. 23447 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23448 # Now convert it back to Unix-style (cygpath) 23449 input_path=`$CYGPATH -u "$shortmode_path"` 23450 new_path="$input_path" 23451 fi 23452 fi 23453 23454 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23455 if test "x$test_cygdrive_prefix" = x; then 23456 # As a simple fix, exclude /usr/bin since it's not a real path. 23457 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23458 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23459 # a path prefixed by /cygdrive for fixpath to work. 23460 new_path="$CYGWIN_ROOT_PATH$input_path" 23461 fi 23462 fi 23463 23464 23465 if test "x$path" != "x$new_path"; then 23466 BOOT_JDK="$new_path" 23467 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23468 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23469 fi 23470 23471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23472 23473 path="$BOOT_JDK" 23474 has_colon=`$ECHO $path | $GREP ^.:` 23475 new_path="$path" 23476 if test "x$has_colon" = x; then 23477 # Not in mixed or Windows style, start by that. 23478 new_path=`cmd //c echo $path` 23479 fi 23480 23481 23482 input_path="$new_path" 23483 # Check if we need to convert this using DOS-style short mode. If the path 23484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23485 # take no chances and rewrite it. 23486 # Note: m4 eats our [], so we need to use [ and ] instead. 23487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23488 if test "x$has_forbidden_chars" != x; then 23489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23490 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23491 fi 23492 23493 23494 windows_path="$new_path" 23495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23496 unix_path=`$CYGPATH -u "$windows_path"` 23497 new_path="$unix_path" 23498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23500 new_path="$unix_path" 23501 fi 23502 23503 if test "x$path" != "x$new_path"; then 23504 BOOT_JDK="$new_path" 23505 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23506 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23507 fi 23508 23509 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23510 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23511 23512 else 23513 # We're on a posix platform. Hooray! :) 23514 path="$BOOT_JDK" 23515 has_space=`$ECHO "$path" | $GREP " "` 23516 if test "x$has_space" != x; then 23517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23518 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23519 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23520 fi 23521 23522 # Use eval to expand a potential ~ 23523 eval path="$path" 23524 if test ! -f "$path" && test ! -d "$path"; then 23525 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23526 fi 23527 23528 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23529 fi 23530 23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23532 $as_echo_n "checking for Boot JDK... " >&6; } 23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23534 $as_echo "$BOOT_JDK" >&6; } 23535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23536 $as_echo_n "checking Boot JDK version... " >&6; } 23537 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23539 $as_echo "$BOOT_JDK_VERSION" >&6; } 23540 fi # end check jdk version 23541 fi # end check rt.jar 23542 fi # end check javac 23543 fi # end check java 23544 fi # end check boot jdk found 23545 fi 23546 23547 done 23548 fi 23549 23550 23551 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23552 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23553 # Do we have a bin/java? 23554 if test ! -x "$BOOT_JDK/bin/java"; then 23555 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23556 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23557 BOOT_JDK_FOUND=no 23558 else 23559 # Do we have a bin/javac? 23560 if test ! -x "$BOOT_JDK/bin/javac"; then 23561 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23562 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23563 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23564 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23565 BOOT_JDK_FOUND=no 23566 else 23567 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23568 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23569 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23570 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23571 BOOT_JDK_FOUND=no 23572 else 23573 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23574 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23575 23576 # Extra M4 quote needed to protect [] in grep expression. 23577 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23578 if test "x$FOUND_VERSION_78" = x; then 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23580 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23581 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23582 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23583 BOOT_JDK_FOUND=no 23584 else 23585 # We're done! :-) 23586 BOOT_JDK_FOUND=yes 23587 23588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23589 23590 # Input might be given as Windows format, start by converting to 23591 # unix format. 23592 path="$BOOT_JDK" 23593 new_path=`$CYGPATH -u "$path"` 23594 23595 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23596 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23597 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23598 # "foo.exe" is OK but "foo" is an error. 23599 # 23600 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23601 # It is also a way to make sure we got the proper file name for the real test later on. 23602 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23603 if test "x$test_shortpath" = x; then 23604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23605 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23606 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23607 fi 23608 23609 # Call helper function which possibly converts this using DOS-style short mode. 23610 # If so, the updated path is stored in $new_path. 23611 23612 input_path="$new_path" 23613 # Check if we need to convert this using DOS-style short mode. If the path 23614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23615 # take no chances and rewrite it. 23616 # Note: m4 eats our [], so we need to use [ and ] instead. 23617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23618 if test "x$has_forbidden_chars" != x; then 23619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23620 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23621 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23622 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23623 # Going to short mode and back again did indeed matter. Since short mode is 23624 # case insensitive, let's make it lowercase to improve readability. 23625 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23626 # Now convert it back to Unix-style (cygpath) 23627 input_path=`$CYGPATH -u "$shortmode_path"` 23628 new_path="$input_path" 23629 fi 23630 fi 23631 23632 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23633 if test "x$test_cygdrive_prefix" = x; then 23634 # As a simple fix, exclude /usr/bin since it's not a real path. 23635 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23636 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23637 # a path prefixed by /cygdrive for fixpath to work. 23638 new_path="$CYGWIN_ROOT_PATH$input_path" 23639 fi 23640 fi 23641 23642 23643 if test "x$path" != "x$new_path"; then 23644 BOOT_JDK="$new_path" 23645 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23646 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23647 fi 23648 23649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23650 23651 path="$BOOT_JDK" 23652 has_colon=`$ECHO $path | $GREP ^.:` 23653 new_path="$path" 23654 if test "x$has_colon" = x; then 23655 # Not in mixed or Windows style, start by that. 23656 new_path=`cmd //c echo $path` 23657 fi 23658 23659 23660 input_path="$new_path" 23661 # Check if we need to convert this using DOS-style short mode. If the path 23662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23663 # take no chances and rewrite it. 23664 # Note: m4 eats our [], so we need to use [ and ] instead. 23665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23666 if test "x$has_forbidden_chars" != x; then 23667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23668 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23669 fi 23670 23671 23672 windows_path="$new_path" 23673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23674 unix_path=`$CYGPATH -u "$windows_path"` 23675 new_path="$unix_path" 23676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23678 new_path="$unix_path" 23679 fi 23680 23681 if test "x$path" != "x$new_path"; then 23682 BOOT_JDK="$new_path" 23683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23684 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23685 fi 23686 23687 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23688 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23689 23690 else 23691 # We're on a posix platform. Hooray! :) 23692 path="$BOOT_JDK" 23693 has_space=`$ECHO "$path" | $GREP " "` 23694 if test "x$has_space" != x; then 23695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23696 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23697 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23698 fi 23699 23700 # Use eval to expand a potential ~ 23701 eval path="$path" 23702 if test ! -f "$path" && test ! -d "$path"; then 23703 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23704 fi 23705 23706 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23707 fi 23708 23709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23710 $as_echo_n "checking for Boot JDK... " >&6; } 23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23712 $as_echo "$BOOT_JDK" >&6; } 23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23714 $as_echo_n "checking Boot JDK version... " >&6; } 23715 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23717 $as_echo "$BOOT_JDK_VERSION" >&6; } 23718 fi # end check jdk version 23719 fi # end check rt.jar 23720 fi # end check javac 23721 fi # end check java 23722 fi # end check boot jdk found 23723 fi 23724 23725 23726 if test "x$BOOT_JDK_FOUND" = xno; then 23727 # Now execute the test 23728 23729 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 23730 BOOT_JDK_SUFFIX="/Contents/Home" 23731 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23732 if test "x$ALL_JDKS_FOUND" != x; then 23733 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23734 23735 if test "x$BOOT_JDK_FOUND" = xno; then 23736 # Now execute the test 23737 23738 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23739 if test -d "$BOOT_JDK"; then 23740 BOOT_JDK_FOUND=maybe 23741 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23742 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23743 fi 23744 23745 23746 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23747 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23748 # Do we have a bin/java? 23749 if test ! -x "$BOOT_JDK/bin/java"; then 23750 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23751 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23752 BOOT_JDK_FOUND=no 23753 else 23754 # Do we have a bin/javac? 23755 if test ! -x "$BOOT_JDK/bin/javac"; then 23756 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23757 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23758 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23759 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23760 BOOT_JDK_FOUND=no 23761 else 23762 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23763 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23764 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23765 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23766 BOOT_JDK_FOUND=no 23767 else 23768 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23769 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23770 23771 # Extra M4 quote needed to protect [] in grep expression. 23772 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23773 if test "x$FOUND_VERSION_78" = x; then 23774 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23776 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23777 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23778 BOOT_JDK_FOUND=no 23779 else 23780 # We're done! :-) 23781 BOOT_JDK_FOUND=yes 23782 23783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23784 23785 # Input might be given as Windows format, start by converting to 23786 # unix format. 23787 path="$BOOT_JDK" 23788 new_path=`$CYGPATH -u "$path"` 23789 23790 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23791 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23792 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23793 # "foo.exe" is OK but "foo" is an error. 23794 # 23795 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23796 # It is also a way to make sure we got the proper file name for the real test later on. 23797 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23798 if test "x$test_shortpath" = x; then 23799 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23800 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23801 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23802 fi 23803 23804 # Call helper function which possibly converts this using DOS-style short mode. 23805 # If so, the updated path is stored in $new_path. 23806 23807 input_path="$new_path" 23808 # Check if we need to convert this using DOS-style short mode. If the path 23809 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23810 # take no chances and rewrite it. 23811 # Note: m4 eats our [], so we need to use [ and ] instead. 23812 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23813 if test "x$has_forbidden_chars" != x; then 23814 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23815 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23816 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23817 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23818 # Going to short mode and back again did indeed matter. Since short mode is 23819 # case insensitive, let's make it lowercase to improve readability. 23820 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23821 # Now convert it back to Unix-style (cygpath) 23822 input_path=`$CYGPATH -u "$shortmode_path"` 23823 new_path="$input_path" 23824 fi 23825 fi 23826 23827 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23828 if test "x$test_cygdrive_prefix" = x; then 23829 # As a simple fix, exclude /usr/bin since it's not a real path. 23830 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23831 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23832 # a path prefixed by /cygdrive for fixpath to work. 23833 new_path="$CYGWIN_ROOT_PATH$input_path" 23834 fi 23835 fi 23836 23837 23838 if test "x$path" != "x$new_path"; then 23839 BOOT_JDK="$new_path" 23840 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23841 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23842 fi 23843 23844 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23845 23846 path="$BOOT_JDK" 23847 has_colon=`$ECHO $path | $GREP ^.:` 23848 new_path="$path" 23849 if test "x$has_colon" = x; then 23850 # Not in mixed or Windows style, start by that. 23851 new_path=`cmd //c echo $path` 23852 fi 23853 23854 23855 input_path="$new_path" 23856 # Check if we need to convert this using DOS-style short mode. If the path 23857 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23858 # take no chances and rewrite it. 23859 # Note: m4 eats our [], so we need to use [ and ] instead. 23860 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23861 if test "x$has_forbidden_chars" != x; then 23862 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23863 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23864 fi 23865 23866 23867 windows_path="$new_path" 23868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23869 unix_path=`$CYGPATH -u "$windows_path"` 23870 new_path="$unix_path" 23871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23872 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23873 new_path="$unix_path" 23874 fi 23875 23876 if test "x$path" != "x$new_path"; then 23877 BOOT_JDK="$new_path" 23878 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23879 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23880 fi 23881 23882 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23883 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23884 23885 else 23886 # We're on a posix platform. Hooray! :) 23887 path="$BOOT_JDK" 23888 has_space=`$ECHO "$path" | $GREP " "` 23889 if test "x$has_space" != x; then 23890 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23891 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23892 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23893 fi 23894 23895 # Use eval to expand a potential ~ 23896 eval path="$path" 23897 if test ! -f "$path" && test ! -d "$path"; then 23898 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23899 fi 23900 23901 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23902 fi 23903 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23905 $as_echo_n "checking for Boot JDK... " >&6; } 23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23907 $as_echo "$BOOT_JDK" >&6; } 23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23909 $as_echo_n "checking Boot JDK version... " >&6; } 23910 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23912 $as_echo "$BOOT_JDK_VERSION" >&6; } 23913 fi # end check jdk version 23914 fi # end check rt.jar 23915 fi # end check javac 23916 fi # end check java 23917 fi # end check boot jdk found 23918 fi 23919 23920 done 23921 fi 23922 23923 23924 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23925 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23926 # Do we have a bin/java? 23927 if test ! -x "$BOOT_JDK/bin/java"; then 23928 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23929 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23930 BOOT_JDK_FOUND=no 23931 else 23932 # Do we have a bin/javac? 23933 if test ! -x "$BOOT_JDK/bin/javac"; then 23934 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23935 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23936 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23937 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23938 BOOT_JDK_FOUND=no 23939 else 23940 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23941 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23942 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23943 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23944 BOOT_JDK_FOUND=no 23945 else 23946 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23947 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23948 23949 # Extra M4 quote needed to protect [] in grep expression. 23950 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23951 if test "x$FOUND_VERSION_78" = x; then 23952 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23953 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23954 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23955 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23956 BOOT_JDK_FOUND=no 23957 else 23958 # We're done! :-) 23959 BOOT_JDK_FOUND=yes 23960 23961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23962 23963 # Input might be given as Windows format, start by converting to 23964 # unix format. 23965 path="$BOOT_JDK" 23966 new_path=`$CYGPATH -u "$path"` 23967 23968 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23969 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23970 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23971 # "foo.exe" is OK but "foo" is an error. 23972 # 23973 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23974 # It is also a way to make sure we got the proper file name for the real test later on. 23975 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23976 if test "x$test_shortpath" = x; then 23977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23978 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23979 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23980 fi 23981 23982 # Call helper function which possibly converts this using DOS-style short mode. 23983 # If so, the updated path is stored in $new_path. 23984 23985 input_path="$new_path" 23986 # Check if we need to convert this using DOS-style short mode. If the path 23987 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23988 # take no chances and rewrite it. 23989 # Note: m4 eats our [], so we need to use [ and ] instead. 23990 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23991 if test "x$has_forbidden_chars" != x; then 23992 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23993 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23994 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23995 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23996 # Going to short mode and back again did indeed matter. Since short mode is 23997 # case insensitive, let's make it lowercase to improve readability. 23998 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23999 # Now convert it back to Unix-style (cygpath) 24000 input_path=`$CYGPATH -u "$shortmode_path"` 24001 new_path="$input_path" 24002 fi 24003 fi 24004 24005 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24006 if test "x$test_cygdrive_prefix" = x; then 24007 # As a simple fix, exclude /usr/bin since it's not a real path. 24008 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24009 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24010 # a path prefixed by /cygdrive for fixpath to work. 24011 new_path="$CYGWIN_ROOT_PATH$input_path" 24012 fi 24013 fi 24014 24015 24016 if test "x$path" != "x$new_path"; then 24017 BOOT_JDK="$new_path" 24018 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24019 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24020 fi 24021 24022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24023 24024 path="$BOOT_JDK" 24025 has_colon=`$ECHO $path | $GREP ^.:` 24026 new_path="$path" 24027 if test "x$has_colon" = x; then 24028 # Not in mixed or Windows style, start by that. 24029 new_path=`cmd //c echo $path` 24030 fi 24031 24032 24033 input_path="$new_path" 24034 # Check if we need to convert this using DOS-style short mode. If the path 24035 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24036 # take no chances and rewrite it. 24037 # Note: m4 eats our [], so we need to use [ and ] instead. 24038 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24039 if test "x$has_forbidden_chars" != x; then 24040 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24041 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24042 fi 24043 24044 24045 windows_path="$new_path" 24046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24047 unix_path=`$CYGPATH -u "$windows_path"` 24048 new_path="$unix_path" 24049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24051 new_path="$unix_path" 24052 fi 24053 24054 if test "x$path" != "x$new_path"; then 24055 BOOT_JDK="$new_path" 24056 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24057 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24058 fi 24059 24060 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24061 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24062 24063 else 24064 # We're on a posix platform. Hooray! :) 24065 path="$BOOT_JDK" 24066 has_space=`$ECHO "$path" | $GREP " "` 24067 if test "x$has_space" != x; then 24068 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24069 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24070 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24071 fi 24072 24073 # Use eval to expand a potential ~ 24074 eval path="$path" 24075 if test ! -f "$path" && test ! -d "$path"; then 24076 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24077 fi 24078 24079 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24080 fi 24081 24082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24083 $as_echo_n "checking for Boot JDK... " >&6; } 24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24085 $as_echo "$BOOT_JDK" >&6; } 24086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24087 $as_echo_n "checking Boot JDK version... " >&6; } 24088 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24090 $as_echo "$BOOT_JDK_VERSION" >&6; } 24091 fi # end check jdk version 24092 fi # end check rt.jar 24093 fi # end check javac 24094 fi # end check java 24095 fi # end check boot jdk found 24096 fi 24097 24098 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24099 24100 if test "x$BOOT_JDK_FOUND" = xno; then 24101 # Now execute the test 24102 24103 BOOT_JDK_PREFIX="/usr/lib/jvm" 24104 BOOT_JDK_SUFFIX="" 24105 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24106 if test "x$ALL_JDKS_FOUND" != x; then 24107 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24108 24109 if test "x$BOOT_JDK_FOUND" = xno; then 24110 # Now execute the test 24111 24112 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24113 if test -d "$BOOT_JDK"; then 24114 BOOT_JDK_FOUND=maybe 24115 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24116 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24117 fi 24118 24119 24120 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24121 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24122 # Do we have a bin/java? 24123 if test ! -x "$BOOT_JDK/bin/java"; then 24124 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24125 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24126 BOOT_JDK_FOUND=no 24127 else 24128 # Do we have a bin/javac? 24129 if test ! -x "$BOOT_JDK/bin/javac"; then 24130 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24131 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24132 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24133 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24134 BOOT_JDK_FOUND=no 24135 else 24136 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24137 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24138 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24139 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24140 BOOT_JDK_FOUND=no 24141 else 24142 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24143 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24144 24145 # Extra M4 quote needed to protect [] in grep expression. 24146 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24147 if test "x$FOUND_VERSION_78" = x; then 24148 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24149 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24150 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24151 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24152 BOOT_JDK_FOUND=no 24153 else 24154 # We're done! :-) 24155 BOOT_JDK_FOUND=yes 24156 24157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24158 24159 # Input might be given as Windows format, start by converting to 24160 # unix format. 24161 path="$BOOT_JDK" 24162 new_path=`$CYGPATH -u "$path"` 24163 24164 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24165 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24166 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24167 # "foo.exe" is OK but "foo" is an error. 24168 # 24169 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24170 # It is also a way to make sure we got the proper file name for the real test later on. 24171 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24172 if test "x$test_shortpath" = x; then 24173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24174 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24175 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24176 fi 24177 24178 # Call helper function which possibly converts this using DOS-style short mode. 24179 # If so, the updated path is stored in $new_path. 24180 24181 input_path="$new_path" 24182 # Check if we need to convert this using DOS-style short mode. If the path 24183 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24184 # take no chances and rewrite it. 24185 # Note: m4 eats our [], so we need to use [ and ] instead. 24186 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24187 if test "x$has_forbidden_chars" != x; then 24188 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24189 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24190 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24191 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24192 # Going to short mode and back again did indeed matter. Since short mode is 24193 # case insensitive, let's make it lowercase to improve readability. 24194 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24195 # Now convert it back to Unix-style (cygpath) 24196 input_path=`$CYGPATH -u "$shortmode_path"` 24197 new_path="$input_path" 24198 fi 24199 fi 24200 24201 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24202 if test "x$test_cygdrive_prefix" = x; then 24203 # As a simple fix, exclude /usr/bin since it's not a real path. 24204 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24205 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24206 # a path prefixed by /cygdrive for fixpath to work. 24207 new_path="$CYGWIN_ROOT_PATH$input_path" 24208 fi 24209 fi 24210 24211 24212 if test "x$path" != "x$new_path"; then 24213 BOOT_JDK="$new_path" 24214 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24215 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24216 fi 24217 24218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24219 24220 path="$BOOT_JDK" 24221 has_colon=`$ECHO $path | $GREP ^.:` 24222 new_path="$path" 24223 if test "x$has_colon" = x; then 24224 # Not in mixed or Windows style, start by that. 24225 new_path=`cmd //c echo $path` 24226 fi 24227 24228 24229 input_path="$new_path" 24230 # Check if we need to convert this using DOS-style short mode. If the path 24231 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24232 # take no chances and rewrite it. 24233 # Note: m4 eats our [], so we need to use [ and ] instead. 24234 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24235 if test "x$has_forbidden_chars" != x; then 24236 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24237 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24238 fi 24239 24240 24241 windows_path="$new_path" 24242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24243 unix_path=`$CYGPATH -u "$windows_path"` 24244 new_path="$unix_path" 24245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24246 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24247 new_path="$unix_path" 24248 fi 24249 24250 if test "x$path" != "x$new_path"; then 24251 BOOT_JDK="$new_path" 24252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24253 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24254 fi 24255 24256 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24257 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24258 24259 else 24260 # We're on a posix platform. Hooray! :) 24261 path="$BOOT_JDK" 24262 has_space=`$ECHO "$path" | $GREP " "` 24263 if test "x$has_space" != x; then 24264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24265 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24266 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24267 fi 24268 24269 # Use eval to expand a potential ~ 24270 eval path="$path" 24271 if test ! -f "$path" && test ! -d "$path"; then 24272 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24273 fi 24274 24275 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24276 fi 24277 24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24279 $as_echo_n "checking for Boot JDK... " >&6; } 24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24281 $as_echo "$BOOT_JDK" >&6; } 24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24283 $as_echo_n "checking Boot JDK version... " >&6; } 24284 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24286 $as_echo "$BOOT_JDK_VERSION" >&6; } 24287 fi # end check jdk version 24288 fi # end check rt.jar 24289 fi # end check javac 24290 fi # end check java 24291 fi # end check boot jdk found 24292 fi 24293 24294 done 24295 fi 24296 24297 24298 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24299 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24300 # Do we have a bin/java? 24301 if test ! -x "$BOOT_JDK/bin/java"; then 24302 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24303 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24304 BOOT_JDK_FOUND=no 24305 else 24306 # Do we have a bin/javac? 24307 if test ! -x "$BOOT_JDK/bin/javac"; then 24308 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24309 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24310 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24311 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24312 BOOT_JDK_FOUND=no 24313 else 24314 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24315 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24316 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24317 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24318 BOOT_JDK_FOUND=no 24319 else 24320 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24321 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24322 24323 # Extra M4 quote needed to protect [] in grep expression. 24324 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24325 if test "x$FOUND_VERSION_78" = x; then 24326 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24327 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24328 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24329 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24330 BOOT_JDK_FOUND=no 24331 else 24332 # We're done! :-) 24333 BOOT_JDK_FOUND=yes 24334 24335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24336 24337 # Input might be given as Windows format, start by converting to 24338 # unix format. 24339 path="$BOOT_JDK" 24340 new_path=`$CYGPATH -u "$path"` 24341 24342 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24343 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24344 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24345 # "foo.exe" is OK but "foo" is an error. 24346 # 24347 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24348 # It is also a way to make sure we got the proper file name for the real test later on. 24349 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24350 if test "x$test_shortpath" = x; then 24351 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24352 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24353 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24354 fi 24355 24356 # Call helper function which possibly converts this using DOS-style short mode. 24357 # If so, the updated path is stored in $new_path. 24358 24359 input_path="$new_path" 24360 # Check if we need to convert this using DOS-style short mode. If the path 24361 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24362 # take no chances and rewrite it. 24363 # Note: m4 eats our [], so we need to use [ and ] instead. 24364 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24365 if test "x$has_forbidden_chars" != x; then 24366 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24367 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24368 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24369 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24370 # Going to short mode and back again did indeed matter. Since short mode is 24371 # case insensitive, let's make it lowercase to improve readability. 24372 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24373 # Now convert it back to Unix-style (cygpath) 24374 input_path=`$CYGPATH -u "$shortmode_path"` 24375 new_path="$input_path" 24376 fi 24377 fi 24378 24379 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24380 if test "x$test_cygdrive_prefix" = x; then 24381 # As a simple fix, exclude /usr/bin since it's not a real path. 24382 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24383 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24384 # a path prefixed by /cygdrive for fixpath to work. 24385 new_path="$CYGWIN_ROOT_PATH$input_path" 24386 fi 24387 fi 24388 24389 24390 if test "x$path" != "x$new_path"; then 24391 BOOT_JDK="$new_path" 24392 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24393 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24394 fi 24395 24396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24397 24398 path="$BOOT_JDK" 24399 has_colon=`$ECHO $path | $GREP ^.:` 24400 new_path="$path" 24401 if test "x$has_colon" = x; then 24402 # Not in mixed or Windows style, start by that. 24403 new_path=`cmd //c echo $path` 24404 fi 24405 24406 24407 input_path="$new_path" 24408 # Check if we need to convert this using DOS-style short mode. If the path 24409 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24410 # take no chances and rewrite it. 24411 # Note: m4 eats our [], so we need to use [ and ] instead. 24412 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24413 if test "x$has_forbidden_chars" != x; then 24414 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24415 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24416 fi 24417 24418 24419 windows_path="$new_path" 24420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24421 unix_path=`$CYGPATH -u "$windows_path"` 24422 new_path="$unix_path" 24423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24424 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24425 new_path="$unix_path" 24426 fi 24427 24428 if test "x$path" != "x$new_path"; then 24429 BOOT_JDK="$new_path" 24430 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24431 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24432 fi 24433 24434 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24435 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24436 24437 else 24438 # We're on a posix platform. Hooray! :) 24439 path="$BOOT_JDK" 24440 has_space=`$ECHO "$path" | $GREP " "` 24441 if test "x$has_space" != x; then 24442 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24443 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24444 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24445 fi 24446 24447 # Use eval to expand a potential ~ 24448 eval path="$path" 24449 if test ! -f "$path" && test ! -d "$path"; then 24450 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24451 fi 24452 24453 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24454 fi 24455 24456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24457 $as_echo_n "checking for Boot JDK... " >&6; } 24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24459 $as_echo "$BOOT_JDK" >&6; } 24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24461 $as_echo_n "checking Boot JDK version... " >&6; } 24462 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24464 $as_echo "$BOOT_JDK_VERSION" >&6; } 24465 fi # end check jdk version 24466 fi # end check rt.jar 24467 fi # end check javac 24468 fi # end check java 24469 fi # end check boot jdk found 24470 fi 24471 24472 fi 24473 24474 24475 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24476 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24477 # Do we have a bin/java? 24478 if test ! -x "$BOOT_JDK/bin/java"; then 24479 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24480 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24481 BOOT_JDK_FOUND=no 24482 else 24483 # Do we have a bin/javac? 24484 if test ! -x "$BOOT_JDK/bin/javac"; then 24485 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24486 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24487 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24488 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24489 BOOT_JDK_FOUND=no 24490 else 24491 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24492 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24493 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24494 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24495 BOOT_JDK_FOUND=no 24496 else 24497 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24498 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24499 24500 # Extra M4 quote needed to protect [] in grep expression. 24501 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24502 if test "x$FOUND_VERSION_78" = x; then 24503 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24504 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24505 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24506 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24507 BOOT_JDK_FOUND=no 24508 else 24509 # We're done! :-) 24510 BOOT_JDK_FOUND=yes 24511 24512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24513 24514 # Input might be given as Windows format, start by converting to 24515 # unix format. 24516 path="$BOOT_JDK" 24517 new_path=`$CYGPATH -u "$path"` 24518 24519 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24520 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24521 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24522 # "foo.exe" is OK but "foo" is an error. 24523 # 24524 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24525 # It is also a way to make sure we got the proper file name for the real test later on. 24526 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24527 if test "x$test_shortpath" = x; then 24528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24529 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24530 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24531 fi 24532 24533 # Call helper function which possibly converts this using DOS-style short mode. 24534 # If so, the updated path is stored in $new_path. 24535 24536 input_path="$new_path" 24537 # Check if we need to convert this using DOS-style short mode. If the path 24538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24539 # take no chances and rewrite it. 24540 # Note: m4 eats our [], so we need to use [ and ] instead. 24541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24542 if test "x$has_forbidden_chars" != x; then 24543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24544 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24545 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24546 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24547 # Going to short mode and back again did indeed matter. Since short mode is 24548 # case insensitive, let's make it lowercase to improve readability. 24549 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24550 # Now convert it back to Unix-style (cygpath) 24551 input_path=`$CYGPATH -u "$shortmode_path"` 24552 new_path="$input_path" 24553 fi 24554 fi 24555 24556 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24557 if test "x$test_cygdrive_prefix" = x; then 24558 # As a simple fix, exclude /usr/bin since it's not a real path. 24559 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24560 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24561 # a path prefixed by /cygdrive for fixpath to work. 24562 new_path="$CYGWIN_ROOT_PATH$input_path" 24563 fi 24564 fi 24565 24566 24567 if test "x$path" != "x$new_path"; then 24568 BOOT_JDK="$new_path" 24569 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24570 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24571 fi 24572 24573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24574 24575 path="$BOOT_JDK" 24576 has_colon=`$ECHO $path | $GREP ^.:` 24577 new_path="$path" 24578 if test "x$has_colon" = x; then 24579 # Not in mixed or Windows style, start by that. 24580 new_path=`cmd //c echo $path` 24581 fi 24582 24583 24584 input_path="$new_path" 24585 # Check if we need to convert this using DOS-style short mode. If the path 24586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24587 # take no chances and rewrite it. 24588 # Note: m4 eats our [], so we need to use [ and ] instead. 24589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24590 if test "x$has_forbidden_chars" != x; then 24591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24592 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24593 fi 24594 24595 24596 windows_path="$new_path" 24597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24598 unix_path=`$CYGPATH -u "$windows_path"` 24599 new_path="$unix_path" 24600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24601 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24602 new_path="$unix_path" 24603 fi 24604 24605 if test "x$path" != "x$new_path"; then 24606 BOOT_JDK="$new_path" 24607 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24608 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24609 fi 24610 24611 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24612 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24613 24614 else 24615 # We're on a posix platform. Hooray! :) 24616 path="$BOOT_JDK" 24617 has_space=`$ECHO "$path" | $GREP " "` 24618 if test "x$has_space" != x; then 24619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24620 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24621 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24622 fi 24623 24624 # Use eval to expand a potential ~ 24625 eval path="$path" 24626 if test ! -f "$path" && test ! -d "$path"; then 24627 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24628 fi 24629 24630 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24631 fi 24632 24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24634 $as_echo_n "checking for Boot JDK... " >&6; } 24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24636 $as_echo "$BOOT_JDK" >&6; } 24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24638 $as_echo_n "checking Boot JDK version... " >&6; } 24639 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24641 $as_echo "$BOOT_JDK_VERSION" >&6; } 24642 fi # end check jdk version 24643 fi # end check rt.jar 24644 fi # end check javac 24645 fi # end check java 24646 fi # end check boot jdk found 24647 fi 24648 24649 24650 # If we haven't found anything yet, we've truly lost. Give up. 24651 if test "x$BOOT_JDK_FOUND" = xno; then 24652 24653 # Print a helpful message on how to acquire the necessary build dependency. 24654 # openjdk is the help tag: freetype, cups, pulse, alsa etc 24655 MISSING_DEPENDENCY=openjdk 24656 24657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24658 cygwin_help $MISSING_DEPENDENCY 24659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24660 msys_help $MISSING_DEPENDENCY 24661 else 24662 PKGHANDLER_COMMAND= 24663 24664 case $PKGHANDLER in 24665 apt-get) 24666 apt_help $MISSING_DEPENDENCY ;; 24667 yum) 24668 yum_help $MISSING_DEPENDENCY ;; 24669 port) 24670 port_help $MISSING_DEPENDENCY ;; 24671 pkgutil) 24672 pkgutil_help $MISSING_DEPENDENCY ;; 24673 pkgadd) 24674 pkgadd_help $MISSING_DEPENDENCY ;; 24675 esac 24676 24677 if test "x$PKGHANDLER_COMMAND" != x; then 24678 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24679 fi 24680 fi 24681 24682 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 24683 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 24684 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 24685 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24686 as_fn_error $? "Cannot continue" "$LINENO" 5 24687 fi 24688 24689 # Setup proper paths for what we found 24690 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 24691 if test ! -f "$BOOT_RTJAR"; then 24692 # On MacOSX it is called classes.jar 24693 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 24694 if test -f "$BOOT_RTJAR"; then 24695 # Remove the .. 24696 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 24697 fi 24698 fi 24699 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 24700 BOOT_JDK="$BOOT_JDK" 24701 24702 24703 24704 24705 # Setup tools from the Boot JDK. 24706 24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 24708 $as_echo_n "checking for java in Boot JDK... " >&6; } 24709 JAVA=$BOOT_JDK/bin/java 24710 if test ! -x $JAVA; then 24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24712 $as_echo "not found" >&6; } 24713 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24714 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24715 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 24716 fi 24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24718 $as_echo "ok" >&6; } 24719 24720 24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 24722 $as_echo_n "checking for javac in Boot JDK... " >&6; } 24723 JAVAC=$BOOT_JDK/bin/javac 24724 if test ! -x $JAVAC; then 24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24726 $as_echo "not found" >&6; } 24727 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24728 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24729 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 24730 fi 24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24732 $as_echo "ok" >&6; } 24733 24734 24735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 24736 $as_echo_n "checking for javah in Boot JDK... " >&6; } 24737 JAVAH=$BOOT_JDK/bin/javah 24738 if test ! -x $JAVAH; then 24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24740 $as_echo "not found" >&6; } 24741 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24742 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24743 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 24744 fi 24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24746 $as_echo "ok" >&6; } 24747 24748 24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5 24750 $as_echo_n "checking for javap in Boot JDK... " >&6; } 24751 JAVAP=$BOOT_JDK/bin/javap 24752 if test ! -x $JAVAP; then 24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24754 $as_echo "not found" >&6; } 24755 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24756 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24757 as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5 24758 fi 24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24760 $as_echo "ok" >&6; } 24761 24762 24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 24764 $as_echo_n "checking for jar in Boot JDK... " >&6; } 24765 JAR=$BOOT_JDK/bin/jar 24766 if test ! -x $JAR; then 24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24768 $as_echo "not found" >&6; } 24769 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24770 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24771 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 24772 fi 24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24774 $as_echo "ok" >&6; } 24775 24776 24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5 24778 $as_echo_n "checking for rmic in Boot JDK... " >&6; } 24779 RMIC=$BOOT_JDK/bin/rmic 24780 if test ! -x $RMIC; then 24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24782 $as_echo "not found" >&6; } 24783 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24784 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24785 as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5 24786 fi 24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24788 $as_echo "ok" >&6; } 24789 24790 24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 24792 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 24793 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 24794 if test ! -x $NATIVE2ASCII; then 24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24796 $as_echo "not found" >&6; } 24797 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24798 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24799 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 24800 fi 24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24802 $as_echo "ok" >&6; } 24803 24804 24805 # Finally, set some other options... 24806 24807 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 24808 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 24809 24810 24811 24812 # Check if the boot jdk is 32 or 64 bit 24813 if "$JAVA" -d64 -version > /dev/null 2>&1; then 24814 BOOT_JDK_BITS="64" 24815 else 24816 BOOT_JDK_BITS="32" 24817 fi 24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 24819 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 24821 $as_echo "$BOOT_JDK_BITS" >&6; } 24822 24823 24824 24825 ############################################################################## 24826 # 24827 # Specify options for anything that is run with the Boot JDK. 24828 # 24829 24830 # Check whether --with-boot-jdk-jvmargs was given. 24831 if test "${with_boot_jdk_jvmargs+set}" = set; then : 24832 withval=$with_boot_jdk_jvmargs; 24833 fi 24834 24835 24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 24837 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 24838 24839 # Disable special log output when a debug build is used as Boot JDK... 24840 24841 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 24842 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 24843 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 24844 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24845 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24846 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24847 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 24848 JVM_ARG_OK=true 24849 else 24850 $ECHO "Arg failed:" >&5 24851 $ECHO "$OUTPUT" >&5 24852 JVM_ARG_OK=false 24853 fi 24854 24855 24856 # Apply user provided options. 24857 24858 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 24859 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 24860 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 24861 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24862 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24863 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24864 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 24865 JVM_ARG_OK=true 24866 else 24867 $ECHO "Arg failed:" >&5 24868 $ECHO "$OUTPUT" >&5 24869 JVM_ARG_OK=false 24870 fi 24871 24872 24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 24874 $as_echo "$boot_jdk_jvmargs" >&6; } 24875 24876 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 24877 JAVA_FLAGS=$boot_jdk_jvmargs 24878 24879 24880 24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 24882 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 24883 24884 # Starting amount of heap memory. 24885 24886 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 24887 $ECHO "Command: $JAVA -Xms64M -version" >&5 24888 OUTPUT=`$JAVA -Xms64M -version 2>&1` 24889 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24890 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24891 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24892 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 24893 JVM_ARG_OK=true 24894 else 24895 $ECHO "Arg failed:" >&5 24896 $ECHO "$OUTPUT" >&5 24897 JVM_ARG_OK=false 24898 fi 24899 24900 24901 # Maximum amount of heap memory. 24902 # Maximum stack size. 24903 if test "x$BOOT_JDK_BITS" = x32; then 24904 JVM_MAX_HEAP=768M 24905 STACK_SIZE=768 24906 else 24907 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 24908 # pointers are used. Apparently, we need to increase the heap and stack 24909 # space for the jvm. More specifically, when running javac to build huge 24910 # jdk batch 24911 JVM_MAX_HEAP=1600M 24912 STACK_SIZE=1536 24913 fi 24914 24915 $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5 24916 $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5 24917 OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1` 24918 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24919 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24920 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24921 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP" 24922 JVM_ARG_OK=true 24923 else 24924 $ECHO "Arg failed:" >&5 24925 $ECHO "$OUTPUT" >&5 24926 JVM_ARG_OK=false 24927 fi 24928 24929 24930 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 24931 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 24932 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 24933 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24934 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24935 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24936 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 24937 JVM_ARG_OK=true 24938 else 24939 $ECHO "Arg failed:" >&5 24940 $ECHO "$OUTPUT" >&5 24941 JVM_ARG_OK=false 24942 fi 24943 24944 24945 $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5 24946 $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5 24947 OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1` 24948 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24949 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24950 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24951 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:PermSize=32m" 24952 JVM_ARG_OK=true 24953 else 24954 $ECHO "Arg failed:" >&5 24955 $ECHO "$OUTPUT" >&5 24956 JVM_ARG_OK=false 24957 fi 24958 24959 24960 $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5 24961 $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5 24962 OUTPUT=`$JAVA -XX:MaxPermSize=160m -version 2>&1` 24963 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24964 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24965 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24966 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:MaxPermSize=160m" 24967 JVM_ARG_OK=true 24968 else 24969 $ECHO "Arg failed:" >&5 24970 $ECHO "$OUTPUT" >&5 24971 JVM_ARG_OK=false 24972 fi 24973 24974 24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 24976 $as_echo "$boot_jdk_jvmargs_big" >&6; } 24977 24978 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 24979 24980 24981 24982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 24983 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 24984 24985 # Use serial gc for small short lived tools if possible 24986 24987 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 24988 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 24989 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 24990 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24991 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24992 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24993 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 24994 JVM_ARG_OK=true 24995 else 24996 $ECHO "Arg failed:" >&5 24997 $ECHO "$OUTPUT" >&5 24998 JVM_ARG_OK=false 24999 fi 25000 25001 25002 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 25003 $ECHO "Command: $JAVA -Xms32M -version" >&5 25004 OUTPUT=`$JAVA -Xms32M -version 2>&1` 25005 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25006 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25007 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25008 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 25009 JVM_ARG_OK=true 25010 else 25011 $ECHO "Arg failed:" >&5 25012 $ECHO "$OUTPUT" >&5 25013 JVM_ARG_OK=false 25014 fi 25015 25016 25017 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 25018 $ECHO "Command: $JAVA -Xmx512M -version" >&5 25019 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 25020 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25021 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25022 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25023 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 25024 JVM_ARG_OK=true 25025 else 25026 $ECHO "Arg failed:" >&5 25027 $ECHO "$OUTPUT" >&5 25028 JVM_ARG_OK=false 25029 fi 25030 25031 25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 25033 $as_echo "$boot_jdk_jvmargs_small" >&6; } 25034 25035 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 25036 25037 25038 25039 ############################################################################### 25040 # 25041 # Configure the sources to use. We can add or override individual directories. 25042 # 25043 ############################################################################### 25044 25045 25046 # Where are the sources. Any of these can be overridden 25047 # using --with-override-corba and the likes. 25048 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 25049 CORBA_TOPDIR="$SRC_ROOT/corba" 25050 JAXP_TOPDIR="$SRC_ROOT/jaxp" 25051 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 25052 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 25053 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 25054 JDK_TOPDIR="$SRC_ROOT/jdk" 25055 25056 25057 25058 25059 25060 25061 25062 25063 25064 25065 ############################################################################### 25066 # 25067 # Pickup additional source for a component from outside of the source root 25068 # or override source for a component. 25069 # 25070 25071 # Check whether --with-add-source-root was given. 25072 if test "${with_add_source_root+set}" = set; then : 25073 withval=$with_add_source_root; 25074 fi 25075 25076 25077 25078 # Check whether --with-override-source-root was given. 25079 if test "${with_override_source_root+set}" = set; then : 25080 withval=$with_override_source_root; 25081 fi 25082 25083 25084 25085 # Check whether --with-adds-and-overrides was given. 25086 if test "${with_adds_and_overrides+set}" = set; then : 25087 withval=$with_adds_and_overrides; 25088 fi 25089 25090 25091 if test "x$with_adds_and_overrides" != x; then 25092 with_add_source_root="$with_adds_and_overrides/adds" 25093 with_override_source_root="$with_adds_and_overrides/overrides" 25094 fi 25095 25096 if test "x$with_add_source_root" != x; then 25097 if ! test -d $with_add_source_root; then 25098 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 25099 fi 25100 CURDIR="$PWD" 25101 cd "$with_add_source_root" 25102 ADD_SRC_ROOT="`pwd`" 25103 cd "$CURDIR" 25104 # Verify that the addon source root does not have any root makefiles. 25105 # If it does, then it is usually an error, prevent this. 25106 if test -f $with_add_source_root/langtools/make/Makefile; then 25107 as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5 25108 fi 25109 if test -f $with_add_source_root/corba/make/Makefile; then 25110 as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5 25111 fi 25112 if test -f $with_add_source_root/jaxp/make/Makefile; then 25113 as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5 25114 fi 25115 if test -f $with_add_source_root/jaxws/make/Makefile; then 25116 as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5 25117 fi 25118 if test -f $with_add_source_root/hotspot/make/Makefile; then 25119 as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5 25120 fi 25121 if test -f $with_add_source_root/nashorn/make/Makefile; then 25122 as_fn_error $? "Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources." "$LINENO" 5 25123 fi 25124 if test -f $with_add_source_root/jdk/make/Makefile; then 25125 as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5 25126 fi 25127 fi 25128 25129 25130 if test "x$with_override_source_root" != x; then 25131 if ! test -d $with_override_source_root; then 25132 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 25133 fi 25134 CURDIR="$PWD" 25135 cd "$with_override_source_root" 25136 OVERRIDE_SRC_ROOT="`pwd`" 25137 cd "$CURDIR" 25138 if test -f $with_override_source_root/langtools/make/Makefile; then 25139 as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5 25140 fi 25141 if test -f $with_override_source_root/corba/make/Makefile; then 25142 as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5 25143 fi 25144 if test -f $with_override_source_root/jaxp/make/Makefile; then 25145 as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5 25146 fi 25147 if test -f $with_override_source_root/jaxws/make/Makefile; then 25148 as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5 25149 fi 25150 if test -f $with_override_source_root/hotspot/make/Makefile; then 25151 as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5 25152 fi 25153 if test -f $with_override_source_root/nashorn/make/Makefile; then 25154 as_fn_error $? "Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override." "$LINENO" 5 25155 fi 25156 if test -f $with_override_source_root/jdk/make/Makefile; then 25157 as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5 25158 fi 25159 fi 25160 25161 25162 ############################################################################### 25163 # 25164 # Override a repo completely, this is used for example when you have 3 small 25165 # development sandboxes of the langtools sources and want to avoid having 3 full 25166 # OpenJDK sources checked out on disk. 25167 # 25168 # Assuming that the 3 langtools sandboxes are located here: 25169 # /home/fredrik/sandbox1/langtools 25170 # /home/fredrik/sandbox2/langtools 25171 # /home/fredrik/sandbox3/langtools 25172 # 25173 # From the source root you create build subdirs manually: 25174 # mkdir -p build1 build2 build3 25175 # in each build directory run: 25176 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 25177 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 25178 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 25179 # 25180 25181 25182 # Check whether --with-override-langtools was given. 25183 if test "${with_override_langtools+set}" = set; then : 25184 withval=$with_override_langtools; 25185 fi 25186 25187 25188 25189 # Check whether --with-override-corba was given. 25190 if test "${with_override_corba+set}" = set; then : 25191 withval=$with_override_corba; 25192 fi 25193 25194 25195 25196 # Check whether --with-override-jaxp was given. 25197 if test "${with_override_jaxp+set}" = set; then : 25198 withval=$with_override_jaxp; 25199 fi 25200 25201 25202 25203 # Check whether --with-override-jaxws was given. 25204 if test "${with_override_jaxws+set}" = set; then : 25205 withval=$with_override_jaxws; 25206 fi 25207 25208 25209 25210 # Check whether --with-override-hotspot was given. 25211 if test "${with_override_hotspot+set}" = set; then : 25212 withval=$with_override_hotspot; 25213 fi 25214 25215 25216 25217 # Check whether --with-override-nashorn was given. 25218 if test "${with_override_nashorn+set}" = set; then : 25219 withval=$with_override_nashorn; 25220 fi 25221 25222 25223 25224 # Check whether --with-override-jdk was given. 25225 if test "${with_override_jdk+set}" = set; then : 25226 withval=$with_override_jdk; 25227 fi 25228 25229 25230 if test "x$with_override_langtools" != x; then 25231 CURDIR="$PWD" 25232 cd "$with_override_langtools" 25233 LANGTOOLS_TOPDIR="`pwd`" 25234 cd "$CURDIR" 25235 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 25236 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 25237 fi 25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 25239 $as_echo_n "checking if langtools should be overridden... " >&6; } 25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 25241 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 25242 fi 25243 if test "x$with_override_corba" != x; then 25244 CURDIR="$PWD" 25245 cd "$with_override_corba" 25246 CORBA_TOPDIR="`pwd`" 25247 cd "$CURDIR" 25248 if ! test -f $CORBA_TOPDIR/make/Makefile; then 25249 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 25250 fi 25251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 25252 $as_echo_n "checking if corba should be overridden... " >&6; } 25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 25254 $as_echo "yes with $CORBA_TOPDIR" >&6; } 25255 fi 25256 if test "x$with_override_jaxp" != x; then 25257 CURDIR="$PWD" 25258 cd "$with_override_jaxp" 25259 JAXP_TOPDIR="`pwd`" 25260 cd "$CURDIR" 25261 if ! test -f $JAXP_TOPDIR/make/Makefile; then 25262 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 25263 fi 25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 25265 $as_echo_n "checking if jaxp should be overridden... " >&6; } 25266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 25267 $as_echo "yes with $JAXP_TOPDIR" >&6; } 25268 fi 25269 if test "x$with_override_jaxws" != x; then 25270 CURDIR="$PWD" 25271 cd "$with_override_jaxws" 25272 JAXWS_TOPDIR="`pwd`" 25273 cd "$CURDIR" 25274 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 25275 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 25276 fi 25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 25278 $as_echo_n "checking if jaxws should be overridden... " >&6; } 25279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 25280 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 25281 fi 25282 if test "x$with_override_hotspot" != x; then 25283 CURDIR="$PWD" 25284 cd "$with_override_hotspot" 25285 HOTSPOT_TOPDIR="`pwd`" 25286 cd "$CURDIR" 25287 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 25288 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 25289 fi 25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 25291 $as_echo_n "checking if hotspot should be overridden... " >&6; } 25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 25293 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 25294 fi 25295 if test "x$with_override_nashorn" != x; then 25296 CURDIR="$PWD" 25297 cd "$with_override_nashorn" 25298 NASHORN_TOPDIR="`pwd`" 25299 cd "$CURDIR" 25300 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 25301 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 25302 fi 25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 25304 $as_echo_n "checking if nashorn should be overridden... " >&6; } 25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 25306 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 25307 fi 25308 if test "x$with_override_jdk" != x; then 25309 CURDIR="$PWD" 25310 cd "$with_override_jdk" 25311 JDK_TOPDIR="`pwd`" 25312 cd "$CURDIR" 25313 if ! test -f $JDK_TOPDIR/make/Makefile; then 25314 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 25315 fi 25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 25317 $as_echo_n "checking if JDK should be overridden... " >&6; } 25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 25319 $as_echo "yes with $JDK_TOPDIR" >&6; } 25320 fi 25321 25322 25323 BUILD_OUTPUT="$OUTPUT_ROOT" 25324 25325 25326 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 25327 BUILD_HOTSPOT=true 25328 25329 25330 25331 # Check whether --with-import-hotspot was given. 25332 if test "${with_import_hotspot+set}" = set; then : 25333 withval=$with_import_hotspot; 25334 fi 25335 25336 if test "x$with_import_hotspot" != x; then 25337 CURDIR="$PWD" 25338 cd "$with_import_hotspot" 25339 HOTSPOT_DIST="`pwd`" 25340 cd "$CURDIR" 25341 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 25342 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 25343 fi 25344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 25345 $as_echo_n "checking if hotspot should be imported... " >&6; } 25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 25347 $as_echo "yes from $HOTSPOT_DIST" >&6; } 25348 BUILD_HOTSPOT=false 25349 fi 25350 25351 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 25352 25353 25354 ############################################################################### 25355 # 25356 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 25357 # native code. 25358 # 25359 ############################################################################### 25360 25361 # First determine the toolchain type (compiler family) 25362 25363 25364 # Check whether --with-toolchain-type was given. 25365 if test "${with_toolchain_type+set}" = set; then : 25366 withval=$with_toolchain_type; 25367 fi 25368 25369 25370 # Use indirect variable referencing 25371 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 25372 VALID_TOOLCHAINS=${!toolchain_var_name} 25373 # First toolchain type in the list is the default 25374 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 25375 25376 if test "x$with_toolchain_type" = xlist; then 25377 # List all toolchains 25378 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 25379 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 25380 for toolchain in $VALID_TOOLCHAINS; do 25381 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 25382 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 25383 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 25384 done 25385 25386 exit 0 25387 elif test "x$with_toolchain_type" != x; then 25388 # User override; check that it is valid 25389 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 25390 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 25391 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 25392 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 25393 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 25394 as_fn_error $? "Cannot continue." "$LINENO" 5 25395 fi 25396 TOOLCHAIN_TYPE=$with_toolchain_type 25397 else 25398 # No flag given, use default 25399 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 25400 fi 25401 25402 25403 TOOLCHAIN_CC_BINARY_clang="clang" 25404 TOOLCHAIN_CC_BINARY_gcc="gcc" 25405 TOOLCHAIN_CC_BINARY_microsoft="cl" 25406 TOOLCHAIN_CC_BINARY_solstudio="cc" 25407 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 25408 25409 TOOLCHAIN_CXX_BINARY_clang="clang++" 25410 TOOLCHAIN_CXX_BINARY_gcc="g++" 25411 TOOLCHAIN_CXX_BINARY_microsoft="cl" 25412 TOOLCHAIN_CXX_BINARY_solstudio="CC" 25413 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 25414 25415 # Use indirect variable referencing 25416 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 25417 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 25418 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 25419 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 25420 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 25421 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 25422 25423 25424 # Define filename patterns 25425 if test "x$OPENJDK_TARGET_OS" = xwindows; then 25426 LIBRARY_PREFIX= 25427 SHARED_LIBRARY_SUFFIX='.dll' 25428 STATIC_LIBRARY_SUFFIX='.lib' 25429 SHARED_LIBRARY='$1.dll' 25430 STATIC_LIBRARY='$1.lib' 25431 OBJ_SUFFIX='.obj' 25432 EXE_SUFFIX='.exe' 25433 else 25434 LIBRARY_PREFIX=lib 25435 SHARED_LIBRARY_SUFFIX='.so' 25436 STATIC_LIBRARY_SUFFIX='.a' 25437 SHARED_LIBRARY='lib$1.so' 25438 STATIC_LIBRARY='lib$1.a' 25439 OBJ_SUFFIX='.o' 25440 EXE_SUFFIX='' 25441 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25442 SHARED_LIBRARY='lib$1.dylib' 25443 SHARED_LIBRARY_SUFFIX='.dylib' 25444 fi 25445 fi 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 25457 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 25458 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 25459 else 25460 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 25461 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 25462 fi 25463 25464 25465 # Then detect the actual binaries needed 25466 25467 # FIXME: Is this needed? 25468 ac_ext=cpp 25469 ac_cpp='$CXXCPP $CPPFLAGS' 25470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25473 25474 25475 # Store the CFLAGS etal passed to the configure script. 25476 ORG_CFLAGS="$CFLAGS" 25477 ORG_CXXFLAGS="$CXXFLAGS" 25478 ORG_OBJCFLAGS="$OBJCFLAGS" 25479 25480 # autoconf magic only relies on PATH, so update it if tools dir is specified 25481 OLD_PATH="$PATH" 25482 25483 # On Windows, we need to detect the visual studio installation first. 25484 # This will change the PATH, but we need to keep that new PATH even 25485 # after toolchain detection is done, since the compiler (on x86) uses 25486 # it for DLL resolution in runtime. 25487 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 25488 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 25489 25490 # Store path to cygwin link.exe to help excluding it when searching for 25491 # VS linker. This must be done before changing the PATH when looking for VS. 25492 # Extract the first word of "link", so it can be a program name with args. 25493 set dummy link; ac_word=$2 25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25495 $as_echo_n "checking for $ac_word... " >&6; } 25496 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 25497 $as_echo_n "(cached) " >&6 25498 else 25499 case $CYGWIN_LINK in 25500 [\\/]* | ?:[\\/]*) 25501 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 25502 ;; 25503 *) 25504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25505 for as_dir in $PATH 25506 do 25507 IFS=$as_save_IFS 25508 test -z "$as_dir" && as_dir=. 25509 for ac_exec_ext in '' $ac_executable_extensions; do 25510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25511 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 25512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25513 break 2 25514 fi 25515 done 25516 done 25517 IFS=$as_save_IFS 25518 25519 ;; 25520 esac 25521 fi 25522 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 25523 if test -n "$CYGWIN_LINK"; then 25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 25525 $as_echo "$CYGWIN_LINK" >&6; } 25526 else 25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25528 $as_echo "no" >&6; } 25529 fi 25530 25531 25532 if test "x$CYGWIN_LINK" != x; then 25533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 25534 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 25535 "$CYGWIN_LINK" --version > /dev/null 25536 if test $? -eq 0 ; then 25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25538 $as_echo "yes" >&6; } 25539 else 25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25541 $as_echo "no" >&6; } 25542 # This might be the VS linker. Don't exclude it later on. 25543 CYGWIN_LINK="" 25544 fi 25545 fi 25546 25547 # First-hand choice is to locate and run the vsvars bat file. 25548 25549 25550 # Check whether --with-toolchain-version was given. 25551 if test "${with_toolchain_version+set}" = set; then : 25552 withval=$with_toolchain_version; 25553 fi 25554 25555 25556 if test "x$with_toolchain_version" = xlist; then 25557 # List all toolchains 25558 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 25559 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 25560 for version in $VALID_VS_VERSIONS; do 25561 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 25562 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 25563 done 25564 25565 exit 0 25566 elif test "x$DEVKIT_VS_VERSION" != x; then 25567 VS_VERSION=$DEVKIT_VS_VERSION 25568 TOOLCHAIN_VERSION=$VS_VERSION 25569 # If the devkit has a name, use that as description 25570 VS_DESCRIPTION="$DEVKIT_NAME" 25571 if test "x$VS_DESCRIPTION" = x; then 25572 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 25573 fi 25574 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 25575 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 25576 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 25577 eval USE_UCRT="\${VS_USE_UCRT_${VS_VERSION}}" 25578 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25579 VS_PATH="$TOOLCHAIN_PATH:$PATH" 25580 25581 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 25582 # can still be exported as INCLUDE for compiler invocations without 25583 # SYSROOT_CFLAGS 25584 OLDIFS="$IFS" 25585 IFS=";" 25586 for i in $DEVKIT_VS_INCLUDE; do 25587 ipath=$i 25588 25589 unix_path="$ipath" 25590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25591 windows_path=`$CYGPATH -m "$unix_path"` 25592 ipath="$windows_path" 25593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25594 windows_path=`cmd //c echo $unix_path` 25595 ipath="$windows_path" 25596 fi 25597 25598 VS_INCLUDE="$VS_INCLUDE;$ipath" 25599 done 25600 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 25601 # as LIB for compiler invocations without SYSROOT_LDFLAGS 25602 for i in $DEVKIT_VS_LIB; do 25603 libpath=$i 25604 25605 unix_path="$libpath" 25606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25607 windows_path=`$CYGPATH -m "$unix_path"` 25608 libpath="$windows_path" 25609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25610 windows_path=`cmd //c echo $unix_path` 25611 libpath="$windows_path" 25612 fi 25613 25614 VS_LIB="$VS_LIB;$libpath" 25615 done 25616 IFS="$OLDIFS" 25617 25618 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 25619 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 25620 25621 elif test "x$with_toolchain_version" != x; then 25622 # User override; check that it is valid 25623 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 25624 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 25625 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 25626 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 25627 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 25628 as_fn_error $? "Cannot continue." "$LINENO" 5 25629 fi 25630 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 25631 else 25632 # No flag given, use default 25633 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 25634 fi 25635 25636 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 25637 25638 VS_VERSION="$VS_VERSION" 25639 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 25640 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 25641 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 25642 eval VS_EDITIONS="\${VS_EDITIONS_${VS_VERSION}}" 25643 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 25644 eval VS_ENV_ARGS="\${VS_ENV_ARGS_${VS_VERSION}}" 25645 25646 # When using --with-tools-dir, assume it points to the correct and default 25647 # version of Visual Studio or that --with-toolchain-version was also set. 25648 if test "x$with_tools_dir" != x; then 25649 25650 if test "x$VS_ENV_CMD" = x; then 25651 VS_VERSION="${VS_VERSION}" 25652 VS_BASE="$with_tools_dir/../.." 25653 METHOD="--with-tools-dir" 25654 25655 25656 windows_path="$VS_BASE" 25657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25658 unix_path=`$CYGPATH -u "$windows_path"` 25659 VS_BASE="$unix_path" 25660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25661 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25662 VS_BASE="$unix_path" 25663 fi 25664 25665 # In VS 2017, the default installation is in a subdir named after the edition. 25666 # Find the first one present and use that. 25667 if test "x$VS_EDITIONS" != x; then 25668 for edition in $VS_EDITIONS; do 25669 if test -d "$VS_BASE/$edition"; then 25670 VS_BASE="$VS_BASE/$edition" 25671 break 25672 fi 25673 done 25674 fi 25675 25676 if test -d "$VS_BASE"; then 25677 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25678 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25679 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25680 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25681 else 25682 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25683 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25684 fi 25685 25686 for VCVARSFILE in $VCVARSFILES; do 25687 if test -f "$VS_BASE/$VCVARSFILE"; then 25688 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25689 break 25690 fi 25691 done 25692 25693 if test "x$VS_ENV_CMD" = x; then 25694 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25695 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25696 else 25697 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25698 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25699 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25700 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25701 25702 fi 25703 fi 25704 fi 25705 25706 25707 if test "x$VS_ENV_CMD" = x; then 25708 VS_VERSION="${VS_VERSION}" 25709 VS_BASE="$with_tools_dir/../../.." 25710 METHOD="--with-tools-dir" 25711 25712 25713 windows_path="$VS_BASE" 25714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25715 unix_path=`$CYGPATH -u "$windows_path"` 25716 VS_BASE="$unix_path" 25717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25719 VS_BASE="$unix_path" 25720 fi 25721 25722 # In VS 2017, the default installation is in a subdir named after the edition. 25723 # Find the first one present and use that. 25724 if test "x$VS_EDITIONS" != x; then 25725 for edition in $VS_EDITIONS; do 25726 if test -d "$VS_BASE/$edition"; then 25727 VS_BASE="$VS_BASE/$edition" 25728 break 25729 fi 25730 done 25731 fi 25732 25733 if test -d "$VS_BASE"; then 25734 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25735 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25736 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25737 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25738 else 25739 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25740 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25741 fi 25742 25743 for VCVARSFILE in $VCVARSFILES; do 25744 if test -f "$VS_BASE/$VCVARSFILE"; then 25745 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25746 break 25747 fi 25748 done 25749 25750 if test "x$VS_ENV_CMD" = x; then 25751 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25752 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25753 else 25754 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25755 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25756 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25757 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25758 25759 fi 25760 fi 25761 fi 25762 25763 if test "x$VS_ENV_CMD" = x; then 25764 # Having specified an argument which is incorrect will produce an instant failure; 25765 # we should not go on looking 25766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 25767 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 25768 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 25769 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 25770 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 25771 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 25772 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 25773 fi 25774 fi 25775 25776 VS_ENV_CMD="" 25777 25778 if test "x$VS_COMNTOOLS" != x; then 25779 25780 if test "x$VS_ENV_CMD" = x; then 25781 VS_VERSION="${VS_VERSION}" 25782 VS_BASE="$VS_COMNTOOLS/../.." 25783 METHOD="$VS_COMNTOOLS_VAR variable" 25784 25785 25786 windows_path="$VS_BASE" 25787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25788 unix_path=`$CYGPATH -u "$windows_path"` 25789 VS_BASE="$unix_path" 25790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25791 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25792 VS_BASE="$unix_path" 25793 fi 25794 25795 # In VS 2017, the default installation is in a subdir named after the edition. 25796 # Find the first one present and use that. 25797 if test "x$VS_EDITIONS" != x; then 25798 for edition in $VS_EDITIONS; do 25799 if test -d "$VS_BASE/$edition"; then 25800 VS_BASE="$VS_BASE/$edition" 25801 break 25802 fi 25803 done 25804 fi 25805 25806 if test -d "$VS_BASE"; then 25807 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25808 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25809 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25810 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25811 else 25812 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25813 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25814 fi 25815 25816 for VCVARSFILE in $VCVARSFILES; do 25817 if test -f "$VS_BASE/$VCVARSFILE"; then 25818 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25819 break 25820 fi 25821 done 25822 25823 if test "x$VS_ENV_CMD" = x; then 25824 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25825 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25826 else 25827 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25828 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25829 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25830 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25831 25832 fi 25833 fi 25834 fi 25835 25836 fi 25837 if test "x$PROGRAMFILES" != x; then 25838 25839 if test "x$VS_ENV_CMD" = x; then 25840 VS_VERSION="${VS_VERSION}" 25841 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 25842 METHOD="well-known name" 25843 25844 25845 windows_path="$VS_BASE" 25846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25847 unix_path=`$CYGPATH -u "$windows_path"` 25848 VS_BASE="$unix_path" 25849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25850 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25851 VS_BASE="$unix_path" 25852 fi 25853 25854 # In VS 2017, the default installation is in a subdir named after the edition. 25855 # Find the first one present and use that. 25856 if test "x$VS_EDITIONS" != x; then 25857 for edition in $VS_EDITIONS; do 25858 if test -d "$VS_BASE/$edition"; then 25859 VS_BASE="$VS_BASE/$edition" 25860 break 25861 fi 25862 done 25863 fi 25864 25865 if test -d "$VS_BASE"; then 25866 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25867 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25868 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25869 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25870 else 25871 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25872 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25873 fi 25874 25875 for VCVARSFILE in $VCVARSFILES; do 25876 if test -f "$VS_BASE/$VCVARSFILE"; then 25877 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25878 break 25879 fi 25880 done 25881 25882 if test "x$VS_ENV_CMD" = x; then 25883 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25884 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25885 else 25886 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25887 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25888 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25889 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25890 25891 fi 25892 fi 25893 fi 25894 25895 fi 25896 # Work around the insanely named ProgramFiles(x86) env variable 25897 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 25898 if test "x$PROGRAMFILES_X86" != x; then 25899 25900 if test "x$VS_ENV_CMD" = x; then 25901 VS_VERSION="${VS_VERSION}" 25902 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 25903 METHOD="well-known name" 25904 25905 25906 windows_path="$VS_BASE" 25907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25908 unix_path=`$CYGPATH -u "$windows_path"` 25909 VS_BASE="$unix_path" 25910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25912 VS_BASE="$unix_path" 25913 fi 25914 25915 # In VS 2017, the default installation is in a subdir named after the edition. 25916 # Find the first one present and use that. 25917 if test "x$VS_EDITIONS" != x; then 25918 for edition in $VS_EDITIONS; do 25919 if test -d "$VS_BASE/$edition"; then 25920 VS_BASE="$VS_BASE/$edition" 25921 break 25922 fi 25923 done 25924 fi 25925 25926 if test -d "$VS_BASE"; then 25927 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25928 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25929 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25930 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25931 else 25932 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25933 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25934 fi 25935 25936 for VCVARSFILE in $VCVARSFILES; do 25937 if test -f "$VS_BASE/$VCVARSFILE"; then 25938 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25939 break 25940 fi 25941 done 25942 25943 if test "x$VS_ENV_CMD" = x; then 25944 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25945 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25946 else 25947 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25948 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25949 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25950 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25951 25952 fi 25953 fi 25954 fi 25955 25956 fi 25957 25958 if test "x$VS_ENV_CMD" = x; then 25959 VS_VERSION="${VS_VERSION}" 25960 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 25961 METHOD="well-known name" 25962 25963 25964 windows_path="$VS_BASE" 25965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25966 unix_path=`$CYGPATH -u "$windows_path"` 25967 VS_BASE="$unix_path" 25968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25969 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25970 VS_BASE="$unix_path" 25971 fi 25972 25973 # In VS 2017, the default installation is in a subdir named after the edition. 25974 # Find the first one present and use that. 25975 if test "x$VS_EDITIONS" != x; then 25976 for edition in $VS_EDITIONS; do 25977 if test -d "$VS_BASE/$edition"; then 25978 VS_BASE="$VS_BASE/$edition" 25979 break 25980 fi 25981 done 25982 fi 25983 25984 if test -d "$VS_BASE"; then 25985 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25986 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25987 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25988 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25989 else 25990 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25991 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25992 fi 25993 25994 for VCVARSFILE in $VCVARSFILES; do 25995 if test -f "$VS_BASE/$VCVARSFILE"; then 25996 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25997 break 25998 fi 25999 done 26000 26001 if test "x$VS_ENV_CMD" = x; then 26002 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 26003 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 26004 else 26005 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 26006 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 26007 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 26008 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26009 26010 fi 26011 fi 26012 fi 26013 26014 26015 if test "x$VS_ENV_CMD" = x; then 26016 VS_VERSION="${VS_VERSION}" 26017 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 26018 METHOD="well-known name" 26019 26020 26021 windows_path="$VS_BASE" 26022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26023 unix_path=`$CYGPATH -u "$windows_path"` 26024 VS_BASE="$unix_path" 26025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26027 VS_BASE="$unix_path" 26028 fi 26029 26030 # In VS 2017, the default installation is in a subdir named after the edition. 26031 # Find the first one present and use that. 26032 if test "x$VS_EDITIONS" != x; then 26033 for edition in $VS_EDITIONS; do 26034 if test -d "$VS_BASE/$edition"; then 26035 VS_BASE="$VS_BASE/$edition" 26036 break 26037 fi 26038 done 26039 fi 26040 26041 if test -d "$VS_BASE"; then 26042 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26043 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26044 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26045 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 26046 else 26047 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 26048 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 26049 fi 26050 26051 for VCVARSFILE in $VCVARSFILES; do 26052 if test -f "$VS_BASE/$VCVARSFILE"; then 26053 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26054 break 26055 fi 26056 done 26057 26058 if test "x$VS_ENV_CMD" = x; then 26059 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 26060 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 26061 else 26062 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 26063 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 26064 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 26065 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26066 26067 fi 26068 fi 26069 fi 26070 26071 26072 if test "x$SDK_INSTALL_DIR" != x; then 26073 if test "x$ProgramW6432" != x; then 26074 26075 if test "x$VS_ENV_CMD" = x; then 26076 VS_VERSION="${VS_VERSION}" 26077 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 26078 METHOD="well-known name" 26079 26080 windows_path="$WIN_SDK_BASE" 26081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26082 unix_path=`$CYGPATH -u "$windows_path"` 26083 WIN_SDK_BASE="$unix_path" 26084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26086 WIN_SDK_BASE="$unix_path" 26087 fi 26088 26089 if test -d "$WIN_SDK_BASE"; then 26090 # There have been cases of partial or broken SDK installations. A missing 26091 # lib dir is not going to work. 26092 if test ! -d "$WIN_SDK_BASE/lib"; then 26093 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26094 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26095 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26096 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26097 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26098 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26099 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26100 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26101 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26102 VS_ENV_ARGS="/x86" 26103 else 26104 VS_ENV_ARGS="/x64" 26105 fi 26106 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26107 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26108 # TODO: improve detection for other versions of SDK 26109 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26110 else 26111 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26112 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26113 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26114 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26115 fi 26116 fi 26117 fi 26118 26119 fi 26120 if test "x$PROGRAMW6432" != x; then 26121 26122 if test "x$VS_ENV_CMD" = x; then 26123 VS_VERSION="${VS_VERSION}" 26124 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 26125 METHOD="well-known name" 26126 26127 windows_path="$WIN_SDK_BASE" 26128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26129 unix_path=`$CYGPATH -u "$windows_path"` 26130 WIN_SDK_BASE="$unix_path" 26131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26133 WIN_SDK_BASE="$unix_path" 26134 fi 26135 26136 if test -d "$WIN_SDK_BASE"; then 26137 # There have been cases of partial or broken SDK installations. A missing 26138 # lib dir is not going to work. 26139 if test ! -d "$WIN_SDK_BASE/lib"; then 26140 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26141 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26142 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26143 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26144 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26145 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26146 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26147 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26148 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26149 VS_ENV_ARGS="/x86" 26150 else 26151 VS_ENV_ARGS="/x64" 26152 fi 26153 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26154 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26155 # TODO: improve detection for other versions of SDK 26156 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26157 else 26158 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26159 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26160 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26161 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26162 fi 26163 fi 26164 fi 26165 26166 fi 26167 if test "x$PROGRAMFILES" != x; then 26168 26169 if test "x$VS_ENV_CMD" = x; then 26170 VS_VERSION="${VS_VERSION}" 26171 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 26172 METHOD="well-known name" 26173 26174 windows_path="$WIN_SDK_BASE" 26175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26176 unix_path=`$CYGPATH -u "$windows_path"` 26177 WIN_SDK_BASE="$unix_path" 26178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26180 WIN_SDK_BASE="$unix_path" 26181 fi 26182 26183 if test -d "$WIN_SDK_BASE"; then 26184 # There have been cases of partial or broken SDK installations. A missing 26185 # lib dir is not going to work. 26186 if test ! -d "$WIN_SDK_BASE/lib"; then 26187 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26188 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26189 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26190 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26191 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26192 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26193 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26194 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26195 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26196 VS_ENV_ARGS="/x86" 26197 else 26198 VS_ENV_ARGS="/x64" 26199 fi 26200 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26201 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26202 # TODO: improve detection for other versions of SDK 26203 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26204 else 26205 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26206 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26207 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26208 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26209 fi 26210 fi 26211 fi 26212 26213 fi 26214 26215 if test "x$VS_ENV_CMD" = x; then 26216 VS_VERSION="${VS_VERSION}" 26217 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 26218 METHOD="well-known name" 26219 26220 windows_path="$WIN_SDK_BASE" 26221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26222 unix_path=`$CYGPATH -u "$windows_path"` 26223 WIN_SDK_BASE="$unix_path" 26224 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26225 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26226 WIN_SDK_BASE="$unix_path" 26227 fi 26228 26229 if test -d "$WIN_SDK_BASE"; then 26230 # There have been cases of partial or broken SDK installations. A missing 26231 # lib dir is not going to work. 26232 if test ! -d "$WIN_SDK_BASE/lib"; then 26233 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26234 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26235 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26236 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26237 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26238 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26239 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26240 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26241 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26242 VS_ENV_ARGS="/x86" 26243 else 26244 VS_ENV_ARGS="/x64" 26245 fi 26246 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26247 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26248 # TODO: improve detection for other versions of SDK 26249 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26250 else 26251 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26252 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26253 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26254 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26255 fi 26256 fi 26257 fi 26258 26259 26260 if test "x$VS_ENV_CMD" = x; then 26261 VS_VERSION="${VS_VERSION}" 26262 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 26263 METHOD="well-known name" 26264 26265 windows_path="$WIN_SDK_BASE" 26266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26267 unix_path=`$CYGPATH -u "$windows_path"` 26268 WIN_SDK_BASE="$unix_path" 26269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26270 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26271 WIN_SDK_BASE="$unix_path" 26272 fi 26273 26274 if test -d "$WIN_SDK_BASE"; then 26275 # There have been cases of partial or broken SDK installations. A missing 26276 # lib dir is not going to work. 26277 if test ! -d "$WIN_SDK_BASE/lib"; then 26278 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26279 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26280 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26281 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26282 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26283 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26284 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26285 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26286 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26287 VS_ENV_ARGS="/x86" 26288 else 26289 VS_ENV_ARGS="/x64" 26290 fi 26291 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26292 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26293 # TODO: improve detection for other versions of SDK 26294 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26295 else 26296 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26297 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26298 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26299 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26300 fi 26301 fi 26302 fi 26303 26304 fi 26305 26306 if test "x$VS_ENV_CMD" != x; then 26307 TOOLCHAIN_VERSION=$VS_VERSION 26308 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 26309 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 26310 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 26311 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 26312 eval USE_UCRT="\${VS_USE_UCRT_${VS_VERSION}}" 26313 # The rest of the variables are already evaled while probing 26314 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 26315 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 26316 break 26317 fi 26318 done 26319 26320 TOOLCHAIN_DESCRIPTION="$VS_DESCRIPTION" 26321 if test "$TOOLCHAIN_VERSION" -gt 2013; then 26322 UNSUPPORTED_TOOLCHAIN_VERSION=yes 26323 fi 26324 26325 26326 # If we have a devkit, skip all of the below. 26327 if test "x$DEVKIT_VS_VERSION" = x; then 26328 if test "x$VS_ENV_CMD" != x; then 26329 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 26330 26331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26332 26333 # First separate the path from the arguments. This will split at the first 26334 # space. 26335 complete="$VS_ENV_CMD" 26336 path="${complete%% *}" 26337 tmp="$complete EOL" 26338 arguments="${tmp#* }" 26339 26340 # Input might be given as Windows format, start by converting to 26341 # unix format. 26342 new_path=`$CYGPATH -u "$path"` 26343 26344 # Now try to locate executable using which 26345 new_path=`$WHICH "$new_path" 2> /dev/null` 26346 # bat and cmd files are not always considered executable in cygwin causing which 26347 # to not find them 26348 if test "x$new_path" = x \ 26349 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26350 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26351 new_path=`$CYGPATH -u "$path"` 26352 fi 26353 if test "x$new_path" = x; then 26354 # Oops. Which didn't find the executable. 26355 # The splitting of arguments from the executable at a space might have been incorrect, 26356 # since paths with space are more likely in Windows. Give it another try with the whole 26357 # argument. 26358 path="$complete" 26359 arguments="EOL" 26360 new_path=`$CYGPATH -u "$path"` 26361 new_path=`$WHICH "$new_path" 2> /dev/null` 26362 # bat and cmd files are not always considered executable in cygwin causing which 26363 # to not find them 26364 if test "x$new_path" = x \ 26365 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26366 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26367 new_path=`$CYGPATH -u "$path"` 26368 fi 26369 if test "x$new_path" = x; then 26370 # It's still not found. Now this is an unrecoverable error. 26371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26372 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26373 has_space=`$ECHO "$complete" | $GREP " "` 26374 if test "x$has_space" != x; then 26375 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26376 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26377 fi 26378 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26379 fi 26380 fi 26381 26382 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26383 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26384 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26385 # "foo.exe" is OK but "foo" is an error. 26386 # 26387 # This test is therefore slightly more accurate than "test -f" to check for file presence. 26388 # It is also a way to make sure we got the proper file name for the real test later on. 26389 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26390 if test "x$test_shortpath" = x; then 26391 # Short path failed, file does not exist as specified. 26392 # Try adding .exe or .cmd 26393 if test -f "${new_path}.exe"; then 26394 input_to_shortpath="${new_path}.exe" 26395 elif test -f "${new_path}.cmd"; then 26396 input_to_shortpath="${new_path}.cmd" 26397 else 26398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 26399 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 26400 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26401 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26402 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26403 fi 26404 else 26405 input_to_shortpath="$new_path" 26406 fi 26407 26408 # Call helper function which possibly converts this using DOS-style short mode. 26409 # If so, the updated path is stored in $new_path. 26410 new_path="$input_to_shortpath" 26411 26412 input_path="$input_to_shortpath" 26413 # Check if we need to convert this using DOS-style short mode. If the path 26414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26415 # take no chances and rewrite it. 26416 # Note: m4 eats our [], so we need to use [ and ] instead. 26417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26418 if test "x$has_forbidden_chars" != x; then 26419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26420 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26421 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26422 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26423 # Going to short mode and back again did indeed matter. Since short mode is 26424 # case insensitive, let's make it lowercase to improve readability. 26425 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26426 # Now convert it back to Unix-style (cygpath) 26427 input_path=`$CYGPATH -u "$shortmode_path"` 26428 new_path="$input_path" 26429 fi 26430 fi 26431 26432 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26433 if test "x$test_cygdrive_prefix" = x; then 26434 # As a simple fix, exclude /usr/bin since it's not a real path. 26435 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26436 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26437 # a path prefixed by /cygdrive for fixpath to work. 26438 new_path="$CYGWIN_ROOT_PATH$input_path" 26439 fi 26440 fi 26441 26442 # remove trailing .exe if any 26443 new_path="${new_path/%.exe/}" 26444 26445 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26446 26447 # First separate the path from the arguments. This will split at the first 26448 # space. 26449 complete="$VS_ENV_CMD" 26450 path="${complete%% *}" 26451 tmp="$complete EOL" 26452 arguments="${tmp#* }" 26453 26454 # Input might be given as Windows format, start by converting to 26455 # unix format. 26456 new_path="$path" 26457 26458 windows_path="$new_path" 26459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26460 unix_path=`$CYGPATH -u "$windows_path"` 26461 new_path="$unix_path" 26462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26463 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26464 new_path="$unix_path" 26465 fi 26466 26467 26468 # Now try to locate executable using which 26469 new_path=`$WHICH "$new_path" 2> /dev/null` 26470 26471 if test "x$new_path" = x; then 26472 # Oops. Which didn't find the executable. 26473 # The splitting of arguments from the executable at a space might have been incorrect, 26474 # since paths with space are more likely in Windows. Give it another try with the whole 26475 # argument. 26476 path="$complete" 26477 arguments="EOL" 26478 new_path="$path" 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 26490 new_path=`$WHICH "$new_path" 2> /dev/null` 26491 # bat and cmd files are not always considered executable in MSYS causing which 26492 # to not find them 26493 if test "x$new_path" = x \ 26494 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26495 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26496 new_path="$path" 26497 26498 windows_path="$new_path" 26499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26500 unix_path=`$CYGPATH -u "$windows_path"` 26501 new_path="$unix_path" 26502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26503 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26504 new_path="$unix_path" 26505 fi 26506 26507 fi 26508 26509 if test "x$new_path" = x; then 26510 # It's still not found. Now this is an unrecoverable error. 26511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26512 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26513 has_space=`$ECHO "$complete" | $GREP " "` 26514 if test "x$has_space" != x; then 26515 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26516 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26517 fi 26518 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26519 fi 26520 fi 26521 26522 # Now new_path has a complete unix path to the binary 26523 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26524 # Keep paths in /bin as-is, but remove trailing .exe if any 26525 new_path="${new_path/%.exe/}" 26526 # Do not save /bin paths to all_fixpath_prefixes! 26527 else 26528 # Not in mixed or Windows style, start by that. 26529 new_path=`cmd //c echo $new_path` 26530 26531 input_path="$new_path" 26532 # Check if we need to convert this using DOS-style short mode. If the path 26533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26534 # take no chances and rewrite it. 26535 # Note: m4 eats our [], so we need to use [ and ] instead. 26536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26537 if test "x$has_forbidden_chars" != x; then 26538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26539 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26540 fi 26541 26542 # Output is in $new_path 26543 26544 windows_path="$new_path" 26545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26546 unix_path=`$CYGPATH -u "$windows_path"` 26547 new_path="$unix_path" 26548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26549 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26550 new_path="$unix_path" 26551 fi 26552 26553 # remove trailing .exe if any 26554 new_path="${new_path/%.exe/}" 26555 26556 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26557 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26558 fi 26559 26560 else 26561 # We're on a posix platform. Hooray! :) 26562 # First separate the path from the arguments. This will split at the first 26563 # space. 26564 complete="$VS_ENV_CMD" 26565 path="${complete%% *}" 26566 tmp="$complete EOL" 26567 arguments="${tmp#* }" 26568 26569 # Cannot rely on the command "which" here since it doesn't always work. 26570 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26571 if test -z "$is_absolute_path"; then 26572 # Path to executable is not absolute. Find it. 26573 IFS_save="$IFS" 26574 IFS=: 26575 for p in $PATH; do 26576 if test -f "$p/$path" && test -x "$p/$path"; then 26577 new_path="$p/$path" 26578 break 26579 fi 26580 done 26581 IFS="$IFS_save" 26582 else 26583 # This is an absolute path, we can use it without further modifications. 26584 new_path="$path" 26585 fi 26586 26587 if test "x$new_path" = x; then 26588 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26589 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26590 has_space=`$ECHO "$complete" | $GREP " "` 26591 if test "x$has_space" != x; then 26592 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26593 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26594 fi 26595 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26596 fi 26597 fi 26598 26599 # Now join together the path and the arguments once again 26600 if test "x$arguments" != xEOL; then 26601 new_complete="$new_path ${arguments% *}" 26602 else 26603 new_complete="$new_path" 26604 fi 26605 26606 if test "x$complete" != "x$new_complete"; then 26607 VS_ENV_CMD="$new_complete" 26608 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 26609 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 26610 fi 26611 26612 26613 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 26614 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 26615 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 26616 26617 # We need to create a couple of temporary files. 26618 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 26619 $MKDIR -p $VS_ENV_TMP_DIR 26620 26621 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 26622 # Instead create a shell script which will set the relevant variables when run. 26623 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 26624 26625 unix_path="$WINPATH_VS_ENV_CMD" 26626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26627 windows_path=`$CYGPATH -m "$unix_path"` 26628 WINPATH_VS_ENV_CMD="$windows_path" 26629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26630 windows_path=`cmd //c echo $unix_path` 26631 WINPATH_VS_ENV_CMD="$windows_path" 26632 fi 26633 26634 WINPATH_BASH="$BASH" 26635 26636 unix_path="$WINPATH_BASH" 26637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26638 windows_path=`$CYGPATH -m "$unix_path"` 26639 WINPATH_BASH="$windows_path" 26640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26641 windows_path=`cmd //c echo $unix_path` 26642 WINPATH_BASH="$windows_path" 26643 fi 26644 26645 26646 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 26647 # script (executable by bash) that will setup the important variables. 26648 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 26649 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 26650 # This will end up something like: 26651 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 26652 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 26653 # In some cases, the VS_ENV_CMD will change directory, change back so 26654 # the set-vs-env.sh ends up in the right place. 26655 $ECHO 'cd %~dp0' >> $EXTRACT_VC_ENV_BAT_FILE 26656 # These will end up something like: 26657 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 26658 # The trailing space for everyone except PATH is no typo, but is needed due 26659 # to trailing \ in the Windows paths. These will be stripped later. 26660 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 26661 >> $EXTRACT_VC_ENV_BAT_FILE 26662 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' \ 26663 >> $EXTRACT_VC_ENV_BAT_FILE 26664 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' \ 26665 >> $EXTRACT_VC_ENV_BAT_FILE 26666 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 26667 >> $EXTRACT_VC_ENV_BAT_FILE 26668 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 26669 >> $EXTRACT_VC_ENV_BAT_FILE 26670 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 26671 >> $EXTRACT_VC_ENV_BAT_FILE 26672 26673 # Now execute the newly created bat file. 26674 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 26675 # Change directory so we don't need to mess with Windows paths in redirects. 26676 cd $VS_ENV_TMP_DIR 26677 cmd /c extract-vs-env.bat | $CAT 26678 cd $CURDIR 26679 26680 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 26681 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 26682 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 26683 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 26684 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 26685 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 26686 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 26687 as_fn_error $? "Cannot continue" "$LINENO" 5 26688 fi 26689 26690 # Now set all paths and other env variables. This will allow the rest of 26691 # the configure script to find and run the compiler in the proper way. 26692 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 26693 $as_echo "$as_me: Setting extracted environment variables" >&6;} 26694 . $VS_ENV_TMP_DIR/set-vs-env.sh 26695 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 26696 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 26697 else 26698 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 26699 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 26700 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 26701 fi 26702 fi 26703 26704 # At this point, we should have correct variables in the environment, or we can't continue. 26705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 26706 $as_echo_n "checking for Visual Studio variables... " >&6; } 26707 26708 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 26709 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 26710 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 26712 $as_echo "present but broken" >&6; } 26713 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 26714 else 26715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26716 $as_echo "ok" >&6; } 26717 # Remove any trailing "\" and " " from the variables. 26718 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 26719 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 26720 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 26721 WindowsSdkDir=`$ECHO "$WindowsSdkDir" | $SED 's/\\\\* *$//'` 26722 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 26723 if test -z "$WINDOWSSDKDIR"; then 26724 WINDOWSSDKDIR="$WindowsSdkDir" 26725 fi 26726 # Remove any paths containing # (typically F#) as that messes up make. This 26727 # is needed if visual studio was installed with F# support. 26728 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 26729 26730 26731 26732 26733 fi 26734 else 26735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26736 $as_echo "not found" >&6; } 26737 26738 if test "x$VS_ENV_CMD" = x; then 26739 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 26740 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 26741 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 26742 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 26743 else 26744 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 26745 $as_echo "$as_me: Running the extraction script failed." >&6;} 26746 fi 26747 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 26748 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 26749 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 26750 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 26751 as_fn_error $? "Cannot continue" "$LINENO" 5 26752 fi 26753 26754 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 26755 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 26756 PATH="$VS_PATH" 26757 # The microsoft toolchain also requires INCLUDE and LIB to be set. 26758 export INCLUDE="$VS_INCLUDE" 26759 export LIB="$VS_LIB" 26760 fi 26761 26762 # Before we locate the compilers, we need to sanitize the Xcode build environment 26763 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 26764 # determine path to Xcode developer directory 26765 # can be empty in which case all the tools will rely on a sane Xcode 4 installation 26766 SET_DEVELOPER_DIR= 26767 26768 if test -n "$XCODE_PATH"; then 26769 DEVELOPER_DIR="$XCODE_PATH"/Contents/Developer 26770 fi 26771 26772 # DEVELOPER_DIR could also be provided directly 26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining if we need to set DEVELOPER_DIR" >&5 26774 $as_echo_n "checking Determining if we need to set DEVELOPER_DIR... " >&6; } 26775 if test -n "$DEVELOPER_DIR"; then 26776 if test ! -d "$DEVELOPER_DIR"; then 26777 as_fn_error $? "Xcode Developer path does not exist: $DEVELOPER_DIR, please provide a path to the Xcode 4 application bundle using --with-xcode-path" "$LINENO" 5 26778 fi 26779 if test ! -f "$DEVELOPER_DIR"/usr/bin/xcodebuild; then 26780 as_fn_error $? "Xcode Developer path is not valid: $DEVELOPER_DIR, it must point to Contents/Developer inside an Xcode application bundle" "$LINENO" 5 26781 fi 26782 # make it visible to all the tools immediately 26783 export DEVELOPER_DIR 26784 SET_DEVELOPER_DIR="export DEVELOPER_DIR := $DEVELOPER_DIR" 26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEVELOPER_DIR)" >&5 26786 $as_echo "yes ($DEVELOPER_DIR)" >&6; } 26787 else 26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26789 $as_echo "no" >&6; } 26790 fi 26791 26792 26793 # Extract the first word of "xcodebuild", so it can be a program name with args. 26794 set dummy xcodebuild; ac_word=$2 26795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26796 $as_echo_n "checking for $ac_word... " >&6; } 26797 if ${ac_cv_path_XCODEBUILD+:} false; then : 26798 $as_echo_n "(cached) " >&6 26799 else 26800 case $XCODEBUILD in 26801 [\\/]* | ?:[\\/]*) 26802 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 26803 ;; 26804 *) 26805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26806 for as_dir in $PATH 26807 do 26808 IFS=$as_save_IFS 26809 test -z "$as_dir" && as_dir=. 26810 for ac_exec_ext in '' $ac_executable_extensions; do 26811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26812 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 26813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26814 break 2 26815 fi 26816 done 26817 done 26818 IFS=$as_save_IFS 26819 26820 ;; 26821 esac 26822 fi 26823 XCODEBUILD=$ac_cv_path_XCODEBUILD 26824 if test -n "$XCODEBUILD"; then 26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 26826 $as_echo "$XCODEBUILD" >&6; } 26827 else 26828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26829 $as_echo "no" >&6; } 26830 fi 26831 26832 26833 if test -z "$XCODEBUILD"; then 26834 as_fn_error $? "The xcodebuild tool was not found, the Xcode command line tools are required to build on Mac OS X" "$LINENO" 5 26835 fi 26836 26837 # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later 26838 XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` 26839 XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) 26840 if test ! "${XC_VERSION_PARTS[0]}" = "4"; then 26841 as_fn_error $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select." "$LINENO" 5 26842 fi 26843 26844 # Some versions of Xcode 5 command line tools install gcc and g++ as symlinks to 26845 # clang and clang++, which will break the build. So handle that here if we need to. 26846 if test -L "/usr/bin/gcc" -o -L "/usr/bin/g++"; then 26847 # use xcrun to find the real gcc and add it's directory to PATH 26848 # then autoconf magic will find it 26849 { $as_echo "$as_me:${as_lineno-$LINENO}: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&5 26850 $as_echo "$as_me: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&6;} 26851 XCODE_BIN_PATH=$(dirname `xcrun -find gcc`) 26852 PATH="$XCODE_BIN_PATH":$PATH 26853 fi 26854 26855 # Determine appropriate SDKPATH, don't use SDKROOT as it interferes with the stub tools 26856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining Xcode SDK path" >&5 26857 $as_echo_n "checking Determining Xcode SDK path... " >&6; } 26858 # allow SDKNAME to be set to override the default SDK selection 26859 SDKPATH=`"$XCODEBUILD" -sdk ${SDKNAME:-macosx} -version | grep '^Path: ' | sed 's/Path: //'` 26860 if test -n "$SDKPATH"; then 26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKPATH" >&5 26862 $as_echo "$SDKPATH" >&6; } 26863 else 26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none, will use system headers and frameworks)" >&5 26865 $as_echo "(none, will use system headers and frameworks)" >&6; } 26866 fi 26867 26868 26869 # Perform a basic sanity test 26870 if test ! -f "$SDKPATH/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 26871 as_fn_error $? "Unable to find required framework headers, provide a valid path to Xcode 4 using --with-xcode-path" "$LINENO" 5 26872 fi 26873 26874 # if SDKPATH is non-empty then we need to add -isysroot and -iframework for gcc and g++ 26875 if test -n "$SDKPATH"; then 26876 # We need -isysroot <path> and -iframework<path>/System/Library/Frameworks 26877 CFLAGS_JDK="${CFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26878 CXXFLAGS_JDK="${CXXFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26879 LDFLAGS_JDK="${LDFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26880 fi 26881 26882 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 26883 # setting this here means it doesn't have to be peppered throughout the forest 26884 CFLAGS_JDK="$CFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26885 CXXFLAGS_JDK="$CXXFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26886 LDFLAGS_JDK="$LDFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26887 fi 26888 26889 # For solaris we really need solaris tools, and not the GNU equivalent. 26890 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 26891 # so add that to path before starting to probe. 26892 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 26893 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 26894 PATH="/usr/ccs/bin:$PATH" 26895 fi 26896 26897 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 26898 # override all other locations. 26899 if test "x$TOOLCHAIN_PATH" != x; then 26900 PATH=$TOOLCHAIN_PATH:$PATH 26901 fi 26902 26903 26904 # 26905 # Setup the compilers (CC and CXX) 26906 # 26907 26908 COMPILER_NAME=C 26909 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 26910 26911 if test "x$CC" != x; then 26912 # User has supplied compiler name already, always let that override. 26913 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 26914 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 26915 if test "x`basename $CC`" = "x$CC"; then 26916 # A command without a complete path is provided, search $PATH. 26917 26918 for ac_prog in $CC 26919 do 26920 # Extract the first word of "$ac_prog", so it can be a program name with args. 26921 set dummy $ac_prog; ac_word=$2 26922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26923 $as_echo_n "checking for $ac_word... " >&6; } 26924 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 26925 $as_echo_n "(cached) " >&6 26926 else 26927 case $POTENTIAL_CC in 26928 [\\/]* | ?:[\\/]*) 26929 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 26930 ;; 26931 *) 26932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26933 for as_dir in $PATH 26934 do 26935 IFS=$as_save_IFS 26936 test -z "$as_dir" && as_dir=. 26937 for ac_exec_ext in '' $ac_executable_extensions; do 26938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26939 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 26940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26941 break 2 26942 fi 26943 done 26944 done 26945 IFS=$as_save_IFS 26946 26947 ;; 26948 esac 26949 fi 26950 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 26951 if test -n "$POTENTIAL_CC"; then 26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 26953 $as_echo "$POTENTIAL_CC" >&6; } 26954 else 26955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26956 $as_echo "no" >&6; } 26957 fi 26958 26959 26960 test -n "$POTENTIAL_CC" && break 26961 done 26962 26963 if test "x$POTENTIAL_CC" != x; then 26964 CC=$POTENTIAL_CC 26965 else 26966 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 26967 fi 26968 else 26969 # Otherwise it might already be a complete path 26970 if test ! -x "$CC"; then 26971 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 26972 fi 26973 fi 26974 else 26975 # No user supplied value. Locate compiler ourselves. 26976 26977 # If we are cross compiling, assume cross compilation tools follows the 26978 # cross compilation standard where they are prefixed with the autoconf 26979 # standard name for the target. For example the binary 26980 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 26981 # If we are not cross compiling, then the default compiler name will be 26982 # used. 26983 26984 CC= 26985 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 26986 # before checking the rest of the PATH. 26987 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 26988 # step, this should not be necessary. 26989 if test -n "$TOOLCHAIN_PATH"; then 26990 PATH_save="$PATH" 26991 PATH="$TOOLCHAIN_PATH" 26992 for ac_prog in $SEARCH_LIST 26993 do 26994 # Extract the first word of "$ac_prog", so it can be a program name with args. 26995 set dummy $ac_prog; ac_word=$2 26996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26997 $as_echo_n "checking for $ac_word... " >&6; } 26998 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 26999 $as_echo_n "(cached) " >&6 27000 else 27001 case $TOOLCHAIN_PATH_CC in 27002 [\\/]* | ?:[\\/]*) 27003 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 27004 ;; 27005 *) 27006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27007 for as_dir in $PATH 27008 do 27009 IFS=$as_save_IFS 27010 test -z "$as_dir" && as_dir=. 27011 for ac_exec_ext in '' $ac_executable_extensions; do 27012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27013 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 27014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27015 break 2 27016 fi 27017 done 27018 done 27019 IFS=$as_save_IFS 27020 27021 ;; 27022 esac 27023 fi 27024 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 27025 if test -n "$TOOLCHAIN_PATH_CC"; then 27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 27027 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 27028 else 27029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27030 $as_echo "no" >&6; } 27031 fi 27032 27033 27034 test -n "$TOOLCHAIN_PATH_CC" && break 27035 done 27036 27037 CC=$TOOLCHAIN_PATH_CC 27038 PATH="$PATH_save" 27039 fi 27040 27041 # AC_PATH_PROGS can't be run multiple times with the same variable, 27042 # so create a new name for this run. 27043 if test "x$CC" = x; then 27044 for ac_prog in $TOOLCHAIN_CC_BINARY 27045 do 27046 # Extract the first word of "$ac_prog", so it can be a program name with args. 27047 set dummy $ac_prog; ac_word=$2 27048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27049 $as_echo_n "checking for $ac_word... " >&6; } 27050 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27051 $as_echo_n "(cached) " >&6 27052 else 27053 case $POTENTIAL_CC in 27054 [\\/]* | ?:[\\/]*) 27055 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27056 ;; 27057 *) 27058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27059 for as_dir in $PATH 27060 do 27061 IFS=$as_save_IFS 27062 test -z "$as_dir" && as_dir=. 27063 for ac_exec_ext in '' $ac_executable_extensions; do 27064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27065 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27067 break 2 27068 fi 27069 done 27070 done 27071 IFS=$as_save_IFS 27072 27073 ;; 27074 esac 27075 fi 27076 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27077 if test -n "$POTENTIAL_CC"; then 27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27079 $as_echo "$POTENTIAL_CC" >&6; } 27080 else 27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27082 $as_echo "no" >&6; } 27083 fi 27084 27085 27086 test -n "$POTENTIAL_CC" && break 27087 done 27088 27089 CC=$POTENTIAL_CC 27090 fi 27091 27092 if test "x$CC" = x; then 27093 27094 # Print a helpful message on how to acquire the necessary build dependency. 27095 # devkit is the help tag: freetype, cups, pulse, alsa etc 27096 MISSING_DEPENDENCY=devkit 27097 27098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27099 cygwin_help $MISSING_DEPENDENCY 27100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27101 msys_help $MISSING_DEPENDENCY 27102 else 27103 PKGHANDLER_COMMAND= 27104 27105 case $PKGHANDLER in 27106 apt-get) 27107 apt_help $MISSING_DEPENDENCY ;; 27108 yum) 27109 yum_help $MISSING_DEPENDENCY ;; 27110 port) 27111 port_help $MISSING_DEPENDENCY ;; 27112 pkgutil) 27113 pkgutil_help $MISSING_DEPENDENCY ;; 27114 pkgadd) 27115 pkgadd_help $MISSING_DEPENDENCY ;; 27116 esac 27117 27118 if test "x$PKGHANDLER_COMMAND" != x; then 27119 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27120 fi 27121 fi 27122 27123 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27124 fi 27125 fi 27126 27127 # Now we have a compiler binary in CC. Make sure it's okay. 27128 27129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27130 27131 # First separate the path from the arguments. This will split at the first 27132 # space. 27133 complete="$CC" 27134 path="${complete%% *}" 27135 tmp="$complete EOL" 27136 arguments="${tmp#* }" 27137 27138 # Input might be given as Windows format, start by converting to 27139 # unix format. 27140 new_path=`$CYGPATH -u "$path"` 27141 27142 # Now try to locate executable using which 27143 new_path=`$WHICH "$new_path" 2> /dev/null` 27144 # bat and cmd files are not always considered executable in cygwin causing which 27145 # to not find them 27146 if test "x$new_path" = x \ 27147 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27148 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27149 new_path=`$CYGPATH -u "$path"` 27150 fi 27151 if test "x$new_path" = x; then 27152 # Oops. Which didn't find the executable. 27153 # The splitting of arguments from the executable at a space might have been incorrect, 27154 # since paths with space are more likely in Windows. Give it another try with the whole 27155 # argument. 27156 path="$complete" 27157 arguments="EOL" 27158 new_path=`$CYGPATH -u "$path"` 27159 new_path=`$WHICH "$new_path" 2> /dev/null` 27160 # bat and cmd files are not always considered executable in cygwin causing which 27161 # to not find them 27162 if test "x$new_path" = x \ 27163 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27164 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27165 new_path=`$CYGPATH -u "$path"` 27166 fi 27167 if test "x$new_path" = x; then 27168 # It's still not found. Now this is an unrecoverable error. 27169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27170 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27171 has_space=`$ECHO "$complete" | $GREP " "` 27172 if test "x$has_space" != x; then 27173 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27174 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27175 fi 27176 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27177 fi 27178 fi 27179 27180 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27181 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27182 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27183 # "foo.exe" is OK but "foo" is an error. 27184 # 27185 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27186 # It is also a way to make sure we got the proper file name for the real test later on. 27187 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27188 if test "x$test_shortpath" = x; then 27189 # Short path failed, file does not exist as specified. 27190 # Try adding .exe or .cmd 27191 if test -f "${new_path}.exe"; then 27192 input_to_shortpath="${new_path}.exe" 27193 elif test -f "${new_path}.cmd"; then 27194 input_to_shortpath="${new_path}.cmd" 27195 else 27196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 27197 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 27198 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27199 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27200 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27201 fi 27202 else 27203 input_to_shortpath="$new_path" 27204 fi 27205 27206 # Call helper function which possibly converts this using DOS-style short mode. 27207 # If so, the updated path is stored in $new_path. 27208 new_path="$input_to_shortpath" 27209 27210 input_path="$input_to_shortpath" 27211 # Check if we need to convert this using DOS-style short mode. If the path 27212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27213 # take no chances and rewrite it. 27214 # Note: m4 eats our [], so we need to use [ and ] instead. 27215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27216 if test "x$has_forbidden_chars" != x; then 27217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27218 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27219 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27220 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27221 # Going to short mode and back again did indeed matter. Since short mode is 27222 # case insensitive, let's make it lowercase to improve readability. 27223 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27224 # Now convert it back to Unix-style (cygpath) 27225 input_path=`$CYGPATH -u "$shortmode_path"` 27226 new_path="$input_path" 27227 fi 27228 fi 27229 27230 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27231 if test "x$test_cygdrive_prefix" = x; then 27232 # As a simple fix, exclude /usr/bin since it's not a real path. 27233 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27234 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27235 # a path prefixed by /cygdrive for fixpath to work. 27236 new_path="$CYGWIN_ROOT_PATH$input_path" 27237 fi 27238 fi 27239 27240 # remove trailing .exe if any 27241 new_path="${new_path/%.exe/}" 27242 27243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27244 27245 # First separate the path from the arguments. This will split at the first 27246 # space. 27247 complete="$CC" 27248 path="${complete%% *}" 27249 tmp="$complete EOL" 27250 arguments="${tmp#* }" 27251 27252 # Input might be given as Windows format, start by converting to 27253 # unix format. 27254 new_path="$path" 27255 27256 windows_path="$new_path" 27257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27258 unix_path=`$CYGPATH -u "$windows_path"` 27259 new_path="$unix_path" 27260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27262 new_path="$unix_path" 27263 fi 27264 27265 27266 # Now try to locate executable using which 27267 new_path=`$WHICH "$new_path" 2> /dev/null` 27268 27269 if test "x$new_path" = x; then 27270 # Oops. Which didn't find the executable. 27271 # The splitting of arguments from the executable at a space might have been incorrect, 27272 # since paths with space are more likely in Windows. Give it another try with the whole 27273 # argument. 27274 path="$complete" 27275 arguments="EOL" 27276 new_path="$path" 27277 27278 windows_path="$new_path" 27279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27280 unix_path=`$CYGPATH -u "$windows_path"` 27281 new_path="$unix_path" 27282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27284 new_path="$unix_path" 27285 fi 27286 27287 27288 new_path=`$WHICH "$new_path" 2> /dev/null` 27289 # bat and cmd files are not always considered executable in MSYS causing which 27290 # to not find them 27291 if test "x$new_path" = x \ 27292 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27293 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27294 new_path="$path" 27295 27296 windows_path="$new_path" 27297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27298 unix_path=`$CYGPATH -u "$windows_path"` 27299 new_path="$unix_path" 27300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27301 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27302 new_path="$unix_path" 27303 fi 27304 27305 fi 27306 27307 if test "x$new_path" = x; then 27308 # It's still not found. Now this is an unrecoverable error. 27309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27310 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27311 has_space=`$ECHO "$complete" | $GREP " "` 27312 if test "x$has_space" != x; then 27313 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27314 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27315 fi 27316 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27317 fi 27318 fi 27319 27320 # Now new_path has a complete unix path to the binary 27321 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27322 # Keep paths in /bin as-is, but remove trailing .exe if any 27323 new_path="${new_path/%.exe/}" 27324 # Do not save /bin paths to all_fixpath_prefixes! 27325 else 27326 # Not in mixed or Windows style, start by that. 27327 new_path=`cmd //c echo $new_path` 27328 27329 input_path="$new_path" 27330 # Check if we need to convert this using DOS-style short mode. If the path 27331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27332 # take no chances and rewrite it. 27333 # Note: m4 eats our [], so we need to use [ and ] instead. 27334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27335 if test "x$has_forbidden_chars" != x; then 27336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27337 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27338 fi 27339 27340 # Output is in $new_path 27341 27342 windows_path="$new_path" 27343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27344 unix_path=`$CYGPATH -u "$windows_path"` 27345 new_path="$unix_path" 27346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27348 new_path="$unix_path" 27349 fi 27350 27351 # remove trailing .exe if any 27352 new_path="${new_path/%.exe/}" 27353 27354 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27355 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27356 fi 27357 27358 else 27359 # We're on a posix platform. Hooray! :) 27360 # First separate the path from the arguments. This will split at the first 27361 # space. 27362 complete="$CC" 27363 path="${complete%% *}" 27364 tmp="$complete EOL" 27365 arguments="${tmp#* }" 27366 27367 # Cannot rely on the command "which" here since it doesn't always work. 27368 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27369 if test -z "$is_absolute_path"; then 27370 # Path to executable is not absolute. Find it. 27371 IFS_save="$IFS" 27372 IFS=: 27373 for p in $PATH; do 27374 if test -f "$p/$path" && test -x "$p/$path"; then 27375 new_path="$p/$path" 27376 break 27377 fi 27378 done 27379 IFS="$IFS_save" 27380 else 27381 # This is an absolute path, we can use it without further modifications. 27382 new_path="$path" 27383 fi 27384 27385 if test "x$new_path" = x; then 27386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27387 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27388 has_space=`$ECHO "$complete" | $GREP " "` 27389 if test "x$has_space" != x; then 27390 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27391 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27392 fi 27393 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27394 fi 27395 fi 27396 27397 # Now join together the path and the arguments once again 27398 if test "x$arguments" != xEOL; then 27399 new_complete="$new_path ${arguments% *}" 27400 else 27401 new_complete="$new_path" 27402 fi 27403 27404 if test "x$complete" != "x$new_complete"; then 27405 CC="$new_complete" 27406 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 27407 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 27408 fi 27409 27410 TEST_COMPILER="$CC" 27411 27412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 27413 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 27414 SYMLINK_ORIGINAL="$TEST_COMPILER" 27415 27416 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27417 # Follow a chain of symbolic links. Use readlink 27418 # where it exists, else fall back to horribly 27419 # complicated shell code. 27420 if test "x$READLINK_TESTED" != yes; then 27421 # On MacOSX there is a readlink tool with a different 27422 # purpose than the GNU readlink tool. Check the found readlink. 27423 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27424 if test "x$ISGNU" = x; then 27425 # A readlink that we do not know how to use. 27426 # Are there other non-GNU readlinks out there? 27427 READLINK_TESTED=yes 27428 READLINK= 27429 fi 27430 fi 27431 27432 if test "x$READLINK" != x; then 27433 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 27434 else 27435 # Save the current directory for restoring afterwards 27436 STARTDIR=$PWD 27437 COUNTER=0 27438 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 27439 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 27440 cd $sym_link_dir 27441 # Use -P flag to resolve symlinks in directories. 27442 cd `$THEPWDCMD -P` 27443 sym_link_dir=`$THEPWDCMD -P` 27444 # Resolve file symlinks 27445 while test $COUNTER -lt 20; do 27446 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27447 if test "x$ISLINK" == x; then 27448 # This is not a symbolic link! We are done! 27449 break 27450 fi 27451 # Again resolve directory symlinks since the target of the just found 27452 # link could be in a different directory 27453 cd `$DIRNAME $ISLINK` 27454 sym_link_dir=`$THEPWDCMD -P` 27455 sym_link_file=`$BASENAME $ISLINK` 27456 let COUNTER=COUNTER+1 27457 done 27458 cd $STARTDIR 27459 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 27460 fi 27461 fi 27462 27463 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 27464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 27465 $as_echo "no symlink" >&6; } 27466 else 27467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 27468 $as_echo "$SYMLINK_ORIGINAL" >&6; } 27469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 27470 $as_echo_n "checking if CC is disguised ccache... " >&6; } 27471 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 27472 if test "x$COMPILER_BASENAME" = "xccache"; then 27473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 27474 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 27475 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 27476 # We want to control ccache invocation ourselves, so ignore this cc and try 27477 # searching again. 27478 27479 # Remove the path to the fake ccache cc from the PATH 27480 RETRY_COMPILER_SAVED_PATH="$PATH" 27481 COMPILER_DIRNAME=`$DIRNAME $CC` 27482 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 27483 # Try again looking for our compiler 27484 if test -n "$ac_tool_prefix"; then 27485 for ac_prog in $TOOLCHAIN_CC_BINARY 27486 do 27487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27490 $as_echo_n "checking for $ac_word... " >&6; } 27491 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 27492 $as_echo_n "(cached) " >&6 27493 else 27494 if test -n "$PROPER_COMPILER_CC"; then 27495 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 27496 else 27497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27498 for as_dir in $PATH 27499 do 27500 IFS=$as_save_IFS 27501 test -z "$as_dir" && as_dir=. 27502 for ac_exec_ext in '' $ac_executable_extensions; do 27503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27504 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 27505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27506 break 2 27507 fi 27508 done 27509 done 27510 IFS=$as_save_IFS 27511 27512 fi 27513 fi 27514 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 27515 if test -n "$PROPER_COMPILER_CC"; then 27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27517 $as_echo "$PROPER_COMPILER_CC" >&6; } 27518 else 27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27520 $as_echo "no" >&6; } 27521 fi 27522 27523 27524 test -n "$PROPER_COMPILER_CC" && break 27525 done 27526 fi 27527 if test -z "$PROPER_COMPILER_CC"; then 27528 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 27529 for ac_prog in $TOOLCHAIN_CC_BINARY 27530 do 27531 # Extract the first word of "$ac_prog", so it can be a program name with args. 27532 set dummy $ac_prog; ac_word=$2 27533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27534 $as_echo_n "checking for $ac_word... " >&6; } 27535 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 27536 $as_echo_n "(cached) " >&6 27537 else 27538 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 27539 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 27540 else 27541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27542 for as_dir in $PATH 27543 do 27544 IFS=$as_save_IFS 27545 test -z "$as_dir" && as_dir=. 27546 for ac_exec_ext in '' $ac_executable_extensions; do 27547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27548 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 27549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27550 break 2 27551 fi 27552 done 27553 done 27554 IFS=$as_save_IFS 27555 27556 fi 27557 fi 27558 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 27559 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 27560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 27561 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 27562 else 27563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27564 $as_echo "no" >&6; } 27565 fi 27566 27567 27568 test -n "$ac_ct_PROPER_COMPILER_CC" && break 27569 done 27570 27571 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 27572 PROPER_COMPILER_CC="" 27573 else 27574 case $cross_compiling:$ac_tool_warned in 27575 yes:) 27576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27578 ac_tool_warned=yes ;; 27579 esac 27580 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 27581 fi 27582 fi 27583 27584 27585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27586 27587 # First separate the path from the arguments. This will split at the first 27588 # space. 27589 complete="$PROPER_COMPILER_CC" 27590 path="${complete%% *}" 27591 tmp="$complete EOL" 27592 arguments="${tmp#* }" 27593 27594 # Input might be given as Windows format, start by converting to 27595 # unix format. 27596 new_path=`$CYGPATH -u "$path"` 27597 27598 # Now try to locate executable using which 27599 new_path=`$WHICH "$new_path" 2> /dev/null` 27600 # bat and cmd files are not always considered executable in cygwin causing which 27601 # to not find them 27602 if test "x$new_path" = x \ 27603 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27604 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27605 new_path=`$CYGPATH -u "$path"` 27606 fi 27607 if test "x$new_path" = x; then 27608 # Oops. Which didn't find the executable. 27609 # The splitting of arguments from the executable at a space might have been incorrect, 27610 # since paths with space are more likely in Windows. Give it another try with the whole 27611 # argument. 27612 path="$complete" 27613 arguments="EOL" 27614 new_path=`$CYGPATH -u "$path"` 27615 new_path=`$WHICH "$new_path" 2> /dev/null` 27616 # bat and cmd files are not always considered executable in cygwin causing which 27617 # to not find them 27618 if test "x$new_path" = x \ 27619 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27620 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27621 new_path=`$CYGPATH -u "$path"` 27622 fi 27623 if test "x$new_path" = x; then 27624 # It's still not found. Now this is an unrecoverable error. 27625 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27626 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27627 has_space=`$ECHO "$complete" | $GREP " "` 27628 if test "x$has_space" != x; then 27629 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27630 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27631 fi 27632 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27633 fi 27634 fi 27635 27636 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27637 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27638 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27639 # "foo.exe" is OK but "foo" is an error. 27640 # 27641 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27642 # It is also a way to make sure we got the proper file name for the real test later on. 27643 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27644 if test "x$test_shortpath" = x; then 27645 # Short path failed, file does not exist as specified. 27646 # Try adding .exe or .cmd 27647 if test -f "${new_path}.exe"; then 27648 input_to_shortpath="${new_path}.exe" 27649 elif test -f "${new_path}.cmd"; then 27650 input_to_shortpath="${new_path}.cmd" 27651 else 27652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 27653 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 27654 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27655 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27656 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27657 fi 27658 else 27659 input_to_shortpath="$new_path" 27660 fi 27661 27662 # Call helper function which possibly converts this using DOS-style short mode. 27663 # If so, the updated path is stored in $new_path. 27664 new_path="$input_to_shortpath" 27665 27666 input_path="$input_to_shortpath" 27667 # Check if we need to convert this using DOS-style short mode. If the path 27668 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27669 # take no chances and rewrite it. 27670 # Note: m4 eats our [], so we need to use [ and ] instead. 27671 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27672 if test "x$has_forbidden_chars" != x; then 27673 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27674 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27675 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27676 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27677 # Going to short mode and back again did indeed matter. Since short mode is 27678 # case insensitive, let's make it lowercase to improve readability. 27679 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27680 # Now convert it back to Unix-style (cygpath) 27681 input_path=`$CYGPATH -u "$shortmode_path"` 27682 new_path="$input_path" 27683 fi 27684 fi 27685 27686 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27687 if test "x$test_cygdrive_prefix" = x; then 27688 # As a simple fix, exclude /usr/bin since it's not a real path. 27689 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27690 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27691 # a path prefixed by /cygdrive for fixpath to work. 27692 new_path="$CYGWIN_ROOT_PATH$input_path" 27693 fi 27694 fi 27695 27696 # remove trailing .exe if any 27697 new_path="${new_path/%.exe/}" 27698 27699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27700 27701 # First separate the path from the arguments. This will split at the first 27702 # space. 27703 complete="$PROPER_COMPILER_CC" 27704 path="${complete%% *}" 27705 tmp="$complete EOL" 27706 arguments="${tmp#* }" 27707 27708 # Input might be given as Windows format, start by converting to 27709 # unix format. 27710 new_path="$path" 27711 27712 windows_path="$new_path" 27713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27714 unix_path=`$CYGPATH -u "$windows_path"` 27715 new_path="$unix_path" 27716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27718 new_path="$unix_path" 27719 fi 27720 27721 27722 # Now try to locate executable using which 27723 new_path=`$WHICH "$new_path" 2> /dev/null` 27724 27725 if test "x$new_path" = x; then 27726 # Oops. Which didn't find the executable. 27727 # The splitting of arguments from the executable at a space might have been incorrect, 27728 # since paths with space are more likely in Windows. Give it another try with the whole 27729 # argument. 27730 path="$complete" 27731 arguments="EOL" 27732 new_path="$path" 27733 27734 windows_path="$new_path" 27735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27736 unix_path=`$CYGPATH -u "$windows_path"` 27737 new_path="$unix_path" 27738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27740 new_path="$unix_path" 27741 fi 27742 27743 27744 new_path=`$WHICH "$new_path" 2> /dev/null` 27745 # bat and cmd files are not always considered executable in MSYS causing which 27746 # to not find them 27747 if test "x$new_path" = x \ 27748 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27749 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27750 new_path="$path" 27751 27752 windows_path="$new_path" 27753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27754 unix_path=`$CYGPATH -u "$windows_path"` 27755 new_path="$unix_path" 27756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27757 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27758 new_path="$unix_path" 27759 fi 27760 27761 fi 27762 27763 if test "x$new_path" = x; then 27764 # It's still not found. Now this is an unrecoverable error. 27765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27766 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27767 has_space=`$ECHO "$complete" | $GREP " "` 27768 if test "x$has_space" != x; then 27769 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27770 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27771 fi 27772 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27773 fi 27774 fi 27775 27776 # Now new_path has a complete unix path to the binary 27777 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27778 # Keep paths in /bin as-is, but remove trailing .exe if any 27779 new_path="${new_path/%.exe/}" 27780 # Do not save /bin paths to all_fixpath_prefixes! 27781 else 27782 # Not in mixed or Windows style, start by that. 27783 new_path=`cmd //c echo $new_path` 27784 27785 input_path="$new_path" 27786 # Check if we need to convert this using DOS-style short mode. If the path 27787 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27788 # take no chances and rewrite it. 27789 # Note: m4 eats our [], so we need to use [ and ] instead. 27790 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27791 if test "x$has_forbidden_chars" != x; then 27792 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27793 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27794 fi 27795 27796 # Output is in $new_path 27797 27798 windows_path="$new_path" 27799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27800 unix_path=`$CYGPATH -u "$windows_path"` 27801 new_path="$unix_path" 27802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27804 new_path="$unix_path" 27805 fi 27806 27807 # remove trailing .exe if any 27808 new_path="${new_path/%.exe/}" 27809 27810 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27811 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27812 fi 27813 27814 else 27815 # We're on a posix platform. Hooray! :) 27816 # First separate the path from the arguments. This will split at the first 27817 # space. 27818 complete="$PROPER_COMPILER_CC" 27819 path="${complete%% *}" 27820 tmp="$complete EOL" 27821 arguments="${tmp#* }" 27822 27823 # Cannot rely on the command "which" here since it doesn't always work. 27824 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27825 if test -z "$is_absolute_path"; then 27826 # Path to executable is not absolute. Find it. 27827 IFS_save="$IFS" 27828 IFS=: 27829 for p in $PATH; do 27830 if test -f "$p/$path" && test -x "$p/$path"; then 27831 new_path="$p/$path" 27832 break 27833 fi 27834 done 27835 IFS="$IFS_save" 27836 else 27837 # This is an absolute path, we can use it without further modifications. 27838 new_path="$path" 27839 fi 27840 27841 if test "x$new_path" = x; then 27842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27843 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27844 has_space=`$ECHO "$complete" | $GREP " "` 27845 if test "x$has_space" != x; then 27846 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27847 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27848 fi 27849 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27850 fi 27851 fi 27852 27853 # Now join together the path and the arguments once again 27854 if test "x$arguments" != xEOL; then 27855 new_complete="$new_path ${arguments% *}" 27856 else 27857 new_complete="$new_path" 27858 fi 27859 27860 if test "x$complete" != "x$new_complete"; then 27861 PROPER_COMPILER_CC="$new_complete" 27862 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 27863 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 27864 fi 27865 27866 PATH="$RETRY_COMPILER_SAVED_PATH" 27867 27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 27869 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 27870 27871 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27872 # Follow a chain of symbolic links. Use readlink 27873 # where it exists, else fall back to horribly 27874 # complicated shell code. 27875 if test "x$READLINK_TESTED" != yes; then 27876 # On MacOSX there is a readlink tool with a different 27877 # purpose than the GNU readlink tool. Check the found readlink. 27878 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27879 if test "x$ISGNU" = x; then 27880 # A readlink that we do not know how to use. 27881 # Are there other non-GNU readlinks out there? 27882 READLINK_TESTED=yes 27883 READLINK= 27884 fi 27885 fi 27886 27887 if test "x$READLINK" != x; then 27888 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 27889 else 27890 # Save the current directory for restoring afterwards 27891 STARTDIR=$PWD 27892 COUNTER=0 27893 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 27894 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 27895 cd $sym_link_dir 27896 # Use -P flag to resolve symlinks in directories. 27897 cd `$THEPWDCMD -P` 27898 sym_link_dir=`$THEPWDCMD -P` 27899 # Resolve file symlinks 27900 while test $COUNTER -lt 20; do 27901 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27902 if test "x$ISLINK" == x; then 27903 # This is not a symbolic link! We are done! 27904 break 27905 fi 27906 # Again resolve directory symlinks since the target of the just found 27907 # link could be in a different directory 27908 cd `$DIRNAME $ISLINK` 27909 sym_link_dir=`$THEPWDCMD -P` 27910 sym_link_file=`$BASENAME $ISLINK` 27911 let COUNTER=COUNTER+1 27912 done 27913 cd $STARTDIR 27914 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 27915 fi 27916 fi 27917 27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27919 $as_echo "$PROPER_COMPILER_CC" >&6; } 27920 CC="$PROPER_COMPILER_CC" 27921 else 27922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 27923 $as_echo "no, keeping CC" >&6; } 27924 fi 27925 fi 27926 27927 27928 COMPILER=$CC 27929 COMPILER_NAME=$COMPILER_NAME 27930 27931 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 27932 # cc -V output typically looks like 27933 # cc: Sun C 5.12 Linux_i386 2011/11/16 27934 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 27935 # Check that this is likely to be the Solaris Studio cc. 27936 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 27937 if test $? -ne 0; then 27938 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27939 { $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 27940 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27941 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27942 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27943 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27944 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27945 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27946 fi 27947 # Remove usage instructions (if present), and 27948 # collapse compiler output into a single line 27949 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27950 $SED -e 's/ *[Uu]sage:.*//'` 27951 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27952 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 27953 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 27954 # xlc -qversion output typically looks like 27955 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 27956 # Version: 11.01.0000.0015 27957 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 27958 # Check that this is likely to be the IBM XL C compiler. 27959 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 27960 if test $? -ne 0; then 27961 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27962 { $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 27963 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27964 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27965 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27966 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27967 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27968 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27969 fi 27970 # Collapse compiler output into a single line 27971 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27972 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27973 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 27974 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 27975 # There is no specific version flag, but all output starts with a version string. 27976 # First line typically looks something like: 27977 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 27978 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 27979 # Check that this is likely to be Microsoft CL.EXE. 27980 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 27981 if test $? -ne 0; then 27982 { $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 27983 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27984 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27985 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27986 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27987 fi 27988 # Collapse compiler output into a single line 27989 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27990 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27991 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 27992 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 27993 # gcc --version output typically looks like 27994 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 27995 # Copyright (C) 2013 Free Software Foundation, Inc. 27996 # This is free software; see the source for copying conditions. There is NO 27997 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27998 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27999 # Check that this is likely to be GCC. 28000 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28001 if test $? -ne 0; then 28002 { $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 28003 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28004 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28005 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28006 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28007 fi 28008 # Remove Copyright and legalese from version string, and 28009 # collapse into a single line 28010 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28011 $SED -e 's/ *Copyright .*//'` 28012 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28013 $SED -e 's/^.* \([1-9][0-9]*\.[0-9.]*\) .*$/\1/'` 28014 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28015 # clang --version output typically looks like 28016 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28017 # clang version 3.3 (tags/RELEASE_33/final) 28018 # or 28019 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28020 # Target: x86_64-pc-linux-gnu 28021 # Thread model: posix 28022 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28023 # Check that this is likely to be clang 28024 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28025 if test $? -ne 0; then 28026 { $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 28027 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28028 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28029 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28030 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28031 fi 28032 # Collapse compiler output into a single line 28033 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28034 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28035 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28036 28037 else 28038 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28039 fi 28040 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28041 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28042 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28043 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28044 28045 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28046 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28047 28048 28049 # Now that we have resolved CC ourself, let autoconf have its go at it 28050 ac_ext=c 28051 ac_cpp='$CPP $CPPFLAGS' 28052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28054 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28055 if test -n "$ac_tool_prefix"; then 28056 for ac_prog in $CC 28057 do 28058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28061 $as_echo_n "checking for $ac_word... " >&6; } 28062 if ${ac_cv_prog_CC+:} false; then : 28063 $as_echo_n "(cached) " >&6 28064 else 28065 if test -n "$CC"; then 28066 ac_cv_prog_CC="$CC" # Let the user override the test. 28067 else 28068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28069 for as_dir in $PATH 28070 do 28071 IFS=$as_save_IFS 28072 test -z "$as_dir" && as_dir=. 28073 for ac_exec_ext in '' $ac_executable_extensions; do 28074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28075 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28077 break 2 28078 fi 28079 done 28080 done 28081 IFS=$as_save_IFS 28082 28083 fi 28084 fi 28085 CC=$ac_cv_prog_CC 28086 if test -n "$CC"; then 28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28088 $as_echo "$CC" >&6; } 28089 else 28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28091 $as_echo "no" >&6; } 28092 fi 28093 28094 28095 test -n "$CC" && break 28096 done 28097 fi 28098 if test -z "$CC"; then 28099 ac_ct_CC=$CC 28100 for ac_prog in $CC 28101 do 28102 # Extract the first word of "$ac_prog", so it can be a program name with args. 28103 set dummy $ac_prog; ac_word=$2 28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28105 $as_echo_n "checking for $ac_word... " >&6; } 28106 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28107 $as_echo_n "(cached) " >&6 28108 else 28109 if test -n "$ac_ct_CC"; then 28110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28111 else 28112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28113 for as_dir in $PATH 28114 do 28115 IFS=$as_save_IFS 28116 test -z "$as_dir" && as_dir=. 28117 for ac_exec_ext in '' $ac_executable_extensions; do 28118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28119 ac_cv_prog_ac_ct_CC="$ac_prog" 28120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28121 break 2 28122 fi 28123 done 28124 done 28125 IFS=$as_save_IFS 28126 28127 fi 28128 fi 28129 ac_ct_CC=$ac_cv_prog_ac_ct_CC 28130 if test -n "$ac_ct_CC"; then 28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28132 $as_echo "$ac_ct_CC" >&6; } 28133 else 28134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28135 $as_echo "no" >&6; } 28136 fi 28137 28138 28139 test -n "$ac_ct_CC" && break 28140 done 28141 28142 if test "x$ac_ct_CC" = x; then 28143 CC="" 28144 else 28145 case $cross_compiling:$ac_tool_warned in 28146 yes:) 28147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28149 ac_tool_warned=yes ;; 28150 esac 28151 CC=$ac_ct_CC 28152 fi 28153 fi 28154 28155 28156 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28158 as_fn_error $? "no acceptable C compiler found in \$PATH 28159 See \`config.log' for more details" "$LINENO" 5; } 28160 28161 # Provide some information about the compiler. 28162 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28163 set X $ac_compile 28164 ac_compiler=$2 28165 for ac_option in --version -v -V -qversion; do 28166 { { ac_try="$ac_compiler $ac_option >&5" 28167 case "(($ac_try" in 28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28169 *) ac_try_echo=$ac_try;; 28170 esac 28171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28172 $as_echo "$ac_try_echo"; } >&5 28173 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28174 ac_status=$? 28175 if test -s conftest.err; then 28176 sed '10a\ 28177 ... rest of stderr output deleted ... 28178 10q' conftest.err >conftest.er1 28179 cat conftest.er1 >&5 28180 fi 28181 rm -f conftest.er1 conftest.err 28182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28183 test $ac_status = 0; } 28184 done 28185 28186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28187 /* end confdefs.h. */ 28188 28189 int 28190 main () 28191 { 28192 28193 ; 28194 return 0; 28195 } 28196 _ACEOF 28197 ac_clean_files_save=$ac_clean_files 28198 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 28199 # Try to create an executable without -o first, disregard a.out. 28200 # It will help us diagnose broken compilers, and finding out an intuition 28201 # of exeext. 28202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 28203 $as_echo_n "checking whether the C compiler works... " >&6; } 28204 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 28205 28206 # The possible output files: 28207 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 28208 28209 ac_rmfiles= 28210 for ac_file in $ac_files 28211 do 28212 case $ac_file in 28213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28214 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 28215 esac 28216 done 28217 rm -f $ac_rmfiles 28218 28219 if { { ac_try="$ac_link_default" 28220 case "(($ac_try" in 28221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28222 *) ac_try_echo=$ac_try;; 28223 esac 28224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28225 $as_echo "$ac_try_echo"; } >&5 28226 (eval "$ac_link_default") 2>&5 28227 ac_status=$? 28228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28229 test $ac_status = 0; }; then : 28230 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 28231 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 28232 # in a Makefile. We should not override ac_cv_exeext if it was cached, 28233 # so that the user can short-circuit this test for compilers unknown to 28234 # Autoconf. 28235 for ac_file in $ac_files '' 28236 do 28237 test -f "$ac_file" || continue 28238 case $ac_file in 28239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 28240 ;; 28241 [ab].out ) 28242 # We found the default executable, but exeext='' is most 28243 # certainly right. 28244 break;; 28245 *.* ) 28246 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 28247 then :; else 28248 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28249 fi 28250 # We set ac_cv_exeext here because the later test for it is not 28251 # safe: cross compilers may not add the suffix if given an `-o' 28252 # argument, so we may need to know it at that point already. 28253 # Even if this section looks crufty: it has the advantage of 28254 # actually working. 28255 break;; 28256 * ) 28257 break;; 28258 esac 28259 done 28260 test "$ac_cv_exeext" = no && ac_cv_exeext= 28261 28262 else 28263 ac_file='' 28264 fi 28265 if test -z "$ac_file"; then : 28266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28267 $as_echo "no" >&6; } 28268 $as_echo "$as_me: failed program was:" >&5 28269 sed 's/^/| /' conftest.$ac_ext >&5 28270 28271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28273 as_fn_error 77 "C compiler cannot create executables 28274 See \`config.log' for more details" "$LINENO" 5; } 28275 else 28276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28277 $as_echo "yes" >&6; } 28278 fi 28279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 28280 $as_echo_n "checking for C compiler default output file name... " >&6; } 28281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 28282 $as_echo "$ac_file" >&6; } 28283 ac_exeext=$ac_cv_exeext 28284 28285 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 28286 ac_clean_files=$ac_clean_files_save 28287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 28288 $as_echo_n "checking for suffix of executables... " >&6; } 28289 if { { ac_try="$ac_link" 28290 case "(($ac_try" in 28291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28292 *) ac_try_echo=$ac_try;; 28293 esac 28294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28295 $as_echo "$ac_try_echo"; } >&5 28296 (eval "$ac_link") 2>&5 28297 ac_status=$? 28298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28299 test $ac_status = 0; }; then : 28300 # If both `conftest.exe' and `conftest' are `present' (well, observable) 28301 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 28302 # work properly (i.e., refer to `conftest.exe'), while it won't with 28303 # `rm'. 28304 for ac_file in conftest.exe conftest conftest.*; do 28305 test -f "$ac_file" || continue 28306 case $ac_file in 28307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28309 break;; 28310 * ) break;; 28311 esac 28312 done 28313 else 28314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28316 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 28317 See \`config.log' for more details" "$LINENO" 5; } 28318 fi 28319 rm -f conftest conftest$ac_cv_exeext 28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 28321 $as_echo "$ac_cv_exeext" >&6; } 28322 28323 rm -f conftest.$ac_ext 28324 EXEEXT=$ac_cv_exeext 28325 ac_exeext=$EXEEXT 28326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28327 /* end confdefs.h. */ 28328 #include <stdio.h> 28329 int 28330 main () 28331 { 28332 FILE *f = fopen ("conftest.out", "w"); 28333 return ferror (f) || fclose (f) != 0; 28334 28335 ; 28336 return 0; 28337 } 28338 _ACEOF 28339 ac_clean_files="$ac_clean_files conftest.out" 28340 # Check that the compiler produces executables we can run. If not, either 28341 # the compiler is broken, or we cross compile. 28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 28343 $as_echo_n "checking whether we are cross compiling... " >&6; } 28344 if test "$cross_compiling" != yes; then 28345 { { ac_try="$ac_link" 28346 case "(($ac_try" in 28347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28348 *) ac_try_echo=$ac_try;; 28349 esac 28350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28351 $as_echo "$ac_try_echo"; } >&5 28352 (eval "$ac_link") 2>&5 28353 ac_status=$? 28354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28355 test $ac_status = 0; } 28356 if { ac_try='./conftest$ac_cv_exeext' 28357 { { case "(($ac_try" in 28358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28359 *) ac_try_echo=$ac_try;; 28360 esac 28361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28362 $as_echo "$ac_try_echo"; } >&5 28363 (eval "$ac_try") 2>&5 28364 ac_status=$? 28365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28366 test $ac_status = 0; }; }; then 28367 cross_compiling=no 28368 else 28369 if test "$cross_compiling" = maybe; then 28370 cross_compiling=yes 28371 else 28372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28374 as_fn_error $? "cannot run C compiled programs. 28375 If you meant to cross compile, use \`--host'. 28376 See \`config.log' for more details" "$LINENO" 5; } 28377 fi 28378 fi 28379 fi 28380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 28381 $as_echo "$cross_compiling" >&6; } 28382 28383 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 28384 ac_clean_files=$ac_clean_files_save 28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 28386 $as_echo_n "checking for suffix of object files... " >&6; } 28387 if ${ac_cv_objext+:} false; then : 28388 $as_echo_n "(cached) " >&6 28389 else 28390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28391 /* end confdefs.h. */ 28392 28393 int 28394 main () 28395 { 28396 28397 ; 28398 return 0; 28399 } 28400 _ACEOF 28401 rm -f conftest.o conftest.obj 28402 if { { ac_try="$ac_compile" 28403 case "(($ac_try" in 28404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28405 *) ac_try_echo=$ac_try;; 28406 esac 28407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28408 $as_echo "$ac_try_echo"; } >&5 28409 (eval "$ac_compile") 2>&5 28410 ac_status=$? 28411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28412 test $ac_status = 0; }; then : 28413 for ac_file in conftest.o conftest.obj conftest.*; do 28414 test -f "$ac_file" || continue; 28415 case $ac_file in 28416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 28417 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 28418 break;; 28419 esac 28420 done 28421 else 28422 $as_echo "$as_me: failed program was:" >&5 28423 sed 's/^/| /' conftest.$ac_ext >&5 28424 28425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28427 as_fn_error $? "cannot compute suffix of object files: cannot compile 28428 See \`config.log' for more details" "$LINENO" 5; } 28429 fi 28430 rm -f conftest.$ac_cv_objext conftest.$ac_ext 28431 fi 28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 28433 $as_echo "$ac_cv_objext" >&6; } 28434 OBJEXT=$ac_cv_objext 28435 ac_objext=$OBJEXT 28436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 28437 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 28438 if ${ac_cv_c_compiler_gnu+:} false; then : 28439 $as_echo_n "(cached) " >&6 28440 else 28441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28442 /* end confdefs.h. */ 28443 28444 int 28445 main () 28446 { 28447 #ifndef __GNUC__ 28448 choke me 28449 #endif 28450 28451 ; 28452 return 0; 28453 } 28454 _ACEOF 28455 if ac_fn_c_try_compile "$LINENO"; then : 28456 ac_compiler_gnu=yes 28457 else 28458 ac_compiler_gnu=no 28459 fi 28460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28461 ac_cv_c_compiler_gnu=$ac_compiler_gnu 28462 28463 fi 28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 28465 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 28466 if test $ac_compiler_gnu = yes; then 28467 GCC=yes 28468 else 28469 GCC= 28470 fi 28471 ac_test_CFLAGS=${CFLAGS+set} 28472 ac_save_CFLAGS=$CFLAGS 28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 28474 $as_echo_n "checking whether $CC accepts -g... " >&6; } 28475 if ${ac_cv_prog_cc_g+:} false; then : 28476 $as_echo_n "(cached) " >&6 28477 else 28478 ac_save_c_werror_flag=$ac_c_werror_flag 28479 ac_c_werror_flag=yes 28480 ac_cv_prog_cc_g=no 28481 CFLAGS="-g" 28482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28483 /* end confdefs.h. */ 28484 28485 int 28486 main () 28487 { 28488 28489 ; 28490 return 0; 28491 } 28492 _ACEOF 28493 if ac_fn_c_try_compile "$LINENO"; then : 28494 ac_cv_prog_cc_g=yes 28495 else 28496 CFLAGS="" 28497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28498 /* end confdefs.h. */ 28499 28500 int 28501 main () 28502 { 28503 28504 ; 28505 return 0; 28506 } 28507 _ACEOF 28508 if ac_fn_c_try_compile "$LINENO"; then : 28509 28510 else 28511 ac_c_werror_flag=$ac_save_c_werror_flag 28512 CFLAGS="-g" 28513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28514 /* end confdefs.h. */ 28515 28516 int 28517 main () 28518 { 28519 28520 ; 28521 return 0; 28522 } 28523 _ACEOF 28524 if ac_fn_c_try_compile "$LINENO"; then : 28525 ac_cv_prog_cc_g=yes 28526 fi 28527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28528 fi 28529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28530 fi 28531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28532 ac_c_werror_flag=$ac_save_c_werror_flag 28533 fi 28534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 28535 $as_echo "$ac_cv_prog_cc_g" >&6; } 28536 if test "$ac_test_CFLAGS" = set; then 28537 CFLAGS=$ac_save_CFLAGS 28538 elif test $ac_cv_prog_cc_g = yes; then 28539 if test "$GCC" = yes; then 28540 CFLAGS="-g -O2" 28541 else 28542 CFLAGS="-g" 28543 fi 28544 else 28545 if test "$GCC" = yes; then 28546 CFLAGS="-O2" 28547 else 28548 CFLAGS= 28549 fi 28550 fi 28551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 28552 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 28553 if ${ac_cv_prog_cc_c89+:} false; then : 28554 $as_echo_n "(cached) " >&6 28555 else 28556 ac_cv_prog_cc_c89=no 28557 ac_save_CC=$CC 28558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28559 /* end confdefs.h. */ 28560 #include <stdarg.h> 28561 #include <stdio.h> 28562 struct stat; 28563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 28564 struct buf { int x; }; 28565 FILE * (*rcsopen) (struct buf *, struct stat *, int); 28566 static char *e (p, i) 28567 char **p; 28568 int i; 28569 { 28570 return p[i]; 28571 } 28572 static char *f (char * (*g) (char **, int), char **p, ...) 28573 { 28574 char *s; 28575 va_list v; 28576 va_start (v,p); 28577 s = g (p, va_arg (v,int)); 28578 va_end (v); 28579 return s; 28580 } 28581 28582 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 28583 function prototypes and stuff, but not '\xHH' hex character constants. 28584 These don't provoke an error unfortunately, instead are silently treated 28585 as 'x'. The following induces an error, until -std is added to get 28586 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 28587 array size at least. It's necessary to write '\x00'==0 to get something 28588 that's true only with -std. */ 28589 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 28590 28591 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 28592 inside strings and character constants. */ 28593 #define FOO(x) 'x' 28594 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 28595 28596 int test (int i, double x); 28597 struct s1 {int (*f) (int a);}; 28598 struct s2 {int (*f) (double a);}; 28599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 28600 int argc; 28601 char **argv; 28602 int 28603 main () 28604 { 28605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 28606 ; 28607 return 0; 28608 } 28609 _ACEOF 28610 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 28611 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 28612 do 28613 CC="$ac_save_CC $ac_arg" 28614 if ac_fn_c_try_compile "$LINENO"; then : 28615 ac_cv_prog_cc_c89=$ac_arg 28616 fi 28617 rm -f core conftest.err conftest.$ac_objext 28618 test "x$ac_cv_prog_cc_c89" != "xno" && break 28619 done 28620 rm -f conftest.$ac_ext 28621 CC=$ac_save_CC 28622 28623 fi 28624 # AC_CACHE_VAL 28625 case "x$ac_cv_prog_cc_c89" in 28626 x) 28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 28628 $as_echo "none needed" >&6; } ;; 28629 xno) 28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 28631 $as_echo "unsupported" >&6; } ;; 28632 *) 28633 CC="$CC $ac_cv_prog_cc_c89" 28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 28635 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 28636 esac 28637 if test "x$ac_cv_prog_cc_c89" != xno; then : 28638 28639 fi 28640 28641 ac_ext=cpp 28642 ac_cpp='$CXXCPP $CPPFLAGS' 28643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28646 28647 28648 28649 COMPILER_NAME=C++ 28650 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 28651 28652 if test "x$CXX" != x; then 28653 # User has supplied compiler name already, always let that override. 28654 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 28655 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 28656 if test "x`basename $CXX`" = "x$CXX"; then 28657 # A command without a complete path is provided, search $PATH. 28658 28659 for ac_prog in $CXX 28660 do 28661 # Extract the first word of "$ac_prog", so it can be a program name with args. 28662 set dummy $ac_prog; ac_word=$2 28663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28664 $as_echo_n "checking for $ac_word... " >&6; } 28665 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 28666 $as_echo_n "(cached) " >&6 28667 else 28668 case $POTENTIAL_CXX in 28669 [\\/]* | ?:[\\/]*) 28670 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 28671 ;; 28672 *) 28673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28674 for as_dir in $PATH 28675 do 28676 IFS=$as_save_IFS 28677 test -z "$as_dir" && as_dir=. 28678 for ac_exec_ext in '' $ac_executable_extensions; do 28679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28680 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 28681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28682 break 2 28683 fi 28684 done 28685 done 28686 IFS=$as_save_IFS 28687 28688 ;; 28689 esac 28690 fi 28691 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 28692 if test -n "$POTENTIAL_CXX"; then 28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 28694 $as_echo "$POTENTIAL_CXX" >&6; } 28695 else 28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28697 $as_echo "no" >&6; } 28698 fi 28699 28700 28701 test -n "$POTENTIAL_CXX" && break 28702 done 28703 28704 if test "x$POTENTIAL_CXX" != x; then 28705 CXX=$POTENTIAL_CXX 28706 else 28707 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 28708 fi 28709 else 28710 # Otherwise it might already be a complete path 28711 if test ! -x "$CXX"; then 28712 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 28713 fi 28714 fi 28715 else 28716 # No user supplied value. Locate compiler ourselves. 28717 28718 # If we are cross compiling, assume cross compilation tools follows the 28719 # cross compilation standard where they are prefixed with the autoconf 28720 # standard name for the target. For example the binary 28721 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 28722 # If we are not cross compiling, then the default compiler name will be 28723 # used. 28724 28725 CXX= 28726 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 28727 # before checking the rest of the PATH. 28728 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 28729 # step, this should not be necessary. 28730 if test -n "$TOOLCHAIN_PATH"; then 28731 PATH_save="$PATH" 28732 PATH="$TOOLCHAIN_PATH" 28733 for ac_prog in $SEARCH_LIST 28734 do 28735 # Extract the first word of "$ac_prog", so it can be a program name with args. 28736 set dummy $ac_prog; ac_word=$2 28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28738 $as_echo_n "checking for $ac_word... " >&6; } 28739 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 28740 $as_echo_n "(cached) " >&6 28741 else 28742 case $TOOLCHAIN_PATH_CXX in 28743 [\\/]* | ?:[\\/]*) 28744 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 28745 ;; 28746 *) 28747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28748 for as_dir in $PATH 28749 do 28750 IFS=$as_save_IFS 28751 test -z "$as_dir" && as_dir=. 28752 for ac_exec_ext in '' $ac_executable_extensions; do 28753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28754 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 28755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28756 break 2 28757 fi 28758 done 28759 done 28760 IFS=$as_save_IFS 28761 28762 ;; 28763 esac 28764 fi 28765 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 28766 if test -n "$TOOLCHAIN_PATH_CXX"; then 28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 28768 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 28769 else 28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28771 $as_echo "no" >&6; } 28772 fi 28773 28774 28775 test -n "$TOOLCHAIN_PATH_CXX" && break 28776 done 28777 28778 CXX=$TOOLCHAIN_PATH_CXX 28779 PATH="$PATH_save" 28780 fi 28781 28782 # AC_PATH_PROGS can't be run multiple times with the same variable, 28783 # so create a new name for this run. 28784 if test "x$CXX" = x; then 28785 for ac_prog in $TOOLCHAIN_CXX_BINARY 28786 do 28787 # Extract the first word of "$ac_prog", so it can be a program name with args. 28788 set dummy $ac_prog; ac_word=$2 28789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28790 $as_echo_n "checking for $ac_word... " >&6; } 28791 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 28792 $as_echo_n "(cached) " >&6 28793 else 28794 case $POTENTIAL_CXX in 28795 [\\/]* | ?:[\\/]*) 28796 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 28797 ;; 28798 *) 28799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28800 for as_dir in $PATH 28801 do 28802 IFS=$as_save_IFS 28803 test -z "$as_dir" && as_dir=. 28804 for ac_exec_ext in '' $ac_executable_extensions; do 28805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28806 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 28807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28808 break 2 28809 fi 28810 done 28811 done 28812 IFS=$as_save_IFS 28813 28814 ;; 28815 esac 28816 fi 28817 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 28818 if test -n "$POTENTIAL_CXX"; then 28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 28820 $as_echo "$POTENTIAL_CXX" >&6; } 28821 else 28822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28823 $as_echo "no" >&6; } 28824 fi 28825 28826 28827 test -n "$POTENTIAL_CXX" && break 28828 done 28829 28830 CXX=$POTENTIAL_CXX 28831 fi 28832 28833 if test "x$CXX" = x; then 28834 28835 # Print a helpful message on how to acquire the necessary build dependency. 28836 # devkit is the help tag: freetype, cups, pulse, alsa etc 28837 MISSING_DEPENDENCY=devkit 28838 28839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28840 cygwin_help $MISSING_DEPENDENCY 28841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28842 msys_help $MISSING_DEPENDENCY 28843 else 28844 PKGHANDLER_COMMAND= 28845 28846 case $PKGHANDLER in 28847 apt-get) 28848 apt_help $MISSING_DEPENDENCY ;; 28849 yum) 28850 yum_help $MISSING_DEPENDENCY ;; 28851 port) 28852 port_help $MISSING_DEPENDENCY ;; 28853 pkgutil) 28854 pkgutil_help $MISSING_DEPENDENCY ;; 28855 pkgadd) 28856 pkgadd_help $MISSING_DEPENDENCY ;; 28857 esac 28858 28859 if test "x$PKGHANDLER_COMMAND" != x; then 28860 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28861 fi 28862 fi 28863 28864 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28865 fi 28866 fi 28867 28868 # Now we have a compiler binary in CXX. Make sure it's okay. 28869 28870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28871 28872 # First separate the path from the arguments. This will split at the first 28873 # space. 28874 complete="$CXX" 28875 path="${complete%% *}" 28876 tmp="$complete EOL" 28877 arguments="${tmp#* }" 28878 28879 # Input might be given as Windows format, start by converting to 28880 # unix format. 28881 new_path=`$CYGPATH -u "$path"` 28882 28883 # Now try to locate executable using which 28884 new_path=`$WHICH "$new_path" 2> /dev/null` 28885 # bat and cmd files are not always considered executable in cygwin causing which 28886 # to not find them 28887 if test "x$new_path" = x \ 28888 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28889 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28890 new_path=`$CYGPATH -u "$path"` 28891 fi 28892 if test "x$new_path" = x; then 28893 # Oops. Which didn't find the executable. 28894 # The splitting of arguments from the executable at a space might have been incorrect, 28895 # since paths with space are more likely in Windows. Give it another try with the whole 28896 # argument. 28897 path="$complete" 28898 arguments="EOL" 28899 new_path=`$CYGPATH -u "$path"` 28900 new_path=`$WHICH "$new_path" 2> /dev/null` 28901 # bat and cmd files are not always considered executable in cygwin causing which 28902 # to not find them 28903 if test "x$new_path" = x \ 28904 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28905 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28906 new_path=`$CYGPATH -u "$path"` 28907 fi 28908 if test "x$new_path" = x; then 28909 # It's still not found. Now this is an unrecoverable error. 28910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28911 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28912 has_space=`$ECHO "$complete" | $GREP " "` 28913 if test "x$has_space" != x; then 28914 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28915 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28916 fi 28917 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28918 fi 28919 fi 28920 28921 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28922 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28923 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28924 # "foo.exe" is OK but "foo" is an error. 28925 # 28926 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28927 # It is also a way to make sure we got the proper file name for the real test later on. 28928 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28929 if test "x$test_shortpath" = x; then 28930 # Short path failed, file does not exist as specified. 28931 # Try adding .exe or .cmd 28932 if test -f "${new_path}.exe"; then 28933 input_to_shortpath="${new_path}.exe" 28934 elif test -f "${new_path}.cmd"; then 28935 input_to_shortpath="${new_path}.cmd" 28936 else 28937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 28938 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 28939 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28940 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28941 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28942 fi 28943 else 28944 input_to_shortpath="$new_path" 28945 fi 28946 28947 # Call helper function which possibly converts this using DOS-style short mode. 28948 # If so, the updated path is stored in $new_path. 28949 new_path="$input_to_shortpath" 28950 28951 input_path="$input_to_shortpath" 28952 # Check if we need to convert this using DOS-style short mode. If the path 28953 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28954 # take no chances and rewrite it. 28955 # Note: m4 eats our [], so we need to use [ and ] instead. 28956 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28957 if test "x$has_forbidden_chars" != x; then 28958 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28959 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28960 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28961 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28962 # Going to short mode and back again did indeed matter. Since short mode is 28963 # case insensitive, let's make it lowercase to improve readability. 28964 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28965 # Now convert it back to Unix-style (cygpath) 28966 input_path=`$CYGPATH -u "$shortmode_path"` 28967 new_path="$input_path" 28968 fi 28969 fi 28970 28971 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28972 if test "x$test_cygdrive_prefix" = x; then 28973 # As a simple fix, exclude /usr/bin since it's not a real path. 28974 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28975 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28976 # a path prefixed by /cygdrive for fixpath to work. 28977 new_path="$CYGWIN_ROOT_PATH$input_path" 28978 fi 28979 fi 28980 28981 # remove trailing .exe if any 28982 new_path="${new_path/%.exe/}" 28983 28984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28985 28986 # First separate the path from the arguments. This will split at the first 28987 # space. 28988 complete="$CXX" 28989 path="${complete%% *}" 28990 tmp="$complete EOL" 28991 arguments="${tmp#* }" 28992 28993 # Input might be given as Windows format, start by converting to 28994 # unix format. 28995 new_path="$path" 28996 28997 windows_path="$new_path" 28998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28999 unix_path=`$CYGPATH -u "$windows_path"` 29000 new_path="$unix_path" 29001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29002 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29003 new_path="$unix_path" 29004 fi 29005 29006 29007 # Now try to locate executable using which 29008 new_path=`$WHICH "$new_path" 2> /dev/null` 29009 29010 if test "x$new_path" = x; then 29011 # Oops. Which didn't find the executable. 29012 # The splitting of arguments from the executable at a space might have been incorrect, 29013 # since paths with space are more likely in Windows. Give it another try with the whole 29014 # argument. 29015 path="$complete" 29016 arguments="EOL" 29017 new_path="$path" 29018 29019 windows_path="$new_path" 29020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29021 unix_path=`$CYGPATH -u "$windows_path"` 29022 new_path="$unix_path" 29023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29025 new_path="$unix_path" 29026 fi 29027 29028 29029 new_path=`$WHICH "$new_path" 2> /dev/null` 29030 # bat and cmd files are not always considered executable in MSYS causing which 29031 # to not find them 29032 if test "x$new_path" = x \ 29033 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29034 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29035 new_path="$path" 29036 29037 windows_path="$new_path" 29038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29039 unix_path=`$CYGPATH -u "$windows_path"` 29040 new_path="$unix_path" 29041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29042 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29043 new_path="$unix_path" 29044 fi 29045 29046 fi 29047 29048 if test "x$new_path" = x; then 29049 # It's still not found. Now this is an unrecoverable error. 29050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29051 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29052 has_space=`$ECHO "$complete" | $GREP " "` 29053 if test "x$has_space" != x; then 29054 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29055 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29056 fi 29057 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29058 fi 29059 fi 29060 29061 # Now new_path has a complete unix path to the binary 29062 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29063 # Keep paths in /bin as-is, but remove trailing .exe if any 29064 new_path="${new_path/%.exe/}" 29065 # Do not save /bin paths to all_fixpath_prefixes! 29066 else 29067 # Not in mixed or Windows style, start by that. 29068 new_path=`cmd //c echo $new_path` 29069 29070 input_path="$new_path" 29071 # Check if we need to convert this using DOS-style short mode. If the path 29072 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29073 # take no chances and rewrite it. 29074 # Note: m4 eats our [], so we need to use [ and ] instead. 29075 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29076 if test "x$has_forbidden_chars" != x; then 29077 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29078 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29079 fi 29080 29081 # Output is in $new_path 29082 29083 windows_path="$new_path" 29084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29085 unix_path=`$CYGPATH -u "$windows_path"` 29086 new_path="$unix_path" 29087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29089 new_path="$unix_path" 29090 fi 29091 29092 # remove trailing .exe if any 29093 new_path="${new_path/%.exe/}" 29094 29095 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29096 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29097 fi 29098 29099 else 29100 # We're on a posix platform. Hooray! :) 29101 # First separate the path from the arguments. This will split at the first 29102 # space. 29103 complete="$CXX" 29104 path="${complete%% *}" 29105 tmp="$complete EOL" 29106 arguments="${tmp#* }" 29107 29108 # Cannot rely on the command "which" here since it doesn't always work. 29109 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29110 if test -z "$is_absolute_path"; then 29111 # Path to executable is not absolute. Find it. 29112 IFS_save="$IFS" 29113 IFS=: 29114 for p in $PATH; do 29115 if test -f "$p/$path" && test -x "$p/$path"; then 29116 new_path="$p/$path" 29117 break 29118 fi 29119 done 29120 IFS="$IFS_save" 29121 else 29122 # This is an absolute path, we can use it without further modifications. 29123 new_path="$path" 29124 fi 29125 29126 if test "x$new_path" = x; then 29127 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29128 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29129 has_space=`$ECHO "$complete" | $GREP " "` 29130 if test "x$has_space" != x; then 29131 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29132 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29133 fi 29134 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29135 fi 29136 fi 29137 29138 # Now join together the path and the arguments once again 29139 if test "x$arguments" != xEOL; then 29140 new_complete="$new_path ${arguments% *}" 29141 else 29142 new_complete="$new_path" 29143 fi 29144 29145 if test "x$complete" != "x$new_complete"; then 29146 CXX="$new_complete" 29147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29148 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29149 fi 29150 29151 TEST_COMPILER="$CXX" 29152 29153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29154 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29155 SYMLINK_ORIGINAL="$TEST_COMPILER" 29156 29157 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29158 # Follow a chain of symbolic links. Use readlink 29159 # where it exists, else fall back to horribly 29160 # complicated shell code. 29161 if test "x$READLINK_TESTED" != yes; then 29162 # On MacOSX there is a readlink tool with a different 29163 # purpose than the GNU readlink tool. Check the found readlink. 29164 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29165 if test "x$ISGNU" = x; then 29166 # A readlink that we do not know how to use. 29167 # Are there other non-GNU readlinks out there? 29168 READLINK_TESTED=yes 29169 READLINK= 29170 fi 29171 fi 29172 29173 if test "x$READLINK" != x; then 29174 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 29175 else 29176 # Save the current directory for restoring afterwards 29177 STARTDIR=$PWD 29178 COUNTER=0 29179 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 29180 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 29181 cd $sym_link_dir 29182 # Use -P flag to resolve symlinks in directories. 29183 cd `$THEPWDCMD -P` 29184 sym_link_dir=`$THEPWDCMD -P` 29185 # Resolve file symlinks 29186 while test $COUNTER -lt 20; do 29187 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29188 if test "x$ISLINK" == x; then 29189 # This is not a symbolic link! We are done! 29190 break 29191 fi 29192 # Again resolve directory symlinks since the target of the just found 29193 # link could be in a different directory 29194 cd `$DIRNAME $ISLINK` 29195 sym_link_dir=`$THEPWDCMD -P` 29196 sym_link_file=`$BASENAME $ISLINK` 29197 let COUNTER=COUNTER+1 29198 done 29199 cd $STARTDIR 29200 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 29201 fi 29202 fi 29203 29204 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 29205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 29206 $as_echo "no symlink" >&6; } 29207 else 29208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 29209 $as_echo "$SYMLINK_ORIGINAL" >&6; } 29210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 29211 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 29212 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 29213 if test "x$COMPILER_BASENAME" = "xccache"; then 29214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29215 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29216 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29217 # We want to control ccache invocation ourselves, so ignore this cc and try 29218 # searching again. 29219 29220 # Remove the path to the fake ccache cc from the PATH 29221 RETRY_COMPILER_SAVED_PATH="$PATH" 29222 COMPILER_DIRNAME=`$DIRNAME $CXX` 29223 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29224 # Try again looking for our compiler 29225 if test -n "$ac_tool_prefix"; then 29226 for ac_prog in $TOOLCHAIN_CXX_BINARY 29227 do 29228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29231 $as_echo_n "checking for $ac_word... " >&6; } 29232 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 29233 $as_echo_n "(cached) " >&6 29234 else 29235 if test -n "$PROPER_COMPILER_CXX"; then 29236 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 29237 else 29238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29239 for as_dir in $PATH 29240 do 29241 IFS=$as_save_IFS 29242 test -z "$as_dir" && as_dir=. 29243 for ac_exec_ext in '' $ac_executable_extensions; do 29244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29245 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 29246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29247 break 2 29248 fi 29249 done 29250 done 29251 IFS=$as_save_IFS 29252 29253 fi 29254 fi 29255 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 29256 if test -n "$PROPER_COMPILER_CXX"; then 29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29258 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29259 else 29260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29261 $as_echo "no" >&6; } 29262 fi 29263 29264 29265 test -n "$PROPER_COMPILER_CXX" && break 29266 done 29267 fi 29268 if test -z "$PROPER_COMPILER_CXX"; then 29269 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 29270 for ac_prog in $TOOLCHAIN_CXX_BINARY 29271 do 29272 # Extract the first word of "$ac_prog", so it can be a program name with args. 29273 set dummy $ac_prog; ac_word=$2 29274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29275 $as_echo_n "checking for $ac_word... " >&6; } 29276 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 29277 $as_echo_n "(cached) " >&6 29278 else 29279 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29280 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 29281 else 29282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29283 for as_dir in $PATH 29284 do 29285 IFS=$as_save_IFS 29286 test -z "$as_dir" && as_dir=. 29287 for ac_exec_ext in '' $ac_executable_extensions; do 29288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29289 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 29290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29291 break 2 29292 fi 29293 done 29294 done 29295 IFS=$as_save_IFS 29296 29297 fi 29298 fi 29299 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 29300 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 29302 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 29303 else 29304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29305 $as_echo "no" >&6; } 29306 fi 29307 29308 29309 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 29310 done 29311 29312 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 29313 PROPER_COMPILER_CXX="" 29314 else 29315 case $cross_compiling:$ac_tool_warned in 29316 yes:) 29317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29319 ac_tool_warned=yes ;; 29320 esac 29321 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 29322 fi 29323 fi 29324 29325 29326 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29327 29328 # First separate the path from the arguments. This will split at the first 29329 # space. 29330 complete="$PROPER_COMPILER_CXX" 29331 path="${complete%% *}" 29332 tmp="$complete EOL" 29333 arguments="${tmp#* }" 29334 29335 # Input might be given as Windows format, start by converting to 29336 # unix format. 29337 new_path=`$CYGPATH -u "$path"` 29338 29339 # Now try to locate executable using which 29340 new_path=`$WHICH "$new_path" 2> /dev/null` 29341 # bat and cmd files are not always considered executable in cygwin causing which 29342 # to not find them 29343 if test "x$new_path" = x \ 29344 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29345 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29346 new_path=`$CYGPATH -u "$path"` 29347 fi 29348 if test "x$new_path" = x; then 29349 # Oops. Which didn't find the executable. 29350 # The splitting of arguments from the executable at a space might have been incorrect, 29351 # since paths with space are more likely in Windows. Give it another try with the whole 29352 # argument. 29353 path="$complete" 29354 arguments="EOL" 29355 new_path=`$CYGPATH -u "$path"` 29356 new_path=`$WHICH "$new_path" 2> /dev/null` 29357 # bat and cmd files are not always considered executable in cygwin causing which 29358 # to not find them 29359 if test "x$new_path" = x \ 29360 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29361 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29362 new_path=`$CYGPATH -u "$path"` 29363 fi 29364 if test "x$new_path" = x; then 29365 # It's still not found. Now this is an unrecoverable error. 29366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29367 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29368 has_space=`$ECHO "$complete" | $GREP " "` 29369 if test "x$has_space" != x; then 29370 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29371 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29372 fi 29373 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29374 fi 29375 fi 29376 29377 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29378 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29379 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29380 # "foo.exe" is OK but "foo" is an error. 29381 # 29382 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29383 # It is also a way to make sure we got the proper file name for the real test later on. 29384 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29385 if test "x$test_shortpath" = x; then 29386 # Short path failed, file does not exist as specified. 29387 # Try adding .exe or .cmd 29388 if test -f "${new_path}.exe"; then 29389 input_to_shortpath="${new_path}.exe" 29390 elif test -f "${new_path}.cmd"; then 29391 input_to_shortpath="${new_path}.cmd" 29392 else 29393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 29394 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 29395 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29396 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29397 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29398 fi 29399 else 29400 input_to_shortpath="$new_path" 29401 fi 29402 29403 # Call helper function which possibly converts this using DOS-style short mode. 29404 # If so, the updated path is stored in $new_path. 29405 new_path="$input_to_shortpath" 29406 29407 input_path="$input_to_shortpath" 29408 # Check if we need to convert this using DOS-style short mode. If the path 29409 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29410 # take no chances and rewrite it. 29411 # Note: m4 eats our [], so we need to use [ and ] instead. 29412 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29413 if test "x$has_forbidden_chars" != x; then 29414 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29415 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29416 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29417 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29418 # Going to short mode and back again did indeed matter. Since short mode is 29419 # case insensitive, let's make it lowercase to improve readability. 29420 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29421 # Now convert it back to Unix-style (cygpath) 29422 input_path=`$CYGPATH -u "$shortmode_path"` 29423 new_path="$input_path" 29424 fi 29425 fi 29426 29427 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29428 if test "x$test_cygdrive_prefix" = x; then 29429 # As a simple fix, exclude /usr/bin since it's not a real path. 29430 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29431 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29432 # a path prefixed by /cygdrive for fixpath to work. 29433 new_path="$CYGWIN_ROOT_PATH$input_path" 29434 fi 29435 fi 29436 29437 # remove trailing .exe if any 29438 new_path="${new_path/%.exe/}" 29439 29440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29441 29442 # First separate the path from the arguments. This will split at the first 29443 # space. 29444 complete="$PROPER_COMPILER_CXX" 29445 path="${complete%% *}" 29446 tmp="$complete EOL" 29447 arguments="${tmp#* }" 29448 29449 # Input might be given as Windows format, start by converting to 29450 # unix format. 29451 new_path="$path" 29452 29453 windows_path="$new_path" 29454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29455 unix_path=`$CYGPATH -u "$windows_path"` 29456 new_path="$unix_path" 29457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29458 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29459 new_path="$unix_path" 29460 fi 29461 29462 29463 # Now try to locate executable using which 29464 new_path=`$WHICH "$new_path" 2> /dev/null` 29465 29466 if test "x$new_path" = x; then 29467 # Oops. Which didn't find the executable. 29468 # The splitting of arguments from the executable at a space might have been incorrect, 29469 # since paths with space are more likely in Windows. Give it another try with the whole 29470 # argument. 29471 path="$complete" 29472 arguments="EOL" 29473 new_path="$path" 29474 29475 windows_path="$new_path" 29476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29477 unix_path=`$CYGPATH -u "$windows_path"` 29478 new_path="$unix_path" 29479 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29480 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29481 new_path="$unix_path" 29482 fi 29483 29484 29485 new_path=`$WHICH "$new_path" 2> /dev/null` 29486 # bat and cmd files are not always considered executable in MSYS causing which 29487 # to not find them 29488 if test "x$new_path" = x \ 29489 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29490 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29491 new_path="$path" 29492 29493 windows_path="$new_path" 29494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29495 unix_path=`$CYGPATH -u "$windows_path"` 29496 new_path="$unix_path" 29497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29499 new_path="$unix_path" 29500 fi 29501 29502 fi 29503 29504 if test "x$new_path" = x; then 29505 # It's still not found. Now this is an unrecoverable error. 29506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29507 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29508 has_space=`$ECHO "$complete" | $GREP " "` 29509 if test "x$has_space" != x; then 29510 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29511 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29512 fi 29513 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29514 fi 29515 fi 29516 29517 # Now new_path has a complete unix path to the binary 29518 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29519 # Keep paths in /bin as-is, but remove trailing .exe if any 29520 new_path="${new_path/%.exe/}" 29521 # Do not save /bin paths to all_fixpath_prefixes! 29522 else 29523 # Not in mixed or Windows style, start by that. 29524 new_path=`cmd //c echo $new_path` 29525 29526 input_path="$new_path" 29527 # Check if we need to convert this using DOS-style short mode. If the path 29528 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29529 # take no chances and rewrite it. 29530 # Note: m4 eats our [], so we need to use [ and ] instead. 29531 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29532 if test "x$has_forbidden_chars" != x; then 29533 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29534 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29535 fi 29536 29537 # Output is in $new_path 29538 29539 windows_path="$new_path" 29540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29541 unix_path=`$CYGPATH -u "$windows_path"` 29542 new_path="$unix_path" 29543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29545 new_path="$unix_path" 29546 fi 29547 29548 # remove trailing .exe if any 29549 new_path="${new_path/%.exe/}" 29550 29551 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29552 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29553 fi 29554 29555 else 29556 # We're on a posix platform. Hooray! :) 29557 # First separate the path from the arguments. This will split at the first 29558 # space. 29559 complete="$PROPER_COMPILER_CXX" 29560 path="${complete%% *}" 29561 tmp="$complete EOL" 29562 arguments="${tmp#* }" 29563 29564 # Cannot rely on the command "which" here since it doesn't always work. 29565 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29566 if test -z "$is_absolute_path"; then 29567 # Path to executable is not absolute. Find it. 29568 IFS_save="$IFS" 29569 IFS=: 29570 for p in $PATH; do 29571 if test -f "$p/$path" && test -x "$p/$path"; then 29572 new_path="$p/$path" 29573 break 29574 fi 29575 done 29576 IFS="$IFS_save" 29577 else 29578 # This is an absolute path, we can use it without further modifications. 29579 new_path="$path" 29580 fi 29581 29582 if test "x$new_path" = x; then 29583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29584 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29585 has_space=`$ECHO "$complete" | $GREP " "` 29586 if test "x$has_space" != x; then 29587 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29588 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29589 fi 29590 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29591 fi 29592 fi 29593 29594 # Now join together the path and the arguments once again 29595 if test "x$arguments" != xEOL; then 29596 new_complete="$new_path ${arguments% *}" 29597 else 29598 new_complete="$new_path" 29599 fi 29600 29601 if test "x$complete" != "x$new_complete"; then 29602 PROPER_COMPILER_CXX="$new_complete" 29603 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 29604 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 29605 fi 29606 29607 PATH="$RETRY_COMPILER_SAVED_PATH" 29608 29609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 29610 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 29611 29612 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29613 # Follow a chain of symbolic links. Use readlink 29614 # where it exists, else fall back to horribly 29615 # complicated shell code. 29616 if test "x$READLINK_TESTED" != yes; then 29617 # On MacOSX there is a readlink tool with a different 29618 # purpose than the GNU readlink tool. Check the found readlink. 29619 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29620 if test "x$ISGNU" = x; then 29621 # A readlink that we do not know how to use. 29622 # Are there other non-GNU readlinks out there? 29623 READLINK_TESTED=yes 29624 READLINK= 29625 fi 29626 fi 29627 29628 if test "x$READLINK" != x; then 29629 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 29630 else 29631 # Save the current directory for restoring afterwards 29632 STARTDIR=$PWD 29633 COUNTER=0 29634 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 29635 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 29636 cd $sym_link_dir 29637 # Use -P flag to resolve symlinks in directories. 29638 cd `$THEPWDCMD -P` 29639 sym_link_dir=`$THEPWDCMD -P` 29640 # Resolve file symlinks 29641 while test $COUNTER -lt 20; do 29642 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29643 if test "x$ISLINK" == x; then 29644 # This is not a symbolic link! We are done! 29645 break 29646 fi 29647 # Again resolve directory symlinks since the target of the just found 29648 # link could be in a different directory 29649 cd `$DIRNAME $ISLINK` 29650 sym_link_dir=`$THEPWDCMD -P` 29651 sym_link_file=`$BASENAME $ISLINK` 29652 let COUNTER=COUNTER+1 29653 done 29654 cd $STARTDIR 29655 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 29656 fi 29657 fi 29658 29659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29660 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29661 CXX="$PROPER_COMPILER_CXX" 29662 else 29663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 29664 $as_echo "no, keeping CXX" >&6; } 29665 fi 29666 fi 29667 29668 29669 COMPILER=$CXX 29670 COMPILER_NAME=$COMPILER_NAME 29671 29672 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29673 # cc -V output typically looks like 29674 # cc: Sun C 5.12 Linux_i386 2011/11/16 29675 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 29676 # Check that this is likely to be the Solaris Studio cc. 29677 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 29678 if test $? -ne 0; then 29679 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29680 { $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 29681 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29682 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29683 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29684 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29685 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29686 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29687 fi 29688 # Remove usage instructions (if present), and 29689 # collapse compiler output into a single line 29690 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29691 $SED -e 's/ *[Uu]sage:.*//'` 29692 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29693 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 29694 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 29695 # xlc -qversion output typically looks like 29696 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 29697 # Version: 11.01.0000.0015 29698 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 29699 # Check that this is likely to be the IBM XL C compiler. 29700 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 29701 if test $? -ne 0; then 29702 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29703 { $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 29704 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29705 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29706 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29707 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29708 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29709 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29710 fi 29711 # Collapse compiler output into a single line 29712 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29713 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29714 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 29715 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 29716 # There is no specific version flag, but all output starts with a version string. 29717 # First line typically looks something like: 29718 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 29719 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 29720 # Check that this is likely to be Microsoft CL.EXE. 29721 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 29722 if test $? -ne 0; then 29723 { $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 29724 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29725 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29726 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29727 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29728 fi 29729 # Collapse compiler output into a single line 29730 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29731 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29732 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 29733 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 29734 # gcc --version output typically looks like 29735 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 29736 # Copyright (C) 2013 Free Software Foundation, Inc. 29737 # This is free software; see the source for copying conditions. There is NO 29738 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29739 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29740 # Check that this is likely to be GCC. 29741 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 29742 if test $? -ne 0; then 29743 { $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 29744 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29745 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 29746 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 29747 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29748 fi 29749 # Remove Copyright and legalese from version string, and 29750 # collapse into a single line 29751 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29752 $SED -e 's/ *Copyright .*//'` 29753 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29754 $SED -e 's/^.* \([1-9][0-9]*\.[0-9.]*\) .*$/\1/'` 29755 elif test "x$TOOLCHAIN_TYPE" = xclang; then 29756 # clang --version output typically looks like 29757 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 29758 # clang version 3.3 (tags/RELEASE_33/final) 29759 # or 29760 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 29761 # Target: x86_64-pc-linux-gnu 29762 # Thread model: posix 29763 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29764 # Check that this is likely to be clang 29765 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 29766 if test $? -ne 0; then 29767 { $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 29768 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29769 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29770 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29771 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29772 fi 29773 # Collapse compiler output into a single line 29774 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29775 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29776 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 29777 29778 else 29779 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 29780 fi 29781 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 29782 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 29783 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 29784 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 29785 29786 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 29787 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 29788 29789 29790 # Now that we have resolved CXX ourself, let autoconf have its go at it 29791 ac_ext=cpp 29792 ac_cpp='$CXXCPP $CPPFLAGS' 29793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29796 if test -z "$CXX"; then 29797 if test -n "$CCC"; then 29798 CXX=$CCC 29799 else 29800 if test -n "$ac_tool_prefix"; then 29801 for ac_prog in $CXX 29802 do 29803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29806 $as_echo_n "checking for $ac_word... " >&6; } 29807 if ${ac_cv_prog_CXX+:} false; then : 29808 $as_echo_n "(cached) " >&6 29809 else 29810 if test -n "$CXX"; then 29811 ac_cv_prog_CXX="$CXX" # Let the user override the test. 29812 else 29813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29814 for as_dir in $PATH 29815 do 29816 IFS=$as_save_IFS 29817 test -z "$as_dir" && as_dir=. 29818 for ac_exec_ext in '' $ac_executable_extensions; do 29819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 29821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29822 break 2 29823 fi 29824 done 29825 done 29826 IFS=$as_save_IFS 29827 29828 fi 29829 fi 29830 CXX=$ac_cv_prog_CXX 29831 if test -n "$CXX"; then 29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 29833 $as_echo "$CXX" >&6; } 29834 else 29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29836 $as_echo "no" >&6; } 29837 fi 29838 29839 29840 test -n "$CXX" && break 29841 done 29842 fi 29843 if test -z "$CXX"; then 29844 ac_ct_CXX=$CXX 29845 for ac_prog in $CXX 29846 do 29847 # Extract the first word of "$ac_prog", so it can be a program name with args. 29848 set dummy $ac_prog; ac_word=$2 29849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29850 $as_echo_n "checking for $ac_word... " >&6; } 29851 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 29852 $as_echo_n "(cached) " >&6 29853 else 29854 if test -n "$ac_ct_CXX"; then 29855 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 29856 else 29857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29858 for as_dir in $PATH 29859 do 29860 IFS=$as_save_IFS 29861 test -z "$as_dir" && as_dir=. 29862 for ac_exec_ext in '' $ac_executable_extensions; do 29863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29864 ac_cv_prog_ac_ct_CXX="$ac_prog" 29865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29866 break 2 29867 fi 29868 done 29869 done 29870 IFS=$as_save_IFS 29871 29872 fi 29873 fi 29874 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 29875 if test -n "$ac_ct_CXX"; then 29876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 29877 $as_echo "$ac_ct_CXX" >&6; } 29878 else 29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29880 $as_echo "no" >&6; } 29881 fi 29882 29883 29884 test -n "$ac_ct_CXX" && break 29885 done 29886 29887 if test "x$ac_ct_CXX" = x; then 29888 CXX="g++" 29889 else 29890 case $cross_compiling:$ac_tool_warned in 29891 yes:) 29892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29894 ac_tool_warned=yes ;; 29895 esac 29896 CXX=$ac_ct_CXX 29897 fi 29898 fi 29899 29900 fi 29901 fi 29902 # Provide some information about the compiler. 29903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 29904 set X $ac_compile 29905 ac_compiler=$2 29906 for ac_option in --version -v -V -qversion; do 29907 { { ac_try="$ac_compiler $ac_option >&5" 29908 case "(($ac_try" in 29909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29910 *) ac_try_echo=$ac_try;; 29911 esac 29912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29913 $as_echo "$ac_try_echo"; } >&5 29914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29915 ac_status=$? 29916 if test -s conftest.err; then 29917 sed '10a\ 29918 ... rest of stderr output deleted ... 29919 10q' conftest.err >conftest.er1 29920 cat conftest.er1 >&5 29921 fi 29922 rm -f conftest.er1 conftest.err 29923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29924 test $ac_status = 0; } 29925 done 29926 29927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 29928 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 29929 if ${ac_cv_cxx_compiler_gnu+:} false; then : 29930 $as_echo_n "(cached) " >&6 29931 else 29932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29933 /* end confdefs.h. */ 29934 29935 int 29936 main () 29937 { 29938 #ifndef __GNUC__ 29939 choke me 29940 #endif 29941 29942 ; 29943 return 0; 29944 } 29945 _ACEOF 29946 if ac_fn_cxx_try_compile "$LINENO"; then : 29947 ac_compiler_gnu=yes 29948 else 29949 ac_compiler_gnu=no 29950 fi 29951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 29953 29954 fi 29955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 29956 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 29957 if test $ac_compiler_gnu = yes; then 29958 GXX=yes 29959 else 29960 GXX= 29961 fi 29962 ac_test_CXXFLAGS=${CXXFLAGS+set} 29963 ac_save_CXXFLAGS=$CXXFLAGS 29964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 29965 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 29966 if ${ac_cv_prog_cxx_g+:} false; then : 29967 $as_echo_n "(cached) " >&6 29968 else 29969 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 29970 ac_cxx_werror_flag=yes 29971 ac_cv_prog_cxx_g=no 29972 CXXFLAGS="-g" 29973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29974 /* end confdefs.h. */ 29975 29976 int 29977 main () 29978 { 29979 29980 ; 29981 return 0; 29982 } 29983 _ACEOF 29984 if ac_fn_cxx_try_compile "$LINENO"; then : 29985 ac_cv_prog_cxx_g=yes 29986 else 29987 CXXFLAGS="" 29988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29989 /* end confdefs.h. */ 29990 29991 int 29992 main () 29993 { 29994 29995 ; 29996 return 0; 29997 } 29998 _ACEOF 29999 if ac_fn_cxx_try_compile "$LINENO"; then : 30000 30001 else 30002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30003 CXXFLAGS="-g" 30004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30005 /* end confdefs.h. */ 30006 30007 int 30008 main () 30009 { 30010 30011 ; 30012 return 0; 30013 } 30014 _ACEOF 30015 if ac_fn_cxx_try_compile "$LINENO"; then : 30016 ac_cv_prog_cxx_g=yes 30017 fi 30018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30019 fi 30020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30021 fi 30022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30023 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30024 fi 30025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30026 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30027 if test "$ac_test_CXXFLAGS" = set; then 30028 CXXFLAGS=$ac_save_CXXFLAGS 30029 elif test $ac_cv_prog_cxx_g = yes; then 30030 if test "$GXX" = yes; then 30031 CXXFLAGS="-g -O2" 30032 else 30033 CXXFLAGS="-g" 30034 fi 30035 else 30036 if test "$GXX" = yes; then 30037 CXXFLAGS="-O2" 30038 else 30039 CXXFLAGS= 30040 fi 30041 fi 30042 ac_ext=cpp 30043 ac_cpp='$CXXCPP $CPPFLAGS' 30044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30047 30048 30049 # This is the compiler version number on the form X.Y[.Z] 30050 30051 30052 30053 30054 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 30055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 30056 $as_echo "$as_me: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 30057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 30058 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 30059 fi 30060 30061 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 30062 if [[ "$CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 30063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&5 30064 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&2;} 30065 fi 30066 30067 if [[ "$CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 30068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&5 30069 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&2;} 30070 fi 30071 30072 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 30073 30074 30075 # 30076 # Setup the preprocessor (CPP and CXXCPP) 30077 # 30078 ac_ext=c 30079 ac_cpp='$CPP $CPPFLAGS' 30080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30082 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30084 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30085 # On Suns, sometimes $CPP names a directory. 30086 if test -n "$CPP" && test -d "$CPP"; then 30087 CPP= 30088 fi 30089 if test -z "$CPP"; then 30090 if ${ac_cv_prog_CPP+:} false; then : 30091 $as_echo_n "(cached) " >&6 30092 else 30093 # Double quotes because CPP needs to be expanded 30094 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30095 do 30096 ac_preproc_ok=false 30097 for ac_c_preproc_warn_flag in '' yes 30098 do 30099 # Use a header file that comes with gcc, so configuring glibc 30100 # with a fresh cross-compiler works. 30101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30102 # <limits.h> exists even on freestanding compilers. 30103 # On the NeXT, cc -E runs the code through the compiler's parser, 30104 # not just through cpp. "Syntax error" is here to catch this case. 30105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30106 /* end confdefs.h. */ 30107 #ifdef __STDC__ 30108 # include <limits.h> 30109 #else 30110 # include <assert.h> 30111 #endif 30112 Syntax error 30113 _ACEOF 30114 if ac_fn_c_try_cpp "$LINENO"; then : 30115 30116 else 30117 # Broken: fails on valid input. 30118 continue 30119 fi 30120 rm -f conftest.err conftest.i conftest.$ac_ext 30121 30122 # OK, works on sane cases. Now check whether nonexistent headers 30123 # can be detected and how. 30124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30125 /* end confdefs.h. */ 30126 #include <ac_nonexistent.h> 30127 _ACEOF 30128 if ac_fn_c_try_cpp "$LINENO"; then : 30129 # Broken: success on invalid input. 30130 continue 30131 else 30132 # Passes both tests. 30133 ac_preproc_ok=: 30134 break 30135 fi 30136 rm -f conftest.err conftest.i conftest.$ac_ext 30137 30138 done 30139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30140 rm -f conftest.i conftest.err conftest.$ac_ext 30141 if $ac_preproc_ok; then : 30142 break 30143 fi 30144 30145 done 30146 ac_cv_prog_CPP=$CPP 30147 30148 fi 30149 CPP=$ac_cv_prog_CPP 30150 else 30151 ac_cv_prog_CPP=$CPP 30152 fi 30153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30154 $as_echo "$CPP" >&6; } 30155 ac_preproc_ok=false 30156 for ac_c_preproc_warn_flag in '' yes 30157 do 30158 # Use a header file that comes with gcc, so configuring glibc 30159 # with a fresh cross-compiler works. 30160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30161 # <limits.h> exists even on freestanding compilers. 30162 # On the NeXT, cc -E runs the code through the compiler's parser, 30163 # not just through cpp. "Syntax error" is here to catch this case. 30164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30165 /* end confdefs.h. */ 30166 #ifdef __STDC__ 30167 # include <limits.h> 30168 #else 30169 # include <assert.h> 30170 #endif 30171 Syntax error 30172 _ACEOF 30173 if ac_fn_c_try_cpp "$LINENO"; then : 30174 30175 else 30176 # Broken: fails on valid input. 30177 continue 30178 fi 30179 rm -f conftest.err conftest.i conftest.$ac_ext 30180 30181 # OK, works on sane cases. Now check whether nonexistent headers 30182 # can be detected and how. 30183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30184 /* end confdefs.h. */ 30185 #include <ac_nonexistent.h> 30186 _ACEOF 30187 if ac_fn_c_try_cpp "$LINENO"; then : 30188 # Broken: success on invalid input. 30189 continue 30190 else 30191 # Passes both tests. 30192 ac_preproc_ok=: 30193 break 30194 fi 30195 rm -f conftest.err conftest.i conftest.$ac_ext 30196 30197 done 30198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30199 rm -f conftest.i conftest.err conftest.$ac_ext 30200 if $ac_preproc_ok; then : 30201 30202 else 30203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30205 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 30206 See \`config.log' for more details" "$LINENO" 5; } 30207 fi 30208 30209 ac_ext=cpp 30210 ac_cpp='$CXXCPP $CPPFLAGS' 30211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30214 30215 30216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30217 30218 # First separate the path from the arguments. This will split at the first 30219 # space. 30220 complete="$CPP" 30221 path="${complete%% *}" 30222 tmp="$complete EOL" 30223 arguments="${tmp#* }" 30224 30225 # Input might be given as Windows format, start by converting to 30226 # unix format. 30227 new_path=`$CYGPATH -u "$path"` 30228 30229 # Now try to locate executable using which 30230 new_path=`$WHICH "$new_path" 2> /dev/null` 30231 # bat and cmd files are not always considered executable in cygwin causing which 30232 # to not find them 30233 if test "x$new_path" = x \ 30234 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30235 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30236 new_path=`$CYGPATH -u "$path"` 30237 fi 30238 if test "x$new_path" = x; then 30239 # Oops. Which didn't find the executable. 30240 # The splitting of arguments from the executable at a space might have been incorrect, 30241 # since paths with space are more likely in Windows. Give it another try with the whole 30242 # argument. 30243 path="$complete" 30244 arguments="EOL" 30245 new_path=`$CYGPATH -u "$path"` 30246 new_path=`$WHICH "$new_path" 2> /dev/null` 30247 # bat and cmd files are not always considered executable in cygwin causing which 30248 # to not find them 30249 if test "x$new_path" = x \ 30250 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30251 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30252 new_path=`$CYGPATH -u "$path"` 30253 fi 30254 if test "x$new_path" = x; then 30255 # It's still not found. Now this is an unrecoverable error. 30256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30257 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30258 has_space=`$ECHO "$complete" | $GREP " "` 30259 if test "x$has_space" != x; then 30260 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30261 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30262 fi 30263 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30264 fi 30265 fi 30266 30267 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30268 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30269 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30270 # "foo.exe" is OK but "foo" is an error. 30271 # 30272 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30273 # It is also a way to make sure we got the proper file name for the real test later on. 30274 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30275 if test "x$test_shortpath" = x; then 30276 # Short path failed, file does not exist as specified. 30277 # Try adding .exe or .cmd 30278 if test -f "${new_path}.exe"; then 30279 input_to_shortpath="${new_path}.exe" 30280 elif test -f "${new_path}.cmd"; then 30281 input_to_shortpath="${new_path}.cmd" 30282 else 30283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 30284 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 30285 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30286 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30287 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30288 fi 30289 else 30290 input_to_shortpath="$new_path" 30291 fi 30292 30293 # Call helper function which possibly converts this using DOS-style short mode. 30294 # If so, the updated path is stored in $new_path. 30295 new_path="$input_to_shortpath" 30296 30297 input_path="$input_to_shortpath" 30298 # Check if we need to convert this using DOS-style short mode. If the path 30299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30300 # take no chances and rewrite it. 30301 # Note: m4 eats our [], so we need to use [ and ] instead. 30302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30303 if test "x$has_forbidden_chars" != x; then 30304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30305 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30306 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30307 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30308 # Going to short mode and back again did indeed matter. Since short mode is 30309 # case insensitive, let's make it lowercase to improve readability. 30310 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30311 # Now convert it back to Unix-style (cygpath) 30312 input_path=`$CYGPATH -u "$shortmode_path"` 30313 new_path="$input_path" 30314 fi 30315 fi 30316 30317 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30318 if test "x$test_cygdrive_prefix" = x; then 30319 # As a simple fix, exclude /usr/bin since it's not a real path. 30320 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30321 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30322 # a path prefixed by /cygdrive for fixpath to work. 30323 new_path="$CYGWIN_ROOT_PATH$input_path" 30324 fi 30325 fi 30326 30327 # remove trailing .exe if any 30328 new_path="${new_path/%.exe/}" 30329 30330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30331 30332 # First separate the path from the arguments. This will split at the first 30333 # space. 30334 complete="$CPP" 30335 path="${complete%% *}" 30336 tmp="$complete EOL" 30337 arguments="${tmp#* }" 30338 30339 # Input might be given as Windows format, start by converting to 30340 # unix format. 30341 new_path="$path" 30342 30343 windows_path="$new_path" 30344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30345 unix_path=`$CYGPATH -u "$windows_path"` 30346 new_path="$unix_path" 30347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30349 new_path="$unix_path" 30350 fi 30351 30352 30353 # Now try to locate executable using which 30354 new_path=`$WHICH "$new_path" 2> /dev/null` 30355 30356 if test "x$new_path" = x; then 30357 # Oops. Which didn't find the executable. 30358 # The splitting of arguments from the executable at a space might have been incorrect, 30359 # since paths with space are more likely in Windows. Give it another try with the whole 30360 # argument. 30361 path="$complete" 30362 arguments="EOL" 30363 new_path="$path" 30364 30365 windows_path="$new_path" 30366 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30367 unix_path=`$CYGPATH -u "$windows_path"` 30368 new_path="$unix_path" 30369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30370 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30371 new_path="$unix_path" 30372 fi 30373 30374 30375 new_path=`$WHICH "$new_path" 2> /dev/null` 30376 # bat and cmd files are not always considered executable in MSYS causing which 30377 # to not find them 30378 if test "x$new_path" = x \ 30379 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30380 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30381 new_path="$path" 30382 30383 windows_path="$new_path" 30384 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30385 unix_path=`$CYGPATH -u "$windows_path"` 30386 new_path="$unix_path" 30387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30388 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30389 new_path="$unix_path" 30390 fi 30391 30392 fi 30393 30394 if test "x$new_path" = x; then 30395 # It's still not found. Now this is an unrecoverable error. 30396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30397 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30398 has_space=`$ECHO "$complete" | $GREP " "` 30399 if test "x$has_space" != x; then 30400 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30401 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30402 fi 30403 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30404 fi 30405 fi 30406 30407 # Now new_path has a complete unix path to the binary 30408 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30409 # Keep paths in /bin as-is, but remove trailing .exe if any 30410 new_path="${new_path/%.exe/}" 30411 # Do not save /bin paths to all_fixpath_prefixes! 30412 else 30413 # Not in mixed or Windows style, start by that. 30414 new_path=`cmd //c echo $new_path` 30415 30416 input_path="$new_path" 30417 # Check if we need to convert this using DOS-style short mode. If the path 30418 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30419 # take no chances and rewrite it. 30420 # Note: m4 eats our [], so we need to use [ and ] instead. 30421 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30422 if test "x$has_forbidden_chars" != x; then 30423 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30424 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30425 fi 30426 30427 # Output is in $new_path 30428 30429 windows_path="$new_path" 30430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30431 unix_path=`$CYGPATH -u "$windows_path"` 30432 new_path="$unix_path" 30433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30434 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30435 new_path="$unix_path" 30436 fi 30437 30438 # remove trailing .exe if any 30439 new_path="${new_path/%.exe/}" 30440 30441 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30442 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30443 fi 30444 30445 else 30446 # We're on a posix platform. Hooray! :) 30447 # First separate the path from the arguments. This will split at the first 30448 # space. 30449 complete="$CPP" 30450 path="${complete%% *}" 30451 tmp="$complete EOL" 30452 arguments="${tmp#* }" 30453 30454 # Cannot rely on the command "which" here since it doesn't always work. 30455 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30456 if test -z "$is_absolute_path"; then 30457 # Path to executable is not absolute. Find it. 30458 IFS_save="$IFS" 30459 IFS=: 30460 for p in $PATH; do 30461 if test -f "$p/$path" && test -x "$p/$path"; then 30462 new_path="$p/$path" 30463 break 30464 fi 30465 done 30466 IFS="$IFS_save" 30467 else 30468 # This is an absolute path, we can use it without further modifications. 30469 new_path="$path" 30470 fi 30471 30472 if test "x$new_path" = x; then 30473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30474 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30475 has_space=`$ECHO "$complete" | $GREP " "` 30476 if test "x$has_space" != x; then 30477 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30478 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30479 fi 30480 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30481 fi 30482 fi 30483 30484 # Now join together the path and the arguments once again 30485 if test "x$arguments" != xEOL; then 30486 new_complete="$new_path ${arguments% *}" 30487 else 30488 new_complete="$new_path" 30489 fi 30490 30491 if test "x$complete" != "x$new_complete"; then 30492 CPP="$new_complete" 30493 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 30494 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 30495 fi 30496 30497 ac_ext=cpp 30498 ac_cpp='$CXXCPP $CPPFLAGS' 30499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 30503 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 30504 if test -z "$CXXCPP"; then 30505 if ${ac_cv_prog_CXXCPP+:} false; then : 30506 $as_echo_n "(cached) " >&6 30507 else 30508 # Double quotes because CXXCPP needs to be expanded 30509 for CXXCPP in "$CXX -E" "/lib/cpp" 30510 do 30511 ac_preproc_ok=false 30512 for ac_cxx_preproc_warn_flag in '' yes 30513 do 30514 # Use a header file that comes with gcc, so configuring glibc 30515 # with a fresh cross-compiler works. 30516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30517 # <limits.h> exists even on freestanding compilers. 30518 # On the NeXT, cc -E runs the code through the compiler's parser, 30519 # not just through cpp. "Syntax error" is here to catch this case. 30520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30521 /* end confdefs.h. */ 30522 #ifdef __STDC__ 30523 # include <limits.h> 30524 #else 30525 # include <assert.h> 30526 #endif 30527 Syntax error 30528 _ACEOF 30529 if ac_fn_cxx_try_cpp "$LINENO"; then : 30530 30531 else 30532 # Broken: fails on valid input. 30533 continue 30534 fi 30535 rm -f conftest.err conftest.i conftest.$ac_ext 30536 30537 # OK, works on sane cases. Now check whether nonexistent headers 30538 # can be detected and how. 30539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30540 /* end confdefs.h. */ 30541 #include <ac_nonexistent.h> 30542 _ACEOF 30543 if ac_fn_cxx_try_cpp "$LINENO"; then : 30544 # Broken: success on invalid input. 30545 continue 30546 else 30547 # Passes both tests. 30548 ac_preproc_ok=: 30549 break 30550 fi 30551 rm -f conftest.err conftest.i conftest.$ac_ext 30552 30553 done 30554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30555 rm -f conftest.i conftest.err conftest.$ac_ext 30556 if $ac_preproc_ok; then : 30557 break 30558 fi 30559 30560 done 30561 ac_cv_prog_CXXCPP=$CXXCPP 30562 30563 fi 30564 CXXCPP=$ac_cv_prog_CXXCPP 30565 else 30566 ac_cv_prog_CXXCPP=$CXXCPP 30567 fi 30568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 30569 $as_echo "$CXXCPP" >&6; } 30570 ac_preproc_ok=false 30571 for ac_cxx_preproc_warn_flag in '' yes 30572 do 30573 # Use a header file that comes with gcc, so configuring glibc 30574 # with a fresh cross-compiler works. 30575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30576 # <limits.h> exists even on freestanding compilers. 30577 # On the NeXT, cc -E runs the code through the compiler's parser, 30578 # not just through cpp. "Syntax error" is here to catch this case. 30579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30580 /* end confdefs.h. */ 30581 #ifdef __STDC__ 30582 # include <limits.h> 30583 #else 30584 # include <assert.h> 30585 #endif 30586 Syntax error 30587 _ACEOF 30588 if ac_fn_cxx_try_cpp "$LINENO"; then : 30589 30590 else 30591 # Broken: fails on valid input. 30592 continue 30593 fi 30594 rm -f conftest.err conftest.i conftest.$ac_ext 30595 30596 # OK, works on sane cases. Now check whether nonexistent headers 30597 # can be detected and how. 30598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30599 /* end confdefs.h. */ 30600 #include <ac_nonexistent.h> 30601 _ACEOF 30602 if ac_fn_cxx_try_cpp "$LINENO"; then : 30603 # Broken: success on invalid input. 30604 continue 30605 else 30606 # Passes both tests. 30607 ac_preproc_ok=: 30608 break 30609 fi 30610 rm -f conftest.err conftest.i conftest.$ac_ext 30611 30612 done 30613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30614 rm -f conftest.i conftest.err conftest.$ac_ext 30615 if $ac_preproc_ok; then : 30616 30617 else 30618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30620 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 30621 See \`config.log' for more details" "$LINENO" 5; } 30622 fi 30623 30624 ac_ext=cpp 30625 ac_cpp='$CXXCPP $CPPFLAGS' 30626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30629 30630 30631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30632 30633 # First separate the path from the arguments. This will split at the first 30634 # space. 30635 complete="$CXXCPP" 30636 path="${complete%% *}" 30637 tmp="$complete EOL" 30638 arguments="${tmp#* }" 30639 30640 # Input might be given as Windows format, start by converting to 30641 # unix format. 30642 new_path=`$CYGPATH -u "$path"` 30643 30644 # Now try to locate executable using which 30645 new_path=`$WHICH "$new_path" 2> /dev/null` 30646 # bat and cmd files are not always considered executable in cygwin causing which 30647 # to not find them 30648 if test "x$new_path" = x \ 30649 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30650 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30651 new_path=`$CYGPATH -u "$path"` 30652 fi 30653 if test "x$new_path" = x; then 30654 # Oops. Which didn't find the executable. 30655 # The splitting of arguments from the executable at a space might have been incorrect, 30656 # since paths with space are more likely in Windows. Give it another try with the whole 30657 # argument. 30658 path="$complete" 30659 arguments="EOL" 30660 new_path=`$CYGPATH -u "$path"` 30661 new_path=`$WHICH "$new_path" 2> /dev/null` 30662 # bat and cmd files are not always considered executable in cygwin causing which 30663 # to not find them 30664 if test "x$new_path" = x \ 30665 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30666 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30667 new_path=`$CYGPATH -u "$path"` 30668 fi 30669 if test "x$new_path" = x; then 30670 # It's still not found. Now this is an unrecoverable error. 30671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30672 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30673 has_space=`$ECHO "$complete" | $GREP " "` 30674 if test "x$has_space" != x; then 30675 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30676 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30677 fi 30678 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30679 fi 30680 fi 30681 30682 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30683 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30684 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30685 # "foo.exe" is OK but "foo" is an error. 30686 # 30687 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30688 # It is also a way to make sure we got the proper file name for the real test later on. 30689 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30690 if test "x$test_shortpath" = x; then 30691 # Short path failed, file does not exist as specified. 30692 # Try adding .exe or .cmd 30693 if test -f "${new_path}.exe"; then 30694 input_to_shortpath="${new_path}.exe" 30695 elif test -f "${new_path}.cmd"; then 30696 input_to_shortpath="${new_path}.cmd" 30697 else 30698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 30699 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 30700 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30701 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30702 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30703 fi 30704 else 30705 input_to_shortpath="$new_path" 30706 fi 30707 30708 # Call helper function which possibly converts this using DOS-style short mode. 30709 # If so, the updated path is stored in $new_path. 30710 new_path="$input_to_shortpath" 30711 30712 input_path="$input_to_shortpath" 30713 # Check if we need to convert this using DOS-style short mode. If the path 30714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30715 # take no chances and rewrite it. 30716 # Note: m4 eats our [], so we need to use [ and ] instead. 30717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30718 if test "x$has_forbidden_chars" != x; then 30719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30720 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30721 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30722 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30723 # Going to short mode and back again did indeed matter. Since short mode is 30724 # case insensitive, let's make it lowercase to improve readability. 30725 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30726 # Now convert it back to Unix-style (cygpath) 30727 input_path=`$CYGPATH -u "$shortmode_path"` 30728 new_path="$input_path" 30729 fi 30730 fi 30731 30732 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30733 if test "x$test_cygdrive_prefix" = x; then 30734 # As a simple fix, exclude /usr/bin since it's not a real path. 30735 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30736 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30737 # a path prefixed by /cygdrive for fixpath to work. 30738 new_path="$CYGWIN_ROOT_PATH$input_path" 30739 fi 30740 fi 30741 30742 # remove trailing .exe if any 30743 new_path="${new_path/%.exe/}" 30744 30745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30746 30747 # First separate the path from the arguments. This will split at the first 30748 # space. 30749 complete="$CXXCPP" 30750 path="${complete%% *}" 30751 tmp="$complete EOL" 30752 arguments="${tmp#* }" 30753 30754 # Input might be given as Windows format, start by converting to 30755 # unix format. 30756 new_path="$path" 30757 30758 windows_path="$new_path" 30759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30760 unix_path=`$CYGPATH -u "$windows_path"` 30761 new_path="$unix_path" 30762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30763 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30764 new_path="$unix_path" 30765 fi 30766 30767 30768 # Now try to locate executable using which 30769 new_path=`$WHICH "$new_path" 2> /dev/null` 30770 30771 if test "x$new_path" = x; then 30772 # Oops. Which didn't find the executable. 30773 # The splitting of arguments from the executable at a space might have been incorrect, 30774 # since paths with space are more likely in Windows. Give it another try with the whole 30775 # argument. 30776 path="$complete" 30777 arguments="EOL" 30778 new_path="$path" 30779 30780 windows_path="$new_path" 30781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30782 unix_path=`$CYGPATH -u "$windows_path"` 30783 new_path="$unix_path" 30784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30785 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30786 new_path="$unix_path" 30787 fi 30788 30789 30790 new_path=`$WHICH "$new_path" 2> /dev/null` 30791 # bat and cmd files are not always considered executable in MSYS causing which 30792 # to not find them 30793 if test "x$new_path" = x \ 30794 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30795 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30796 new_path="$path" 30797 30798 windows_path="$new_path" 30799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30800 unix_path=`$CYGPATH -u "$windows_path"` 30801 new_path="$unix_path" 30802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30804 new_path="$unix_path" 30805 fi 30806 30807 fi 30808 30809 if test "x$new_path" = x; then 30810 # It's still not found. Now this is an unrecoverable error. 30811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30812 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30813 has_space=`$ECHO "$complete" | $GREP " "` 30814 if test "x$has_space" != x; then 30815 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30816 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30817 fi 30818 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30819 fi 30820 fi 30821 30822 # Now new_path has a complete unix path to the binary 30823 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30824 # Keep paths in /bin as-is, but remove trailing .exe if any 30825 new_path="${new_path/%.exe/}" 30826 # Do not save /bin paths to all_fixpath_prefixes! 30827 else 30828 # Not in mixed or Windows style, start by that. 30829 new_path=`cmd //c echo $new_path` 30830 30831 input_path="$new_path" 30832 # Check if we need to convert this using DOS-style short mode. If the path 30833 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30834 # take no chances and rewrite it. 30835 # Note: m4 eats our [], so we need to use [ and ] instead. 30836 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30837 if test "x$has_forbidden_chars" != x; then 30838 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30839 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30840 fi 30841 30842 # Output is in $new_path 30843 30844 windows_path="$new_path" 30845 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30846 unix_path=`$CYGPATH -u "$windows_path"` 30847 new_path="$unix_path" 30848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30849 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30850 new_path="$unix_path" 30851 fi 30852 30853 # remove trailing .exe if any 30854 new_path="${new_path/%.exe/}" 30855 30856 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30857 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30858 fi 30859 30860 else 30861 # We're on a posix platform. Hooray! :) 30862 # First separate the path from the arguments. This will split at the first 30863 # space. 30864 complete="$CXXCPP" 30865 path="${complete%% *}" 30866 tmp="$complete EOL" 30867 arguments="${tmp#* }" 30868 30869 # Cannot rely on the command "which" here since it doesn't always work. 30870 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30871 if test -z "$is_absolute_path"; then 30872 # Path to executable is not absolute. Find it. 30873 IFS_save="$IFS" 30874 IFS=: 30875 for p in $PATH; do 30876 if test -f "$p/$path" && test -x "$p/$path"; then 30877 new_path="$p/$path" 30878 break 30879 fi 30880 done 30881 IFS="$IFS_save" 30882 else 30883 # This is an absolute path, we can use it without further modifications. 30884 new_path="$path" 30885 fi 30886 30887 if test "x$new_path" = x; then 30888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30889 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30890 has_space=`$ECHO "$complete" | $GREP " "` 30891 if test "x$has_space" != x; then 30892 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30893 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30894 fi 30895 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30896 fi 30897 fi 30898 30899 # Now join together the path and the arguments once again 30900 if test "x$arguments" != xEOL; then 30901 new_complete="$new_path ${arguments% *}" 30902 else 30903 new_complete="$new_path" 30904 fi 30905 30906 if test "x$complete" != "x$new_complete"; then 30907 CXXCPP="$new_complete" 30908 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 30909 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 30910 fi 30911 30912 30913 # 30914 # Setup the linker (LD) 30915 # 30916 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30917 # In the Microsoft toolchain we have a separate LD command "link". 30918 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 30919 # a cygwin program for something completely different. 30920 # Extract the first word of "link", so it can be a program name with args. 30921 set dummy link; 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_prog_LD+:} false; then : 30925 $as_echo_n "(cached) " >&6 30926 else 30927 if test -n "$LD"; then 30928 ac_cv_prog_LD="$LD" # Let the user override the test. 30929 else 30930 ac_prog_rejected=no 30931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30932 for as_dir in $PATH 30933 do 30934 IFS=$as_save_IFS 30935 test -z "$as_dir" && as_dir=. 30936 for ac_exec_ext in '' $ac_executable_extensions; do 30937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30938 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 30939 ac_prog_rejected=yes 30940 continue 30941 fi 30942 ac_cv_prog_LD="link" 30943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30944 break 2 30945 fi 30946 done 30947 done 30948 IFS=$as_save_IFS 30949 30950 if test $ac_prog_rejected = yes; then 30951 # We found a bogon in the path, so make sure we never use it. 30952 set dummy $ac_cv_prog_LD 30953 shift 30954 if test $# != 0; then 30955 # We chose a different compiler from the bogus one. 30956 # However, it has the same basename, so the bogon will be chosen 30957 # first if we set LD to just the basename; use the full file name. 30958 shift 30959 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 30960 fi 30961 fi 30962 fi 30963 fi 30964 LD=$ac_cv_prog_LD 30965 if test -n "$LD"; then 30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 30967 $as_echo "$LD" >&6; } 30968 else 30969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30970 $as_echo "no" >&6; } 30971 fi 30972 30973 30974 30975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30976 30977 # First separate the path from the arguments. This will split at the first 30978 # space. 30979 complete="$LD" 30980 path="${complete%% *}" 30981 tmp="$complete EOL" 30982 arguments="${tmp#* }" 30983 30984 # Input might be given as Windows format, start by converting to 30985 # unix format. 30986 new_path=`$CYGPATH -u "$path"` 30987 30988 # Now try to locate executable using which 30989 new_path=`$WHICH "$new_path" 2> /dev/null` 30990 # bat and cmd files are not always considered executable in cygwin causing which 30991 # to not find them 30992 if test "x$new_path" = x \ 30993 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30994 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30995 new_path=`$CYGPATH -u "$path"` 30996 fi 30997 if test "x$new_path" = x; then 30998 # Oops. Which didn't find the executable. 30999 # The splitting of arguments from the executable at a space might have been incorrect, 31000 # since paths with space are more likely in Windows. Give it another try with the whole 31001 # argument. 31002 path="$complete" 31003 arguments="EOL" 31004 new_path=`$CYGPATH -u "$path"` 31005 new_path=`$WHICH "$new_path" 2> /dev/null` 31006 # bat and cmd files are not always considered executable in cygwin causing which 31007 # to not find them 31008 if test "x$new_path" = x \ 31009 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31010 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31011 new_path=`$CYGPATH -u "$path"` 31012 fi 31013 if test "x$new_path" = x; then 31014 # It's still not found. Now this is an unrecoverable error. 31015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31016 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31017 has_space=`$ECHO "$complete" | $GREP " "` 31018 if test "x$has_space" != x; then 31019 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31020 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31021 fi 31022 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31023 fi 31024 fi 31025 31026 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31027 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31028 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31029 # "foo.exe" is OK but "foo" is an error. 31030 # 31031 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31032 # It is also a way to make sure we got the proper file name for the real test later on. 31033 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31034 if test "x$test_shortpath" = x; then 31035 # Short path failed, file does not exist as specified. 31036 # Try adding .exe or .cmd 31037 if test -f "${new_path}.exe"; then 31038 input_to_shortpath="${new_path}.exe" 31039 elif test -f "${new_path}.cmd"; then 31040 input_to_shortpath="${new_path}.cmd" 31041 else 31042 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31043 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31044 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31045 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31046 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31047 fi 31048 else 31049 input_to_shortpath="$new_path" 31050 fi 31051 31052 # Call helper function which possibly converts this using DOS-style short mode. 31053 # If so, the updated path is stored in $new_path. 31054 new_path="$input_to_shortpath" 31055 31056 input_path="$input_to_shortpath" 31057 # Check if we need to convert this using DOS-style short mode. If the path 31058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31059 # take no chances and rewrite it. 31060 # Note: m4 eats our [], so we need to use [ and ] instead. 31061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31062 if test "x$has_forbidden_chars" != x; then 31063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31064 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31065 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31066 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31067 # Going to short mode and back again did indeed matter. Since short mode is 31068 # case insensitive, let's make it lowercase to improve readability. 31069 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31070 # Now convert it back to Unix-style (cygpath) 31071 input_path=`$CYGPATH -u "$shortmode_path"` 31072 new_path="$input_path" 31073 fi 31074 fi 31075 31076 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31077 if test "x$test_cygdrive_prefix" = x; then 31078 # As a simple fix, exclude /usr/bin since it's not a real path. 31079 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31080 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31081 # a path prefixed by /cygdrive for fixpath to work. 31082 new_path="$CYGWIN_ROOT_PATH$input_path" 31083 fi 31084 fi 31085 31086 # remove trailing .exe if any 31087 new_path="${new_path/%.exe/}" 31088 31089 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31090 31091 # First separate the path from the arguments. This will split at the first 31092 # space. 31093 complete="$LD" 31094 path="${complete%% *}" 31095 tmp="$complete EOL" 31096 arguments="${tmp#* }" 31097 31098 # Input might be given as Windows format, start by converting to 31099 # unix format. 31100 new_path="$path" 31101 31102 windows_path="$new_path" 31103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31104 unix_path=`$CYGPATH -u "$windows_path"` 31105 new_path="$unix_path" 31106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31108 new_path="$unix_path" 31109 fi 31110 31111 31112 # Now try to locate executable using which 31113 new_path=`$WHICH "$new_path" 2> /dev/null` 31114 31115 if test "x$new_path" = x; then 31116 # Oops. Which didn't find the executable. 31117 # The splitting of arguments from the executable at a space might have been incorrect, 31118 # since paths with space are more likely in Windows. Give it another try with the whole 31119 # argument. 31120 path="$complete" 31121 arguments="EOL" 31122 new_path="$path" 31123 31124 windows_path="$new_path" 31125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31126 unix_path=`$CYGPATH -u "$windows_path"` 31127 new_path="$unix_path" 31128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31129 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31130 new_path="$unix_path" 31131 fi 31132 31133 31134 new_path=`$WHICH "$new_path" 2> /dev/null` 31135 # bat and cmd files are not always considered executable in MSYS causing which 31136 # to not find them 31137 if test "x$new_path" = x \ 31138 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31139 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31140 new_path="$path" 31141 31142 windows_path="$new_path" 31143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31144 unix_path=`$CYGPATH -u "$windows_path"` 31145 new_path="$unix_path" 31146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31147 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31148 new_path="$unix_path" 31149 fi 31150 31151 fi 31152 31153 if test "x$new_path" = x; then 31154 # It's still not found. Now this is an unrecoverable error. 31155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31156 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31157 has_space=`$ECHO "$complete" | $GREP " "` 31158 if test "x$has_space" != x; then 31159 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31160 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31161 fi 31162 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31163 fi 31164 fi 31165 31166 # Now new_path has a complete unix path to the binary 31167 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31168 # Keep paths in /bin as-is, but remove trailing .exe if any 31169 new_path="${new_path/%.exe/}" 31170 # Do not save /bin paths to all_fixpath_prefixes! 31171 else 31172 # Not in mixed or Windows style, start by that. 31173 new_path=`cmd //c echo $new_path` 31174 31175 input_path="$new_path" 31176 # Check if we need to convert this using DOS-style short mode. If the path 31177 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31178 # take no chances and rewrite it. 31179 # Note: m4 eats our [], so we need to use [ and ] instead. 31180 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31181 if test "x$has_forbidden_chars" != x; then 31182 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31183 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31184 fi 31185 31186 # Output is in $new_path 31187 31188 windows_path="$new_path" 31189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31190 unix_path=`$CYGPATH -u "$windows_path"` 31191 new_path="$unix_path" 31192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31194 new_path="$unix_path" 31195 fi 31196 31197 # remove trailing .exe if any 31198 new_path="${new_path/%.exe/}" 31199 31200 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31201 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31202 fi 31203 31204 else 31205 # We're on a posix platform. Hooray! :) 31206 # First separate the path from the arguments. This will split at the first 31207 # space. 31208 complete="$LD" 31209 path="${complete%% *}" 31210 tmp="$complete EOL" 31211 arguments="${tmp#* }" 31212 31213 # Cannot rely on the command "which" here since it doesn't always work. 31214 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31215 if test -z "$is_absolute_path"; then 31216 # Path to executable is not absolute. Find it. 31217 IFS_save="$IFS" 31218 IFS=: 31219 for p in $PATH; do 31220 if test -f "$p/$path" && test -x "$p/$path"; then 31221 new_path="$p/$path" 31222 break 31223 fi 31224 done 31225 IFS="$IFS_save" 31226 else 31227 # This is an absolute path, we can use it without further modifications. 31228 new_path="$path" 31229 fi 31230 31231 if test "x$new_path" = x; then 31232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31233 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31234 has_space=`$ECHO "$complete" | $GREP " "` 31235 if test "x$has_space" != x; then 31236 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31237 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31238 fi 31239 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31240 fi 31241 fi 31242 31243 # Now join together the path and the arguments once again 31244 if test "x$arguments" != xEOL; then 31245 new_complete="$new_path ${arguments% *}" 31246 else 31247 new_complete="$new_path" 31248 fi 31249 31250 if test "x$complete" != "x$new_complete"; then 31251 LD="$new_complete" 31252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 31253 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 31254 fi 31255 31256 # Verify that we indeed succeeded with this trick. 31257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 31258 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 31259 "$LD" --version > /dev/null 31260 if test $? -eq 0 ; then 31261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31262 $as_echo "no" >&6; } 31263 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 31264 else 31265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31266 $as_echo "yes" >&6; } 31267 fi 31268 LDCXX="$LD" 31269 else 31270 # All other toolchains use the compiler to link. 31271 LD="$CC" 31272 LDCXX="$CXX" 31273 fi 31274 31275 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 31276 31277 31278 # 31279 # Setup the assembler (AS) 31280 # 31281 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31282 # FIXME: should this really be solaris, or solstudio? 31283 31284 31285 # Publish this variable in the help. 31286 31287 31288 if test "x$AS" = x; then 31289 # The variable is not set by user, try to locate tool using the code snippet 31290 for ac_prog in as 31291 do 31292 # Extract the first word of "$ac_prog", so it can be a program name with args. 31293 set dummy $ac_prog; ac_word=$2 31294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31295 $as_echo_n "checking for $ac_word... " >&6; } 31296 if ${ac_cv_path_AS+:} false; then : 31297 $as_echo_n "(cached) " >&6 31298 else 31299 case $AS in 31300 [\\/]* | ?:[\\/]*) 31301 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31302 ;; 31303 *) 31304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31305 for as_dir in $PATH 31306 do 31307 IFS=$as_save_IFS 31308 test -z "$as_dir" && as_dir=. 31309 for ac_exec_ext in '' $ac_executable_extensions; do 31310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31311 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31313 break 2 31314 fi 31315 done 31316 done 31317 IFS=$as_save_IFS 31318 31319 ;; 31320 esac 31321 fi 31322 AS=$ac_cv_path_AS 31323 if test -n "$AS"; then 31324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31325 $as_echo "$AS" >&6; } 31326 else 31327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31328 $as_echo "no" >&6; } 31329 fi 31330 31331 31332 test -n "$AS" && break 31333 done 31334 31335 else 31336 # The variable is set, but is it from the command line or the environment? 31337 31338 # Try to remove the string !AS! from our list. 31339 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 31340 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31341 # If it failed, the variable was not from the command line. Ignore it, 31342 # but warn the user (except for BASH, which is always set by the calling BASH). 31343 if test "xAS" != xBASH; then 31344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 31345 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 31346 fi 31347 # Try to locate tool using the code snippet 31348 for ac_prog in as 31349 do 31350 # Extract the first word of "$ac_prog", so it can be a program name with args. 31351 set dummy $ac_prog; ac_word=$2 31352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31353 $as_echo_n "checking for $ac_word... " >&6; } 31354 if ${ac_cv_path_AS+:} false; then : 31355 $as_echo_n "(cached) " >&6 31356 else 31357 case $AS in 31358 [\\/]* | ?:[\\/]*) 31359 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31360 ;; 31361 *) 31362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31363 for as_dir in $PATH 31364 do 31365 IFS=$as_save_IFS 31366 test -z "$as_dir" && as_dir=. 31367 for ac_exec_ext in '' $ac_executable_extensions; do 31368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31369 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31371 break 2 31372 fi 31373 done 31374 done 31375 IFS=$as_save_IFS 31376 31377 ;; 31378 esac 31379 fi 31380 AS=$ac_cv_path_AS 31381 if test -n "$AS"; then 31382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31383 $as_echo "$AS" >&6; } 31384 else 31385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31386 $as_echo "no" >&6; } 31387 fi 31388 31389 31390 test -n "$AS" && break 31391 done 31392 31393 else 31394 # If it succeeded, then it was overridden by the user. We will use it 31395 # for the tool. 31396 31397 # First remove it from the list of overridden variables, so we can test 31398 # for unknown variables in the end. 31399 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31400 31401 # Check if the provided tool contains a complete path. 31402 tool_specified="$AS" 31403 tool_basename="${tool_specified##*/}" 31404 if test "x$tool_basename" = "x$tool_specified"; then 31405 # A command without a complete path is provided, search $PATH. 31406 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 31407 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 31408 # Extract the first word of "$tool_basename", so it can be a program name with args. 31409 set dummy $tool_basename; ac_word=$2 31410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31411 $as_echo_n "checking for $ac_word... " >&6; } 31412 if ${ac_cv_path_AS+:} false; then : 31413 $as_echo_n "(cached) " >&6 31414 else 31415 case $AS in 31416 [\\/]* | ?:[\\/]*) 31417 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31418 ;; 31419 *) 31420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31421 for as_dir in $PATH 31422 do 31423 IFS=$as_save_IFS 31424 test -z "$as_dir" && as_dir=. 31425 for ac_exec_ext in '' $ac_executable_extensions; do 31426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31427 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31429 break 2 31430 fi 31431 done 31432 done 31433 IFS=$as_save_IFS 31434 31435 ;; 31436 esac 31437 fi 31438 AS=$ac_cv_path_AS 31439 if test -n "$AS"; then 31440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31441 $as_echo "$AS" >&6; } 31442 else 31443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31444 $as_echo "no" >&6; } 31445 fi 31446 31447 31448 if test "x$AS" = x; then 31449 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31450 fi 31451 else 31452 # Otherwise we believe it is a complete path. Use it as it is. 31453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 31454 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 31455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 31456 $as_echo_n "checking for AS... " >&6; } 31457 if test ! -x "$tool_specified"; then 31458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31459 $as_echo "not found" >&6; } 31460 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 31461 fi 31462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31463 $as_echo "$tool_specified" >&6; } 31464 fi 31465 fi 31466 fi 31467 31468 31469 31470 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31471 31472 # First separate the path from the arguments. This will split at the first 31473 # space. 31474 complete="$AS" 31475 path="${complete%% *}" 31476 tmp="$complete EOL" 31477 arguments="${tmp#* }" 31478 31479 # Input might be given as Windows format, start by converting to 31480 # unix format. 31481 new_path=`$CYGPATH -u "$path"` 31482 31483 # Now try to locate executable using which 31484 new_path=`$WHICH "$new_path" 2> /dev/null` 31485 # bat and cmd files are not always considered executable in cygwin causing which 31486 # to not find them 31487 if test "x$new_path" = x \ 31488 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31489 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31490 new_path=`$CYGPATH -u "$path"` 31491 fi 31492 if test "x$new_path" = x; then 31493 # Oops. Which didn't find the executable. 31494 # The splitting of arguments from the executable at a space might have been incorrect, 31495 # since paths with space are more likely in Windows. Give it another try with the whole 31496 # argument. 31497 path="$complete" 31498 arguments="EOL" 31499 new_path=`$CYGPATH -u "$path"` 31500 new_path=`$WHICH "$new_path" 2> /dev/null` 31501 # bat and cmd files are not always considered executable in cygwin causing which 31502 # to not find them 31503 if test "x$new_path" = x \ 31504 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31505 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31506 new_path=`$CYGPATH -u "$path"` 31507 fi 31508 if test "x$new_path" = x; then 31509 # It's still not found. Now this is an unrecoverable error. 31510 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31511 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31512 has_space=`$ECHO "$complete" | $GREP " "` 31513 if test "x$has_space" != x; then 31514 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31515 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31516 fi 31517 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31518 fi 31519 fi 31520 31521 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31522 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31523 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31524 # "foo.exe" is OK but "foo" is an error. 31525 # 31526 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31527 # It is also a way to make sure we got the proper file name for the real test later on. 31528 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31529 if test "x$test_shortpath" = x; then 31530 # Short path failed, file does not exist as specified. 31531 # Try adding .exe or .cmd 31532 if test -f "${new_path}.exe"; then 31533 input_to_shortpath="${new_path}.exe" 31534 elif test -f "${new_path}.cmd"; then 31535 input_to_shortpath="${new_path}.cmd" 31536 else 31537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 31538 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 31539 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31540 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31541 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31542 fi 31543 else 31544 input_to_shortpath="$new_path" 31545 fi 31546 31547 # Call helper function which possibly converts this using DOS-style short mode. 31548 # If so, the updated path is stored in $new_path. 31549 new_path="$input_to_shortpath" 31550 31551 input_path="$input_to_shortpath" 31552 # Check if we need to convert this using DOS-style short mode. If the path 31553 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31554 # take no chances and rewrite it. 31555 # Note: m4 eats our [], so we need to use [ and ] instead. 31556 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31557 if test "x$has_forbidden_chars" != x; then 31558 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31559 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31560 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31561 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31562 # Going to short mode and back again did indeed matter. Since short mode is 31563 # case insensitive, let's make it lowercase to improve readability. 31564 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31565 # Now convert it back to Unix-style (cygpath) 31566 input_path=`$CYGPATH -u "$shortmode_path"` 31567 new_path="$input_path" 31568 fi 31569 fi 31570 31571 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31572 if test "x$test_cygdrive_prefix" = x; then 31573 # As a simple fix, exclude /usr/bin since it's not a real path. 31574 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31575 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31576 # a path prefixed by /cygdrive for fixpath to work. 31577 new_path="$CYGWIN_ROOT_PATH$input_path" 31578 fi 31579 fi 31580 31581 # remove trailing .exe if any 31582 new_path="${new_path/%.exe/}" 31583 31584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31585 31586 # First separate the path from the arguments. This will split at the first 31587 # space. 31588 complete="$AS" 31589 path="${complete%% *}" 31590 tmp="$complete EOL" 31591 arguments="${tmp#* }" 31592 31593 # Input might be given as Windows format, start by converting to 31594 # unix format. 31595 new_path="$path" 31596 31597 windows_path="$new_path" 31598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31599 unix_path=`$CYGPATH -u "$windows_path"` 31600 new_path="$unix_path" 31601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31603 new_path="$unix_path" 31604 fi 31605 31606 31607 # Now try to locate executable using which 31608 new_path=`$WHICH "$new_path" 2> /dev/null` 31609 31610 if test "x$new_path" = x; then 31611 # Oops. Which didn't find the executable. 31612 # The splitting of arguments from the executable at a space might have been incorrect, 31613 # since paths with space are more likely in Windows. Give it another try with the whole 31614 # argument. 31615 path="$complete" 31616 arguments="EOL" 31617 new_path="$path" 31618 31619 windows_path="$new_path" 31620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31621 unix_path=`$CYGPATH -u "$windows_path"` 31622 new_path="$unix_path" 31623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31625 new_path="$unix_path" 31626 fi 31627 31628 31629 new_path=`$WHICH "$new_path" 2> /dev/null` 31630 # bat and cmd files are not always considered executable in MSYS causing which 31631 # to not find them 31632 if test "x$new_path" = x \ 31633 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31634 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31635 new_path="$path" 31636 31637 windows_path="$new_path" 31638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31639 unix_path=`$CYGPATH -u "$windows_path"` 31640 new_path="$unix_path" 31641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31642 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31643 new_path="$unix_path" 31644 fi 31645 31646 fi 31647 31648 if test "x$new_path" = x; then 31649 # It's still not found. Now this is an unrecoverable error. 31650 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31651 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31652 has_space=`$ECHO "$complete" | $GREP " "` 31653 if test "x$has_space" != x; then 31654 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31655 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31656 fi 31657 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31658 fi 31659 fi 31660 31661 # Now new_path has a complete unix path to the binary 31662 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31663 # Keep paths in /bin as-is, but remove trailing .exe if any 31664 new_path="${new_path/%.exe/}" 31665 # Do not save /bin paths to all_fixpath_prefixes! 31666 else 31667 # Not in mixed or Windows style, start by that. 31668 new_path=`cmd //c echo $new_path` 31669 31670 input_path="$new_path" 31671 # Check if we need to convert this using DOS-style short mode. If the path 31672 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31673 # take no chances and rewrite it. 31674 # Note: m4 eats our [], so we need to use [ and ] instead. 31675 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31676 if test "x$has_forbidden_chars" != x; then 31677 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31678 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31679 fi 31680 31681 # Output is in $new_path 31682 31683 windows_path="$new_path" 31684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31685 unix_path=`$CYGPATH -u "$windows_path"` 31686 new_path="$unix_path" 31687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31688 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31689 new_path="$unix_path" 31690 fi 31691 31692 # remove trailing .exe if any 31693 new_path="${new_path/%.exe/}" 31694 31695 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31696 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31697 fi 31698 31699 else 31700 # We're on a posix platform. Hooray! :) 31701 # First separate the path from the arguments. This will split at the first 31702 # space. 31703 complete="$AS" 31704 path="${complete%% *}" 31705 tmp="$complete EOL" 31706 arguments="${tmp#* }" 31707 31708 # Cannot rely on the command "which" here since it doesn't always work. 31709 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31710 if test -z "$is_absolute_path"; then 31711 # Path to executable is not absolute. Find it. 31712 IFS_save="$IFS" 31713 IFS=: 31714 for p in $PATH; do 31715 if test -f "$p/$path" && test -x "$p/$path"; then 31716 new_path="$p/$path" 31717 break 31718 fi 31719 done 31720 IFS="$IFS_save" 31721 else 31722 # This is an absolute path, we can use it without further modifications. 31723 new_path="$path" 31724 fi 31725 31726 if test "x$new_path" = x; then 31727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31728 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31729 has_space=`$ECHO "$complete" | $GREP " "` 31730 if test "x$has_space" != x; then 31731 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31732 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31733 fi 31734 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31735 fi 31736 fi 31737 31738 # Now join together the path and the arguments once again 31739 if test "x$arguments" != xEOL; then 31740 new_complete="$new_path ${arguments% *}" 31741 else 31742 new_complete="$new_path" 31743 fi 31744 31745 if test "x$complete" != "x$new_complete"; then 31746 AS="$new_complete" 31747 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 31748 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 31749 fi 31750 31751 else 31752 # FIXME: is this correct for microsoft? 31753 AS="$CC -c" 31754 fi 31755 31756 31757 # 31758 # Setup the archiver (AR) 31759 # 31760 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31761 # The corresponding ar tool is lib.exe (used to create static libraries) 31762 # Extract the first word of "lib", so it can be a program name with args. 31763 set dummy lib; ac_word=$2 31764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31765 $as_echo_n "checking for $ac_word... " >&6; } 31766 if ${ac_cv_prog_AR+:} false; then : 31767 $as_echo_n "(cached) " >&6 31768 else 31769 if test -n "$AR"; then 31770 ac_cv_prog_AR="$AR" # Let the user override the test. 31771 else 31772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31773 for as_dir in $PATH 31774 do 31775 IFS=$as_save_IFS 31776 test -z "$as_dir" && as_dir=. 31777 for ac_exec_ext in '' $ac_executable_extensions; do 31778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31779 ac_cv_prog_AR="lib" 31780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31781 break 2 31782 fi 31783 done 31784 done 31785 IFS=$as_save_IFS 31786 31787 fi 31788 fi 31789 AR=$ac_cv_prog_AR 31790 if test -n "$AR"; then 31791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31792 $as_echo "$AR" >&6; } 31793 else 31794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31795 $as_echo "no" >&6; } 31796 fi 31797 31798 31799 else 31800 31801 31802 # Publish this variable in the help. 31803 31804 31805 if test "x$AR" = x; then 31806 # The variable is not set by user, try to locate tool using the code snippet 31807 if test -n "$ac_tool_prefix"; then 31808 for ac_prog in ar 31809 do 31810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31813 $as_echo_n "checking for $ac_word... " >&6; } 31814 if ${ac_cv_prog_AR+:} false; then : 31815 $as_echo_n "(cached) " >&6 31816 else 31817 if test -n "$AR"; then 31818 ac_cv_prog_AR="$AR" # Let the user override the test. 31819 else 31820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31821 for as_dir in $PATH 31822 do 31823 IFS=$as_save_IFS 31824 test -z "$as_dir" && as_dir=. 31825 for ac_exec_ext in '' $ac_executable_extensions; do 31826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31827 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 31828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31829 break 2 31830 fi 31831 done 31832 done 31833 IFS=$as_save_IFS 31834 31835 fi 31836 fi 31837 AR=$ac_cv_prog_AR 31838 if test -n "$AR"; then 31839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31840 $as_echo "$AR" >&6; } 31841 else 31842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31843 $as_echo "no" >&6; } 31844 fi 31845 31846 31847 test -n "$AR" && break 31848 done 31849 fi 31850 if test -z "$AR"; then 31851 ac_ct_AR=$AR 31852 for ac_prog in ar 31853 do 31854 # Extract the first word of "$ac_prog", so it can be a program name with args. 31855 set dummy $ac_prog; ac_word=$2 31856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31857 $as_echo_n "checking for $ac_word... " >&6; } 31858 if ${ac_cv_prog_ac_ct_AR+:} false; then : 31859 $as_echo_n "(cached) " >&6 31860 else 31861 if test -n "$ac_ct_AR"; then 31862 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 31863 else 31864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31865 for as_dir in $PATH 31866 do 31867 IFS=$as_save_IFS 31868 test -z "$as_dir" && as_dir=. 31869 for ac_exec_ext in '' $ac_executable_extensions; do 31870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31871 ac_cv_prog_ac_ct_AR="$ac_prog" 31872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31873 break 2 31874 fi 31875 done 31876 done 31877 IFS=$as_save_IFS 31878 31879 fi 31880 fi 31881 ac_ct_AR=$ac_cv_prog_ac_ct_AR 31882 if test -n "$ac_ct_AR"; then 31883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 31884 $as_echo "$ac_ct_AR" >&6; } 31885 else 31886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31887 $as_echo "no" >&6; } 31888 fi 31889 31890 31891 test -n "$ac_ct_AR" && break 31892 done 31893 31894 if test "x$ac_ct_AR" = x; then 31895 AR="" 31896 else 31897 case $cross_compiling:$ac_tool_warned in 31898 yes:) 31899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31901 ac_tool_warned=yes ;; 31902 esac 31903 AR=$ac_ct_AR 31904 fi 31905 fi 31906 31907 else 31908 # The variable is set, but is it from the command line or the environment? 31909 31910 # Try to remove the string !AR! from our list. 31911 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 31912 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31913 # If it failed, the variable was not from the command line. Ignore it, 31914 # but warn the user (except for BASH, which is always set by the calling BASH). 31915 if test "xAR" != xBASH; then 31916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 31917 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 31918 fi 31919 # Try to locate tool using the code snippet 31920 if test -n "$ac_tool_prefix"; then 31921 for ac_prog in ar 31922 do 31923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31926 $as_echo_n "checking for $ac_word... " >&6; } 31927 if ${ac_cv_prog_AR+:} false; then : 31928 $as_echo_n "(cached) " >&6 31929 else 31930 if test -n "$AR"; then 31931 ac_cv_prog_AR="$AR" # Let the user override the test. 31932 else 31933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31934 for as_dir in $PATH 31935 do 31936 IFS=$as_save_IFS 31937 test -z "$as_dir" && as_dir=. 31938 for ac_exec_ext in '' $ac_executable_extensions; do 31939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31940 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 31941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31942 break 2 31943 fi 31944 done 31945 done 31946 IFS=$as_save_IFS 31947 31948 fi 31949 fi 31950 AR=$ac_cv_prog_AR 31951 if test -n "$AR"; then 31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31953 $as_echo "$AR" >&6; } 31954 else 31955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31956 $as_echo "no" >&6; } 31957 fi 31958 31959 31960 test -n "$AR" && break 31961 done 31962 fi 31963 if test -z "$AR"; then 31964 ac_ct_AR=$AR 31965 for ac_prog in ar 31966 do 31967 # Extract the first word of "$ac_prog", so it can be a program name with args. 31968 set dummy $ac_prog; ac_word=$2 31969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31970 $as_echo_n "checking for $ac_word... " >&6; } 31971 if ${ac_cv_prog_ac_ct_AR+:} false; then : 31972 $as_echo_n "(cached) " >&6 31973 else 31974 if test -n "$ac_ct_AR"; then 31975 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 31976 else 31977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31978 for as_dir in $PATH 31979 do 31980 IFS=$as_save_IFS 31981 test -z "$as_dir" && as_dir=. 31982 for ac_exec_ext in '' $ac_executable_extensions; do 31983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31984 ac_cv_prog_ac_ct_AR="$ac_prog" 31985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31986 break 2 31987 fi 31988 done 31989 done 31990 IFS=$as_save_IFS 31991 31992 fi 31993 fi 31994 ac_ct_AR=$ac_cv_prog_ac_ct_AR 31995 if test -n "$ac_ct_AR"; then 31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 31997 $as_echo "$ac_ct_AR" >&6; } 31998 else 31999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32000 $as_echo "no" >&6; } 32001 fi 32002 32003 32004 test -n "$ac_ct_AR" && break 32005 done 32006 32007 if test "x$ac_ct_AR" = x; then 32008 AR="" 32009 else 32010 case $cross_compiling:$ac_tool_warned in 32011 yes:) 32012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32014 ac_tool_warned=yes ;; 32015 esac 32016 AR=$ac_ct_AR 32017 fi 32018 fi 32019 32020 else 32021 # If it succeeded, then it was overridden by the user. We will use it 32022 # for the tool. 32023 32024 # First remove it from the list of overridden variables, so we can test 32025 # for unknown variables in the end. 32026 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32027 32028 # Check if the provided tool contains a complete path. 32029 tool_specified="$AR" 32030 tool_basename="${tool_specified##*/}" 32031 if test "x$tool_basename" = "x$tool_specified"; then 32032 # A command without a complete path is provided, search $PATH. 32033 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32034 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32035 # Extract the first word of "$tool_basename", so it can be a program name with args. 32036 set dummy $tool_basename; ac_word=$2 32037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32038 $as_echo_n "checking for $ac_word... " >&6; } 32039 if ${ac_cv_path_AR+:} false; then : 32040 $as_echo_n "(cached) " >&6 32041 else 32042 case $AR in 32043 [\\/]* | ?:[\\/]*) 32044 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32045 ;; 32046 *) 32047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32048 for as_dir in $PATH 32049 do 32050 IFS=$as_save_IFS 32051 test -z "$as_dir" && as_dir=. 32052 for ac_exec_ext in '' $ac_executable_extensions; do 32053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32054 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32056 break 2 32057 fi 32058 done 32059 done 32060 IFS=$as_save_IFS 32061 32062 ;; 32063 esac 32064 fi 32065 AR=$ac_cv_path_AR 32066 if test -n "$AR"; then 32067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32068 $as_echo "$AR" >&6; } 32069 else 32070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32071 $as_echo "no" >&6; } 32072 fi 32073 32074 32075 if test "x$AR" = x; then 32076 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32077 fi 32078 else 32079 # Otherwise we believe it is a complete path. Use it as it is. 32080 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32081 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32083 $as_echo_n "checking for AR... " >&6; } 32084 if test ! -x "$tool_specified"; then 32085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32086 $as_echo "not found" >&6; } 32087 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32088 fi 32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32090 $as_echo "$tool_specified" >&6; } 32091 fi 32092 fi 32093 fi 32094 32095 32096 fi 32097 32098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32099 32100 # First separate the path from the arguments. This will split at the first 32101 # space. 32102 complete="$AR" 32103 path="${complete%% *}" 32104 tmp="$complete EOL" 32105 arguments="${tmp#* }" 32106 32107 # Input might be given as Windows format, start by converting to 32108 # unix format. 32109 new_path=`$CYGPATH -u "$path"` 32110 32111 # Now try to locate executable using which 32112 new_path=`$WHICH "$new_path" 2> /dev/null` 32113 # bat and cmd files are not always considered executable in cygwin causing which 32114 # to not find them 32115 if test "x$new_path" = x \ 32116 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32117 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32118 new_path=`$CYGPATH -u "$path"` 32119 fi 32120 if test "x$new_path" = x; then 32121 # Oops. Which didn't find the executable. 32122 # The splitting of arguments from the executable at a space might have been incorrect, 32123 # since paths with space are more likely in Windows. Give it another try with the whole 32124 # argument. 32125 path="$complete" 32126 arguments="EOL" 32127 new_path=`$CYGPATH -u "$path"` 32128 new_path=`$WHICH "$new_path" 2> /dev/null` 32129 # bat and cmd files are not always considered executable in cygwin causing which 32130 # to not find them 32131 if test "x$new_path" = x \ 32132 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32133 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32134 new_path=`$CYGPATH -u "$path"` 32135 fi 32136 if test "x$new_path" = x; then 32137 # It's still not found. Now this is an unrecoverable error. 32138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32139 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32140 has_space=`$ECHO "$complete" | $GREP " "` 32141 if test "x$has_space" != x; then 32142 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32143 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32144 fi 32145 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32146 fi 32147 fi 32148 32149 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32150 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32151 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32152 # "foo.exe" is OK but "foo" is an error. 32153 # 32154 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32155 # It is also a way to make sure we got the proper file name for the real test later on. 32156 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32157 if test "x$test_shortpath" = x; then 32158 # Short path failed, file does not exist as specified. 32159 # Try adding .exe or .cmd 32160 if test -f "${new_path}.exe"; then 32161 input_to_shortpath="${new_path}.exe" 32162 elif test -f "${new_path}.cmd"; then 32163 input_to_shortpath="${new_path}.cmd" 32164 else 32165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32166 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32167 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32168 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32169 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32170 fi 32171 else 32172 input_to_shortpath="$new_path" 32173 fi 32174 32175 # Call helper function which possibly converts this using DOS-style short mode. 32176 # If so, the updated path is stored in $new_path. 32177 new_path="$input_to_shortpath" 32178 32179 input_path="$input_to_shortpath" 32180 # Check if we need to convert this using DOS-style short mode. If the path 32181 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32182 # take no chances and rewrite it. 32183 # Note: m4 eats our [], so we need to use [ and ] instead. 32184 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32185 if test "x$has_forbidden_chars" != x; then 32186 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32187 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32188 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32189 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32190 # Going to short mode and back again did indeed matter. Since short mode is 32191 # case insensitive, let's make it lowercase to improve readability. 32192 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32193 # Now convert it back to Unix-style (cygpath) 32194 input_path=`$CYGPATH -u "$shortmode_path"` 32195 new_path="$input_path" 32196 fi 32197 fi 32198 32199 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32200 if test "x$test_cygdrive_prefix" = x; then 32201 # As a simple fix, exclude /usr/bin since it's not a real path. 32202 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32203 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32204 # a path prefixed by /cygdrive for fixpath to work. 32205 new_path="$CYGWIN_ROOT_PATH$input_path" 32206 fi 32207 fi 32208 32209 # remove trailing .exe if any 32210 new_path="${new_path/%.exe/}" 32211 32212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32213 32214 # First separate the path from the arguments. This will split at the first 32215 # space. 32216 complete="$AR" 32217 path="${complete%% *}" 32218 tmp="$complete EOL" 32219 arguments="${tmp#* }" 32220 32221 # Input might be given as Windows format, start by converting to 32222 # unix format. 32223 new_path="$path" 32224 32225 windows_path="$new_path" 32226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32227 unix_path=`$CYGPATH -u "$windows_path"` 32228 new_path="$unix_path" 32229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32230 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32231 new_path="$unix_path" 32232 fi 32233 32234 32235 # Now try to locate executable using which 32236 new_path=`$WHICH "$new_path" 2> /dev/null` 32237 32238 if test "x$new_path" = x; then 32239 # Oops. Which didn't find the executable. 32240 # The splitting of arguments from the executable at a space might have been incorrect, 32241 # since paths with space are more likely in Windows. Give it another try with the whole 32242 # argument. 32243 path="$complete" 32244 arguments="EOL" 32245 new_path="$path" 32246 32247 windows_path="$new_path" 32248 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32249 unix_path=`$CYGPATH -u "$windows_path"` 32250 new_path="$unix_path" 32251 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32252 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32253 new_path="$unix_path" 32254 fi 32255 32256 32257 new_path=`$WHICH "$new_path" 2> /dev/null` 32258 # bat and cmd files are not always considered executable in MSYS causing which 32259 # to not find them 32260 if test "x$new_path" = x \ 32261 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32262 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32263 new_path="$path" 32264 32265 windows_path="$new_path" 32266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32267 unix_path=`$CYGPATH -u "$windows_path"` 32268 new_path="$unix_path" 32269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32270 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32271 new_path="$unix_path" 32272 fi 32273 32274 fi 32275 32276 if test "x$new_path" = x; then 32277 # It's still not found. Now this is an unrecoverable error. 32278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32279 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32280 has_space=`$ECHO "$complete" | $GREP " "` 32281 if test "x$has_space" != x; then 32282 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32283 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32284 fi 32285 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32286 fi 32287 fi 32288 32289 # Now new_path has a complete unix path to the binary 32290 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32291 # Keep paths in /bin as-is, but remove trailing .exe if any 32292 new_path="${new_path/%.exe/}" 32293 # Do not save /bin paths to all_fixpath_prefixes! 32294 else 32295 # Not in mixed or Windows style, start by that. 32296 new_path=`cmd //c echo $new_path` 32297 32298 input_path="$new_path" 32299 # Check if we need to convert this using DOS-style short mode. If the path 32300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32301 # take no chances and rewrite it. 32302 # Note: m4 eats our [], so we need to use [ and ] instead. 32303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32304 if test "x$has_forbidden_chars" != x; then 32305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32306 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32307 fi 32308 32309 # Output is in $new_path 32310 32311 windows_path="$new_path" 32312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32313 unix_path=`$CYGPATH -u "$windows_path"` 32314 new_path="$unix_path" 32315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32317 new_path="$unix_path" 32318 fi 32319 32320 # remove trailing .exe if any 32321 new_path="${new_path/%.exe/}" 32322 32323 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32324 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32325 fi 32326 32327 else 32328 # We're on a posix platform. Hooray! :) 32329 # First separate the path from the arguments. This will split at the first 32330 # space. 32331 complete="$AR" 32332 path="${complete%% *}" 32333 tmp="$complete EOL" 32334 arguments="${tmp#* }" 32335 32336 # Cannot rely on the command "which" here since it doesn't always work. 32337 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32338 if test -z "$is_absolute_path"; then 32339 # Path to executable is not absolute. Find it. 32340 IFS_save="$IFS" 32341 IFS=: 32342 for p in $PATH; do 32343 if test -f "$p/$path" && test -x "$p/$path"; then 32344 new_path="$p/$path" 32345 break 32346 fi 32347 done 32348 IFS="$IFS_save" 32349 else 32350 # This is an absolute path, we can use it without further modifications. 32351 new_path="$path" 32352 fi 32353 32354 if test "x$new_path" = x; then 32355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32356 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32357 has_space=`$ECHO "$complete" | $GREP " "` 32358 if test "x$has_space" != x; then 32359 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32360 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32361 fi 32362 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32363 fi 32364 fi 32365 32366 # Now join together the path and the arguments once again 32367 if test "x$arguments" != xEOL; then 32368 new_complete="$new_path ${arguments% *}" 32369 else 32370 new_complete="$new_path" 32371 fi 32372 32373 if test "x$complete" != "x$new_complete"; then 32374 AR="$new_complete" 32375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 32376 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 32377 fi 32378 32379 32380 32381 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 32382 ac_ext=m 32383 ac_cpp='$OBJCPP $CPPFLAGS' 32384 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32385 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32386 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 32387 if test -n "$ac_tool_prefix"; then 32388 for ac_prog in gcc objcc objc cc CC 32389 do 32390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32393 $as_echo_n "checking for $ac_word... " >&6; } 32394 if ${ac_cv_prog_OBJC+:} false; then : 32395 $as_echo_n "(cached) " >&6 32396 else 32397 if test -n "$OBJC"; then 32398 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 32399 else 32400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32401 for as_dir in $PATH 32402 do 32403 IFS=$as_save_IFS 32404 test -z "$as_dir" && as_dir=. 32405 for ac_exec_ext in '' $ac_executable_extensions; do 32406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32407 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 32408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32409 break 2 32410 fi 32411 done 32412 done 32413 IFS=$as_save_IFS 32414 32415 fi 32416 fi 32417 OBJC=$ac_cv_prog_OBJC 32418 if test -n "$OBJC"; then 32419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 32420 $as_echo "$OBJC" >&6; } 32421 else 32422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32423 $as_echo "no" >&6; } 32424 fi 32425 32426 32427 test -n "$OBJC" && break 32428 done 32429 fi 32430 if test -z "$OBJC"; then 32431 ac_ct_OBJC=$OBJC 32432 for ac_prog in gcc objcc objc cc CC 32433 do 32434 # Extract the first word of "$ac_prog", so it can be a program name with args. 32435 set dummy $ac_prog; ac_word=$2 32436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32437 $as_echo_n "checking for $ac_word... " >&6; } 32438 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 32439 $as_echo_n "(cached) " >&6 32440 else 32441 if test -n "$ac_ct_OBJC"; then 32442 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 32443 else 32444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32445 for as_dir in $PATH 32446 do 32447 IFS=$as_save_IFS 32448 test -z "$as_dir" && as_dir=. 32449 for ac_exec_ext in '' $ac_executable_extensions; do 32450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32451 ac_cv_prog_ac_ct_OBJC="$ac_prog" 32452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32453 break 2 32454 fi 32455 done 32456 done 32457 IFS=$as_save_IFS 32458 32459 fi 32460 fi 32461 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 32462 if test -n "$ac_ct_OBJC"; then 32463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 32464 $as_echo "$ac_ct_OBJC" >&6; } 32465 else 32466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32467 $as_echo "no" >&6; } 32468 fi 32469 32470 32471 test -n "$ac_ct_OBJC" && break 32472 done 32473 32474 if test "x$ac_ct_OBJC" = x; then 32475 OBJC="gcc" 32476 else 32477 case $cross_compiling:$ac_tool_warned in 32478 yes:) 32479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32481 ac_tool_warned=yes ;; 32482 esac 32483 OBJC=$ac_ct_OBJC 32484 fi 32485 fi 32486 32487 # Provide some information about the compiler. 32488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 32489 set X $ac_compile 32490 ac_compiler=$2 32491 for ac_option in --version -v -V -qversion; do 32492 { { ac_try="$ac_compiler $ac_option >&5" 32493 case "(($ac_try" in 32494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32495 *) ac_try_echo=$ac_try;; 32496 esac 32497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32498 $as_echo "$ac_try_echo"; } >&5 32499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32500 ac_status=$? 32501 if test -s conftest.err; then 32502 sed '10a\ 32503 ... rest of stderr output deleted ... 32504 10q' conftest.err >conftest.er1 32505 cat conftest.er1 >&5 32506 fi 32507 rm -f conftest.er1 conftest.err 32508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32509 test $ac_status = 0; } 32510 done 32511 32512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 32513 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 32514 if ${ac_cv_objc_compiler_gnu+:} false; then : 32515 $as_echo_n "(cached) " >&6 32516 else 32517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32518 /* end confdefs.h. */ 32519 32520 int 32521 main () 32522 { 32523 #ifndef __GNUC__ 32524 choke me 32525 #endif 32526 32527 ; 32528 return 0; 32529 } 32530 _ACEOF 32531 if ac_fn_objc_try_compile "$LINENO"; then : 32532 ac_compiler_gnu=yes 32533 else 32534 ac_compiler_gnu=no 32535 fi 32536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32537 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 32538 32539 fi 32540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 32541 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 32542 if test $ac_compiler_gnu = yes; then 32543 GOBJC=yes 32544 else 32545 GOBJC= 32546 fi 32547 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 32548 ac_save_OBJCFLAGS=$OBJCFLAGS 32549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 32550 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 32551 if ${ac_cv_prog_objc_g+:} false; then : 32552 $as_echo_n "(cached) " >&6 32553 else 32554 ac_save_objc_werror_flag=$ac_objc_werror_flag 32555 ac_objc_werror_flag=yes 32556 ac_cv_prog_objc_g=no 32557 OBJCFLAGS="-g" 32558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32559 /* end confdefs.h. */ 32560 32561 int 32562 main () 32563 { 32564 32565 ; 32566 return 0; 32567 } 32568 _ACEOF 32569 if ac_fn_objc_try_compile "$LINENO"; then : 32570 ac_cv_prog_objc_g=yes 32571 else 32572 OBJCFLAGS="" 32573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32574 /* end confdefs.h. */ 32575 32576 int 32577 main () 32578 { 32579 32580 ; 32581 return 0; 32582 } 32583 _ACEOF 32584 if ac_fn_objc_try_compile "$LINENO"; then : 32585 32586 else 32587 ac_objc_werror_flag=$ac_save_objc_werror_flag 32588 OBJCFLAGS="-g" 32589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32590 /* end confdefs.h. */ 32591 32592 int 32593 main () 32594 { 32595 32596 ; 32597 return 0; 32598 } 32599 _ACEOF 32600 if ac_fn_objc_try_compile "$LINENO"; then : 32601 ac_cv_prog_objc_g=yes 32602 fi 32603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32604 fi 32605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32606 fi 32607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32608 ac_objc_werror_flag=$ac_save_objc_werror_flag 32609 fi 32610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 32611 $as_echo "$ac_cv_prog_objc_g" >&6; } 32612 if test "$ac_test_OBJCFLAGS" = set; then 32613 OBJCFLAGS=$ac_save_OBJCFLAGS 32614 elif test $ac_cv_prog_objc_g = yes; then 32615 if test "$GOBJC" = yes; then 32616 OBJCFLAGS="-g -O2" 32617 else 32618 OBJCFLAGS="-g" 32619 fi 32620 else 32621 if test "$GOBJC" = yes; then 32622 OBJCFLAGS="-O2" 32623 else 32624 OBJCFLAGS= 32625 fi 32626 fi 32627 ac_ext=cpp 32628 ac_cpp='$CXXCPP $CPPFLAGS' 32629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32632 32633 32634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32635 32636 # First separate the path from the arguments. This will split at the first 32637 # space. 32638 complete="$OBJC" 32639 path="${complete%% *}" 32640 tmp="$complete EOL" 32641 arguments="${tmp#* }" 32642 32643 # Input might be given as Windows format, start by converting to 32644 # unix format. 32645 new_path=`$CYGPATH -u "$path"` 32646 32647 # Now try to locate executable using which 32648 new_path=`$WHICH "$new_path" 2> /dev/null` 32649 # bat and cmd files are not always considered executable in cygwin causing which 32650 # to not find them 32651 if test "x$new_path" = x \ 32652 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32653 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32654 new_path=`$CYGPATH -u "$path"` 32655 fi 32656 if test "x$new_path" = x; then 32657 # Oops. Which didn't find the executable. 32658 # The splitting of arguments from the executable at a space might have been incorrect, 32659 # since paths with space are more likely in Windows. Give it another try with the whole 32660 # argument. 32661 path="$complete" 32662 arguments="EOL" 32663 new_path=`$CYGPATH -u "$path"` 32664 new_path=`$WHICH "$new_path" 2> /dev/null` 32665 # bat and cmd files are not always considered executable in cygwin causing which 32666 # to not find them 32667 if test "x$new_path" = x \ 32668 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32669 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32670 new_path=`$CYGPATH -u "$path"` 32671 fi 32672 if test "x$new_path" = x; then 32673 # It's still not found. Now this is an unrecoverable error. 32674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32675 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32676 has_space=`$ECHO "$complete" | $GREP " "` 32677 if test "x$has_space" != x; then 32678 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32679 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32680 fi 32681 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32682 fi 32683 fi 32684 32685 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32686 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32687 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32688 # "foo.exe" is OK but "foo" is an error. 32689 # 32690 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32691 # It is also a way to make sure we got the proper file name for the real test later on. 32692 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32693 if test "x$test_shortpath" = x; then 32694 # Short path failed, file does not exist as specified. 32695 # Try adding .exe or .cmd 32696 if test -f "${new_path}.exe"; then 32697 input_to_shortpath="${new_path}.exe" 32698 elif test -f "${new_path}.cmd"; then 32699 input_to_shortpath="${new_path}.cmd" 32700 else 32701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 32702 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 32703 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32704 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32705 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32706 fi 32707 else 32708 input_to_shortpath="$new_path" 32709 fi 32710 32711 # Call helper function which possibly converts this using DOS-style short mode. 32712 # If so, the updated path is stored in $new_path. 32713 new_path="$input_to_shortpath" 32714 32715 input_path="$input_to_shortpath" 32716 # Check if we need to convert this using DOS-style short mode. If the path 32717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32718 # take no chances and rewrite it. 32719 # Note: m4 eats our [], so we need to use [ and ] instead. 32720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32721 if test "x$has_forbidden_chars" != x; then 32722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32723 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32724 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32725 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32726 # Going to short mode and back again did indeed matter. Since short mode is 32727 # case insensitive, let's make it lowercase to improve readability. 32728 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32729 # Now convert it back to Unix-style (cygpath) 32730 input_path=`$CYGPATH -u "$shortmode_path"` 32731 new_path="$input_path" 32732 fi 32733 fi 32734 32735 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32736 if test "x$test_cygdrive_prefix" = x; then 32737 # As a simple fix, exclude /usr/bin since it's not a real path. 32738 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32739 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32740 # a path prefixed by /cygdrive for fixpath to work. 32741 new_path="$CYGWIN_ROOT_PATH$input_path" 32742 fi 32743 fi 32744 32745 # remove trailing .exe if any 32746 new_path="${new_path/%.exe/}" 32747 32748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32749 32750 # First separate the path from the arguments. This will split at the first 32751 # space. 32752 complete="$OBJC" 32753 path="${complete%% *}" 32754 tmp="$complete EOL" 32755 arguments="${tmp#* }" 32756 32757 # Input might be given as Windows format, start by converting to 32758 # unix format. 32759 new_path="$path" 32760 32761 windows_path="$new_path" 32762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32763 unix_path=`$CYGPATH -u "$windows_path"` 32764 new_path="$unix_path" 32765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32767 new_path="$unix_path" 32768 fi 32769 32770 32771 # Now try to locate executable using which 32772 new_path=`$WHICH "$new_path" 2> /dev/null` 32773 32774 if test "x$new_path" = x; then 32775 # Oops. Which didn't find the executable. 32776 # The splitting of arguments from the executable at a space might have been incorrect, 32777 # since paths with space are more likely in Windows. Give it another try with the whole 32778 # argument. 32779 path="$complete" 32780 arguments="EOL" 32781 new_path="$path" 32782 32783 windows_path="$new_path" 32784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32785 unix_path=`$CYGPATH -u "$windows_path"` 32786 new_path="$unix_path" 32787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32789 new_path="$unix_path" 32790 fi 32791 32792 32793 new_path=`$WHICH "$new_path" 2> /dev/null` 32794 # bat and cmd files are not always considered executable in MSYS causing which 32795 # to not find them 32796 if test "x$new_path" = x \ 32797 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32798 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32799 new_path="$path" 32800 32801 windows_path="$new_path" 32802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32803 unix_path=`$CYGPATH -u "$windows_path"` 32804 new_path="$unix_path" 32805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32806 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32807 new_path="$unix_path" 32808 fi 32809 32810 fi 32811 32812 if test "x$new_path" = x; then 32813 # It's still not found. Now this is an unrecoverable error. 32814 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32815 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32816 has_space=`$ECHO "$complete" | $GREP " "` 32817 if test "x$has_space" != x; then 32818 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32819 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32820 fi 32821 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32822 fi 32823 fi 32824 32825 # Now new_path has a complete unix path to the binary 32826 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32827 # Keep paths in /bin as-is, but remove trailing .exe if any 32828 new_path="${new_path/%.exe/}" 32829 # Do not save /bin paths to all_fixpath_prefixes! 32830 else 32831 # Not in mixed or Windows style, start by that. 32832 new_path=`cmd //c echo $new_path` 32833 32834 input_path="$new_path" 32835 # Check if we need to convert this using DOS-style short mode. If the path 32836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32837 # take no chances and rewrite it. 32838 # Note: m4 eats our [], so we need to use [ and ] instead. 32839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32840 if test "x$has_forbidden_chars" != x; then 32841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32842 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32843 fi 32844 32845 # Output is in $new_path 32846 32847 windows_path="$new_path" 32848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32849 unix_path=`$CYGPATH -u "$windows_path"` 32850 new_path="$unix_path" 32851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32853 new_path="$unix_path" 32854 fi 32855 32856 # remove trailing .exe if any 32857 new_path="${new_path/%.exe/}" 32858 32859 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32860 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32861 fi 32862 32863 else 32864 # We're on a posix platform. Hooray! :) 32865 # First separate the path from the arguments. This will split at the first 32866 # space. 32867 complete="$OBJC" 32868 path="${complete%% *}" 32869 tmp="$complete EOL" 32870 arguments="${tmp#* }" 32871 32872 # Cannot rely on the command "which" here since it doesn't always work. 32873 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32874 if test -z "$is_absolute_path"; then 32875 # Path to executable is not absolute. Find it. 32876 IFS_save="$IFS" 32877 IFS=: 32878 for p in $PATH; do 32879 if test -f "$p/$path" && test -x "$p/$path"; then 32880 new_path="$p/$path" 32881 break 32882 fi 32883 done 32884 IFS="$IFS_save" 32885 else 32886 # This is an absolute path, we can use it without further modifications. 32887 new_path="$path" 32888 fi 32889 32890 if test "x$new_path" = x; then 32891 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32892 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32893 has_space=`$ECHO "$complete" | $GREP " "` 32894 if test "x$has_space" != x; then 32895 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32896 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32897 fi 32898 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32899 fi 32900 fi 32901 32902 # Now join together the path and the arguments once again 32903 if test "x$arguments" != xEOL; then 32904 new_complete="$new_path ${arguments% *}" 32905 else 32906 new_complete="$new_path" 32907 fi 32908 32909 if test "x$complete" != "x$new_complete"; then 32910 OBJC="$new_complete" 32911 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 32912 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 32913 fi 32914 32915 32916 32917 # Publish this variable in the help. 32918 32919 32920 if test "x$LIPO" = x; then 32921 # The variable is not set by user, try to locate tool using the code snippet 32922 for ac_prog in lipo 32923 do 32924 # Extract the first word of "$ac_prog", so it can be a program name with args. 32925 set dummy $ac_prog; ac_word=$2 32926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32927 $as_echo_n "checking for $ac_word... " >&6; } 32928 if ${ac_cv_path_LIPO+:} false; then : 32929 $as_echo_n "(cached) " >&6 32930 else 32931 case $LIPO in 32932 [\\/]* | ?:[\\/]*) 32933 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32934 ;; 32935 *) 32936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32937 for as_dir in $PATH 32938 do 32939 IFS=$as_save_IFS 32940 test -z "$as_dir" && as_dir=. 32941 for ac_exec_ext in '' $ac_executable_extensions; do 32942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32943 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 32944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32945 break 2 32946 fi 32947 done 32948 done 32949 IFS=$as_save_IFS 32950 32951 ;; 32952 esac 32953 fi 32954 LIPO=$ac_cv_path_LIPO 32955 if test -n "$LIPO"; then 32956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 32957 $as_echo "$LIPO" >&6; } 32958 else 32959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32960 $as_echo "no" >&6; } 32961 fi 32962 32963 32964 test -n "$LIPO" && break 32965 done 32966 32967 else 32968 # The variable is set, but is it from the command line or the environment? 32969 32970 # Try to remove the string !LIPO! from our list. 32971 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 32972 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32973 # If it failed, the variable was not from the command line. Ignore it, 32974 # but warn the user (except for BASH, which is always set by the calling BASH). 32975 if test "xLIPO" != xBASH; then 32976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 32977 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 32978 fi 32979 # Try to locate tool using the code snippet 32980 for ac_prog in lipo 32981 do 32982 # Extract the first word of "$ac_prog", so it can be a program name with args. 32983 set dummy $ac_prog; ac_word=$2 32984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32985 $as_echo_n "checking for $ac_word... " >&6; } 32986 if ${ac_cv_path_LIPO+:} false; then : 32987 $as_echo_n "(cached) " >&6 32988 else 32989 case $LIPO in 32990 [\\/]* | ?:[\\/]*) 32991 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32992 ;; 32993 *) 32994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32995 for as_dir in $PATH 32996 do 32997 IFS=$as_save_IFS 32998 test -z "$as_dir" && as_dir=. 32999 for ac_exec_ext in '' $ac_executable_extensions; do 33000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33001 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33003 break 2 33004 fi 33005 done 33006 done 33007 IFS=$as_save_IFS 33008 33009 ;; 33010 esac 33011 fi 33012 LIPO=$ac_cv_path_LIPO 33013 if test -n "$LIPO"; then 33014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33015 $as_echo "$LIPO" >&6; } 33016 else 33017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33018 $as_echo "no" >&6; } 33019 fi 33020 33021 33022 test -n "$LIPO" && break 33023 done 33024 33025 else 33026 # If it succeeded, then it was overridden by the user. We will use it 33027 # for the tool. 33028 33029 # First remove it from the list of overridden variables, so we can test 33030 # for unknown variables in the end. 33031 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33032 33033 # Check if the provided tool contains a complete path. 33034 tool_specified="$LIPO" 33035 tool_basename="${tool_specified##*/}" 33036 if test "x$tool_basename" = "x$tool_specified"; then 33037 # A command without a complete path is provided, search $PATH. 33038 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33039 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33040 # Extract the first word of "$tool_basename", so it can be a program name with args. 33041 set dummy $tool_basename; ac_word=$2 33042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33043 $as_echo_n "checking for $ac_word... " >&6; } 33044 if ${ac_cv_path_LIPO+:} false; then : 33045 $as_echo_n "(cached) " >&6 33046 else 33047 case $LIPO in 33048 [\\/]* | ?:[\\/]*) 33049 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33050 ;; 33051 *) 33052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33053 for as_dir in $PATH 33054 do 33055 IFS=$as_save_IFS 33056 test -z "$as_dir" && as_dir=. 33057 for ac_exec_ext in '' $ac_executable_extensions; do 33058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33059 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33061 break 2 33062 fi 33063 done 33064 done 33065 IFS=$as_save_IFS 33066 33067 ;; 33068 esac 33069 fi 33070 LIPO=$ac_cv_path_LIPO 33071 if test -n "$LIPO"; then 33072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33073 $as_echo "$LIPO" >&6; } 33074 else 33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33076 $as_echo "no" >&6; } 33077 fi 33078 33079 33080 if test "x$LIPO" = x; then 33081 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33082 fi 33083 else 33084 # Otherwise we believe it is a complete path. Use it as it is. 33085 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33086 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33088 $as_echo_n "checking for LIPO... " >&6; } 33089 if test ! -x "$tool_specified"; then 33090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33091 $as_echo "not found" >&6; } 33092 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33093 fi 33094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33095 $as_echo "$tool_specified" >&6; } 33096 fi 33097 fi 33098 fi 33099 33100 33101 33102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33103 33104 # First separate the path from the arguments. This will split at the first 33105 # space. 33106 complete="$LIPO" 33107 path="${complete%% *}" 33108 tmp="$complete EOL" 33109 arguments="${tmp#* }" 33110 33111 # Input might be given as Windows format, start by converting to 33112 # unix format. 33113 new_path=`$CYGPATH -u "$path"` 33114 33115 # Now try to locate executable using which 33116 new_path=`$WHICH "$new_path" 2> /dev/null` 33117 # bat and cmd files are not always considered executable in cygwin causing which 33118 # to not find them 33119 if test "x$new_path" = x \ 33120 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33121 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33122 new_path=`$CYGPATH -u "$path"` 33123 fi 33124 if test "x$new_path" = x; then 33125 # Oops. Which didn't find the executable. 33126 # The splitting of arguments from the executable at a space might have been incorrect, 33127 # since paths with space are more likely in Windows. Give it another try with the whole 33128 # argument. 33129 path="$complete" 33130 arguments="EOL" 33131 new_path=`$CYGPATH -u "$path"` 33132 new_path=`$WHICH "$new_path" 2> /dev/null` 33133 # bat and cmd files are not always considered executable in cygwin causing which 33134 # to not find them 33135 if test "x$new_path" = x \ 33136 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33137 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33138 new_path=`$CYGPATH -u "$path"` 33139 fi 33140 if test "x$new_path" = x; then 33141 # It's still not found. Now this is an unrecoverable error. 33142 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33143 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33144 has_space=`$ECHO "$complete" | $GREP " "` 33145 if test "x$has_space" != x; then 33146 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33147 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33148 fi 33149 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33150 fi 33151 fi 33152 33153 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33154 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33155 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33156 # "foo.exe" is OK but "foo" is an error. 33157 # 33158 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33159 # It is also a way to make sure we got the proper file name for the real test later on. 33160 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33161 if test "x$test_shortpath" = x; then 33162 # Short path failed, file does not exist as specified. 33163 # Try adding .exe or .cmd 33164 if test -f "${new_path}.exe"; then 33165 input_to_shortpath="${new_path}.exe" 33166 elif test -f "${new_path}.cmd"; then 33167 input_to_shortpath="${new_path}.cmd" 33168 else 33169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33170 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33171 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33172 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33173 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33174 fi 33175 else 33176 input_to_shortpath="$new_path" 33177 fi 33178 33179 # Call helper function which possibly converts this using DOS-style short mode. 33180 # If so, the updated path is stored in $new_path. 33181 new_path="$input_to_shortpath" 33182 33183 input_path="$input_to_shortpath" 33184 # Check if we need to convert this using DOS-style short mode. If the path 33185 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33186 # take no chances and rewrite it. 33187 # Note: m4 eats our [], so we need to use [ and ] instead. 33188 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33189 if test "x$has_forbidden_chars" != x; then 33190 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33191 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33192 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33193 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33194 # Going to short mode and back again did indeed matter. Since short mode is 33195 # case insensitive, let's make it lowercase to improve readability. 33196 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33197 # Now convert it back to Unix-style (cygpath) 33198 input_path=`$CYGPATH -u "$shortmode_path"` 33199 new_path="$input_path" 33200 fi 33201 fi 33202 33203 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33204 if test "x$test_cygdrive_prefix" = x; then 33205 # As a simple fix, exclude /usr/bin since it's not a real path. 33206 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33207 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33208 # a path prefixed by /cygdrive for fixpath to work. 33209 new_path="$CYGWIN_ROOT_PATH$input_path" 33210 fi 33211 fi 33212 33213 # remove trailing .exe if any 33214 new_path="${new_path/%.exe/}" 33215 33216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33217 33218 # First separate the path from the arguments. This will split at the first 33219 # space. 33220 complete="$LIPO" 33221 path="${complete%% *}" 33222 tmp="$complete EOL" 33223 arguments="${tmp#* }" 33224 33225 # Input might be given as Windows format, start by converting to 33226 # unix format. 33227 new_path="$path" 33228 33229 windows_path="$new_path" 33230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33231 unix_path=`$CYGPATH -u "$windows_path"` 33232 new_path="$unix_path" 33233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33234 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33235 new_path="$unix_path" 33236 fi 33237 33238 33239 # Now try to locate executable using which 33240 new_path=`$WHICH "$new_path" 2> /dev/null` 33241 33242 if test "x$new_path" = x; then 33243 # Oops. Which didn't find the executable. 33244 # The splitting of arguments from the executable at a space might have been incorrect, 33245 # since paths with space are more likely in Windows. Give it another try with the whole 33246 # argument. 33247 path="$complete" 33248 arguments="EOL" 33249 new_path="$path" 33250 33251 windows_path="$new_path" 33252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33253 unix_path=`$CYGPATH -u "$windows_path"` 33254 new_path="$unix_path" 33255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33257 new_path="$unix_path" 33258 fi 33259 33260 33261 new_path=`$WHICH "$new_path" 2> /dev/null` 33262 # bat and cmd files are not always considered executable in MSYS causing which 33263 # to not find them 33264 if test "x$new_path" = x \ 33265 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33266 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33267 new_path="$path" 33268 33269 windows_path="$new_path" 33270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33271 unix_path=`$CYGPATH -u "$windows_path"` 33272 new_path="$unix_path" 33273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33275 new_path="$unix_path" 33276 fi 33277 33278 fi 33279 33280 if test "x$new_path" = x; then 33281 # It's still not found. Now this is an unrecoverable error. 33282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33283 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33284 has_space=`$ECHO "$complete" | $GREP " "` 33285 if test "x$has_space" != x; then 33286 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33287 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33288 fi 33289 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33290 fi 33291 fi 33292 33293 # Now new_path has a complete unix path to the binary 33294 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33295 # Keep paths in /bin as-is, but remove trailing .exe if any 33296 new_path="${new_path/%.exe/}" 33297 # Do not save /bin paths to all_fixpath_prefixes! 33298 else 33299 # Not in mixed or Windows style, start by that. 33300 new_path=`cmd //c echo $new_path` 33301 33302 input_path="$new_path" 33303 # Check if we need to convert this using DOS-style short mode. If the path 33304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33305 # take no chances and rewrite it. 33306 # Note: m4 eats our [], so we need to use [ and ] instead. 33307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33308 if test "x$has_forbidden_chars" != x; then 33309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33310 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33311 fi 33312 33313 # Output is in $new_path 33314 33315 windows_path="$new_path" 33316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33317 unix_path=`$CYGPATH -u "$windows_path"` 33318 new_path="$unix_path" 33319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33321 new_path="$unix_path" 33322 fi 33323 33324 # remove trailing .exe if any 33325 new_path="${new_path/%.exe/}" 33326 33327 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33328 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33329 fi 33330 33331 else 33332 # We're on a posix platform. Hooray! :) 33333 # First separate the path from the arguments. This will split at the first 33334 # space. 33335 complete="$LIPO" 33336 path="${complete%% *}" 33337 tmp="$complete EOL" 33338 arguments="${tmp#* }" 33339 33340 # Cannot rely on the command "which" here since it doesn't always work. 33341 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33342 if test -z "$is_absolute_path"; then 33343 # Path to executable is not absolute. Find it. 33344 IFS_save="$IFS" 33345 IFS=: 33346 for p in $PATH; do 33347 if test -f "$p/$path" && test -x "$p/$path"; then 33348 new_path="$p/$path" 33349 break 33350 fi 33351 done 33352 IFS="$IFS_save" 33353 else 33354 # This is an absolute path, we can use it without further modifications. 33355 new_path="$path" 33356 fi 33357 33358 if test "x$new_path" = x; then 33359 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33360 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33361 has_space=`$ECHO "$complete" | $GREP " "` 33362 if test "x$has_space" != x; then 33363 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33364 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33365 fi 33366 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33367 fi 33368 fi 33369 33370 # Now join together the path and the arguments once again 33371 if test "x$arguments" != xEOL; then 33372 new_complete="$new_path ${arguments% *}" 33373 else 33374 new_complete="$new_path" 33375 fi 33376 33377 if test "x$complete" != "x$new_complete"; then 33378 LIPO="$new_complete" 33379 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 33380 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 33381 fi 33382 33383 else 33384 OBJC= 33385 fi 33386 33387 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33388 # Extract the first word of "mt", so it can be a program name with args. 33389 set dummy mt; ac_word=$2 33390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33391 $as_echo_n "checking for $ac_word... " >&6; } 33392 if ${ac_cv_prog_MT+:} false; then : 33393 $as_echo_n "(cached) " >&6 33394 else 33395 if test -n "$MT"; then 33396 ac_cv_prog_MT="$MT" # Let the user override the test. 33397 else 33398 ac_prog_rejected=no 33399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33400 for as_dir in $PATH 33401 do 33402 IFS=$as_save_IFS 33403 test -z "$as_dir" && as_dir=. 33404 for ac_exec_ext in '' $ac_executable_extensions; do 33405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33406 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 33407 ac_prog_rejected=yes 33408 continue 33409 fi 33410 ac_cv_prog_MT="mt" 33411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33412 break 2 33413 fi 33414 done 33415 done 33416 IFS=$as_save_IFS 33417 33418 if test $ac_prog_rejected = yes; then 33419 # We found a bogon in the path, so make sure we never use it. 33420 set dummy $ac_cv_prog_MT 33421 shift 33422 if test $# != 0; then 33423 # We chose a different compiler from the bogus one. 33424 # However, it has the same basename, so the bogon will be chosen 33425 # first if we set MT to just the basename; use the full file name. 33426 shift 33427 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 33428 fi 33429 fi 33430 fi 33431 fi 33432 MT=$ac_cv_prog_MT 33433 if test -n "$MT"; then 33434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 33435 $as_echo "$MT" >&6; } 33436 else 33437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33438 $as_echo "no" >&6; } 33439 fi 33440 33441 33442 33443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33444 33445 # First separate the path from the arguments. This will split at the first 33446 # space. 33447 complete="$MT" 33448 path="${complete%% *}" 33449 tmp="$complete EOL" 33450 arguments="${tmp#* }" 33451 33452 # Input might be given as Windows format, start by converting to 33453 # unix format. 33454 new_path=`$CYGPATH -u "$path"` 33455 33456 # Now try to locate executable using which 33457 new_path=`$WHICH "$new_path" 2> /dev/null` 33458 # bat and cmd files are not always considered executable in cygwin causing which 33459 # to not find them 33460 if test "x$new_path" = x \ 33461 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33462 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33463 new_path=`$CYGPATH -u "$path"` 33464 fi 33465 if test "x$new_path" = x; then 33466 # Oops. Which didn't find the executable. 33467 # The splitting of arguments from the executable at a space might have been incorrect, 33468 # since paths with space are more likely in Windows. Give it another try with the whole 33469 # argument. 33470 path="$complete" 33471 arguments="EOL" 33472 new_path=`$CYGPATH -u "$path"` 33473 new_path=`$WHICH "$new_path" 2> /dev/null` 33474 # bat and cmd files are not always considered executable in cygwin causing which 33475 # to not find them 33476 if test "x$new_path" = x \ 33477 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33478 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33479 new_path=`$CYGPATH -u "$path"` 33480 fi 33481 if test "x$new_path" = x; then 33482 # It's still not found. Now this is an unrecoverable error. 33483 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33484 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33485 has_space=`$ECHO "$complete" | $GREP " "` 33486 if test "x$has_space" != x; then 33487 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33488 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33489 fi 33490 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33491 fi 33492 fi 33493 33494 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33495 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33496 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33497 # "foo.exe" is OK but "foo" is an error. 33498 # 33499 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33500 # It is also a way to make sure we got the proper file name for the real test later on. 33501 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33502 if test "x$test_shortpath" = x; then 33503 # Short path failed, file does not exist as specified. 33504 # Try adding .exe or .cmd 33505 if test -f "${new_path}.exe"; then 33506 input_to_shortpath="${new_path}.exe" 33507 elif test -f "${new_path}.cmd"; then 33508 input_to_shortpath="${new_path}.cmd" 33509 else 33510 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 33511 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 33512 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33513 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33514 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33515 fi 33516 else 33517 input_to_shortpath="$new_path" 33518 fi 33519 33520 # Call helper function which possibly converts this using DOS-style short mode. 33521 # If so, the updated path is stored in $new_path. 33522 new_path="$input_to_shortpath" 33523 33524 input_path="$input_to_shortpath" 33525 # Check if we need to convert this using DOS-style short mode. If the path 33526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33527 # take no chances and rewrite it. 33528 # Note: m4 eats our [], so we need to use [ and ] instead. 33529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33530 if test "x$has_forbidden_chars" != x; then 33531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33532 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33533 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33534 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33535 # Going to short mode and back again did indeed matter. Since short mode is 33536 # case insensitive, let's make it lowercase to improve readability. 33537 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33538 # Now convert it back to Unix-style (cygpath) 33539 input_path=`$CYGPATH -u "$shortmode_path"` 33540 new_path="$input_path" 33541 fi 33542 fi 33543 33544 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33545 if test "x$test_cygdrive_prefix" = x; then 33546 # As a simple fix, exclude /usr/bin since it's not a real path. 33547 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33548 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33549 # a path prefixed by /cygdrive for fixpath to work. 33550 new_path="$CYGWIN_ROOT_PATH$input_path" 33551 fi 33552 fi 33553 33554 # remove trailing .exe if any 33555 new_path="${new_path/%.exe/}" 33556 33557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33558 33559 # First separate the path from the arguments. This will split at the first 33560 # space. 33561 complete="$MT" 33562 path="${complete%% *}" 33563 tmp="$complete EOL" 33564 arguments="${tmp#* }" 33565 33566 # Input might be given as Windows format, start by converting to 33567 # unix format. 33568 new_path="$path" 33569 33570 windows_path="$new_path" 33571 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33572 unix_path=`$CYGPATH -u "$windows_path"` 33573 new_path="$unix_path" 33574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33575 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33576 new_path="$unix_path" 33577 fi 33578 33579 33580 # Now try to locate executable using which 33581 new_path=`$WHICH "$new_path" 2> /dev/null` 33582 33583 if test "x$new_path" = x; then 33584 # Oops. Which didn't find the executable. 33585 # The splitting of arguments from the executable at a space might have been incorrect, 33586 # since paths with space are more likely in Windows. Give it another try with the whole 33587 # argument. 33588 path="$complete" 33589 arguments="EOL" 33590 new_path="$path" 33591 33592 windows_path="$new_path" 33593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33594 unix_path=`$CYGPATH -u "$windows_path"` 33595 new_path="$unix_path" 33596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33598 new_path="$unix_path" 33599 fi 33600 33601 33602 new_path=`$WHICH "$new_path" 2> /dev/null` 33603 # bat and cmd files are not always considered executable in MSYS causing which 33604 # to not find them 33605 if test "x$new_path" = x \ 33606 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33607 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33608 new_path="$path" 33609 33610 windows_path="$new_path" 33611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33612 unix_path=`$CYGPATH -u "$windows_path"` 33613 new_path="$unix_path" 33614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33616 new_path="$unix_path" 33617 fi 33618 33619 fi 33620 33621 if test "x$new_path" = x; then 33622 # It's still not found. Now this is an unrecoverable error. 33623 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33624 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33625 has_space=`$ECHO "$complete" | $GREP " "` 33626 if test "x$has_space" != x; then 33627 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33628 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33629 fi 33630 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33631 fi 33632 fi 33633 33634 # Now new_path has a complete unix path to the binary 33635 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33636 # Keep paths in /bin as-is, but remove trailing .exe if any 33637 new_path="${new_path/%.exe/}" 33638 # Do not save /bin paths to all_fixpath_prefixes! 33639 else 33640 # Not in mixed or Windows style, start by that. 33641 new_path=`cmd //c echo $new_path` 33642 33643 input_path="$new_path" 33644 # Check if we need to convert this using DOS-style short mode. If the path 33645 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33646 # take no chances and rewrite it. 33647 # Note: m4 eats our [], so we need to use [ and ] instead. 33648 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33649 if test "x$has_forbidden_chars" != x; then 33650 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33651 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33652 fi 33653 33654 # Output is in $new_path 33655 33656 windows_path="$new_path" 33657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33658 unix_path=`$CYGPATH -u "$windows_path"` 33659 new_path="$unix_path" 33660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33661 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33662 new_path="$unix_path" 33663 fi 33664 33665 # remove trailing .exe if any 33666 new_path="${new_path/%.exe/}" 33667 33668 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33669 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33670 fi 33671 33672 else 33673 # We're on a posix platform. Hooray! :) 33674 # First separate the path from the arguments. This will split at the first 33675 # space. 33676 complete="$MT" 33677 path="${complete%% *}" 33678 tmp="$complete EOL" 33679 arguments="${tmp#* }" 33680 33681 # Cannot rely on the command "which" here since it doesn't always work. 33682 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33683 if test -z "$is_absolute_path"; then 33684 # Path to executable is not absolute. Find it. 33685 IFS_save="$IFS" 33686 IFS=: 33687 for p in $PATH; do 33688 if test -f "$p/$path" && test -x "$p/$path"; then 33689 new_path="$p/$path" 33690 break 33691 fi 33692 done 33693 IFS="$IFS_save" 33694 else 33695 # This is an absolute path, we can use it without further modifications. 33696 new_path="$path" 33697 fi 33698 33699 if test "x$new_path" = x; then 33700 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33701 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33702 has_space=`$ECHO "$complete" | $GREP " "` 33703 if test "x$has_space" != x; then 33704 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33705 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33706 fi 33707 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33708 fi 33709 fi 33710 33711 # Now join together the path and the arguments once again 33712 if test "x$arguments" != xEOL; then 33713 new_complete="$new_path ${arguments% *}" 33714 else 33715 new_complete="$new_path" 33716 fi 33717 33718 if test "x$complete" != "x$new_complete"; then 33719 MT="$new_complete" 33720 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 33721 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 33722 fi 33723 33724 # Setup the resource compiler (RC) 33725 # Extract the first word of "rc", so it can be a program name with args. 33726 set dummy rc; ac_word=$2 33727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33728 $as_echo_n "checking for $ac_word... " >&6; } 33729 if ${ac_cv_prog_RC+:} false; then : 33730 $as_echo_n "(cached) " >&6 33731 else 33732 if test -n "$RC"; then 33733 ac_cv_prog_RC="$RC" # Let the user override the test. 33734 else 33735 ac_prog_rejected=no 33736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33737 for as_dir in $PATH 33738 do 33739 IFS=$as_save_IFS 33740 test -z "$as_dir" && as_dir=. 33741 for ac_exec_ext in '' $ac_executable_extensions; do 33742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 33744 ac_prog_rejected=yes 33745 continue 33746 fi 33747 ac_cv_prog_RC="rc" 33748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33749 break 2 33750 fi 33751 done 33752 done 33753 IFS=$as_save_IFS 33754 33755 if test $ac_prog_rejected = yes; then 33756 # We found a bogon in the path, so make sure we never use it. 33757 set dummy $ac_cv_prog_RC 33758 shift 33759 if test $# != 0; then 33760 # We chose a different compiler from the bogus one. 33761 # However, it has the same basename, so the bogon will be chosen 33762 # first if we set RC to just the basename; use the full file name. 33763 shift 33764 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 33765 fi 33766 fi 33767 fi 33768 fi 33769 RC=$ac_cv_prog_RC 33770 if test -n "$RC"; then 33771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 33772 $as_echo "$RC" >&6; } 33773 else 33774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33775 $as_echo "no" >&6; } 33776 fi 33777 33778 33779 33780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33781 33782 # First separate the path from the arguments. This will split at the first 33783 # space. 33784 complete="$RC" 33785 path="${complete%% *}" 33786 tmp="$complete EOL" 33787 arguments="${tmp#* }" 33788 33789 # Input might be given as Windows format, start by converting to 33790 # unix format. 33791 new_path=`$CYGPATH -u "$path"` 33792 33793 # Now try to locate executable using which 33794 new_path=`$WHICH "$new_path" 2> /dev/null` 33795 # bat and cmd files are not always considered executable in cygwin causing which 33796 # to not find them 33797 if test "x$new_path" = x \ 33798 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33799 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33800 new_path=`$CYGPATH -u "$path"` 33801 fi 33802 if test "x$new_path" = x; then 33803 # Oops. Which didn't find the executable. 33804 # The splitting of arguments from the executable at a space might have been incorrect, 33805 # since paths with space are more likely in Windows. Give it another try with the whole 33806 # argument. 33807 path="$complete" 33808 arguments="EOL" 33809 new_path=`$CYGPATH -u "$path"` 33810 new_path=`$WHICH "$new_path" 2> /dev/null` 33811 # bat and cmd files are not always considered executable in cygwin causing which 33812 # to not find them 33813 if test "x$new_path" = x \ 33814 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33815 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33816 new_path=`$CYGPATH -u "$path"` 33817 fi 33818 if test "x$new_path" = x; then 33819 # It's still not found. Now this is an unrecoverable error. 33820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 33821 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 33822 has_space=`$ECHO "$complete" | $GREP " "` 33823 if test "x$has_space" != x; then 33824 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33825 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33826 fi 33827 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33828 fi 33829 fi 33830 33831 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33832 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33833 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33834 # "foo.exe" is OK but "foo" is an error. 33835 # 33836 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33837 # It is also a way to make sure we got the proper file name for the real test later on. 33838 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33839 if test "x$test_shortpath" = x; then 33840 # Short path failed, file does not exist as specified. 33841 # Try adding .exe or .cmd 33842 if test -f "${new_path}.exe"; then 33843 input_to_shortpath="${new_path}.exe" 33844 elif test -f "${new_path}.cmd"; then 33845 input_to_shortpath="${new_path}.cmd" 33846 else 33847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 33848 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 33849 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33850 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33851 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33852 fi 33853 else 33854 input_to_shortpath="$new_path" 33855 fi 33856 33857 # Call helper function which possibly converts this using DOS-style short mode. 33858 # If so, the updated path is stored in $new_path. 33859 new_path="$input_to_shortpath" 33860 33861 input_path="$input_to_shortpath" 33862 # Check if we need to convert this using DOS-style short mode. If the path 33863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33864 # take no chances and rewrite it. 33865 # Note: m4 eats our [], so we need to use [ and ] instead. 33866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33867 if test "x$has_forbidden_chars" != x; then 33868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33869 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33870 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33871 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33872 # Going to short mode and back again did indeed matter. Since short mode is 33873 # case insensitive, let's make it lowercase to improve readability. 33874 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33875 # Now convert it back to Unix-style (cygpath) 33876 input_path=`$CYGPATH -u "$shortmode_path"` 33877 new_path="$input_path" 33878 fi 33879 fi 33880 33881 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33882 if test "x$test_cygdrive_prefix" = x; then 33883 # As a simple fix, exclude /usr/bin since it's not a real path. 33884 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33885 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33886 # a path prefixed by /cygdrive for fixpath to work. 33887 new_path="$CYGWIN_ROOT_PATH$input_path" 33888 fi 33889 fi 33890 33891 # remove trailing .exe if any 33892 new_path="${new_path/%.exe/}" 33893 33894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33895 33896 # First separate the path from the arguments. This will split at the first 33897 # space. 33898 complete="$RC" 33899 path="${complete%% *}" 33900 tmp="$complete EOL" 33901 arguments="${tmp#* }" 33902 33903 # Input might be given as Windows format, start by converting to 33904 # unix format. 33905 new_path="$path" 33906 33907 windows_path="$new_path" 33908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33909 unix_path=`$CYGPATH -u "$windows_path"` 33910 new_path="$unix_path" 33911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33912 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33913 new_path="$unix_path" 33914 fi 33915 33916 33917 # Now try to locate executable using which 33918 new_path=`$WHICH "$new_path" 2> /dev/null` 33919 33920 if test "x$new_path" = x; then 33921 # Oops. Which didn't find the executable. 33922 # The splitting of arguments from the executable at a space might have been incorrect, 33923 # since paths with space are more likely in Windows. Give it another try with the whole 33924 # argument. 33925 path="$complete" 33926 arguments="EOL" 33927 new_path="$path" 33928 33929 windows_path="$new_path" 33930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33931 unix_path=`$CYGPATH -u "$windows_path"` 33932 new_path="$unix_path" 33933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33935 new_path="$unix_path" 33936 fi 33937 33938 33939 new_path=`$WHICH "$new_path" 2> /dev/null` 33940 # bat and cmd files are not always considered executable in MSYS causing which 33941 # to not find them 33942 if test "x$new_path" = x \ 33943 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33944 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33945 new_path="$path" 33946 33947 windows_path="$new_path" 33948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33949 unix_path=`$CYGPATH -u "$windows_path"` 33950 new_path="$unix_path" 33951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33952 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33953 new_path="$unix_path" 33954 fi 33955 33956 fi 33957 33958 if test "x$new_path" = x; then 33959 # It's still not found. Now this is an unrecoverable error. 33960 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 33961 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 33962 has_space=`$ECHO "$complete" | $GREP " "` 33963 if test "x$has_space" != x; then 33964 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33965 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33966 fi 33967 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33968 fi 33969 fi 33970 33971 # Now new_path has a complete unix path to the binary 33972 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33973 # Keep paths in /bin as-is, but remove trailing .exe if any 33974 new_path="${new_path/%.exe/}" 33975 # Do not save /bin paths to all_fixpath_prefixes! 33976 else 33977 # Not in mixed or Windows style, start by that. 33978 new_path=`cmd //c echo $new_path` 33979 33980 input_path="$new_path" 33981 # Check if we need to convert this using DOS-style short mode. If the path 33982 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33983 # take no chances and rewrite it. 33984 # Note: m4 eats our [], so we need to use [ and ] instead. 33985 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33986 if test "x$has_forbidden_chars" != x; then 33987 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33988 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33989 fi 33990 33991 # Output is in $new_path 33992 33993 windows_path="$new_path" 33994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33995 unix_path=`$CYGPATH -u "$windows_path"` 33996 new_path="$unix_path" 33997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33998 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33999 new_path="$unix_path" 34000 fi 34001 34002 # remove trailing .exe if any 34003 new_path="${new_path/%.exe/}" 34004 34005 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34006 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34007 fi 34008 34009 else 34010 # We're on a posix platform. Hooray! :) 34011 # First separate the path from the arguments. This will split at the first 34012 # space. 34013 complete="$RC" 34014 path="${complete%% *}" 34015 tmp="$complete EOL" 34016 arguments="${tmp#* }" 34017 34018 # Cannot rely on the command "which" here since it doesn't always work. 34019 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34020 if test -z "$is_absolute_path"; then 34021 # Path to executable is not absolute. Find it. 34022 IFS_save="$IFS" 34023 IFS=: 34024 for p in $PATH; do 34025 if test -f "$p/$path" && test -x "$p/$path"; then 34026 new_path="$p/$path" 34027 break 34028 fi 34029 done 34030 IFS="$IFS_save" 34031 else 34032 # This is an absolute path, we can use it without further modifications. 34033 new_path="$path" 34034 fi 34035 34036 if test "x$new_path" = x; then 34037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34038 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34039 has_space=`$ECHO "$complete" | $GREP " "` 34040 if test "x$has_space" != x; then 34041 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34042 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34043 fi 34044 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34045 fi 34046 fi 34047 34048 # Now join together the path and the arguments once again 34049 if test "x$arguments" != xEOL; then 34050 new_complete="$new_path ${arguments% *}" 34051 else 34052 new_complete="$new_path" 34053 fi 34054 34055 if test "x$complete" != "x$new_complete"; then 34056 RC="$new_complete" 34057 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34058 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34059 fi 34060 34061 # Extract the first word of "dumpbin", so it can be a program name with args. 34062 set dummy dumpbin; ac_word=$2 34063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34064 $as_echo_n "checking for $ac_word... " >&6; } 34065 if ${ac_cv_prog_DUMPBIN+:} false; then : 34066 $as_echo_n "(cached) " >&6 34067 else 34068 if test -n "$DUMPBIN"; then 34069 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34070 else 34071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34072 for as_dir in $PATH 34073 do 34074 IFS=$as_save_IFS 34075 test -z "$as_dir" && as_dir=. 34076 for ac_exec_ext in '' $ac_executable_extensions; do 34077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34078 ac_cv_prog_DUMPBIN="dumpbin" 34079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34080 break 2 34081 fi 34082 done 34083 done 34084 IFS=$as_save_IFS 34085 34086 fi 34087 fi 34088 DUMPBIN=$ac_cv_prog_DUMPBIN 34089 if test -n "$DUMPBIN"; then 34090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34091 $as_echo "$DUMPBIN" >&6; } 34092 else 34093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34094 $as_echo "no" >&6; } 34095 fi 34096 34097 34098 34099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34100 34101 # First separate the path from the arguments. This will split at the first 34102 # space. 34103 complete="$DUMPBIN" 34104 path="${complete%% *}" 34105 tmp="$complete EOL" 34106 arguments="${tmp#* }" 34107 34108 # Input might be given as Windows format, start by converting to 34109 # unix format. 34110 new_path=`$CYGPATH -u "$path"` 34111 34112 # Now try to locate executable using which 34113 new_path=`$WHICH "$new_path" 2> /dev/null` 34114 # bat and cmd files are not always considered executable in cygwin causing which 34115 # to not find them 34116 if test "x$new_path" = x \ 34117 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34118 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34119 new_path=`$CYGPATH -u "$path"` 34120 fi 34121 if test "x$new_path" = x; then 34122 # Oops. Which didn't find the executable. 34123 # The splitting of arguments from the executable at a space might have been incorrect, 34124 # since paths with space are more likely in Windows. Give it another try with the whole 34125 # argument. 34126 path="$complete" 34127 arguments="EOL" 34128 new_path=`$CYGPATH -u "$path"` 34129 new_path=`$WHICH "$new_path" 2> /dev/null` 34130 # bat and cmd files are not always considered executable in cygwin causing which 34131 # to not find them 34132 if test "x$new_path" = x \ 34133 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34134 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34135 new_path=`$CYGPATH -u "$path"` 34136 fi 34137 if test "x$new_path" = x; then 34138 # It's still not found. Now this is an unrecoverable error. 34139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34140 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34141 has_space=`$ECHO "$complete" | $GREP " "` 34142 if test "x$has_space" != x; then 34143 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34144 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34145 fi 34146 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34147 fi 34148 fi 34149 34150 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34151 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34152 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34153 # "foo.exe" is OK but "foo" is an error. 34154 # 34155 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34156 # It is also a way to make sure we got the proper file name for the real test later on. 34157 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34158 if test "x$test_shortpath" = x; then 34159 # Short path failed, file does not exist as specified. 34160 # Try adding .exe or .cmd 34161 if test -f "${new_path}.exe"; then 34162 input_to_shortpath="${new_path}.exe" 34163 elif test -f "${new_path}.cmd"; then 34164 input_to_shortpath="${new_path}.cmd" 34165 else 34166 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34167 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34168 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34169 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34170 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34171 fi 34172 else 34173 input_to_shortpath="$new_path" 34174 fi 34175 34176 # Call helper function which possibly converts this using DOS-style short mode. 34177 # If so, the updated path is stored in $new_path. 34178 new_path="$input_to_shortpath" 34179 34180 input_path="$input_to_shortpath" 34181 # Check if we need to convert this using DOS-style short mode. If the path 34182 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34183 # take no chances and rewrite it. 34184 # Note: m4 eats our [], so we need to use [ and ] instead. 34185 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34186 if test "x$has_forbidden_chars" != x; then 34187 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34188 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34189 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34190 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34191 # Going to short mode and back again did indeed matter. Since short mode is 34192 # case insensitive, let's make it lowercase to improve readability. 34193 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34194 # Now convert it back to Unix-style (cygpath) 34195 input_path=`$CYGPATH -u "$shortmode_path"` 34196 new_path="$input_path" 34197 fi 34198 fi 34199 34200 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34201 if test "x$test_cygdrive_prefix" = x; then 34202 # As a simple fix, exclude /usr/bin since it's not a real path. 34203 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34204 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34205 # a path prefixed by /cygdrive for fixpath to work. 34206 new_path="$CYGWIN_ROOT_PATH$input_path" 34207 fi 34208 fi 34209 34210 # remove trailing .exe if any 34211 new_path="${new_path/%.exe/}" 34212 34213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34214 34215 # First separate the path from the arguments. This will split at the first 34216 # space. 34217 complete="$DUMPBIN" 34218 path="${complete%% *}" 34219 tmp="$complete EOL" 34220 arguments="${tmp#* }" 34221 34222 # Input might be given as Windows format, start by converting to 34223 # unix format. 34224 new_path="$path" 34225 34226 windows_path="$new_path" 34227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34228 unix_path=`$CYGPATH -u "$windows_path"` 34229 new_path="$unix_path" 34230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34231 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34232 new_path="$unix_path" 34233 fi 34234 34235 34236 # Now try to locate executable using which 34237 new_path=`$WHICH "$new_path" 2> /dev/null` 34238 34239 if test "x$new_path" = x; then 34240 # Oops. Which didn't find the executable. 34241 # The splitting of arguments from the executable at a space might have been incorrect, 34242 # since paths with space are more likely in Windows. Give it another try with the whole 34243 # argument. 34244 path="$complete" 34245 arguments="EOL" 34246 new_path="$path" 34247 34248 windows_path="$new_path" 34249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34250 unix_path=`$CYGPATH -u "$windows_path"` 34251 new_path="$unix_path" 34252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34254 new_path="$unix_path" 34255 fi 34256 34257 34258 new_path=`$WHICH "$new_path" 2> /dev/null` 34259 # bat and cmd files are not always considered executable in MSYS causing which 34260 # to not find them 34261 if test "x$new_path" = x \ 34262 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34263 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34264 new_path="$path" 34265 34266 windows_path="$new_path" 34267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34268 unix_path=`$CYGPATH -u "$windows_path"` 34269 new_path="$unix_path" 34270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34272 new_path="$unix_path" 34273 fi 34274 34275 fi 34276 34277 if test "x$new_path" = x; then 34278 # It's still not found. Now this is an unrecoverable error. 34279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34280 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34281 has_space=`$ECHO "$complete" | $GREP " "` 34282 if test "x$has_space" != x; then 34283 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34284 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34285 fi 34286 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34287 fi 34288 fi 34289 34290 # Now new_path has a complete unix path to the binary 34291 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34292 # Keep paths in /bin as-is, but remove trailing .exe if any 34293 new_path="${new_path/%.exe/}" 34294 # Do not save /bin paths to all_fixpath_prefixes! 34295 else 34296 # Not in mixed or Windows style, start by that. 34297 new_path=`cmd //c echo $new_path` 34298 34299 input_path="$new_path" 34300 # Check if we need to convert this using DOS-style short mode. If the path 34301 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34302 # take no chances and rewrite it. 34303 # Note: m4 eats our [], so we need to use [ and ] instead. 34304 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34305 if test "x$has_forbidden_chars" != x; then 34306 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34307 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34308 fi 34309 34310 # Output is in $new_path 34311 34312 windows_path="$new_path" 34313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34314 unix_path=`$CYGPATH -u "$windows_path"` 34315 new_path="$unix_path" 34316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34318 new_path="$unix_path" 34319 fi 34320 34321 # remove trailing .exe if any 34322 new_path="${new_path/%.exe/}" 34323 34324 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34325 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34326 fi 34327 34328 else 34329 # We're on a posix platform. Hooray! :) 34330 # First separate the path from the arguments. This will split at the first 34331 # space. 34332 complete="$DUMPBIN" 34333 path="${complete%% *}" 34334 tmp="$complete EOL" 34335 arguments="${tmp#* }" 34336 34337 # Cannot rely on the command "which" here since it doesn't always work. 34338 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34339 if test -z "$is_absolute_path"; then 34340 # Path to executable is not absolute. Find it. 34341 IFS_save="$IFS" 34342 IFS=: 34343 for p in $PATH; do 34344 if test -f "$p/$path" && test -x "$p/$path"; then 34345 new_path="$p/$path" 34346 break 34347 fi 34348 done 34349 IFS="$IFS_save" 34350 else 34351 # This is an absolute path, we can use it without further modifications. 34352 new_path="$path" 34353 fi 34354 34355 if test "x$new_path" = x; then 34356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34357 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34358 has_space=`$ECHO "$complete" | $GREP " "` 34359 if test "x$has_space" != x; then 34360 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34361 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34362 fi 34363 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34364 fi 34365 fi 34366 34367 # Now join together the path and the arguments once again 34368 if test "x$arguments" != xEOL; then 34369 new_complete="$new_path ${arguments% *}" 34370 else 34371 new_complete="$new_path" 34372 fi 34373 34374 if test "x$complete" != "x$new_complete"; then 34375 DUMPBIN="$new_complete" 34376 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 34377 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 34378 fi 34379 34380 # We need to check for 'msbuild.exe' because at the place where we expect to 34381 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 34382 # won't find the 'msbuild.exe' executable in that case (and the 34383 # 'ac_executable_extensions' is unusable due to performance reasons). 34384 # Notice that we intentionally don't fix up the path to MSBUILD because we 34385 # will call it in a DOS shell during freetype detection on Windows (see 34386 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 34387 # Extract the first word of "msbuild.exe", so it can be a program name with args. 34388 set dummy msbuild.exe; ac_word=$2 34389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34390 $as_echo_n "checking for $ac_word... " >&6; } 34391 if ${ac_cv_prog_MSBUILD+:} false; then : 34392 $as_echo_n "(cached) " >&6 34393 else 34394 if test -n "$MSBUILD"; then 34395 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 34396 else 34397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34398 for as_dir in $PATH 34399 do 34400 IFS=$as_save_IFS 34401 test -z "$as_dir" && as_dir=. 34402 for ac_exec_ext in '' $ac_executable_extensions; do 34403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34404 ac_cv_prog_MSBUILD="msbuild.exe" 34405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34406 break 2 34407 fi 34408 done 34409 done 34410 IFS=$as_save_IFS 34411 34412 fi 34413 fi 34414 MSBUILD=$ac_cv_prog_MSBUILD 34415 if test -n "$MSBUILD"; then 34416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 34417 $as_echo "$MSBUILD" >&6; } 34418 else 34419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34420 $as_echo "no" >&6; } 34421 fi 34422 34423 34424 fi 34425 34426 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 34427 34428 34429 # Publish this variable in the help. 34430 34431 34432 if test "x$STRIP" = x; then 34433 # The variable is not set by user, try to locate tool using the code snippet 34434 for ac_prog in strip 34435 do 34436 # Extract the first word of "$ac_prog", so it can be a program name with args. 34437 set dummy $ac_prog; ac_word=$2 34438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34439 $as_echo_n "checking for $ac_word... " >&6; } 34440 if ${ac_cv_path_STRIP+:} false; then : 34441 $as_echo_n "(cached) " >&6 34442 else 34443 case $STRIP in 34444 [\\/]* | ?:[\\/]*) 34445 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34446 ;; 34447 *) 34448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34449 for as_dir in $PATH 34450 do 34451 IFS=$as_save_IFS 34452 test -z "$as_dir" && as_dir=. 34453 for ac_exec_ext in '' $ac_executable_extensions; do 34454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34455 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34457 break 2 34458 fi 34459 done 34460 done 34461 IFS=$as_save_IFS 34462 34463 ;; 34464 esac 34465 fi 34466 STRIP=$ac_cv_path_STRIP 34467 if test -n "$STRIP"; then 34468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34469 $as_echo "$STRIP" >&6; } 34470 else 34471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34472 $as_echo "no" >&6; } 34473 fi 34474 34475 34476 test -n "$STRIP" && break 34477 done 34478 34479 else 34480 # The variable is set, but is it from the command line or the environment? 34481 34482 # Try to remove the string !STRIP! from our list. 34483 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 34484 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34485 # If it failed, the variable was not from the command line. Ignore it, 34486 # but warn the user (except for BASH, which is always set by the calling BASH). 34487 if test "xSTRIP" != xBASH; then 34488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 34489 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 34490 fi 34491 # Try to locate tool using the code snippet 34492 for ac_prog in strip 34493 do 34494 # Extract the first word of "$ac_prog", so it can be a program name with args. 34495 set dummy $ac_prog; ac_word=$2 34496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34497 $as_echo_n "checking for $ac_word... " >&6; } 34498 if ${ac_cv_path_STRIP+:} false; then : 34499 $as_echo_n "(cached) " >&6 34500 else 34501 case $STRIP in 34502 [\\/]* | ?:[\\/]*) 34503 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34504 ;; 34505 *) 34506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34507 for as_dir in $PATH 34508 do 34509 IFS=$as_save_IFS 34510 test -z "$as_dir" && as_dir=. 34511 for ac_exec_ext in '' $ac_executable_extensions; do 34512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34513 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34515 break 2 34516 fi 34517 done 34518 done 34519 IFS=$as_save_IFS 34520 34521 ;; 34522 esac 34523 fi 34524 STRIP=$ac_cv_path_STRIP 34525 if test -n "$STRIP"; then 34526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34527 $as_echo "$STRIP" >&6; } 34528 else 34529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34530 $as_echo "no" >&6; } 34531 fi 34532 34533 34534 test -n "$STRIP" && break 34535 done 34536 34537 else 34538 # If it succeeded, then it was overridden by the user. We will use it 34539 # for the tool. 34540 34541 # First remove it from the list of overridden variables, so we can test 34542 # for unknown variables in the end. 34543 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34544 34545 # Check if the provided tool contains a complete path. 34546 tool_specified="$STRIP" 34547 tool_basename="${tool_specified##*/}" 34548 if test "x$tool_basename" = "x$tool_specified"; then 34549 # A command without a complete path is provided, search $PATH. 34550 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 34551 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 34552 # Extract the first word of "$tool_basename", so it can be a program name with args. 34553 set dummy $tool_basename; ac_word=$2 34554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34555 $as_echo_n "checking for $ac_word... " >&6; } 34556 if ${ac_cv_path_STRIP+:} false; then : 34557 $as_echo_n "(cached) " >&6 34558 else 34559 case $STRIP in 34560 [\\/]* | ?:[\\/]*) 34561 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34562 ;; 34563 *) 34564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34565 for as_dir in $PATH 34566 do 34567 IFS=$as_save_IFS 34568 test -z "$as_dir" && as_dir=. 34569 for ac_exec_ext in '' $ac_executable_extensions; do 34570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34571 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34573 break 2 34574 fi 34575 done 34576 done 34577 IFS=$as_save_IFS 34578 34579 ;; 34580 esac 34581 fi 34582 STRIP=$ac_cv_path_STRIP 34583 if test -n "$STRIP"; then 34584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34585 $as_echo "$STRIP" >&6; } 34586 else 34587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34588 $as_echo "no" >&6; } 34589 fi 34590 34591 34592 if test "x$STRIP" = x; then 34593 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34594 fi 34595 else 34596 # Otherwise we believe it is a complete path. Use it as it is. 34597 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 34598 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 34599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 34600 $as_echo_n "checking for STRIP... " >&6; } 34601 if test ! -x "$tool_specified"; then 34602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34603 $as_echo "not found" >&6; } 34604 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 34605 fi 34606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34607 $as_echo "$tool_specified" >&6; } 34608 fi 34609 fi 34610 fi 34611 34612 34613 34614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34615 34616 # First separate the path from the arguments. This will split at the first 34617 # space. 34618 complete="$STRIP" 34619 path="${complete%% *}" 34620 tmp="$complete EOL" 34621 arguments="${tmp#* }" 34622 34623 # Input might be given as Windows format, start by converting to 34624 # unix format. 34625 new_path=`$CYGPATH -u "$path"` 34626 34627 # Now try to locate executable using which 34628 new_path=`$WHICH "$new_path" 2> /dev/null` 34629 # bat and cmd files are not always considered executable in cygwin causing which 34630 # to not find them 34631 if test "x$new_path" = x \ 34632 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34633 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34634 new_path=`$CYGPATH -u "$path"` 34635 fi 34636 if test "x$new_path" = x; then 34637 # Oops. Which didn't find the executable. 34638 # The splitting of arguments from the executable at a space might have been incorrect, 34639 # since paths with space are more likely in Windows. Give it another try with the whole 34640 # argument. 34641 path="$complete" 34642 arguments="EOL" 34643 new_path=`$CYGPATH -u "$path"` 34644 new_path=`$WHICH "$new_path" 2> /dev/null` 34645 # bat and cmd files are not always considered executable in cygwin causing which 34646 # to not find them 34647 if test "x$new_path" = x \ 34648 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34649 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34650 new_path=`$CYGPATH -u "$path"` 34651 fi 34652 if test "x$new_path" = x; then 34653 # It's still not found. Now this is an unrecoverable error. 34654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34655 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34656 has_space=`$ECHO "$complete" | $GREP " "` 34657 if test "x$has_space" != x; then 34658 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34659 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34660 fi 34661 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34662 fi 34663 fi 34664 34665 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34666 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34667 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34668 # "foo.exe" is OK but "foo" is an error. 34669 # 34670 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34671 # It is also a way to make sure we got the proper file name for the real test later on. 34672 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34673 if test "x$test_shortpath" = x; then 34674 # Short path failed, file does not exist as specified. 34675 # Try adding .exe or .cmd 34676 if test -f "${new_path}.exe"; then 34677 input_to_shortpath="${new_path}.exe" 34678 elif test -f "${new_path}.cmd"; then 34679 input_to_shortpath="${new_path}.cmd" 34680 else 34681 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 34682 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 34683 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34684 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34685 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34686 fi 34687 else 34688 input_to_shortpath="$new_path" 34689 fi 34690 34691 # Call helper function which possibly converts this using DOS-style short mode. 34692 # If so, the updated path is stored in $new_path. 34693 new_path="$input_to_shortpath" 34694 34695 input_path="$input_to_shortpath" 34696 # Check if we need to convert this using DOS-style short mode. If the path 34697 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34698 # take no chances and rewrite it. 34699 # Note: m4 eats our [], so we need to use [ and ] instead. 34700 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34701 if test "x$has_forbidden_chars" != x; then 34702 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34703 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34704 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34705 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34706 # Going to short mode and back again did indeed matter. Since short mode is 34707 # case insensitive, let's make it lowercase to improve readability. 34708 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34709 # Now convert it back to Unix-style (cygpath) 34710 input_path=`$CYGPATH -u "$shortmode_path"` 34711 new_path="$input_path" 34712 fi 34713 fi 34714 34715 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34716 if test "x$test_cygdrive_prefix" = x; then 34717 # As a simple fix, exclude /usr/bin since it's not a real path. 34718 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34719 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34720 # a path prefixed by /cygdrive for fixpath to work. 34721 new_path="$CYGWIN_ROOT_PATH$input_path" 34722 fi 34723 fi 34724 34725 # remove trailing .exe if any 34726 new_path="${new_path/%.exe/}" 34727 34728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34729 34730 # First separate the path from the arguments. This will split at the first 34731 # space. 34732 complete="$STRIP" 34733 path="${complete%% *}" 34734 tmp="$complete EOL" 34735 arguments="${tmp#* }" 34736 34737 # Input might be given as Windows format, start by converting to 34738 # unix format. 34739 new_path="$path" 34740 34741 windows_path="$new_path" 34742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34743 unix_path=`$CYGPATH -u "$windows_path"` 34744 new_path="$unix_path" 34745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34746 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34747 new_path="$unix_path" 34748 fi 34749 34750 34751 # Now try to locate executable using which 34752 new_path=`$WHICH "$new_path" 2> /dev/null` 34753 34754 if test "x$new_path" = x; then 34755 # Oops. Which didn't find the executable. 34756 # The splitting of arguments from the executable at a space might have been incorrect, 34757 # since paths with space are more likely in Windows. Give it another try with the whole 34758 # argument. 34759 path="$complete" 34760 arguments="EOL" 34761 new_path="$path" 34762 34763 windows_path="$new_path" 34764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34765 unix_path=`$CYGPATH -u "$windows_path"` 34766 new_path="$unix_path" 34767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34768 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34769 new_path="$unix_path" 34770 fi 34771 34772 34773 new_path=`$WHICH "$new_path" 2> /dev/null` 34774 # bat and cmd files are not always considered executable in MSYS causing which 34775 # to not find them 34776 if test "x$new_path" = x \ 34777 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34778 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34779 new_path="$path" 34780 34781 windows_path="$new_path" 34782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34783 unix_path=`$CYGPATH -u "$windows_path"` 34784 new_path="$unix_path" 34785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34786 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34787 new_path="$unix_path" 34788 fi 34789 34790 fi 34791 34792 if test "x$new_path" = x; then 34793 # It's still not found. Now this is an unrecoverable error. 34794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34795 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34796 has_space=`$ECHO "$complete" | $GREP " "` 34797 if test "x$has_space" != x; then 34798 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34799 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34800 fi 34801 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34802 fi 34803 fi 34804 34805 # Now new_path has a complete unix path to the binary 34806 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34807 # Keep paths in /bin as-is, but remove trailing .exe if any 34808 new_path="${new_path/%.exe/}" 34809 # Do not save /bin paths to all_fixpath_prefixes! 34810 else 34811 # Not in mixed or Windows style, start by that. 34812 new_path=`cmd //c echo $new_path` 34813 34814 input_path="$new_path" 34815 # Check if we need to convert this using DOS-style short mode. If the path 34816 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34817 # take no chances and rewrite it. 34818 # Note: m4 eats our [], so we need to use [ and ] instead. 34819 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34820 if test "x$has_forbidden_chars" != x; then 34821 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34822 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34823 fi 34824 34825 # Output is in $new_path 34826 34827 windows_path="$new_path" 34828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34829 unix_path=`$CYGPATH -u "$windows_path"` 34830 new_path="$unix_path" 34831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34832 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34833 new_path="$unix_path" 34834 fi 34835 34836 # remove trailing .exe if any 34837 new_path="${new_path/%.exe/}" 34838 34839 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34840 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34841 fi 34842 34843 else 34844 # We're on a posix platform. Hooray! :) 34845 # First separate the path from the arguments. This will split at the first 34846 # space. 34847 complete="$STRIP" 34848 path="${complete%% *}" 34849 tmp="$complete EOL" 34850 arguments="${tmp#* }" 34851 34852 # Cannot rely on the command "which" here since it doesn't always work. 34853 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34854 if test -z "$is_absolute_path"; then 34855 # Path to executable is not absolute. Find it. 34856 IFS_save="$IFS" 34857 IFS=: 34858 for p in $PATH; do 34859 if test -f "$p/$path" && test -x "$p/$path"; then 34860 new_path="$p/$path" 34861 break 34862 fi 34863 done 34864 IFS="$IFS_save" 34865 else 34866 # This is an absolute path, we can use it without further modifications. 34867 new_path="$path" 34868 fi 34869 34870 if test "x$new_path" = x; then 34871 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34872 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34873 has_space=`$ECHO "$complete" | $GREP " "` 34874 if test "x$has_space" != x; then 34875 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34876 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34877 fi 34878 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34879 fi 34880 fi 34881 34882 # Now join together the path and the arguments once again 34883 if test "x$arguments" != xEOL; then 34884 new_complete="$new_path ${arguments% *}" 34885 else 34886 new_complete="$new_path" 34887 fi 34888 34889 if test "x$complete" != "x$new_complete"; then 34890 STRIP="$new_complete" 34891 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 34892 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 34893 fi 34894 34895 34896 34897 # Publish this variable in the help. 34898 34899 34900 if test "x$NM" = x; then 34901 # The variable is not set by user, try to locate tool using the code snippet 34902 for ac_prog in nm 34903 do 34904 # Extract the first word of "$ac_prog", so it can be a program name with args. 34905 set dummy $ac_prog; ac_word=$2 34906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34907 $as_echo_n "checking for $ac_word... " >&6; } 34908 if ${ac_cv_path_NM+:} false; then : 34909 $as_echo_n "(cached) " >&6 34910 else 34911 case $NM in 34912 [\\/]* | ?:[\\/]*) 34913 ac_cv_path_NM="$NM" # Let the user override the test with a path. 34914 ;; 34915 *) 34916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34917 for as_dir in $PATH 34918 do 34919 IFS=$as_save_IFS 34920 test -z "$as_dir" && as_dir=. 34921 for ac_exec_ext in '' $ac_executable_extensions; do 34922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34923 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 34924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34925 break 2 34926 fi 34927 done 34928 done 34929 IFS=$as_save_IFS 34930 34931 ;; 34932 esac 34933 fi 34934 NM=$ac_cv_path_NM 34935 if test -n "$NM"; then 34936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 34937 $as_echo "$NM" >&6; } 34938 else 34939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34940 $as_echo "no" >&6; } 34941 fi 34942 34943 34944 test -n "$NM" && break 34945 done 34946 34947 else 34948 # The variable is set, but is it from the command line or the environment? 34949 34950 # Try to remove the string !NM! from our list. 34951 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 34952 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34953 # If it failed, the variable was not from the command line. Ignore it, 34954 # but warn the user (except for BASH, which is always set by the calling BASH). 34955 if test "xNM" != xBASH; then 34956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 34957 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 34958 fi 34959 # Try to locate tool using the code snippet 34960 for ac_prog in nm 34961 do 34962 # Extract the first word of "$ac_prog", so it can be a program name with args. 34963 set dummy $ac_prog; ac_word=$2 34964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34965 $as_echo_n "checking for $ac_word... " >&6; } 34966 if ${ac_cv_path_NM+:} false; then : 34967 $as_echo_n "(cached) " >&6 34968 else 34969 case $NM in 34970 [\\/]* | ?:[\\/]*) 34971 ac_cv_path_NM="$NM" # Let the user override the test with a path. 34972 ;; 34973 *) 34974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34975 for as_dir in $PATH 34976 do 34977 IFS=$as_save_IFS 34978 test -z "$as_dir" && as_dir=. 34979 for ac_exec_ext in '' $ac_executable_extensions; do 34980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34981 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 34982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34983 break 2 34984 fi 34985 done 34986 done 34987 IFS=$as_save_IFS 34988 34989 ;; 34990 esac 34991 fi 34992 NM=$ac_cv_path_NM 34993 if test -n "$NM"; then 34994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 34995 $as_echo "$NM" >&6; } 34996 else 34997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34998 $as_echo "no" >&6; } 34999 fi 35000 35001 35002 test -n "$NM" && break 35003 done 35004 35005 else 35006 # If it succeeded, then it was overridden by the user. We will use it 35007 # for the tool. 35008 35009 # First remove it from the list of overridden variables, so we can test 35010 # for unknown variables in the end. 35011 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35012 35013 # Check if the provided tool contains a complete path. 35014 tool_specified="$NM" 35015 tool_basename="${tool_specified##*/}" 35016 if test "x$tool_basename" = "x$tool_specified"; then 35017 # A command without a complete path is provided, search $PATH. 35018 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35019 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35020 # Extract the first word of "$tool_basename", so it can be a program name with args. 35021 set dummy $tool_basename; ac_word=$2 35022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35023 $as_echo_n "checking for $ac_word... " >&6; } 35024 if ${ac_cv_path_NM+:} false; then : 35025 $as_echo_n "(cached) " >&6 35026 else 35027 case $NM in 35028 [\\/]* | ?:[\\/]*) 35029 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35030 ;; 35031 *) 35032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35033 for as_dir in $PATH 35034 do 35035 IFS=$as_save_IFS 35036 test -z "$as_dir" && as_dir=. 35037 for ac_exec_ext in '' $ac_executable_extensions; do 35038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35039 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35041 break 2 35042 fi 35043 done 35044 done 35045 IFS=$as_save_IFS 35046 35047 ;; 35048 esac 35049 fi 35050 NM=$ac_cv_path_NM 35051 if test -n "$NM"; then 35052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35053 $as_echo "$NM" >&6; } 35054 else 35055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35056 $as_echo "no" >&6; } 35057 fi 35058 35059 35060 if test "x$NM" = x; then 35061 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35062 fi 35063 else 35064 # Otherwise we believe it is a complete path. Use it as it is. 35065 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35066 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35068 $as_echo_n "checking for NM... " >&6; } 35069 if test ! -x "$tool_specified"; then 35070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35071 $as_echo "not found" >&6; } 35072 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35073 fi 35074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35075 $as_echo "$tool_specified" >&6; } 35076 fi 35077 fi 35078 fi 35079 35080 35081 35082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35083 35084 # First separate the path from the arguments. This will split at the first 35085 # space. 35086 complete="$NM" 35087 path="${complete%% *}" 35088 tmp="$complete EOL" 35089 arguments="${tmp#* }" 35090 35091 # Input might be given as Windows format, start by converting to 35092 # unix format. 35093 new_path=`$CYGPATH -u "$path"` 35094 35095 # Now try to locate executable using which 35096 new_path=`$WHICH "$new_path" 2> /dev/null` 35097 # bat and cmd files are not always considered executable in cygwin causing which 35098 # to not find them 35099 if test "x$new_path" = x \ 35100 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35101 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35102 new_path=`$CYGPATH -u "$path"` 35103 fi 35104 if test "x$new_path" = x; then 35105 # Oops. Which didn't find the executable. 35106 # The splitting of arguments from the executable at a space might have been incorrect, 35107 # since paths with space are more likely in Windows. Give it another try with the whole 35108 # argument. 35109 path="$complete" 35110 arguments="EOL" 35111 new_path=`$CYGPATH -u "$path"` 35112 new_path=`$WHICH "$new_path" 2> /dev/null` 35113 # bat and cmd files are not always considered executable in cygwin causing which 35114 # to not find them 35115 if test "x$new_path" = x \ 35116 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35117 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35118 new_path=`$CYGPATH -u "$path"` 35119 fi 35120 if test "x$new_path" = x; then 35121 # It's still not found. Now this is an unrecoverable error. 35122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35123 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35124 has_space=`$ECHO "$complete" | $GREP " "` 35125 if test "x$has_space" != x; then 35126 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35127 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35128 fi 35129 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35130 fi 35131 fi 35132 35133 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35134 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35135 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35136 # "foo.exe" is OK but "foo" is an error. 35137 # 35138 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35139 # It is also a way to make sure we got the proper file name for the real test later on. 35140 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35141 if test "x$test_shortpath" = x; then 35142 # Short path failed, file does not exist as specified. 35143 # Try adding .exe or .cmd 35144 if test -f "${new_path}.exe"; then 35145 input_to_shortpath="${new_path}.exe" 35146 elif test -f "${new_path}.cmd"; then 35147 input_to_shortpath="${new_path}.cmd" 35148 else 35149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35150 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35151 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35152 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35153 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35154 fi 35155 else 35156 input_to_shortpath="$new_path" 35157 fi 35158 35159 # Call helper function which possibly converts this using DOS-style short mode. 35160 # If so, the updated path is stored in $new_path. 35161 new_path="$input_to_shortpath" 35162 35163 input_path="$input_to_shortpath" 35164 # Check if we need to convert this using DOS-style short mode. If the path 35165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35166 # take no chances and rewrite it. 35167 # Note: m4 eats our [], so we need to use [ and ] instead. 35168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35169 if test "x$has_forbidden_chars" != x; then 35170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35171 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35172 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35173 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35174 # Going to short mode and back again did indeed matter. Since short mode is 35175 # case insensitive, let's make it lowercase to improve readability. 35176 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35177 # Now convert it back to Unix-style (cygpath) 35178 input_path=`$CYGPATH -u "$shortmode_path"` 35179 new_path="$input_path" 35180 fi 35181 fi 35182 35183 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35184 if test "x$test_cygdrive_prefix" = x; then 35185 # As a simple fix, exclude /usr/bin since it's not a real path. 35186 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35187 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35188 # a path prefixed by /cygdrive for fixpath to work. 35189 new_path="$CYGWIN_ROOT_PATH$input_path" 35190 fi 35191 fi 35192 35193 # remove trailing .exe if any 35194 new_path="${new_path/%.exe/}" 35195 35196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35197 35198 # First separate the path from the arguments. This will split at the first 35199 # space. 35200 complete="$NM" 35201 path="${complete%% *}" 35202 tmp="$complete EOL" 35203 arguments="${tmp#* }" 35204 35205 # Input might be given as Windows format, start by converting to 35206 # unix format. 35207 new_path="$path" 35208 35209 windows_path="$new_path" 35210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35211 unix_path=`$CYGPATH -u "$windows_path"` 35212 new_path="$unix_path" 35213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35215 new_path="$unix_path" 35216 fi 35217 35218 35219 # Now try to locate executable using which 35220 new_path=`$WHICH "$new_path" 2> /dev/null` 35221 35222 if test "x$new_path" = x; then 35223 # Oops. Which didn't find the executable. 35224 # The splitting of arguments from the executable at a space might have been incorrect, 35225 # since paths with space are more likely in Windows. Give it another try with the whole 35226 # argument. 35227 path="$complete" 35228 arguments="EOL" 35229 new_path="$path" 35230 35231 windows_path="$new_path" 35232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35233 unix_path=`$CYGPATH -u "$windows_path"` 35234 new_path="$unix_path" 35235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35236 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35237 new_path="$unix_path" 35238 fi 35239 35240 35241 new_path=`$WHICH "$new_path" 2> /dev/null` 35242 # bat and cmd files are not always considered executable in MSYS causing which 35243 # to not find them 35244 if test "x$new_path" = x \ 35245 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35246 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35247 new_path="$path" 35248 35249 windows_path="$new_path" 35250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35251 unix_path=`$CYGPATH -u "$windows_path"` 35252 new_path="$unix_path" 35253 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35254 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35255 new_path="$unix_path" 35256 fi 35257 35258 fi 35259 35260 if test "x$new_path" = x; then 35261 # It's still not found. Now this is an unrecoverable error. 35262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35263 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35264 has_space=`$ECHO "$complete" | $GREP " "` 35265 if test "x$has_space" != x; then 35266 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35267 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35268 fi 35269 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35270 fi 35271 fi 35272 35273 # Now new_path has a complete unix path to the binary 35274 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35275 # Keep paths in /bin as-is, but remove trailing .exe if any 35276 new_path="${new_path/%.exe/}" 35277 # Do not save /bin paths to all_fixpath_prefixes! 35278 else 35279 # Not in mixed or Windows style, start by that. 35280 new_path=`cmd //c echo $new_path` 35281 35282 input_path="$new_path" 35283 # Check if we need to convert this using DOS-style short mode. If the path 35284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35285 # take no chances and rewrite it. 35286 # Note: m4 eats our [], so we need to use [ and ] instead. 35287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35288 if test "x$has_forbidden_chars" != x; then 35289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35290 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35291 fi 35292 35293 # Output is in $new_path 35294 35295 windows_path="$new_path" 35296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35297 unix_path=`$CYGPATH -u "$windows_path"` 35298 new_path="$unix_path" 35299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35301 new_path="$unix_path" 35302 fi 35303 35304 # remove trailing .exe if any 35305 new_path="${new_path/%.exe/}" 35306 35307 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35308 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35309 fi 35310 35311 else 35312 # We're on a posix platform. Hooray! :) 35313 # First separate the path from the arguments. This will split at the first 35314 # space. 35315 complete="$NM" 35316 path="${complete%% *}" 35317 tmp="$complete EOL" 35318 arguments="${tmp#* }" 35319 35320 # Cannot rely on the command "which" here since it doesn't always work. 35321 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35322 if test -z "$is_absolute_path"; then 35323 # Path to executable is not absolute. Find it. 35324 IFS_save="$IFS" 35325 IFS=: 35326 for p in $PATH; do 35327 if test -f "$p/$path" && test -x "$p/$path"; then 35328 new_path="$p/$path" 35329 break 35330 fi 35331 done 35332 IFS="$IFS_save" 35333 else 35334 # This is an absolute path, we can use it without further modifications. 35335 new_path="$path" 35336 fi 35337 35338 if test "x$new_path" = x; then 35339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35340 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35341 has_space=`$ECHO "$complete" | $GREP " "` 35342 if test "x$has_space" != x; then 35343 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35344 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35345 fi 35346 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35347 fi 35348 fi 35349 35350 # Now join together the path and the arguments once again 35351 if test "x$arguments" != xEOL; then 35352 new_complete="$new_path ${arguments% *}" 35353 else 35354 new_complete="$new_path" 35355 fi 35356 35357 if test "x$complete" != "x$new_complete"; then 35358 NM="$new_complete" 35359 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 35360 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 35361 fi 35362 35363 35364 35365 # Publish this variable in the help. 35366 35367 35368 if test "x$GNM" = x; then 35369 # The variable is not set by user, try to locate tool using the code snippet 35370 for ac_prog in gnm 35371 do 35372 # Extract the first word of "$ac_prog", so it can be a program name with args. 35373 set dummy $ac_prog; ac_word=$2 35374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35375 $as_echo_n "checking for $ac_word... " >&6; } 35376 if ${ac_cv_path_GNM+:} false; then : 35377 $as_echo_n "(cached) " >&6 35378 else 35379 case $GNM in 35380 [\\/]* | ?:[\\/]*) 35381 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35382 ;; 35383 *) 35384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35385 for as_dir in $PATH 35386 do 35387 IFS=$as_save_IFS 35388 test -z "$as_dir" && as_dir=. 35389 for ac_exec_ext in '' $ac_executable_extensions; do 35390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35391 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35393 break 2 35394 fi 35395 done 35396 done 35397 IFS=$as_save_IFS 35398 35399 ;; 35400 esac 35401 fi 35402 GNM=$ac_cv_path_GNM 35403 if test -n "$GNM"; then 35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35405 $as_echo "$GNM" >&6; } 35406 else 35407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35408 $as_echo "no" >&6; } 35409 fi 35410 35411 35412 test -n "$GNM" && break 35413 done 35414 35415 else 35416 # The variable is set, but is it from the command line or the environment? 35417 35418 # Try to remove the string !GNM! from our list. 35419 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 35420 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35421 # If it failed, the variable was not from the command line. Ignore it, 35422 # but warn the user (except for BASH, which is always set by the calling BASH). 35423 if test "xGNM" != xBASH; then 35424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 35425 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 35426 fi 35427 # Try to locate tool using the code snippet 35428 for ac_prog in gnm 35429 do 35430 # Extract the first word of "$ac_prog", so it can be a program name with args. 35431 set dummy $ac_prog; ac_word=$2 35432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35433 $as_echo_n "checking for $ac_word... " >&6; } 35434 if ${ac_cv_path_GNM+:} false; then : 35435 $as_echo_n "(cached) " >&6 35436 else 35437 case $GNM in 35438 [\\/]* | ?:[\\/]*) 35439 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35440 ;; 35441 *) 35442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35443 for as_dir in $PATH 35444 do 35445 IFS=$as_save_IFS 35446 test -z "$as_dir" && as_dir=. 35447 for ac_exec_ext in '' $ac_executable_extensions; do 35448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35449 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35451 break 2 35452 fi 35453 done 35454 done 35455 IFS=$as_save_IFS 35456 35457 ;; 35458 esac 35459 fi 35460 GNM=$ac_cv_path_GNM 35461 if test -n "$GNM"; then 35462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35463 $as_echo "$GNM" >&6; } 35464 else 35465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35466 $as_echo "no" >&6; } 35467 fi 35468 35469 35470 test -n "$GNM" && break 35471 done 35472 35473 else 35474 # If it succeeded, then it was overridden by the user. We will use it 35475 # for the tool. 35476 35477 # First remove it from the list of overridden variables, so we can test 35478 # for unknown variables in the end. 35479 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35480 35481 # Check if the provided tool contains a complete path. 35482 tool_specified="$GNM" 35483 tool_basename="${tool_specified##*/}" 35484 if test "x$tool_basename" = "x$tool_specified"; then 35485 # A command without a complete path is provided, search $PATH. 35486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 35487 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 35488 # Extract the first word of "$tool_basename", so it can be a program name with args. 35489 set dummy $tool_basename; ac_word=$2 35490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35491 $as_echo_n "checking for $ac_word... " >&6; } 35492 if ${ac_cv_path_GNM+:} false; then : 35493 $as_echo_n "(cached) " >&6 35494 else 35495 case $GNM in 35496 [\\/]* | ?:[\\/]*) 35497 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35498 ;; 35499 *) 35500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35501 for as_dir in $PATH 35502 do 35503 IFS=$as_save_IFS 35504 test -z "$as_dir" && as_dir=. 35505 for ac_exec_ext in '' $ac_executable_extensions; do 35506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35507 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35509 break 2 35510 fi 35511 done 35512 done 35513 IFS=$as_save_IFS 35514 35515 ;; 35516 esac 35517 fi 35518 GNM=$ac_cv_path_GNM 35519 if test -n "$GNM"; then 35520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35521 $as_echo "$GNM" >&6; } 35522 else 35523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35524 $as_echo "no" >&6; } 35525 fi 35526 35527 35528 if test "x$GNM" = x; then 35529 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35530 fi 35531 else 35532 # Otherwise we believe it is a complete path. Use it as it is. 35533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 35534 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 35535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 35536 $as_echo_n "checking for GNM... " >&6; } 35537 if test ! -x "$tool_specified"; then 35538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35539 $as_echo "not found" >&6; } 35540 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 35541 fi 35542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35543 $as_echo "$tool_specified" >&6; } 35544 fi 35545 fi 35546 fi 35547 35548 35549 35550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35551 35552 # First separate the path from the arguments. This will split at the first 35553 # space. 35554 complete="$GNM" 35555 path="${complete%% *}" 35556 tmp="$complete EOL" 35557 arguments="${tmp#* }" 35558 35559 # Input might be given as Windows format, start by converting to 35560 # unix format. 35561 new_path=`$CYGPATH -u "$path"` 35562 35563 # Now try to locate executable using which 35564 new_path=`$WHICH "$new_path" 2> /dev/null` 35565 # bat and cmd files are not always considered executable in cygwin causing which 35566 # to not find them 35567 if test "x$new_path" = x \ 35568 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35569 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35570 new_path=`$CYGPATH -u "$path"` 35571 fi 35572 if test "x$new_path" = x; then 35573 # Oops. Which didn't find the executable. 35574 # The splitting of arguments from the executable at a space might have been incorrect, 35575 # since paths with space are more likely in Windows. Give it another try with the whole 35576 # argument. 35577 path="$complete" 35578 arguments="EOL" 35579 new_path=`$CYGPATH -u "$path"` 35580 new_path=`$WHICH "$new_path" 2> /dev/null` 35581 # bat and cmd files are not always considered executable in cygwin causing which 35582 # to not find them 35583 if test "x$new_path" = x \ 35584 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35585 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35586 new_path=`$CYGPATH -u "$path"` 35587 fi 35588 if test "x$new_path" = x; then 35589 # It's still not found. Now this is an unrecoverable error. 35590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35591 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35592 has_space=`$ECHO "$complete" | $GREP " "` 35593 if test "x$has_space" != x; then 35594 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35595 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35596 fi 35597 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35598 fi 35599 fi 35600 35601 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35602 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35603 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35604 # "foo.exe" is OK but "foo" is an error. 35605 # 35606 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35607 # It is also a way to make sure we got the proper file name for the real test later on. 35608 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35609 if test "x$test_shortpath" = x; then 35610 # Short path failed, file does not exist as specified. 35611 # Try adding .exe or .cmd 35612 if test -f "${new_path}.exe"; then 35613 input_to_shortpath="${new_path}.exe" 35614 elif test -f "${new_path}.cmd"; then 35615 input_to_shortpath="${new_path}.cmd" 35616 else 35617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 35618 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 35619 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35620 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35621 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35622 fi 35623 else 35624 input_to_shortpath="$new_path" 35625 fi 35626 35627 # Call helper function which possibly converts this using DOS-style short mode. 35628 # If so, the updated path is stored in $new_path. 35629 new_path="$input_to_shortpath" 35630 35631 input_path="$input_to_shortpath" 35632 # Check if we need to convert this using DOS-style short mode. If the path 35633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35634 # take no chances and rewrite it. 35635 # Note: m4 eats our [], so we need to use [ and ] instead. 35636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35637 if test "x$has_forbidden_chars" != x; then 35638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35639 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35640 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35641 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35642 # Going to short mode and back again did indeed matter. Since short mode is 35643 # case insensitive, let's make it lowercase to improve readability. 35644 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35645 # Now convert it back to Unix-style (cygpath) 35646 input_path=`$CYGPATH -u "$shortmode_path"` 35647 new_path="$input_path" 35648 fi 35649 fi 35650 35651 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35652 if test "x$test_cygdrive_prefix" = x; then 35653 # As a simple fix, exclude /usr/bin since it's not a real path. 35654 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35655 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35656 # a path prefixed by /cygdrive for fixpath to work. 35657 new_path="$CYGWIN_ROOT_PATH$input_path" 35658 fi 35659 fi 35660 35661 # remove trailing .exe if any 35662 new_path="${new_path/%.exe/}" 35663 35664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35665 35666 # First separate the path from the arguments. This will split at the first 35667 # space. 35668 complete="$GNM" 35669 path="${complete%% *}" 35670 tmp="$complete EOL" 35671 arguments="${tmp#* }" 35672 35673 # Input might be given as Windows format, start by converting to 35674 # unix format. 35675 new_path="$path" 35676 35677 windows_path="$new_path" 35678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35679 unix_path=`$CYGPATH -u "$windows_path"` 35680 new_path="$unix_path" 35681 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35682 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35683 new_path="$unix_path" 35684 fi 35685 35686 35687 # Now try to locate executable using which 35688 new_path=`$WHICH "$new_path" 2> /dev/null` 35689 35690 if test "x$new_path" = x; then 35691 # Oops. Which didn't find the executable. 35692 # The splitting of arguments from the executable at a space might have been incorrect, 35693 # since paths with space are more likely in Windows. Give it another try with the whole 35694 # argument. 35695 path="$complete" 35696 arguments="EOL" 35697 new_path="$path" 35698 35699 windows_path="$new_path" 35700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35701 unix_path=`$CYGPATH -u "$windows_path"` 35702 new_path="$unix_path" 35703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35705 new_path="$unix_path" 35706 fi 35707 35708 35709 new_path=`$WHICH "$new_path" 2> /dev/null` 35710 # bat and cmd files are not always considered executable in MSYS causing which 35711 # to not find them 35712 if test "x$new_path" = x \ 35713 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35714 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35715 new_path="$path" 35716 35717 windows_path="$new_path" 35718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35719 unix_path=`$CYGPATH -u "$windows_path"` 35720 new_path="$unix_path" 35721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35722 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35723 new_path="$unix_path" 35724 fi 35725 35726 fi 35727 35728 if test "x$new_path" = x; then 35729 # It's still not found. Now this is an unrecoverable error. 35730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35731 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35732 has_space=`$ECHO "$complete" | $GREP " "` 35733 if test "x$has_space" != x; then 35734 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35735 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35736 fi 35737 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35738 fi 35739 fi 35740 35741 # Now new_path has a complete unix path to the binary 35742 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35743 # Keep paths in /bin as-is, but remove trailing .exe if any 35744 new_path="${new_path/%.exe/}" 35745 # Do not save /bin paths to all_fixpath_prefixes! 35746 else 35747 # Not in mixed or Windows style, start by that. 35748 new_path=`cmd //c echo $new_path` 35749 35750 input_path="$new_path" 35751 # Check if we need to convert this using DOS-style short mode. If the path 35752 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35753 # take no chances and rewrite it. 35754 # Note: m4 eats our [], so we need to use [ and ] instead. 35755 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35756 if test "x$has_forbidden_chars" != x; then 35757 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35758 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35759 fi 35760 35761 # Output is in $new_path 35762 35763 windows_path="$new_path" 35764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35765 unix_path=`$CYGPATH -u "$windows_path"` 35766 new_path="$unix_path" 35767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35768 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35769 new_path="$unix_path" 35770 fi 35771 35772 # remove trailing .exe if any 35773 new_path="${new_path/%.exe/}" 35774 35775 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35776 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35777 fi 35778 35779 else 35780 # We're on a posix platform. Hooray! :) 35781 # First separate the path from the arguments. This will split at the first 35782 # space. 35783 complete="$GNM" 35784 path="${complete%% *}" 35785 tmp="$complete EOL" 35786 arguments="${tmp#* }" 35787 35788 # Cannot rely on the command "which" here since it doesn't always work. 35789 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35790 if test -z "$is_absolute_path"; then 35791 # Path to executable is not absolute. Find it. 35792 IFS_save="$IFS" 35793 IFS=: 35794 for p in $PATH; do 35795 if test -f "$p/$path" && test -x "$p/$path"; then 35796 new_path="$p/$path" 35797 break 35798 fi 35799 done 35800 IFS="$IFS_save" 35801 else 35802 # This is an absolute path, we can use it without further modifications. 35803 new_path="$path" 35804 fi 35805 35806 if test "x$new_path" = x; then 35807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35808 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35809 has_space=`$ECHO "$complete" | $GREP " "` 35810 if test "x$has_space" != x; then 35811 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35812 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35813 fi 35814 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35815 fi 35816 fi 35817 35818 # Now join together the path and the arguments once again 35819 if test "x$arguments" != xEOL; then 35820 new_complete="$new_path ${arguments% *}" 35821 else 35822 new_complete="$new_path" 35823 fi 35824 35825 if test "x$complete" != "x$new_complete"; then 35826 GNM="$new_complete" 35827 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 35828 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 35829 fi 35830 35831 35832 35833 35834 # Publish this variable in the help. 35835 35836 35837 if test "x$MCS" = x; then 35838 # The variable is not set by user, try to locate tool using the code snippet 35839 for ac_prog in mcs 35840 do 35841 # Extract the first word of "$ac_prog", so it can be a program name with args. 35842 set dummy $ac_prog; ac_word=$2 35843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35844 $as_echo_n "checking for $ac_word... " >&6; } 35845 if ${ac_cv_path_MCS+:} false; then : 35846 $as_echo_n "(cached) " >&6 35847 else 35848 case $MCS in 35849 [\\/]* | ?:[\\/]*) 35850 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35851 ;; 35852 *) 35853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35854 for as_dir in $PATH 35855 do 35856 IFS=$as_save_IFS 35857 test -z "$as_dir" && as_dir=. 35858 for ac_exec_ext in '' $ac_executable_extensions; do 35859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35860 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35862 break 2 35863 fi 35864 done 35865 done 35866 IFS=$as_save_IFS 35867 35868 ;; 35869 esac 35870 fi 35871 MCS=$ac_cv_path_MCS 35872 if test -n "$MCS"; then 35873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35874 $as_echo "$MCS" >&6; } 35875 else 35876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35877 $as_echo "no" >&6; } 35878 fi 35879 35880 35881 test -n "$MCS" && break 35882 done 35883 35884 else 35885 # The variable is set, but is it from the command line or the environment? 35886 35887 # Try to remove the string !MCS! from our list. 35888 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 35889 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35890 # If it failed, the variable was not from the command line. Ignore it, 35891 # but warn the user (except for BASH, which is always set by the calling BASH). 35892 if test "xMCS" != xBASH; then 35893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 35894 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 35895 fi 35896 # Try to locate tool using the code snippet 35897 for ac_prog in mcs 35898 do 35899 # Extract the first word of "$ac_prog", so it can be a program name with args. 35900 set dummy $ac_prog; ac_word=$2 35901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35902 $as_echo_n "checking for $ac_word... " >&6; } 35903 if ${ac_cv_path_MCS+:} false; then : 35904 $as_echo_n "(cached) " >&6 35905 else 35906 case $MCS in 35907 [\\/]* | ?:[\\/]*) 35908 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35909 ;; 35910 *) 35911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35912 for as_dir in $PATH 35913 do 35914 IFS=$as_save_IFS 35915 test -z "$as_dir" && as_dir=. 35916 for ac_exec_ext in '' $ac_executable_extensions; do 35917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35918 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35920 break 2 35921 fi 35922 done 35923 done 35924 IFS=$as_save_IFS 35925 35926 ;; 35927 esac 35928 fi 35929 MCS=$ac_cv_path_MCS 35930 if test -n "$MCS"; then 35931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35932 $as_echo "$MCS" >&6; } 35933 else 35934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35935 $as_echo "no" >&6; } 35936 fi 35937 35938 35939 test -n "$MCS" && break 35940 done 35941 35942 else 35943 # If it succeeded, then it was overridden by the user. We will use it 35944 # for the tool. 35945 35946 # First remove it from the list of overridden variables, so we can test 35947 # for unknown variables in the end. 35948 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35949 35950 # Check if the provided tool contains a complete path. 35951 tool_specified="$MCS" 35952 tool_basename="${tool_specified##*/}" 35953 if test "x$tool_basename" = "x$tool_specified"; then 35954 # A command without a complete path is provided, search $PATH. 35955 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 35956 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 35957 # Extract the first word of "$tool_basename", so it can be a program name with args. 35958 set dummy $tool_basename; ac_word=$2 35959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35960 $as_echo_n "checking for $ac_word... " >&6; } 35961 if ${ac_cv_path_MCS+:} false; then : 35962 $as_echo_n "(cached) " >&6 35963 else 35964 case $MCS in 35965 [\\/]* | ?:[\\/]*) 35966 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35967 ;; 35968 *) 35969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35970 for as_dir in $PATH 35971 do 35972 IFS=$as_save_IFS 35973 test -z "$as_dir" && as_dir=. 35974 for ac_exec_ext in '' $ac_executable_extensions; do 35975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35976 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35978 break 2 35979 fi 35980 done 35981 done 35982 IFS=$as_save_IFS 35983 35984 ;; 35985 esac 35986 fi 35987 MCS=$ac_cv_path_MCS 35988 if test -n "$MCS"; then 35989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35990 $as_echo "$MCS" >&6; } 35991 else 35992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35993 $as_echo "no" >&6; } 35994 fi 35995 35996 35997 if test "x$MCS" = x; then 35998 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35999 fi 36000 else 36001 # Otherwise we believe it is a complete path. Use it as it is. 36002 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36003 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36005 $as_echo_n "checking for MCS... " >&6; } 36006 if test ! -x "$tool_specified"; then 36007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36008 $as_echo "not found" >&6; } 36009 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36010 fi 36011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36012 $as_echo "$tool_specified" >&6; } 36013 fi 36014 fi 36015 fi 36016 36017 36018 36019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36020 36021 # First separate the path from the arguments. This will split at the first 36022 # space. 36023 complete="$MCS" 36024 path="${complete%% *}" 36025 tmp="$complete EOL" 36026 arguments="${tmp#* }" 36027 36028 # Input might be given as Windows format, start by converting to 36029 # unix format. 36030 new_path=`$CYGPATH -u "$path"` 36031 36032 # Now try to locate executable using which 36033 new_path=`$WHICH "$new_path" 2> /dev/null` 36034 # bat and cmd files are not always considered executable in cygwin causing which 36035 # to not find them 36036 if test "x$new_path" = x \ 36037 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36038 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36039 new_path=`$CYGPATH -u "$path"` 36040 fi 36041 if test "x$new_path" = x; then 36042 # Oops. Which didn't find the executable. 36043 # The splitting of arguments from the executable at a space might have been incorrect, 36044 # since paths with space are more likely in Windows. Give it another try with the whole 36045 # argument. 36046 path="$complete" 36047 arguments="EOL" 36048 new_path=`$CYGPATH -u "$path"` 36049 new_path=`$WHICH "$new_path" 2> /dev/null` 36050 # bat and cmd files are not always considered executable in cygwin causing which 36051 # to not find them 36052 if test "x$new_path" = x \ 36053 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36054 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36055 new_path=`$CYGPATH -u "$path"` 36056 fi 36057 if test "x$new_path" = x; then 36058 # It's still not found. Now this is an unrecoverable error. 36059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36060 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36061 has_space=`$ECHO "$complete" | $GREP " "` 36062 if test "x$has_space" != x; then 36063 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36064 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36065 fi 36066 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36067 fi 36068 fi 36069 36070 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36071 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36072 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36073 # "foo.exe" is OK but "foo" is an error. 36074 # 36075 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36076 # It is also a way to make sure we got the proper file name for the real test later on. 36077 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36078 if test "x$test_shortpath" = x; then 36079 # Short path failed, file does not exist as specified. 36080 # Try adding .exe or .cmd 36081 if test -f "${new_path}.exe"; then 36082 input_to_shortpath="${new_path}.exe" 36083 elif test -f "${new_path}.cmd"; then 36084 input_to_shortpath="${new_path}.cmd" 36085 else 36086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36087 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36088 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36089 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36090 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36091 fi 36092 else 36093 input_to_shortpath="$new_path" 36094 fi 36095 36096 # Call helper function which possibly converts this using DOS-style short mode. 36097 # If so, the updated path is stored in $new_path. 36098 new_path="$input_to_shortpath" 36099 36100 input_path="$input_to_shortpath" 36101 # Check if we need to convert this using DOS-style short mode. If the path 36102 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36103 # take no chances and rewrite it. 36104 # Note: m4 eats our [], so we need to use [ and ] instead. 36105 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36106 if test "x$has_forbidden_chars" != x; then 36107 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36108 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36109 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36110 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36111 # Going to short mode and back again did indeed matter. Since short mode is 36112 # case insensitive, let's make it lowercase to improve readability. 36113 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36114 # Now convert it back to Unix-style (cygpath) 36115 input_path=`$CYGPATH -u "$shortmode_path"` 36116 new_path="$input_path" 36117 fi 36118 fi 36119 36120 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36121 if test "x$test_cygdrive_prefix" = x; then 36122 # As a simple fix, exclude /usr/bin since it's not a real path. 36123 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36124 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36125 # a path prefixed by /cygdrive for fixpath to work. 36126 new_path="$CYGWIN_ROOT_PATH$input_path" 36127 fi 36128 fi 36129 36130 # remove trailing .exe if any 36131 new_path="${new_path/%.exe/}" 36132 36133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36134 36135 # First separate the path from the arguments. This will split at the first 36136 # space. 36137 complete="$MCS" 36138 path="${complete%% *}" 36139 tmp="$complete EOL" 36140 arguments="${tmp#* }" 36141 36142 # Input might be given as Windows format, start by converting to 36143 # unix format. 36144 new_path="$path" 36145 36146 windows_path="$new_path" 36147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36148 unix_path=`$CYGPATH -u "$windows_path"` 36149 new_path="$unix_path" 36150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36151 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36152 new_path="$unix_path" 36153 fi 36154 36155 36156 # Now try to locate executable using which 36157 new_path=`$WHICH "$new_path" 2> /dev/null` 36158 36159 if test "x$new_path" = x; then 36160 # Oops. Which didn't find the executable. 36161 # The splitting of arguments from the executable at a space might have been incorrect, 36162 # since paths with space are more likely in Windows. Give it another try with the whole 36163 # argument. 36164 path="$complete" 36165 arguments="EOL" 36166 new_path="$path" 36167 36168 windows_path="$new_path" 36169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36170 unix_path=`$CYGPATH -u "$windows_path"` 36171 new_path="$unix_path" 36172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36173 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36174 new_path="$unix_path" 36175 fi 36176 36177 36178 new_path=`$WHICH "$new_path" 2> /dev/null` 36179 # bat and cmd files are not always considered executable in MSYS causing which 36180 # to not find them 36181 if test "x$new_path" = x \ 36182 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36183 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36184 new_path="$path" 36185 36186 windows_path="$new_path" 36187 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36188 unix_path=`$CYGPATH -u "$windows_path"` 36189 new_path="$unix_path" 36190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36191 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36192 new_path="$unix_path" 36193 fi 36194 36195 fi 36196 36197 if test "x$new_path" = x; then 36198 # It's still not found. Now this is an unrecoverable error. 36199 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36200 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36201 has_space=`$ECHO "$complete" | $GREP " "` 36202 if test "x$has_space" != x; then 36203 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36204 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36205 fi 36206 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36207 fi 36208 fi 36209 36210 # Now new_path has a complete unix path to the binary 36211 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36212 # Keep paths in /bin as-is, but remove trailing .exe if any 36213 new_path="${new_path/%.exe/}" 36214 # Do not save /bin paths to all_fixpath_prefixes! 36215 else 36216 # Not in mixed or Windows style, start by that. 36217 new_path=`cmd //c echo $new_path` 36218 36219 input_path="$new_path" 36220 # Check if we need to convert this using DOS-style short mode. If the path 36221 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36222 # take no chances and rewrite it. 36223 # Note: m4 eats our [], so we need to use [ and ] instead. 36224 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36225 if test "x$has_forbidden_chars" != x; then 36226 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36227 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36228 fi 36229 36230 # Output is in $new_path 36231 36232 windows_path="$new_path" 36233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36234 unix_path=`$CYGPATH -u "$windows_path"` 36235 new_path="$unix_path" 36236 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36237 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36238 new_path="$unix_path" 36239 fi 36240 36241 # remove trailing .exe if any 36242 new_path="${new_path/%.exe/}" 36243 36244 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36245 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36246 fi 36247 36248 else 36249 # We're on a posix platform. Hooray! :) 36250 # First separate the path from the arguments. This will split at the first 36251 # space. 36252 complete="$MCS" 36253 path="${complete%% *}" 36254 tmp="$complete EOL" 36255 arguments="${tmp#* }" 36256 36257 # Cannot rely on the command "which" here since it doesn't always work. 36258 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36259 if test -z "$is_absolute_path"; then 36260 # Path to executable is not absolute. Find it. 36261 IFS_save="$IFS" 36262 IFS=: 36263 for p in $PATH; do 36264 if test -f "$p/$path" && test -x "$p/$path"; then 36265 new_path="$p/$path" 36266 break 36267 fi 36268 done 36269 IFS="$IFS_save" 36270 else 36271 # This is an absolute path, we can use it without further modifications. 36272 new_path="$path" 36273 fi 36274 36275 if test "x$new_path" = x; then 36276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36277 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36278 has_space=`$ECHO "$complete" | $GREP " "` 36279 if test "x$has_space" != x; then 36280 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36281 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36282 fi 36283 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36284 fi 36285 fi 36286 36287 # Now join together the path and the arguments once again 36288 if test "x$arguments" != xEOL; then 36289 new_complete="$new_path ${arguments% *}" 36290 else 36291 new_complete="$new_path" 36292 fi 36293 36294 if test "x$complete" != "x$new_complete"; then 36295 MCS="$new_complete" 36296 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36297 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36298 fi 36299 36300 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36301 # FIXME: we should unify this with the solaris case above. 36302 36303 36304 # Publish this variable in the help. 36305 36306 36307 if test "x$STRIP" = x; then 36308 # The variable is not set by user, try to locate tool using the code snippet 36309 if test -n "$ac_tool_prefix"; then 36310 for ac_prog in strip 36311 do 36312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36315 $as_echo_n "checking for $ac_word... " >&6; } 36316 if ${ac_cv_prog_STRIP+:} false; then : 36317 $as_echo_n "(cached) " >&6 36318 else 36319 if test -n "$STRIP"; then 36320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36321 else 36322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36323 for as_dir in $PATH 36324 do 36325 IFS=$as_save_IFS 36326 test -z "$as_dir" && as_dir=. 36327 for ac_exec_ext in '' $ac_executable_extensions; do 36328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36329 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36331 break 2 36332 fi 36333 done 36334 done 36335 IFS=$as_save_IFS 36336 36337 fi 36338 fi 36339 STRIP=$ac_cv_prog_STRIP 36340 if test -n "$STRIP"; then 36341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36342 $as_echo "$STRIP" >&6; } 36343 else 36344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36345 $as_echo "no" >&6; } 36346 fi 36347 36348 36349 test -n "$STRIP" && break 36350 done 36351 fi 36352 if test -z "$STRIP"; then 36353 ac_ct_STRIP=$STRIP 36354 for ac_prog in strip 36355 do 36356 # Extract the first word of "$ac_prog", so it can be a program name with args. 36357 set dummy $ac_prog; ac_word=$2 36358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36359 $as_echo_n "checking for $ac_word... " >&6; } 36360 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36361 $as_echo_n "(cached) " >&6 36362 else 36363 if test -n "$ac_ct_STRIP"; then 36364 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36365 else 36366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36367 for as_dir in $PATH 36368 do 36369 IFS=$as_save_IFS 36370 test -z "$as_dir" && as_dir=. 36371 for ac_exec_ext in '' $ac_executable_extensions; do 36372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36373 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36375 break 2 36376 fi 36377 done 36378 done 36379 IFS=$as_save_IFS 36380 36381 fi 36382 fi 36383 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36384 if test -n "$ac_ct_STRIP"; then 36385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36386 $as_echo "$ac_ct_STRIP" >&6; } 36387 else 36388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36389 $as_echo "no" >&6; } 36390 fi 36391 36392 36393 test -n "$ac_ct_STRIP" && break 36394 done 36395 36396 if test "x$ac_ct_STRIP" = x; then 36397 STRIP="" 36398 else 36399 case $cross_compiling:$ac_tool_warned in 36400 yes:) 36401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36403 ac_tool_warned=yes ;; 36404 esac 36405 STRIP=$ac_ct_STRIP 36406 fi 36407 fi 36408 36409 else 36410 # The variable is set, but is it from the command line or the environment? 36411 36412 # Try to remove the string !STRIP! from our list. 36413 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 36414 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36415 # If it failed, the variable was not from the command line. Ignore it, 36416 # but warn the user (except for BASH, which is always set by the calling BASH). 36417 if test "xSTRIP" != xBASH; then 36418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 36419 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 36420 fi 36421 # Try to locate tool using the code snippet 36422 if test -n "$ac_tool_prefix"; then 36423 for ac_prog in strip 36424 do 36425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36428 $as_echo_n "checking for $ac_word... " >&6; } 36429 if ${ac_cv_prog_STRIP+:} false; then : 36430 $as_echo_n "(cached) " >&6 36431 else 36432 if test -n "$STRIP"; then 36433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36434 else 36435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36436 for as_dir in $PATH 36437 do 36438 IFS=$as_save_IFS 36439 test -z "$as_dir" && as_dir=. 36440 for ac_exec_ext in '' $ac_executable_extensions; do 36441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36442 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36444 break 2 36445 fi 36446 done 36447 done 36448 IFS=$as_save_IFS 36449 36450 fi 36451 fi 36452 STRIP=$ac_cv_prog_STRIP 36453 if test -n "$STRIP"; then 36454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36455 $as_echo "$STRIP" >&6; } 36456 else 36457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36458 $as_echo "no" >&6; } 36459 fi 36460 36461 36462 test -n "$STRIP" && break 36463 done 36464 fi 36465 if test -z "$STRIP"; then 36466 ac_ct_STRIP=$STRIP 36467 for ac_prog in strip 36468 do 36469 # Extract the first word of "$ac_prog", so it can be a program name with args. 36470 set dummy $ac_prog; ac_word=$2 36471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36472 $as_echo_n "checking for $ac_word... " >&6; } 36473 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36474 $as_echo_n "(cached) " >&6 36475 else 36476 if test -n "$ac_ct_STRIP"; then 36477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36478 else 36479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36480 for as_dir in $PATH 36481 do 36482 IFS=$as_save_IFS 36483 test -z "$as_dir" && as_dir=. 36484 for ac_exec_ext in '' $ac_executable_extensions; do 36485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36486 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36488 break 2 36489 fi 36490 done 36491 done 36492 IFS=$as_save_IFS 36493 36494 fi 36495 fi 36496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36497 if test -n "$ac_ct_STRIP"; then 36498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36499 $as_echo "$ac_ct_STRIP" >&6; } 36500 else 36501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36502 $as_echo "no" >&6; } 36503 fi 36504 36505 36506 test -n "$ac_ct_STRIP" && break 36507 done 36508 36509 if test "x$ac_ct_STRIP" = x; then 36510 STRIP="" 36511 else 36512 case $cross_compiling:$ac_tool_warned in 36513 yes:) 36514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36516 ac_tool_warned=yes ;; 36517 esac 36518 STRIP=$ac_ct_STRIP 36519 fi 36520 fi 36521 36522 else 36523 # If it succeeded, then it was overridden by the user. We will use it 36524 # for the tool. 36525 36526 # First remove it from the list of overridden variables, so we can test 36527 # for unknown variables in the end. 36528 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36529 36530 # Check if the provided tool contains a complete path. 36531 tool_specified="$STRIP" 36532 tool_basename="${tool_specified##*/}" 36533 if test "x$tool_basename" = "x$tool_specified"; then 36534 # A command without a complete path is provided, search $PATH. 36535 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 36536 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 36537 # Extract the first word of "$tool_basename", so it can be a program name with args. 36538 set dummy $tool_basename; ac_word=$2 36539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36540 $as_echo_n "checking for $ac_word... " >&6; } 36541 if ${ac_cv_path_STRIP+:} false; then : 36542 $as_echo_n "(cached) " >&6 36543 else 36544 case $STRIP in 36545 [\\/]* | ?:[\\/]*) 36546 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36547 ;; 36548 *) 36549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36550 for as_dir in $PATH 36551 do 36552 IFS=$as_save_IFS 36553 test -z "$as_dir" && as_dir=. 36554 for ac_exec_ext in '' $ac_executable_extensions; do 36555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36556 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36558 break 2 36559 fi 36560 done 36561 done 36562 IFS=$as_save_IFS 36563 36564 ;; 36565 esac 36566 fi 36567 STRIP=$ac_cv_path_STRIP 36568 if test -n "$STRIP"; then 36569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36570 $as_echo "$STRIP" >&6; } 36571 else 36572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36573 $as_echo "no" >&6; } 36574 fi 36575 36576 36577 if test "x$STRIP" = x; then 36578 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36579 fi 36580 else 36581 # Otherwise we believe it is a complete path. Use it as it is. 36582 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 36583 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 36584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 36585 $as_echo_n "checking for STRIP... " >&6; } 36586 if test ! -x "$tool_specified"; then 36587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36588 $as_echo "not found" >&6; } 36589 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 36590 fi 36591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36592 $as_echo "$tool_specified" >&6; } 36593 fi 36594 fi 36595 fi 36596 36597 36598 36599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36600 36601 # First separate the path from the arguments. This will split at the first 36602 # space. 36603 complete="$STRIP" 36604 path="${complete%% *}" 36605 tmp="$complete EOL" 36606 arguments="${tmp#* }" 36607 36608 # Input might be given as Windows format, start by converting to 36609 # unix format. 36610 new_path=`$CYGPATH -u "$path"` 36611 36612 # Now try to locate executable using which 36613 new_path=`$WHICH "$new_path" 2> /dev/null` 36614 # bat and cmd files are not always considered executable in cygwin causing which 36615 # to not find them 36616 if test "x$new_path" = x \ 36617 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36618 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36619 new_path=`$CYGPATH -u "$path"` 36620 fi 36621 if test "x$new_path" = x; then 36622 # Oops. Which didn't find the executable. 36623 # The splitting of arguments from the executable at a space might have been incorrect, 36624 # since paths with space are more likely in Windows. Give it another try with the whole 36625 # argument. 36626 path="$complete" 36627 arguments="EOL" 36628 new_path=`$CYGPATH -u "$path"` 36629 new_path=`$WHICH "$new_path" 2> /dev/null` 36630 # bat and cmd files are not always considered executable in cygwin causing which 36631 # to not find them 36632 if test "x$new_path" = x \ 36633 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36634 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36635 new_path=`$CYGPATH -u "$path"` 36636 fi 36637 if test "x$new_path" = x; then 36638 # It's still not found. Now this is an unrecoverable error. 36639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36640 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36641 has_space=`$ECHO "$complete" | $GREP " "` 36642 if test "x$has_space" != x; then 36643 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36644 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36645 fi 36646 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36647 fi 36648 fi 36649 36650 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36651 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36652 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36653 # "foo.exe" is OK but "foo" is an error. 36654 # 36655 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36656 # It is also a way to make sure we got the proper file name for the real test later on. 36657 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36658 if test "x$test_shortpath" = x; then 36659 # Short path failed, file does not exist as specified. 36660 # Try adding .exe or .cmd 36661 if test -f "${new_path}.exe"; then 36662 input_to_shortpath="${new_path}.exe" 36663 elif test -f "${new_path}.cmd"; then 36664 input_to_shortpath="${new_path}.cmd" 36665 else 36666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 36667 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 36668 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36669 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36670 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36671 fi 36672 else 36673 input_to_shortpath="$new_path" 36674 fi 36675 36676 # Call helper function which possibly converts this using DOS-style short mode. 36677 # If so, the updated path is stored in $new_path. 36678 new_path="$input_to_shortpath" 36679 36680 input_path="$input_to_shortpath" 36681 # Check if we need to convert this using DOS-style short mode. If the path 36682 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36683 # take no chances and rewrite it. 36684 # Note: m4 eats our [], so we need to use [ and ] instead. 36685 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36686 if test "x$has_forbidden_chars" != x; then 36687 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36688 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36689 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36690 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36691 # Going to short mode and back again did indeed matter. Since short mode is 36692 # case insensitive, let's make it lowercase to improve readability. 36693 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36694 # Now convert it back to Unix-style (cygpath) 36695 input_path=`$CYGPATH -u "$shortmode_path"` 36696 new_path="$input_path" 36697 fi 36698 fi 36699 36700 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36701 if test "x$test_cygdrive_prefix" = x; then 36702 # As a simple fix, exclude /usr/bin since it's not a real path. 36703 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36704 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36705 # a path prefixed by /cygdrive for fixpath to work. 36706 new_path="$CYGWIN_ROOT_PATH$input_path" 36707 fi 36708 fi 36709 36710 # remove trailing .exe if any 36711 new_path="${new_path/%.exe/}" 36712 36713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36714 36715 # First separate the path from the arguments. This will split at the first 36716 # space. 36717 complete="$STRIP" 36718 path="${complete%% *}" 36719 tmp="$complete EOL" 36720 arguments="${tmp#* }" 36721 36722 # Input might be given as Windows format, start by converting to 36723 # unix format. 36724 new_path="$path" 36725 36726 windows_path="$new_path" 36727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36728 unix_path=`$CYGPATH -u "$windows_path"` 36729 new_path="$unix_path" 36730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36732 new_path="$unix_path" 36733 fi 36734 36735 36736 # Now try to locate executable using which 36737 new_path=`$WHICH "$new_path" 2> /dev/null` 36738 36739 if test "x$new_path" = x; then 36740 # Oops. Which didn't find the executable. 36741 # The splitting of arguments from the executable at a space might have been incorrect, 36742 # since paths with space are more likely in Windows. Give it another try with the whole 36743 # argument. 36744 path="$complete" 36745 arguments="EOL" 36746 new_path="$path" 36747 36748 windows_path="$new_path" 36749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36750 unix_path=`$CYGPATH -u "$windows_path"` 36751 new_path="$unix_path" 36752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36754 new_path="$unix_path" 36755 fi 36756 36757 36758 new_path=`$WHICH "$new_path" 2> /dev/null` 36759 # bat and cmd files are not always considered executable in MSYS causing which 36760 # to not find them 36761 if test "x$new_path" = x \ 36762 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36763 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36764 new_path="$path" 36765 36766 windows_path="$new_path" 36767 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36768 unix_path=`$CYGPATH -u "$windows_path"` 36769 new_path="$unix_path" 36770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36771 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36772 new_path="$unix_path" 36773 fi 36774 36775 fi 36776 36777 if test "x$new_path" = x; then 36778 # It's still not found. Now this is an unrecoverable error. 36779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36780 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36781 has_space=`$ECHO "$complete" | $GREP " "` 36782 if test "x$has_space" != x; then 36783 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36784 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36785 fi 36786 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36787 fi 36788 fi 36789 36790 # Now new_path has a complete unix path to the binary 36791 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36792 # Keep paths in /bin as-is, but remove trailing .exe if any 36793 new_path="${new_path/%.exe/}" 36794 # Do not save /bin paths to all_fixpath_prefixes! 36795 else 36796 # Not in mixed or Windows style, start by that. 36797 new_path=`cmd //c echo $new_path` 36798 36799 input_path="$new_path" 36800 # Check if we need to convert this using DOS-style short mode. If the path 36801 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36802 # take no chances and rewrite it. 36803 # Note: m4 eats our [], so we need to use [ and ] instead. 36804 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36805 if test "x$has_forbidden_chars" != x; then 36806 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36807 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36808 fi 36809 36810 # Output is in $new_path 36811 36812 windows_path="$new_path" 36813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36814 unix_path=`$CYGPATH -u "$windows_path"` 36815 new_path="$unix_path" 36816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36817 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36818 new_path="$unix_path" 36819 fi 36820 36821 # remove trailing .exe if any 36822 new_path="${new_path/%.exe/}" 36823 36824 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36825 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36826 fi 36827 36828 else 36829 # We're on a posix platform. Hooray! :) 36830 # First separate the path from the arguments. This will split at the first 36831 # space. 36832 complete="$STRIP" 36833 path="${complete%% *}" 36834 tmp="$complete EOL" 36835 arguments="${tmp#* }" 36836 36837 # Cannot rely on the command "which" here since it doesn't always work. 36838 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36839 if test -z "$is_absolute_path"; then 36840 # Path to executable is not absolute. Find it. 36841 IFS_save="$IFS" 36842 IFS=: 36843 for p in $PATH; do 36844 if test -f "$p/$path" && test -x "$p/$path"; then 36845 new_path="$p/$path" 36846 break 36847 fi 36848 done 36849 IFS="$IFS_save" 36850 else 36851 # This is an absolute path, we can use it without further modifications. 36852 new_path="$path" 36853 fi 36854 36855 if test "x$new_path" = x; then 36856 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36857 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36858 has_space=`$ECHO "$complete" | $GREP " "` 36859 if test "x$has_space" != x; then 36860 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36861 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36862 fi 36863 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36864 fi 36865 fi 36866 36867 # Now join together the path and the arguments once again 36868 if test "x$arguments" != xEOL; then 36869 new_complete="$new_path ${arguments% *}" 36870 else 36871 new_complete="$new_path" 36872 fi 36873 36874 if test "x$complete" != "x$new_complete"; then 36875 STRIP="$new_complete" 36876 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 36877 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 36878 fi 36879 36880 # Extract the first word of "otool", so it can be a program name with args. 36881 set dummy otool; ac_word=$2 36882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36883 $as_echo_n "checking for $ac_word... " >&6; } 36884 if ${ac_cv_path_OTOOL+:} false; then : 36885 $as_echo_n "(cached) " >&6 36886 else 36887 case $OTOOL in 36888 [\\/]* | ?:[\\/]*) 36889 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 36890 ;; 36891 *) 36892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36893 for as_dir in $PATH 36894 do 36895 IFS=$as_save_IFS 36896 test -z "$as_dir" && as_dir=. 36897 for ac_exec_ext in '' $ac_executable_extensions; do 36898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36899 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 36900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36901 break 2 36902 fi 36903 done 36904 done 36905 IFS=$as_save_IFS 36906 36907 ;; 36908 esac 36909 fi 36910 OTOOL=$ac_cv_path_OTOOL 36911 if test -n "$OTOOL"; then 36912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 36913 $as_echo "$OTOOL" >&6; } 36914 else 36915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36916 $as_echo "no" >&6; } 36917 fi 36918 36919 36920 if test "x$OTOOL" = "x"; then 36921 OTOOL="true" 36922 fi 36923 36924 36925 # Publish this variable in the help. 36926 36927 36928 if test "x$NM" = x; then 36929 # The variable is not set by user, try to locate tool using the code snippet 36930 if test -n "$ac_tool_prefix"; then 36931 for ac_prog in nm 36932 do 36933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36936 $as_echo_n "checking for $ac_word... " >&6; } 36937 if ${ac_cv_prog_NM+:} false; then : 36938 $as_echo_n "(cached) " >&6 36939 else 36940 if test -n "$NM"; then 36941 ac_cv_prog_NM="$NM" # Let the user override the test. 36942 else 36943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36944 for as_dir in $PATH 36945 do 36946 IFS=$as_save_IFS 36947 test -z "$as_dir" && as_dir=. 36948 for ac_exec_ext in '' $ac_executable_extensions; do 36949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36950 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 36951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36952 break 2 36953 fi 36954 done 36955 done 36956 IFS=$as_save_IFS 36957 36958 fi 36959 fi 36960 NM=$ac_cv_prog_NM 36961 if test -n "$NM"; then 36962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36963 $as_echo "$NM" >&6; } 36964 else 36965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36966 $as_echo "no" >&6; } 36967 fi 36968 36969 36970 test -n "$NM" && break 36971 done 36972 fi 36973 if test -z "$NM"; then 36974 ac_ct_NM=$NM 36975 for ac_prog in nm 36976 do 36977 # Extract the first word of "$ac_prog", so it can be a program name with args. 36978 set dummy $ac_prog; ac_word=$2 36979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36980 $as_echo_n "checking for $ac_word... " >&6; } 36981 if ${ac_cv_prog_ac_ct_NM+:} false; then : 36982 $as_echo_n "(cached) " >&6 36983 else 36984 if test -n "$ac_ct_NM"; then 36985 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 36986 else 36987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36988 for as_dir in $PATH 36989 do 36990 IFS=$as_save_IFS 36991 test -z "$as_dir" && as_dir=. 36992 for ac_exec_ext in '' $ac_executable_extensions; do 36993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36994 ac_cv_prog_ac_ct_NM="$ac_prog" 36995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36996 break 2 36997 fi 36998 done 36999 done 37000 IFS=$as_save_IFS 37001 37002 fi 37003 fi 37004 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37005 if test -n "$ac_ct_NM"; then 37006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37007 $as_echo "$ac_ct_NM" >&6; } 37008 else 37009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37010 $as_echo "no" >&6; } 37011 fi 37012 37013 37014 test -n "$ac_ct_NM" && break 37015 done 37016 37017 if test "x$ac_ct_NM" = x; then 37018 NM="" 37019 else 37020 case $cross_compiling:$ac_tool_warned in 37021 yes:) 37022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37024 ac_tool_warned=yes ;; 37025 esac 37026 NM=$ac_ct_NM 37027 fi 37028 fi 37029 37030 else 37031 # The variable is set, but is it from the command line or the environment? 37032 37033 # Try to remove the string !NM! from our list. 37034 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37035 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37036 # If it failed, the variable was not from the command line. Ignore it, 37037 # but warn the user (except for BASH, which is always set by the calling BASH). 37038 if test "xNM" != xBASH; then 37039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37040 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37041 fi 37042 # Try to locate tool using the code snippet 37043 if test -n "$ac_tool_prefix"; then 37044 for ac_prog in nm 37045 do 37046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37049 $as_echo_n "checking for $ac_word... " >&6; } 37050 if ${ac_cv_prog_NM+:} false; then : 37051 $as_echo_n "(cached) " >&6 37052 else 37053 if test -n "$NM"; then 37054 ac_cv_prog_NM="$NM" # Let the user override the test. 37055 else 37056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37057 for as_dir in $PATH 37058 do 37059 IFS=$as_save_IFS 37060 test -z "$as_dir" && as_dir=. 37061 for ac_exec_ext in '' $ac_executable_extensions; do 37062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37063 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37065 break 2 37066 fi 37067 done 37068 done 37069 IFS=$as_save_IFS 37070 37071 fi 37072 fi 37073 NM=$ac_cv_prog_NM 37074 if test -n "$NM"; then 37075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37076 $as_echo "$NM" >&6; } 37077 else 37078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37079 $as_echo "no" >&6; } 37080 fi 37081 37082 37083 test -n "$NM" && break 37084 done 37085 fi 37086 if test -z "$NM"; then 37087 ac_ct_NM=$NM 37088 for ac_prog in nm 37089 do 37090 # Extract the first word of "$ac_prog", so it can be a program name with args. 37091 set dummy $ac_prog; ac_word=$2 37092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37093 $as_echo_n "checking for $ac_word... " >&6; } 37094 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37095 $as_echo_n "(cached) " >&6 37096 else 37097 if test -n "$ac_ct_NM"; then 37098 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37099 else 37100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37101 for as_dir in $PATH 37102 do 37103 IFS=$as_save_IFS 37104 test -z "$as_dir" && as_dir=. 37105 for ac_exec_ext in '' $ac_executable_extensions; do 37106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37107 ac_cv_prog_ac_ct_NM="$ac_prog" 37108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37109 break 2 37110 fi 37111 done 37112 done 37113 IFS=$as_save_IFS 37114 37115 fi 37116 fi 37117 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37118 if test -n "$ac_ct_NM"; then 37119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37120 $as_echo "$ac_ct_NM" >&6; } 37121 else 37122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37123 $as_echo "no" >&6; } 37124 fi 37125 37126 37127 test -n "$ac_ct_NM" && break 37128 done 37129 37130 if test "x$ac_ct_NM" = x; then 37131 NM="" 37132 else 37133 case $cross_compiling:$ac_tool_warned in 37134 yes:) 37135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37137 ac_tool_warned=yes ;; 37138 esac 37139 NM=$ac_ct_NM 37140 fi 37141 fi 37142 37143 else 37144 # If it succeeded, then it was overridden by the user. We will use it 37145 # for the tool. 37146 37147 # First remove it from the list of overridden variables, so we can test 37148 # for unknown variables in the end. 37149 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37150 37151 # Check if the provided tool contains a complete path. 37152 tool_specified="$NM" 37153 tool_basename="${tool_specified##*/}" 37154 if test "x$tool_basename" = "x$tool_specified"; then 37155 # A command without a complete path is provided, search $PATH. 37156 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37157 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37158 # Extract the first word of "$tool_basename", so it can be a program name with args. 37159 set dummy $tool_basename; ac_word=$2 37160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37161 $as_echo_n "checking for $ac_word... " >&6; } 37162 if ${ac_cv_path_NM+:} false; then : 37163 $as_echo_n "(cached) " >&6 37164 else 37165 case $NM in 37166 [\\/]* | ?:[\\/]*) 37167 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37168 ;; 37169 *) 37170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37171 for as_dir in $PATH 37172 do 37173 IFS=$as_save_IFS 37174 test -z "$as_dir" && as_dir=. 37175 for ac_exec_ext in '' $ac_executable_extensions; do 37176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37177 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37179 break 2 37180 fi 37181 done 37182 done 37183 IFS=$as_save_IFS 37184 37185 ;; 37186 esac 37187 fi 37188 NM=$ac_cv_path_NM 37189 if test -n "$NM"; then 37190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37191 $as_echo "$NM" >&6; } 37192 else 37193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37194 $as_echo "no" >&6; } 37195 fi 37196 37197 37198 if test "x$NM" = x; then 37199 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37200 fi 37201 else 37202 # Otherwise we believe it is a complete path. Use it as it is. 37203 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37204 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37206 $as_echo_n "checking for NM... " >&6; } 37207 if test ! -x "$tool_specified"; then 37208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37209 $as_echo "not found" >&6; } 37210 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37211 fi 37212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37213 $as_echo "$tool_specified" >&6; } 37214 fi 37215 fi 37216 fi 37217 37218 37219 37220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37221 37222 # First separate the path from the arguments. This will split at the first 37223 # space. 37224 complete="$NM" 37225 path="${complete%% *}" 37226 tmp="$complete EOL" 37227 arguments="${tmp#* }" 37228 37229 # Input might be given as Windows format, start by converting to 37230 # unix format. 37231 new_path=`$CYGPATH -u "$path"` 37232 37233 # Now try to locate executable using which 37234 new_path=`$WHICH "$new_path" 2> /dev/null` 37235 # bat and cmd files are not always considered executable in cygwin causing which 37236 # to not find them 37237 if test "x$new_path" = x \ 37238 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37239 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37240 new_path=`$CYGPATH -u "$path"` 37241 fi 37242 if test "x$new_path" = x; then 37243 # Oops. Which didn't find the executable. 37244 # The splitting of arguments from the executable at a space might have been incorrect, 37245 # since paths with space are more likely in Windows. Give it another try with the whole 37246 # argument. 37247 path="$complete" 37248 arguments="EOL" 37249 new_path=`$CYGPATH -u "$path"` 37250 new_path=`$WHICH "$new_path" 2> /dev/null` 37251 # bat and cmd files are not always considered executable in cygwin causing which 37252 # to not find them 37253 if test "x$new_path" = x \ 37254 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37255 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37256 new_path=`$CYGPATH -u "$path"` 37257 fi 37258 if test "x$new_path" = x; then 37259 # It's still not found. Now this is an unrecoverable error. 37260 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37261 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37262 has_space=`$ECHO "$complete" | $GREP " "` 37263 if test "x$has_space" != x; then 37264 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37265 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37266 fi 37267 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37268 fi 37269 fi 37270 37271 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37272 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37273 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37274 # "foo.exe" is OK but "foo" is an error. 37275 # 37276 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37277 # It is also a way to make sure we got the proper file name for the real test later on. 37278 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37279 if test "x$test_shortpath" = x; then 37280 # Short path failed, file does not exist as specified. 37281 # Try adding .exe or .cmd 37282 if test -f "${new_path}.exe"; then 37283 input_to_shortpath="${new_path}.exe" 37284 elif test -f "${new_path}.cmd"; then 37285 input_to_shortpath="${new_path}.cmd" 37286 else 37287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37288 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37289 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37290 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37291 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37292 fi 37293 else 37294 input_to_shortpath="$new_path" 37295 fi 37296 37297 # Call helper function which possibly converts this using DOS-style short mode. 37298 # If so, the updated path is stored in $new_path. 37299 new_path="$input_to_shortpath" 37300 37301 input_path="$input_to_shortpath" 37302 # Check if we need to convert this using DOS-style short mode. If the path 37303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37304 # take no chances and rewrite it. 37305 # Note: m4 eats our [], so we need to use [ and ] instead. 37306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37307 if test "x$has_forbidden_chars" != x; then 37308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37309 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37310 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37311 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37312 # Going to short mode and back again did indeed matter. Since short mode is 37313 # case insensitive, let's make it lowercase to improve readability. 37314 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37315 # Now convert it back to Unix-style (cygpath) 37316 input_path=`$CYGPATH -u "$shortmode_path"` 37317 new_path="$input_path" 37318 fi 37319 fi 37320 37321 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37322 if test "x$test_cygdrive_prefix" = x; then 37323 # As a simple fix, exclude /usr/bin since it's not a real path. 37324 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37325 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37326 # a path prefixed by /cygdrive for fixpath to work. 37327 new_path="$CYGWIN_ROOT_PATH$input_path" 37328 fi 37329 fi 37330 37331 # remove trailing .exe if any 37332 new_path="${new_path/%.exe/}" 37333 37334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37335 37336 # First separate the path from the arguments. This will split at the first 37337 # space. 37338 complete="$NM" 37339 path="${complete%% *}" 37340 tmp="$complete EOL" 37341 arguments="${tmp#* }" 37342 37343 # Input might be given as Windows format, start by converting to 37344 # unix format. 37345 new_path="$path" 37346 37347 windows_path="$new_path" 37348 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37349 unix_path=`$CYGPATH -u "$windows_path"` 37350 new_path="$unix_path" 37351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37352 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37353 new_path="$unix_path" 37354 fi 37355 37356 37357 # Now try to locate executable using which 37358 new_path=`$WHICH "$new_path" 2> /dev/null` 37359 37360 if test "x$new_path" = x; then 37361 # Oops. Which didn't find the executable. 37362 # The splitting of arguments from the executable at a space might have been incorrect, 37363 # since paths with space are more likely in Windows. Give it another try with the whole 37364 # argument. 37365 path="$complete" 37366 arguments="EOL" 37367 new_path="$path" 37368 37369 windows_path="$new_path" 37370 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37371 unix_path=`$CYGPATH -u "$windows_path"` 37372 new_path="$unix_path" 37373 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37374 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37375 new_path="$unix_path" 37376 fi 37377 37378 37379 new_path=`$WHICH "$new_path" 2> /dev/null` 37380 # bat and cmd files are not always considered executable in MSYS causing which 37381 # to not find them 37382 if test "x$new_path" = x \ 37383 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37384 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37385 new_path="$path" 37386 37387 windows_path="$new_path" 37388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37389 unix_path=`$CYGPATH -u "$windows_path"` 37390 new_path="$unix_path" 37391 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37392 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37393 new_path="$unix_path" 37394 fi 37395 37396 fi 37397 37398 if test "x$new_path" = x; then 37399 # It's still not found. Now this is an unrecoverable error. 37400 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37401 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37402 has_space=`$ECHO "$complete" | $GREP " "` 37403 if test "x$has_space" != x; then 37404 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37405 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37406 fi 37407 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37408 fi 37409 fi 37410 37411 # Now new_path has a complete unix path to the binary 37412 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37413 # Keep paths in /bin as-is, but remove trailing .exe if any 37414 new_path="${new_path/%.exe/}" 37415 # Do not save /bin paths to all_fixpath_prefixes! 37416 else 37417 # Not in mixed or Windows style, start by that. 37418 new_path=`cmd //c echo $new_path` 37419 37420 input_path="$new_path" 37421 # Check if we need to convert this using DOS-style short mode. If the path 37422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37423 # take no chances and rewrite it. 37424 # Note: m4 eats our [], so we need to use [ and ] instead. 37425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37426 if test "x$has_forbidden_chars" != x; then 37427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37428 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37429 fi 37430 37431 # Output is in $new_path 37432 37433 windows_path="$new_path" 37434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37435 unix_path=`$CYGPATH -u "$windows_path"` 37436 new_path="$unix_path" 37437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37438 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37439 new_path="$unix_path" 37440 fi 37441 37442 # remove trailing .exe if any 37443 new_path="${new_path/%.exe/}" 37444 37445 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37446 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37447 fi 37448 37449 else 37450 # We're on a posix platform. Hooray! :) 37451 # First separate the path from the arguments. This will split at the first 37452 # space. 37453 complete="$NM" 37454 path="${complete%% *}" 37455 tmp="$complete EOL" 37456 arguments="${tmp#* }" 37457 37458 # Cannot rely on the command "which" here since it doesn't always work. 37459 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37460 if test -z "$is_absolute_path"; then 37461 # Path to executable is not absolute. Find it. 37462 IFS_save="$IFS" 37463 IFS=: 37464 for p in $PATH; do 37465 if test -f "$p/$path" && test -x "$p/$path"; then 37466 new_path="$p/$path" 37467 break 37468 fi 37469 done 37470 IFS="$IFS_save" 37471 else 37472 # This is an absolute path, we can use it without further modifications. 37473 new_path="$path" 37474 fi 37475 37476 if test "x$new_path" = x; then 37477 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37478 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37479 has_space=`$ECHO "$complete" | $GREP " "` 37480 if test "x$has_space" != x; then 37481 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37482 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37483 fi 37484 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37485 fi 37486 fi 37487 37488 # Now join together the path and the arguments once again 37489 if test "x$arguments" != xEOL; then 37490 new_complete="$new_path ${arguments% *}" 37491 else 37492 new_complete="$new_path" 37493 fi 37494 37495 if test "x$complete" != "x$new_complete"; then 37496 NM="$new_complete" 37497 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 37498 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 37499 fi 37500 37501 GNM="$NM" 37502 37503 fi 37504 37505 # objcopy is used for moving debug symbols to separate files when 37506 # full debug symbols are enabled. 37507 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 37508 37509 37510 # Publish this variable in the help. 37511 37512 37513 if test "x$OBJCOPY" = x; then 37514 # The variable is not set by user, try to locate tool using the code snippet 37515 if test -n "$ac_tool_prefix"; then 37516 for ac_prog in gobjcopy objcopy 37517 do 37518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37521 $as_echo_n "checking for $ac_word... " >&6; } 37522 if ${ac_cv_prog_OBJCOPY+:} false; then : 37523 $as_echo_n "(cached) " >&6 37524 else 37525 if test -n "$OBJCOPY"; then 37526 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37527 else 37528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37529 for as_dir in $PATH 37530 do 37531 IFS=$as_save_IFS 37532 test -z "$as_dir" && as_dir=. 37533 for ac_exec_ext in '' $ac_executable_extensions; do 37534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37535 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37537 break 2 37538 fi 37539 done 37540 done 37541 IFS=$as_save_IFS 37542 37543 fi 37544 fi 37545 OBJCOPY=$ac_cv_prog_OBJCOPY 37546 if test -n "$OBJCOPY"; then 37547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37548 $as_echo "$OBJCOPY" >&6; } 37549 else 37550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37551 $as_echo "no" >&6; } 37552 fi 37553 37554 37555 test -n "$OBJCOPY" && break 37556 done 37557 fi 37558 if test -z "$OBJCOPY"; then 37559 ac_ct_OBJCOPY=$OBJCOPY 37560 for ac_prog in gobjcopy objcopy 37561 do 37562 # Extract the first word of "$ac_prog", so it can be a program name with args. 37563 set dummy $ac_prog; ac_word=$2 37564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37565 $as_echo_n "checking for $ac_word... " >&6; } 37566 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37567 $as_echo_n "(cached) " >&6 37568 else 37569 if test -n "$ac_ct_OBJCOPY"; then 37570 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37571 else 37572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37573 for as_dir in $PATH 37574 do 37575 IFS=$as_save_IFS 37576 test -z "$as_dir" && as_dir=. 37577 for ac_exec_ext in '' $ac_executable_extensions; do 37578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37579 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37581 break 2 37582 fi 37583 done 37584 done 37585 IFS=$as_save_IFS 37586 37587 fi 37588 fi 37589 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37590 if test -n "$ac_ct_OBJCOPY"; then 37591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37592 $as_echo "$ac_ct_OBJCOPY" >&6; } 37593 else 37594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37595 $as_echo "no" >&6; } 37596 fi 37597 37598 37599 test -n "$ac_ct_OBJCOPY" && break 37600 done 37601 37602 if test "x$ac_ct_OBJCOPY" = x; then 37603 OBJCOPY="" 37604 else 37605 case $cross_compiling:$ac_tool_warned in 37606 yes:) 37607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37609 ac_tool_warned=yes ;; 37610 esac 37611 OBJCOPY=$ac_ct_OBJCOPY 37612 fi 37613 fi 37614 37615 else 37616 # The variable is set, but is it from the command line or the environment? 37617 37618 # Try to remove the string !OBJCOPY! from our list. 37619 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 37620 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37621 # If it failed, the variable was not from the command line. Ignore it, 37622 # but warn the user (except for BASH, which is always set by the calling BASH). 37623 if test "xOBJCOPY" != xBASH; then 37624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 37625 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 37626 fi 37627 # Try to locate tool using the code snippet 37628 if test -n "$ac_tool_prefix"; then 37629 for ac_prog in gobjcopy objcopy 37630 do 37631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37634 $as_echo_n "checking for $ac_word... " >&6; } 37635 if ${ac_cv_prog_OBJCOPY+:} false; then : 37636 $as_echo_n "(cached) " >&6 37637 else 37638 if test -n "$OBJCOPY"; then 37639 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37640 else 37641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37642 for as_dir in $PATH 37643 do 37644 IFS=$as_save_IFS 37645 test -z "$as_dir" && as_dir=. 37646 for ac_exec_ext in '' $ac_executable_extensions; do 37647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37648 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37650 break 2 37651 fi 37652 done 37653 done 37654 IFS=$as_save_IFS 37655 37656 fi 37657 fi 37658 OBJCOPY=$ac_cv_prog_OBJCOPY 37659 if test -n "$OBJCOPY"; then 37660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37661 $as_echo "$OBJCOPY" >&6; } 37662 else 37663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37664 $as_echo "no" >&6; } 37665 fi 37666 37667 37668 test -n "$OBJCOPY" && break 37669 done 37670 fi 37671 if test -z "$OBJCOPY"; then 37672 ac_ct_OBJCOPY=$OBJCOPY 37673 for ac_prog in gobjcopy objcopy 37674 do 37675 # Extract the first word of "$ac_prog", so it can be a program name with args. 37676 set dummy $ac_prog; ac_word=$2 37677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37678 $as_echo_n "checking for $ac_word... " >&6; } 37679 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37680 $as_echo_n "(cached) " >&6 37681 else 37682 if test -n "$ac_ct_OBJCOPY"; then 37683 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37684 else 37685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37686 for as_dir in $PATH 37687 do 37688 IFS=$as_save_IFS 37689 test -z "$as_dir" && as_dir=. 37690 for ac_exec_ext in '' $ac_executable_extensions; do 37691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37692 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37694 break 2 37695 fi 37696 done 37697 done 37698 IFS=$as_save_IFS 37699 37700 fi 37701 fi 37702 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37703 if test -n "$ac_ct_OBJCOPY"; then 37704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37705 $as_echo "$ac_ct_OBJCOPY" >&6; } 37706 else 37707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37708 $as_echo "no" >&6; } 37709 fi 37710 37711 37712 test -n "$ac_ct_OBJCOPY" && break 37713 done 37714 37715 if test "x$ac_ct_OBJCOPY" = x; then 37716 OBJCOPY="" 37717 else 37718 case $cross_compiling:$ac_tool_warned in 37719 yes:) 37720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37722 ac_tool_warned=yes ;; 37723 esac 37724 OBJCOPY=$ac_ct_OBJCOPY 37725 fi 37726 fi 37727 37728 else 37729 # If it succeeded, then it was overridden by the user. We will use it 37730 # for the tool. 37731 37732 # First remove it from the list of overridden variables, so we can test 37733 # for unknown variables in the end. 37734 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37735 37736 # Check if the provided tool contains a complete path. 37737 tool_specified="$OBJCOPY" 37738 tool_basename="${tool_specified##*/}" 37739 if test "x$tool_basename" = "x$tool_specified"; then 37740 # A command without a complete path is provided, search $PATH. 37741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 37742 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 37743 # Extract the first word of "$tool_basename", so it can be a program name with args. 37744 set dummy $tool_basename; ac_word=$2 37745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37746 $as_echo_n "checking for $ac_word... " >&6; } 37747 if ${ac_cv_path_OBJCOPY+:} false; then : 37748 $as_echo_n "(cached) " >&6 37749 else 37750 case $OBJCOPY in 37751 [\\/]* | ?:[\\/]*) 37752 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 37753 ;; 37754 *) 37755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37756 for as_dir in $PATH 37757 do 37758 IFS=$as_save_IFS 37759 test -z "$as_dir" && as_dir=. 37760 for ac_exec_ext in '' $ac_executable_extensions; do 37761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37762 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 37763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37764 break 2 37765 fi 37766 done 37767 done 37768 IFS=$as_save_IFS 37769 37770 ;; 37771 esac 37772 fi 37773 OBJCOPY=$ac_cv_path_OBJCOPY 37774 if test -n "$OBJCOPY"; then 37775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37776 $as_echo "$OBJCOPY" >&6; } 37777 else 37778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37779 $as_echo "no" >&6; } 37780 fi 37781 37782 37783 if test "x$OBJCOPY" = x; then 37784 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37785 fi 37786 else 37787 # Otherwise we believe it is a complete path. Use it as it is. 37788 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 37789 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 37790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 37791 $as_echo_n "checking for OBJCOPY... " >&6; } 37792 if test ! -x "$tool_specified"; then 37793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37794 $as_echo "not found" >&6; } 37795 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 37796 fi 37797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37798 $as_echo "$tool_specified" >&6; } 37799 fi 37800 fi 37801 fi 37802 37803 37804 # Only call fixup if objcopy was found. 37805 if test -n "$OBJCOPY"; then 37806 37807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37808 37809 # First separate the path from the arguments. This will split at the first 37810 # space. 37811 complete="$OBJCOPY" 37812 path="${complete%% *}" 37813 tmp="$complete EOL" 37814 arguments="${tmp#* }" 37815 37816 # Input might be given as Windows format, start by converting to 37817 # unix format. 37818 new_path=`$CYGPATH -u "$path"` 37819 37820 # Now try to locate executable using which 37821 new_path=`$WHICH "$new_path" 2> /dev/null` 37822 # bat and cmd files are not always considered executable in cygwin causing which 37823 # to not find them 37824 if test "x$new_path" = x \ 37825 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37826 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37827 new_path=`$CYGPATH -u "$path"` 37828 fi 37829 if test "x$new_path" = x; then 37830 # Oops. Which didn't find the executable. 37831 # The splitting of arguments from the executable at a space might have been incorrect, 37832 # since paths with space are more likely in Windows. Give it another try with the whole 37833 # argument. 37834 path="$complete" 37835 arguments="EOL" 37836 new_path=`$CYGPATH -u "$path"` 37837 new_path=`$WHICH "$new_path" 2> /dev/null` 37838 # bat and cmd files are not always considered executable in cygwin causing which 37839 # to not find them 37840 if test "x$new_path" = x \ 37841 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37842 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37843 new_path=`$CYGPATH -u "$path"` 37844 fi 37845 if test "x$new_path" = x; then 37846 # It's still not found. Now this is an unrecoverable error. 37847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37848 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37849 has_space=`$ECHO "$complete" | $GREP " "` 37850 if test "x$has_space" != x; then 37851 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37852 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37853 fi 37854 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37855 fi 37856 fi 37857 37858 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37859 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37860 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37861 # "foo.exe" is OK but "foo" is an error. 37862 # 37863 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37864 # It is also a way to make sure we got the proper file name for the real test later on. 37865 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37866 if test "x$test_shortpath" = x; then 37867 # Short path failed, file does not exist as specified. 37868 # Try adding .exe or .cmd 37869 if test -f "${new_path}.exe"; then 37870 input_to_shortpath="${new_path}.exe" 37871 elif test -f "${new_path}.cmd"; then 37872 input_to_shortpath="${new_path}.cmd" 37873 else 37874 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 37875 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 37876 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37877 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37878 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37879 fi 37880 else 37881 input_to_shortpath="$new_path" 37882 fi 37883 37884 # Call helper function which possibly converts this using DOS-style short mode. 37885 # If so, the updated path is stored in $new_path. 37886 new_path="$input_to_shortpath" 37887 37888 input_path="$input_to_shortpath" 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 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37897 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37898 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37899 # Going to short mode and back again did indeed matter. Since short mode is 37900 # case insensitive, let's make it lowercase to improve readability. 37901 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37902 # Now convert it back to Unix-style (cygpath) 37903 input_path=`$CYGPATH -u "$shortmode_path"` 37904 new_path="$input_path" 37905 fi 37906 fi 37907 37908 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37909 if test "x$test_cygdrive_prefix" = x; then 37910 # As a simple fix, exclude /usr/bin since it's not a real path. 37911 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37912 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37913 # a path prefixed by /cygdrive for fixpath to work. 37914 new_path="$CYGWIN_ROOT_PATH$input_path" 37915 fi 37916 fi 37917 37918 # remove trailing .exe if any 37919 new_path="${new_path/%.exe/}" 37920 37921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37922 37923 # First separate the path from the arguments. This will split at the first 37924 # space. 37925 complete="$OBJCOPY" 37926 path="${complete%% *}" 37927 tmp="$complete EOL" 37928 arguments="${tmp#* }" 37929 37930 # Input might be given as Windows format, start by converting to 37931 # unix format. 37932 new_path="$path" 37933 37934 windows_path="$new_path" 37935 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37936 unix_path=`$CYGPATH -u "$windows_path"` 37937 new_path="$unix_path" 37938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37939 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37940 new_path="$unix_path" 37941 fi 37942 37943 37944 # Now try to locate executable using which 37945 new_path=`$WHICH "$new_path" 2> /dev/null` 37946 37947 if test "x$new_path" = x; then 37948 # Oops. Which didn't find the executable. 37949 # The splitting of arguments from the executable at a space might have been incorrect, 37950 # since paths with space are more likely in Windows. Give it another try with the whole 37951 # argument. 37952 path="$complete" 37953 arguments="EOL" 37954 new_path="$path" 37955 37956 windows_path="$new_path" 37957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37958 unix_path=`$CYGPATH -u "$windows_path"` 37959 new_path="$unix_path" 37960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37962 new_path="$unix_path" 37963 fi 37964 37965 37966 new_path=`$WHICH "$new_path" 2> /dev/null` 37967 # bat and cmd files are not always considered executable in MSYS causing which 37968 # to not find them 37969 if test "x$new_path" = x \ 37970 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37971 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37972 new_path="$path" 37973 37974 windows_path="$new_path" 37975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37976 unix_path=`$CYGPATH -u "$windows_path"` 37977 new_path="$unix_path" 37978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37980 new_path="$unix_path" 37981 fi 37982 37983 fi 37984 37985 if test "x$new_path" = x; then 37986 # It's still not found. Now this is an unrecoverable error. 37987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37988 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37989 has_space=`$ECHO "$complete" | $GREP " "` 37990 if test "x$has_space" != x; then 37991 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37992 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37993 fi 37994 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37995 fi 37996 fi 37997 37998 # Now new_path has a complete unix path to the binary 37999 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38000 # Keep paths in /bin as-is, but remove trailing .exe if any 38001 new_path="${new_path/%.exe/}" 38002 # Do not save /bin paths to all_fixpath_prefixes! 38003 else 38004 # Not in mixed or Windows style, start by that. 38005 new_path=`cmd //c echo $new_path` 38006 38007 input_path="$new_path" 38008 # Check if we need to convert this using DOS-style short mode. If the path 38009 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38010 # take no chances and rewrite it. 38011 # Note: m4 eats our [], so we need to use [ and ] instead. 38012 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38013 if test "x$has_forbidden_chars" != x; then 38014 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38015 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38016 fi 38017 38018 # Output is in $new_path 38019 38020 windows_path="$new_path" 38021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38022 unix_path=`$CYGPATH -u "$windows_path"` 38023 new_path="$unix_path" 38024 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38025 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38026 new_path="$unix_path" 38027 fi 38028 38029 # remove trailing .exe if any 38030 new_path="${new_path/%.exe/}" 38031 38032 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38033 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38034 fi 38035 38036 else 38037 # We're on a posix platform. Hooray! :) 38038 # First separate the path from the arguments. This will split at the first 38039 # space. 38040 complete="$OBJCOPY" 38041 path="${complete%% *}" 38042 tmp="$complete EOL" 38043 arguments="${tmp#* }" 38044 38045 # Cannot rely on the command "which" here since it doesn't always work. 38046 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38047 if test -z "$is_absolute_path"; then 38048 # Path to executable is not absolute. Find it. 38049 IFS_save="$IFS" 38050 IFS=: 38051 for p in $PATH; do 38052 if test -f "$p/$path" && test -x "$p/$path"; then 38053 new_path="$p/$path" 38054 break 38055 fi 38056 done 38057 IFS="$IFS_save" 38058 else 38059 # This is an absolute path, we can use it without further modifications. 38060 new_path="$path" 38061 fi 38062 38063 if test "x$new_path" = x; then 38064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38065 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38066 has_space=`$ECHO "$complete" | $GREP " "` 38067 if test "x$has_space" != x; then 38068 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38069 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38070 fi 38071 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38072 fi 38073 fi 38074 38075 # Now join together the path and the arguments once again 38076 if test "x$arguments" != xEOL; then 38077 new_complete="$new_path ${arguments% *}" 38078 else 38079 new_complete="$new_path" 38080 fi 38081 38082 if test "x$complete" != "x$new_complete"; then 38083 OBJCOPY="$new_complete" 38084 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38085 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38086 fi 38087 38088 fi 38089 fi 38090 38091 38092 38093 # Publish this variable in the help. 38094 38095 38096 if test "x$OBJDUMP" = x; then 38097 # The variable is not set by user, try to locate tool using the code snippet 38098 if test -n "$ac_tool_prefix"; then 38099 for ac_prog in gobjdump objdump 38100 do 38101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38104 $as_echo_n "checking for $ac_word... " >&6; } 38105 if ${ac_cv_prog_OBJDUMP+:} false; then : 38106 $as_echo_n "(cached) " >&6 38107 else 38108 if test -n "$OBJDUMP"; then 38109 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38110 else 38111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38112 for as_dir in $PATH 38113 do 38114 IFS=$as_save_IFS 38115 test -z "$as_dir" && as_dir=. 38116 for ac_exec_ext in '' $ac_executable_extensions; do 38117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38118 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38120 break 2 38121 fi 38122 done 38123 done 38124 IFS=$as_save_IFS 38125 38126 fi 38127 fi 38128 OBJDUMP=$ac_cv_prog_OBJDUMP 38129 if test -n "$OBJDUMP"; then 38130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38131 $as_echo "$OBJDUMP" >&6; } 38132 else 38133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38134 $as_echo "no" >&6; } 38135 fi 38136 38137 38138 test -n "$OBJDUMP" && break 38139 done 38140 fi 38141 if test -z "$OBJDUMP"; then 38142 ac_ct_OBJDUMP=$OBJDUMP 38143 for ac_prog in gobjdump objdump 38144 do 38145 # Extract the first word of "$ac_prog", so it can be a program name with args. 38146 set dummy $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_ac_ct_OBJDUMP+:} false; then : 38150 $as_echo_n "(cached) " >&6 38151 else 38152 if test -n "$ac_ct_OBJDUMP"; then 38153 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_ac_ct_OBJDUMP="$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 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38173 if test -n "$ac_ct_OBJDUMP"; then 38174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38175 $as_echo "$ac_ct_OBJDUMP" >&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 "$ac_ct_OBJDUMP" && break 38183 done 38184 38185 if test "x$ac_ct_OBJDUMP" = x; then 38186 OBJDUMP="" 38187 else 38188 case $cross_compiling:$ac_tool_warned in 38189 yes:) 38190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38192 ac_tool_warned=yes ;; 38193 esac 38194 OBJDUMP=$ac_ct_OBJDUMP 38195 fi 38196 fi 38197 38198 else 38199 # The variable is set, but is it from the command line or the environment? 38200 38201 # Try to remove the string !OBJDUMP! from our list. 38202 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38203 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38204 # If it failed, the variable was not from the command line. Ignore it, 38205 # but warn the user (except for BASH, which is always set by the calling BASH). 38206 if test "xOBJDUMP" != xBASH; then 38207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38208 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38209 fi 38210 # Try to locate tool using the code snippet 38211 if test -n "$ac_tool_prefix"; then 38212 for ac_prog in gobjdump objdump 38213 do 38214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38217 $as_echo_n "checking for $ac_word... " >&6; } 38218 if ${ac_cv_prog_OBJDUMP+:} false; then : 38219 $as_echo_n "(cached) " >&6 38220 else 38221 if test -n "$OBJDUMP"; then 38222 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38223 else 38224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38225 for as_dir in $PATH 38226 do 38227 IFS=$as_save_IFS 38228 test -z "$as_dir" && as_dir=. 38229 for ac_exec_ext in '' $ac_executable_extensions; do 38230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38231 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38233 break 2 38234 fi 38235 done 38236 done 38237 IFS=$as_save_IFS 38238 38239 fi 38240 fi 38241 OBJDUMP=$ac_cv_prog_OBJDUMP 38242 if test -n "$OBJDUMP"; then 38243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38244 $as_echo "$OBJDUMP" >&6; } 38245 else 38246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38247 $as_echo "no" >&6; } 38248 fi 38249 38250 38251 test -n "$OBJDUMP" && break 38252 done 38253 fi 38254 if test -z "$OBJDUMP"; then 38255 ac_ct_OBJDUMP=$OBJDUMP 38256 for ac_prog in gobjdump objdump 38257 do 38258 # Extract the first word of "$ac_prog", so it can be a program name with args. 38259 set dummy $ac_prog; ac_word=$2 38260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38261 $as_echo_n "checking for $ac_word... " >&6; } 38262 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38263 $as_echo_n "(cached) " >&6 38264 else 38265 if test -n "$ac_ct_OBJDUMP"; then 38266 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38267 else 38268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38269 for as_dir in $PATH 38270 do 38271 IFS=$as_save_IFS 38272 test -z "$as_dir" && as_dir=. 38273 for ac_exec_ext in '' $ac_executable_extensions; do 38274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38275 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38277 break 2 38278 fi 38279 done 38280 done 38281 IFS=$as_save_IFS 38282 38283 fi 38284 fi 38285 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38286 if test -n "$ac_ct_OBJDUMP"; then 38287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38288 $as_echo "$ac_ct_OBJDUMP" >&6; } 38289 else 38290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38291 $as_echo "no" >&6; } 38292 fi 38293 38294 38295 test -n "$ac_ct_OBJDUMP" && break 38296 done 38297 38298 if test "x$ac_ct_OBJDUMP" = x; then 38299 OBJDUMP="" 38300 else 38301 case $cross_compiling:$ac_tool_warned in 38302 yes:) 38303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38305 ac_tool_warned=yes ;; 38306 esac 38307 OBJDUMP=$ac_ct_OBJDUMP 38308 fi 38309 fi 38310 38311 else 38312 # If it succeeded, then it was overridden by the user. We will use it 38313 # for the tool. 38314 38315 # First remove it from the list of overridden variables, so we can test 38316 # for unknown variables in the end. 38317 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38318 38319 # Check if the provided tool contains a complete path. 38320 tool_specified="$OBJDUMP" 38321 tool_basename="${tool_specified##*/}" 38322 if test "x$tool_basename" = "x$tool_specified"; then 38323 # A command without a complete path is provided, search $PATH. 38324 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38325 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38326 # Extract the first word of "$tool_basename", so it can be a program name with args. 38327 set dummy $tool_basename; ac_word=$2 38328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38329 $as_echo_n "checking for $ac_word... " >&6; } 38330 if ${ac_cv_path_OBJDUMP+:} false; then : 38331 $as_echo_n "(cached) " >&6 38332 else 38333 case $OBJDUMP in 38334 [\\/]* | ?:[\\/]*) 38335 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38336 ;; 38337 *) 38338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38339 for as_dir in $PATH 38340 do 38341 IFS=$as_save_IFS 38342 test -z "$as_dir" && as_dir=. 38343 for ac_exec_ext in '' $ac_executable_extensions; do 38344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38345 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38347 break 2 38348 fi 38349 done 38350 done 38351 IFS=$as_save_IFS 38352 38353 ;; 38354 esac 38355 fi 38356 OBJDUMP=$ac_cv_path_OBJDUMP 38357 if test -n "$OBJDUMP"; then 38358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38359 $as_echo "$OBJDUMP" >&6; } 38360 else 38361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38362 $as_echo "no" >&6; } 38363 fi 38364 38365 38366 if test "x$OBJDUMP" = x; then 38367 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38368 fi 38369 else 38370 # Otherwise we believe it is a complete path. Use it as it is. 38371 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 38372 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 38373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 38374 $as_echo_n "checking for OBJDUMP... " >&6; } 38375 if test ! -x "$tool_specified"; then 38376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38377 $as_echo "not found" >&6; } 38378 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 38379 fi 38380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38381 $as_echo "$tool_specified" >&6; } 38382 fi 38383 fi 38384 fi 38385 38386 38387 if test "x$OBJDUMP" != x; then 38388 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 38389 # bails if argument is missing. 38390 38391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38392 38393 # First separate the path from the arguments. This will split at the first 38394 # space. 38395 complete="$OBJDUMP" 38396 path="${complete%% *}" 38397 tmp="$complete EOL" 38398 arguments="${tmp#* }" 38399 38400 # Input might be given as Windows format, start by converting to 38401 # unix format. 38402 new_path=`$CYGPATH -u "$path"` 38403 38404 # Now try to locate executable using which 38405 new_path=`$WHICH "$new_path" 2> /dev/null` 38406 # bat and cmd files are not always considered executable in cygwin causing which 38407 # to not find them 38408 if test "x$new_path" = x \ 38409 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38410 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38411 new_path=`$CYGPATH -u "$path"` 38412 fi 38413 if test "x$new_path" = x; then 38414 # Oops. Which didn't find the executable. 38415 # The splitting of arguments from the executable at a space might have been incorrect, 38416 # since paths with space are more likely in Windows. Give it another try with the whole 38417 # argument. 38418 path="$complete" 38419 arguments="EOL" 38420 new_path=`$CYGPATH -u "$path"` 38421 new_path=`$WHICH "$new_path" 2> /dev/null` 38422 # bat and cmd files are not always considered executable in cygwin causing which 38423 # to not find them 38424 if test "x$new_path" = x \ 38425 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38426 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38427 new_path=`$CYGPATH -u "$path"` 38428 fi 38429 if test "x$new_path" = x; then 38430 # It's still not found. Now this is an unrecoverable error. 38431 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38432 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38433 has_space=`$ECHO "$complete" | $GREP " "` 38434 if test "x$has_space" != x; then 38435 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38436 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38437 fi 38438 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38439 fi 38440 fi 38441 38442 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38443 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38444 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38445 # "foo.exe" is OK but "foo" is an error. 38446 # 38447 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38448 # It is also a way to make sure we got the proper file name for the real test later on. 38449 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38450 if test "x$test_shortpath" = x; then 38451 # Short path failed, file does not exist as specified. 38452 # Try adding .exe or .cmd 38453 if test -f "${new_path}.exe"; then 38454 input_to_shortpath="${new_path}.exe" 38455 elif test -f "${new_path}.cmd"; then 38456 input_to_shortpath="${new_path}.cmd" 38457 else 38458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 38459 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 38460 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38461 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38462 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38463 fi 38464 else 38465 input_to_shortpath="$new_path" 38466 fi 38467 38468 # Call helper function which possibly converts this using DOS-style short mode. 38469 # If so, the updated path is stored in $new_path. 38470 new_path="$input_to_shortpath" 38471 38472 input_path="$input_to_shortpath" 38473 # Check if we need to convert this using DOS-style short mode. If the path 38474 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38475 # take no chances and rewrite it. 38476 # Note: m4 eats our [], so we need to use [ and ] instead. 38477 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38478 if test "x$has_forbidden_chars" != x; then 38479 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38480 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38481 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38482 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38483 # Going to short mode and back again did indeed matter. Since short mode is 38484 # case insensitive, let's make it lowercase to improve readability. 38485 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38486 # Now convert it back to Unix-style (cygpath) 38487 input_path=`$CYGPATH -u "$shortmode_path"` 38488 new_path="$input_path" 38489 fi 38490 fi 38491 38492 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38493 if test "x$test_cygdrive_prefix" = x; then 38494 # As a simple fix, exclude /usr/bin since it's not a real path. 38495 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38496 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38497 # a path prefixed by /cygdrive for fixpath to work. 38498 new_path="$CYGWIN_ROOT_PATH$input_path" 38499 fi 38500 fi 38501 38502 # remove trailing .exe if any 38503 new_path="${new_path/%.exe/}" 38504 38505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38506 38507 # First separate the path from the arguments. This will split at the first 38508 # space. 38509 complete="$OBJDUMP" 38510 path="${complete%% *}" 38511 tmp="$complete EOL" 38512 arguments="${tmp#* }" 38513 38514 # Input might be given as Windows format, start by converting to 38515 # unix format. 38516 new_path="$path" 38517 38518 windows_path="$new_path" 38519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38520 unix_path=`$CYGPATH -u "$windows_path"` 38521 new_path="$unix_path" 38522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38523 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38524 new_path="$unix_path" 38525 fi 38526 38527 38528 # Now try to locate executable using which 38529 new_path=`$WHICH "$new_path" 2> /dev/null` 38530 38531 if test "x$new_path" = x; then 38532 # Oops. Which didn't find the executable. 38533 # The splitting of arguments from the executable at a space might have been incorrect, 38534 # since paths with space are more likely in Windows. Give it another try with the whole 38535 # argument. 38536 path="$complete" 38537 arguments="EOL" 38538 new_path="$path" 38539 38540 windows_path="$new_path" 38541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38542 unix_path=`$CYGPATH -u "$windows_path"` 38543 new_path="$unix_path" 38544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38545 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38546 new_path="$unix_path" 38547 fi 38548 38549 38550 new_path=`$WHICH "$new_path" 2> /dev/null` 38551 # bat and cmd files are not always considered executable in MSYS causing which 38552 # to not find them 38553 if test "x$new_path" = x \ 38554 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38555 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38556 new_path="$path" 38557 38558 windows_path="$new_path" 38559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38560 unix_path=`$CYGPATH -u "$windows_path"` 38561 new_path="$unix_path" 38562 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38563 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38564 new_path="$unix_path" 38565 fi 38566 38567 fi 38568 38569 if test "x$new_path" = x; then 38570 # It's still not found. Now this is an unrecoverable error. 38571 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38572 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38573 has_space=`$ECHO "$complete" | $GREP " "` 38574 if test "x$has_space" != x; then 38575 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38576 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38577 fi 38578 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38579 fi 38580 fi 38581 38582 # Now new_path has a complete unix path to the binary 38583 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38584 # Keep paths in /bin as-is, but remove trailing .exe if any 38585 new_path="${new_path/%.exe/}" 38586 # Do not save /bin paths to all_fixpath_prefixes! 38587 else 38588 # Not in mixed or Windows style, start by that. 38589 new_path=`cmd //c echo $new_path` 38590 38591 input_path="$new_path" 38592 # Check if we need to convert this using DOS-style short mode. If the path 38593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38594 # take no chances and rewrite it. 38595 # Note: m4 eats our [], so we need to use [ and ] instead. 38596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38597 if test "x$has_forbidden_chars" != x; then 38598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38599 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38600 fi 38601 38602 # Output is in $new_path 38603 38604 windows_path="$new_path" 38605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38606 unix_path=`$CYGPATH -u "$windows_path"` 38607 new_path="$unix_path" 38608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38609 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38610 new_path="$unix_path" 38611 fi 38612 38613 # remove trailing .exe if any 38614 new_path="${new_path/%.exe/}" 38615 38616 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38617 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38618 fi 38619 38620 else 38621 # We're on a posix platform. Hooray! :) 38622 # First separate the path from the arguments. This will split at the first 38623 # space. 38624 complete="$OBJDUMP" 38625 path="${complete%% *}" 38626 tmp="$complete EOL" 38627 arguments="${tmp#* }" 38628 38629 # Cannot rely on the command "which" here since it doesn't always work. 38630 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38631 if test -z "$is_absolute_path"; then 38632 # Path to executable is not absolute. Find it. 38633 IFS_save="$IFS" 38634 IFS=: 38635 for p in $PATH; do 38636 if test -f "$p/$path" && test -x "$p/$path"; then 38637 new_path="$p/$path" 38638 break 38639 fi 38640 done 38641 IFS="$IFS_save" 38642 else 38643 # This is an absolute path, we can use it without further modifications. 38644 new_path="$path" 38645 fi 38646 38647 if test "x$new_path" = x; then 38648 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38649 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38650 has_space=`$ECHO "$complete" | $GREP " "` 38651 if test "x$has_space" != x; then 38652 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38653 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38654 fi 38655 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38656 fi 38657 fi 38658 38659 # Now join together the path and the arguments once again 38660 if test "x$arguments" != xEOL; then 38661 new_complete="$new_path ${arguments% *}" 38662 else 38663 new_complete="$new_path" 38664 fi 38665 38666 if test "x$complete" != "x$new_complete"; then 38667 OBJDUMP="$new_complete" 38668 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 38669 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 38670 fi 38671 38672 fi 38673 38674 38675 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 38676 # to remain in place. Otherwise the compiler will not work in some situations 38677 # in later configure checks. 38678 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 38679 PATH="$OLD_PATH" 38680 fi 38681 38682 # Restore the flags to the user specified values. 38683 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 38684 CFLAGS="$ORG_CFLAGS" 38685 CXXFLAGS="$ORG_CXXFLAGS" 38686 OBJCFLAGS="$ORG_OBJCFLAGS" 38687 38688 38689 # Finally do some processing after the detection phase 38690 38691 if test "x$COMPILE_TYPE" = "xcross"; then 38692 # Now we need to find a C/C++ compiler that can build executables for the 38693 # build platform. We can't use the AC_PROG_CC macro, since it can only be 38694 # used once. Also, we need to do this without adding a tools dir to the 38695 # path, otherwise we might pick up cross-compilers which don't use standard 38696 # naming. 38697 38698 # FIXME: we should list the discovered compilers as an exclude pattern! 38699 # If we do that, we can do this detection before POST_DETECTION, and still 38700 # find the build compilers in the tools dir, if needed. 38701 38702 38703 # Publish this variable in the help. 38704 38705 38706 if test "x$BUILD_CC" = x; then 38707 # The variable is not set by user, try to locate tool using the code snippet 38708 for ac_prog in cl cc gcc 38709 do 38710 # Extract the first word of "$ac_prog", so it can be a program name with args. 38711 set dummy $ac_prog; ac_word=$2 38712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38713 $as_echo_n "checking for $ac_word... " >&6; } 38714 if ${ac_cv_path_BUILD_CC+:} false; then : 38715 $as_echo_n "(cached) " >&6 38716 else 38717 case $BUILD_CC in 38718 [\\/]* | ?:[\\/]*) 38719 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38720 ;; 38721 *) 38722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38723 for as_dir in $PATH 38724 do 38725 IFS=$as_save_IFS 38726 test -z "$as_dir" && as_dir=. 38727 for ac_exec_ext in '' $ac_executable_extensions; do 38728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38729 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38731 break 2 38732 fi 38733 done 38734 done 38735 IFS=$as_save_IFS 38736 38737 ;; 38738 esac 38739 fi 38740 BUILD_CC=$ac_cv_path_BUILD_CC 38741 if test -n "$BUILD_CC"; then 38742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38743 $as_echo "$BUILD_CC" >&6; } 38744 else 38745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38746 $as_echo "no" >&6; } 38747 fi 38748 38749 38750 test -n "$BUILD_CC" && break 38751 done 38752 38753 else 38754 # The variable is set, but is it from the command line or the environment? 38755 38756 # Try to remove the string !BUILD_CC! from our list. 38757 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 38758 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38759 # If it failed, the variable was not from the command line. Ignore it, 38760 # but warn the user (except for BASH, which is always set by the calling BASH). 38761 if test "xBUILD_CC" != xBASH; then 38762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 38763 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 38764 fi 38765 # Try to locate tool using the code snippet 38766 for ac_prog in cl cc gcc 38767 do 38768 # Extract the first word of "$ac_prog", so it can be a program name with args. 38769 set dummy $ac_prog; ac_word=$2 38770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38771 $as_echo_n "checking for $ac_word... " >&6; } 38772 if ${ac_cv_path_BUILD_CC+:} false; then : 38773 $as_echo_n "(cached) " >&6 38774 else 38775 case $BUILD_CC in 38776 [\\/]* | ?:[\\/]*) 38777 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38778 ;; 38779 *) 38780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38781 for as_dir in $PATH 38782 do 38783 IFS=$as_save_IFS 38784 test -z "$as_dir" && as_dir=. 38785 for ac_exec_ext in '' $ac_executable_extensions; do 38786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38787 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38789 break 2 38790 fi 38791 done 38792 done 38793 IFS=$as_save_IFS 38794 38795 ;; 38796 esac 38797 fi 38798 BUILD_CC=$ac_cv_path_BUILD_CC 38799 if test -n "$BUILD_CC"; then 38800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38801 $as_echo "$BUILD_CC" >&6; } 38802 else 38803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38804 $as_echo "no" >&6; } 38805 fi 38806 38807 38808 test -n "$BUILD_CC" && break 38809 done 38810 38811 else 38812 # If it succeeded, then it was overridden by the user. We will use it 38813 # for the tool. 38814 38815 # First remove it from the list of overridden variables, so we can test 38816 # for unknown variables in the end. 38817 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38818 38819 # Check if the provided tool contains a complete path. 38820 tool_specified="$BUILD_CC" 38821 tool_basename="${tool_specified##*/}" 38822 if test "x$tool_basename" = "x$tool_specified"; then 38823 # A command without a complete path is provided, search $PATH. 38824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 38825 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 38826 # Extract the first word of "$tool_basename", so it can be a program name with args. 38827 set dummy $tool_basename; ac_word=$2 38828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38829 $as_echo_n "checking for $ac_word... " >&6; } 38830 if ${ac_cv_path_BUILD_CC+:} false; then : 38831 $as_echo_n "(cached) " >&6 38832 else 38833 case $BUILD_CC in 38834 [\\/]* | ?:[\\/]*) 38835 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38836 ;; 38837 *) 38838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38839 for as_dir in $PATH 38840 do 38841 IFS=$as_save_IFS 38842 test -z "$as_dir" && as_dir=. 38843 for ac_exec_ext in '' $ac_executable_extensions; do 38844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38845 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38847 break 2 38848 fi 38849 done 38850 done 38851 IFS=$as_save_IFS 38852 38853 ;; 38854 esac 38855 fi 38856 BUILD_CC=$ac_cv_path_BUILD_CC 38857 if test -n "$BUILD_CC"; then 38858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38859 $as_echo "$BUILD_CC" >&6; } 38860 else 38861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38862 $as_echo "no" >&6; } 38863 fi 38864 38865 38866 if test "x$BUILD_CC" = x; then 38867 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38868 fi 38869 else 38870 # Otherwise we believe it is a complete path. Use it as it is. 38871 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 38872 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 38873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 38874 $as_echo_n "checking for BUILD_CC... " >&6; } 38875 if test ! -x "$tool_specified"; then 38876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38877 $as_echo "not found" >&6; } 38878 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 38879 fi 38880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38881 $as_echo "$tool_specified" >&6; } 38882 fi 38883 fi 38884 fi 38885 38886 38887 38888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38889 38890 # First separate the path from the arguments. This will split at the first 38891 # space. 38892 complete="$BUILD_CC" 38893 path="${complete%% *}" 38894 tmp="$complete EOL" 38895 arguments="${tmp#* }" 38896 38897 # Input might be given as Windows format, start by converting to 38898 # unix format. 38899 new_path=`$CYGPATH -u "$path"` 38900 38901 # Now try to locate executable using which 38902 new_path=`$WHICH "$new_path" 2> /dev/null` 38903 # bat and cmd files are not always considered executable in cygwin causing which 38904 # to not find them 38905 if test "x$new_path" = x \ 38906 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38907 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38908 new_path=`$CYGPATH -u "$path"` 38909 fi 38910 if test "x$new_path" = x; then 38911 # Oops. Which didn't find the executable. 38912 # The splitting of arguments from the executable at a space might have been incorrect, 38913 # since paths with space are more likely in Windows. Give it another try with the whole 38914 # argument. 38915 path="$complete" 38916 arguments="EOL" 38917 new_path=`$CYGPATH -u "$path"` 38918 new_path=`$WHICH "$new_path" 2> /dev/null` 38919 # bat and cmd files are not always considered executable in cygwin causing which 38920 # to not find them 38921 if test "x$new_path" = x \ 38922 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38923 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38924 new_path=`$CYGPATH -u "$path"` 38925 fi 38926 if test "x$new_path" = x; then 38927 # It's still not found. Now this is an unrecoverable error. 38928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 38929 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 38930 has_space=`$ECHO "$complete" | $GREP " "` 38931 if test "x$has_space" != x; then 38932 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38933 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38934 fi 38935 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 38936 fi 38937 fi 38938 38939 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38940 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38941 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38942 # "foo.exe" is OK but "foo" is an error. 38943 # 38944 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38945 # It is also a way to make sure we got the proper file name for the real test later on. 38946 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38947 if test "x$test_shortpath" = x; then 38948 # Short path failed, file does not exist as specified. 38949 # Try adding .exe or .cmd 38950 if test -f "${new_path}.exe"; then 38951 input_to_shortpath="${new_path}.exe" 38952 elif test -f "${new_path}.cmd"; then 38953 input_to_shortpath="${new_path}.cmd" 38954 else 38955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 38956 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 38957 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38958 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38959 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 38960 fi 38961 else 38962 input_to_shortpath="$new_path" 38963 fi 38964 38965 # Call helper function which possibly converts this using DOS-style short mode. 38966 # If so, the updated path is stored in $new_path. 38967 new_path="$input_to_shortpath" 38968 38969 input_path="$input_to_shortpath" 38970 # Check if we need to convert this using DOS-style short mode. If the path 38971 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38972 # take no chances and rewrite it. 38973 # Note: m4 eats our [], so we need to use [ and ] instead. 38974 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38975 if test "x$has_forbidden_chars" != x; then 38976 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38977 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38978 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38979 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38980 # Going to short mode and back again did indeed matter. Since short mode is 38981 # case insensitive, let's make it lowercase to improve readability. 38982 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38983 # Now convert it back to Unix-style (cygpath) 38984 input_path=`$CYGPATH -u "$shortmode_path"` 38985 new_path="$input_path" 38986 fi 38987 fi 38988 38989 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38990 if test "x$test_cygdrive_prefix" = x; then 38991 # As a simple fix, exclude /usr/bin since it's not a real path. 38992 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38993 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38994 # a path prefixed by /cygdrive for fixpath to work. 38995 new_path="$CYGWIN_ROOT_PATH$input_path" 38996 fi 38997 fi 38998 38999 # remove trailing .exe if any 39000 new_path="${new_path/%.exe/}" 39001 39002 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39003 39004 # First separate the path from the arguments. This will split at the first 39005 # space. 39006 complete="$BUILD_CC" 39007 path="${complete%% *}" 39008 tmp="$complete EOL" 39009 arguments="${tmp#* }" 39010 39011 # Input might be given as Windows format, start by converting to 39012 # unix format. 39013 new_path="$path" 39014 39015 windows_path="$new_path" 39016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39017 unix_path=`$CYGPATH -u "$windows_path"` 39018 new_path="$unix_path" 39019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39020 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39021 new_path="$unix_path" 39022 fi 39023 39024 39025 # Now try to locate executable using which 39026 new_path=`$WHICH "$new_path" 2> /dev/null` 39027 39028 if test "x$new_path" = x; then 39029 # Oops. Which didn't find the executable. 39030 # The splitting of arguments from the executable at a space might have been incorrect, 39031 # since paths with space are more likely in Windows. Give it another try with the whole 39032 # argument. 39033 path="$complete" 39034 arguments="EOL" 39035 new_path="$path" 39036 39037 windows_path="$new_path" 39038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39039 unix_path=`$CYGPATH -u "$windows_path"` 39040 new_path="$unix_path" 39041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39042 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39043 new_path="$unix_path" 39044 fi 39045 39046 39047 new_path=`$WHICH "$new_path" 2> /dev/null` 39048 # bat and cmd files are not always considered executable in MSYS causing which 39049 # to not find them 39050 if test "x$new_path" = x \ 39051 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39052 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39053 new_path="$path" 39054 39055 windows_path="$new_path" 39056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39057 unix_path=`$CYGPATH -u "$windows_path"` 39058 new_path="$unix_path" 39059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39061 new_path="$unix_path" 39062 fi 39063 39064 fi 39065 39066 if test "x$new_path" = x; then 39067 # It's still not found. Now this is an unrecoverable error. 39068 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39069 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39070 has_space=`$ECHO "$complete" | $GREP " "` 39071 if test "x$has_space" != x; then 39072 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39073 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39074 fi 39075 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39076 fi 39077 fi 39078 39079 # Now new_path has a complete unix path to the binary 39080 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39081 # Keep paths in /bin as-is, but remove trailing .exe if any 39082 new_path="${new_path/%.exe/}" 39083 # Do not save /bin paths to all_fixpath_prefixes! 39084 else 39085 # Not in mixed or Windows style, start by that. 39086 new_path=`cmd //c echo $new_path` 39087 39088 input_path="$new_path" 39089 # Check if we need to convert this using DOS-style short mode. If the path 39090 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39091 # take no chances and rewrite it. 39092 # Note: m4 eats our [], so we need to use [ and ] instead. 39093 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39094 if test "x$has_forbidden_chars" != x; then 39095 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39096 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39097 fi 39098 39099 # Output is in $new_path 39100 39101 windows_path="$new_path" 39102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39103 unix_path=`$CYGPATH -u "$windows_path"` 39104 new_path="$unix_path" 39105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39106 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39107 new_path="$unix_path" 39108 fi 39109 39110 # remove trailing .exe if any 39111 new_path="${new_path/%.exe/}" 39112 39113 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39114 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39115 fi 39116 39117 else 39118 # We're on a posix platform. Hooray! :) 39119 # First separate the path from the arguments. This will split at the first 39120 # space. 39121 complete="$BUILD_CC" 39122 path="${complete%% *}" 39123 tmp="$complete EOL" 39124 arguments="${tmp#* }" 39125 39126 # Cannot rely on the command "which" here since it doesn't always work. 39127 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39128 if test -z "$is_absolute_path"; then 39129 # Path to executable is not absolute. Find it. 39130 IFS_save="$IFS" 39131 IFS=: 39132 for p in $PATH; do 39133 if test -f "$p/$path" && test -x "$p/$path"; then 39134 new_path="$p/$path" 39135 break 39136 fi 39137 done 39138 IFS="$IFS_save" 39139 else 39140 # This is an absolute path, we can use it without further modifications. 39141 new_path="$path" 39142 fi 39143 39144 if test "x$new_path" = x; then 39145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39146 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39147 has_space=`$ECHO "$complete" | $GREP " "` 39148 if test "x$has_space" != x; then 39149 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39150 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39151 fi 39152 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39153 fi 39154 fi 39155 39156 # Now join together the path and the arguments once again 39157 if test "x$arguments" != xEOL; then 39158 new_complete="$new_path ${arguments% *}" 39159 else 39160 new_complete="$new_path" 39161 fi 39162 39163 if test "x$complete" != "x$new_complete"; then 39164 BUILD_CC="$new_complete" 39165 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39166 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39167 fi 39168 39169 39170 39171 # Publish this variable in the help. 39172 39173 39174 if test "x$BUILD_CXX" = x; then 39175 # The variable is not set by user, try to locate tool using the code snippet 39176 for ac_prog in cl CC g++ 39177 do 39178 # Extract the first word of "$ac_prog", so it can be a program name with args. 39179 set dummy $ac_prog; ac_word=$2 39180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39181 $as_echo_n "checking for $ac_word... " >&6; } 39182 if ${ac_cv_path_BUILD_CXX+:} false; then : 39183 $as_echo_n "(cached) " >&6 39184 else 39185 case $BUILD_CXX in 39186 [\\/]* | ?:[\\/]*) 39187 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39188 ;; 39189 *) 39190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39191 for as_dir in $PATH 39192 do 39193 IFS=$as_save_IFS 39194 test -z "$as_dir" && as_dir=. 39195 for ac_exec_ext in '' $ac_executable_extensions; do 39196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39197 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39199 break 2 39200 fi 39201 done 39202 done 39203 IFS=$as_save_IFS 39204 39205 ;; 39206 esac 39207 fi 39208 BUILD_CXX=$ac_cv_path_BUILD_CXX 39209 if test -n "$BUILD_CXX"; then 39210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39211 $as_echo "$BUILD_CXX" >&6; } 39212 else 39213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39214 $as_echo "no" >&6; } 39215 fi 39216 39217 39218 test -n "$BUILD_CXX" && break 39219 done 39220 39221 else 39222 # The variable is set, but is it from the command line or the environment? 39223 39224 # Try to remove the string !BUILD_CXX! from our list. 39225 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39226 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39227 # If it failed, the variable was not from the command line. Ignore it, 39228 # but warn the user (except for BASH, which is always set by the calling BASH). 39229 if test "xBUILD_CXX" != xBASH; then 39230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39231 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39232 fi 39233 # Try to locate tool using the code snippet 39234 for ac_prog in cl CC g++ 39235 do 39236 # Extract the first word of "$ac_prog", so it can be a program name with args. 39237 set dummy $ac_prog; ac_word=$2 39238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39239 $as_echo_n "checking for $ac_word... " >&6; } 39240 if ${ac_cv_path_BUILD_CXX+:} false; then : 39241 $as_echo_n "(cached) " >&6 39242 else 39243 case $BUILD_CXX in 39244 [\\/]* | ?:[\\/]*) 39245 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39246 ;; 39247 *) 39248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39249 for as_dir in $PATH 39250 do 39251 IFS=$as_save_IFS 39252 test -z "$as_dir" && as_dir=. 39253 for ac_exec_ext in '' $ac_executable_extensions; do 39254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39255 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39257 break 2 39258 fi 39259 done 39260 done 39261 IFS=$as_save_IFS 39262 39263 ;; 39264 esac 39265 fi 39266 BUILD_CXX=$ac_cv_path_BUILD_CXX 39267 if test -n "$BUILD_CXX"; then 39268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39269 $as_echo "$BUILD_CXX" >&6; } 39270 else 39271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39272 $as_echo "no" >&6; } 39273 fi 39274 39275 39276 test -n "$BUILD_CXX" && break 39277 done 39278 39279 else 39280 # If it succeeded, then it was overridden by the user. We will use it 39281 # for the tool. 39282 39283 # First remove it from the list of overridden variables, so we can test 39284 # for unknown variables in the end. 39285 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39286 39287 # Check if the provided tool contains a complete path. 39288 tool_specified="$BUILD_CXX" 39289 tool_basename="${tool_specified##*/}" 39290 if test "x$tool_basename" = "x$tool_specified"; then 39291 # A command without a complete path is provided, search $PATH. 39292 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39293 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39294 # Extract the first word of "$tool_basename", so it can be a program name with args. 39295 set dummy $tool_basename; ac_word=$2 39296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39297 $as_echo_n "checking for $ac_word... " >&6; } 39298 if ${ac_cv_path_BUILD_CXX+:} false; then : 39299 $as_echo_n "(cached) " >&6 39300 else 39301 case $BUILD_CXX in 39302 [\\/]* | ?:[\\/]*) 39303 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39304 ;; 39305 *) 39306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39307 for as_dir in $PATH 39308 do 39309 IFS=$as_save_IFS 39310 test -z "$as_dir" && as_dir=. 39311 for ac_exec_ext in '' $ac_executable_extensions; do 39312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39313 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39315 break 2 39316 fi 39317 done 39318 done 39319 IFS=$as_save_IFS 39320 39321 ;; 39322 esac 39323 fi 39324 BUILD_CXX=$ac_cv_path_BUILD_CXX 39325 if test -n "$BUILD_CXX"; then 39326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39327 $as_echo "$BUILD_CXX" >&6; } 39328 else 39329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39330 $as_echo "no" >&6; } 39331 fi 39332 39333 39334 if test "x$BUILD_CXX" = x; then 39335 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39336 fi 39337 else 39338 # Otherwise we believe it is a complete path. Use it as it is. 39339 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39340 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39342 $as_echo_n "checking for BUILD_CXX... " >&6; } 39343 if test ! -x "$tool_specified"; then 39344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39345 $as_echo "not found" >&6; } 39346 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39347 fi 39348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39349 $as_echo "$tool_specified" >&6; } 39350 fi 39351 fi 39352 fi 39353 39354 39355 39356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39357 39358 # First separate the path from the arguments. This will split at the first 39359 # space. 39360 complete="$BUILD_CXX" 39361 path="${complete%% *}" 39362 tmp="$complete EOL" 39363 arguments="${tmp#* }" 39364 39365 # Input might be given as Windows format, start by converting to 39366 # unix format. 39367 new_path=`$CYGPATH -u "$path"` 39368 39369 # Now try to locate executable using which 39370 new_path=`$WHICH "$new_path" 2> /dev/null` 39371 # bat and cmd files are not always considered executable in cygwin causing which 39372 # to not find them 39373 if test "x$new_path" = x \ 39374 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39375 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39376 new_path=`$CYGPATH -u "$path"` 39377 fi 39378 if test "x$new_path" = x; then 39379 # Oops. Which didn't find the executable. 39380 # The splitting of arguments from the executable at a space might have been incorrect, 39381 # since paths with space are more likely in Windows. Give it another try with the whole 39382 # argument. 39383 path="$complete" 39384 arguments="EOL" 39385 new_path=`$CYGPATH -u "$path"` 39386 new_path=`$WHICH "$new_path" 2> /dev/null` 39387 # bat and cmd files are not always considered executable in cygwin causing which 39388 # to not find them 39389 if test "x$new_path" = x \ 39390 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39391 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39392 new_path=`$CYGPATH -u "$path"` 39393 fi 39394 if test "x$new_path" = x; then 39395 # It's still not found. Now this is an unrecoverable error. 39396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39397 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39398 has_space=`$ECHO "$complete" | $GREP " "` 39399 if test "x$has_space" != x; then 39400 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39401 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39402 fi 39403 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39404 fi 39405 fi 39406 39407 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39408 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39409 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39410 # "foo.exe" is OK but "foo" is an error. 39411 # 39412 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39413 # It is also a way to make sure we got the proper file name for the real test later on. 39414 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39415 if test "x$test_shortpath" = x; then 39416 # Short path failed, file does not exist as specified. 39417 # Try adding .exe or .cmd 39418 if test -f "${new_path}.exe"; then 39419 input_to_shortpath="${new_path}.exe" 39420 elif test -f "${new_path}.cmd"; then 39421 input_to_shortpath="${new_path}.cmd" 39422 else 39423 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 39424 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 39425 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39426 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39427 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39428 fi 39429 else 39430 input_to_shortpath="$new_path" 39431 fi 39432 39433 # Call helper function which possibly converts this using DOS-style short mode. 39434 # If so, the updated path is stored in $new_path. 39435 new_path="$input_to_shortpath" 39436 39437 input_path="$input_to_shortpath" 39438 # Check if we need to convert this using DOS-style short mode. If the path 39439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39440 # take no chances and rewrite it. 39441 # Note: m4 eats our [], so we need to use [ and ] instead. 39442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39443 if test "x$has_forbidden_chars" != x; then 39444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39445 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39446 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39447 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39448 # Going to short mode and back again did indeed matter. Since short mode is 39449 # case insensitive, let's make it lowercase to improve readability. 39450 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39451 # Now convert it back to Unix-style (cygpath) 39452 input_path=`$CYGPATH -u "$shortmode_path"` 39453 new_path="$input_path" 39454 fi 39455 fi 39456 39457 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39458 if test "x$test_cygdrive_prefix" = x; then 39459 # As a simple fix, exclude /usr/bin since it's not a real path. 39460 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39461 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39462 # a path prefixed by /cygdrive for fixpath to work. 39463 new_path="$CYGWIN_ROOT_PATH$input_path" 39464 fi 39465 fi 39466 39467 # remove trailing .exe if any 39468 new_path="${new_path/%.exe/}" 39469 39470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39471 39472 # First separate the path from the arguments. This will split at the first 39473 # space. 39474 complete="$BUILD_CXX" 39475 path="${complete%% *}" 39476 tmp="$complete EOL" 39477 arguments="${tmp#* }" 39478 39479 # Input might be given as Windows format, start by converting to 39480 # unix format. 39481 new_path="$path" 39482 39483 windows_path="$new_path" 39484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39485 unix_path=`$CYGPATH -u "$windows_path"` 39486 new_path="$unix_path" 39487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39489 new_path="$unix_path" 39490 fi 39491 39492 39493 # Now try to locate executable using which 39494 new_path=`$WHICH "$new_path" 2> /dev/null` 39495 39496 if test "x$new_path" = x; then 39497 # Oops. Which didn't find the executable. 39498 # The splitting of arguments from the executable at a space might have been incorrect, 39499 # since paths with space are more likely in Windows. Give it another try with the whole 39500 # argument. 39501 path="$complete" 39502 arguments="EOL" 39503 new_path="$path" 39504 39505 windows_path="$new_path" 39506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39507 unix_path=`$CYGPATH -u "$windows_path"` 39508 new_path="$unix_path" 39509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39510 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39511 new_path="$unix_path" 39512 fi 39513 39514 39515 new_path=`$WHICH "$new_path" 2> /dev/null` 39516 # bat and cmd files are not always considered executable in MSYS causing which 39517 # to not find them 39518 if test "x$new_path" = x \ 39519 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39520 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39521 new_path="$path" 39522 39523 windows_path="$new_path" 39524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39525 unix_path=`$CYGPATH -u "$windows_path"` 39526 new_path="$unix_path" 39527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39529 new_path="$unix_path" 39530 fi 39531 39532 fi 39533 39534 if test "x$new_path" = x; then 39535 # It's still not found. Now this is an unrecoverable error. 39536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39537 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39538 has_space=`$ECHO "$complete" | $GREP " "` 39539 if test "x$has_space" != x; then 39540 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39541 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39542 fi 39543 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39544 fi 39545 fi 39546 39547 # Now new_path has a complete unix path to the binary 39548 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39549 # Keep paths in /bin as-is, but remove trailing .exe if any 39550 new_path="${new_path/%.exe/}" 39551 # Do not save /bin paths to all_fixpath_prefixes! 39552 else 39553 # Not in mixed or Windows style, start by that. 39554 new_path=`cmd //c echo $new_path` 39555 39556 input_path="$new_path" 39557 # Check if we need to convert this using DOS-style short mode. If the path 39558 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39559 # take no chances and rewrite it. 39560 # Note: m4 eats our [], so we need to use [ and ] instead. 39561 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39562 if test "x$has_forbidden_chars" != x; then 39563 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39564 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39565 fi 39566 39567 # Output is in $new_path 39568 39569 windows_path="$new_path" 39570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39571 unix_path=`$CYGPATH -u "$windows_path"` 39572 new_path="$unix_path" 39573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39574 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39575 new_path="$unix_path" 39576 fi 39577 39578 # remove trailing .exe if any 39579 new_path="${new_path/%.exe/}" 39580 39581 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39582 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39583 fi 39584 39585 else 39586 # We're on a posix platform. Hooray! :) 39587 # First separate the path from the arguments. This will split at the first 39588 # space. 39589 complete="$BUILD_CXX" 39590 path="${complete%% *}" 39591 tmp="$complete EOL" 39592 arguments="${tmp#* }" 39593 39594 # Cannot rely on the command "which" here since it doesn't always work. 39595 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39596 if test -z "$is_absolute_path"; then 39597 # Path to executable is not absolute. Find it. 39598 IFS_save="$IFS" 39599 IFS=: 39600 for p in $PATH; do 39601 if test -f "$p/$path" && test -x "$p/$path"; then 39602 new_path="$p/$path" 39603 break 39604 fi 39605 done 39606 IFS="$IFS_save" 39607 else 39608 # This is an absolute path, we can use it without further modifications. 39609 new_path="$path" 39610 fi 39611 39612 if test "x$new_path" = x; then 39613 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39614 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39615 has_space=`$ECHO "$complete" | $GREP " "` 39616 if test "x$has_space" != x; then 39617 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39618 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39619 fi 39620 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39621 fi 39622 fi 39623 39624 # Now join together the path and the arguments once again 39625 if test "x$arguments" != xEOL; then 39626 new_complete="$new_path ${arguments% *}" 39627 else 39628 new_complete="$new_path" 39629 fi 39630 39631 if test "x$complete" != "x$new_complete"; then 39632 BUILD_CXX="$new_complete" 39633 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 39634 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 39635 fi 39636 39637 39638 39639 # Publish this variable in the help. 39640 39641 39642 if test "x$BUILD_LD" = x; then 39643 # The variable is not set by user, try to locate tool using the code snippet 39644 for ac_prog in ld 39645 do 39646 # Extract the first word of "$ac_prog", so it can be a program name with args. 39647 set dummy $ac_prog; ac_word=$2 39648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39649 $as_echo_n "checking for $ac_word... " >&6; } 39650 if ${ac_cv_path_BUILD_LD+:} false; then : 39651 $as_echo_n "(cached) " >&6 39652 else 39653 case $BUILD_LD in 39654 [\\/]* | ?:[\\/]*) 39655 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39656 ;; 39657 *) 39658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39659 for as_dir in $PATH 39660 do 39661 IFS=$as_save_IFS 39662 test -z "$as_dir" && as_dir=. 39663 for ac_exec_ext in '' $ac_executable_extensions; do 39664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39665 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39667 break 2 39668 fi 39669 done 39670 done 39671 IFS=$as_save_IFS 39672 39673 ;; 39674 esac 39675 fi 39676 BUILD_LD=$ac_cv_path_BUILD_LD 39677 if test -n "$BUILD_LD"; then 39678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39679 $as_echo "$BUILD_LD" >&6; } 39680 else 39681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39682 $as_echo "no" >&6; } 39683 fi 39684 39685 39686 test -n "$BUILD_LD" && break 39687 done 39688 39689 else 39690 # The variable is set, but is it from the command line or the environment? 39691 39692 # Try to remove the string !BUILD_LD! from our list. 39693 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 39694 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39695 # If it failed, the variable was not from the command line. Ignore it, 39696 # but warn the user (except for BASH, which is always set by the calling BASH). 39697 if test "xBUILD_LD" != xBASH; then 39698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 39699 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 39700 fi 39701 # Try to locate tool using the code snippet 39702 for ac_prog in ld 39703 do 39704 # Extract the first word of "$ac_prog", so it can be a program name with args. 39705 set dummy $ac_prog; ac_word=$2 39706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39707 $as_echo_n "checking for $ac_word... " >&6; } 39708 if ${ac_cv_path_BUILD_LD+:} false; then : 39709 $as_echo_n "(cached) " >&6 39710 else 39711 case $BUILD_LD in 39712 [\\/]* | ?:[\\/]*) 39713 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39714 ;; 39715 *) 39716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39717 for as_dir in $PATH 39718 do 39719 IFS=$as_save_IFS 39720 test -z "$as_dir" && as_dir=. 39721 for ac_exec_ext in '' $ac_executable_extensions; do 39722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39723 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39725 break 2 39726 fi 39727 done 39728 done 39729 IFS=$as_save_IFS 39730 39731 ;; 39732 esac 39733 fi 39734 BUILD_LD=$ac_cv_path_BUILD_LD 39735 if test -n "$BUILD_LD"; then 39736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39737 $as_echo "$BUILD_LD" >&6; } 39738 else 39739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39740 $as_echo "no" >&6; } 39741 fi 39742 39743 39744 test -n "$BUILD_LD" && break 39745 done 39746 39747 else 39748 # If it succeeded, then it was overridden by the user. We will use it 39749 # for the tool. 39750 39751 # First remove it from the list of overridden variables, so we can test 39752 # for unknown variables in the end. 39753 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39754 39755 # Check if the provided tool contains a complete path. 39756 tool_specified="$BUILD_LD" 39757 tool_basename="${tool_specified##*/}" 39758 if test "x$tool_basename" = "x$tool_specified"; then 39759 # A command without a complete path is provided, search $PATH. 39760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 39761 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 39762 # Extract the first word of "$tool_basename", so it can be a program name with args. 39763 set dummy $tool_basename; ac_word=$2 39764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39765 $as_echo_n "checking for $ac_word... " >&6; } 39766 if ${ac_cv_path_BUILD_LD+:} false; then : 39767 $as_echo_n "(cached) " >&6 39768 else 39769 case $BUILD_LD in 39770 [\\/]* | ?:[\\/]*) 39771 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39772 ;; 39773 *) 39774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39775 for as_dir in $PATH 39776 do 39777 IFS=$as_save_IFS 39778 test -z "$as_dir" && as_dir=. 39779 for ac_exec_ext in '' $ac_executable_extensions; do 39780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39781 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39783 break 2 39784 fi 39785 done 39786 done 39787 IFS=$as_save_IFS 39788 39789 ;; 39790 esac 39791 fi 39792 BUILD_LD=$ac_cv_path_BUILD_LD 39793 if test -n "$BUILD_LD"; then 39794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39795 $as_echo "$BUILD_LD" >&6; } 39796 else 39797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39798 $as_echo "no" >&6; } 39799 fi 39800 39801 39802 if test "x$BUILD_LD" = x; then 39803 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39804 fi 39805 else 39806 # Otherwise we believe it is a complete path. Use it as it is. 39807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 39808 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 39809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 39810 $as_echo_n "checking for BUILD_LD... " >&6; } 39811 if test ! -x "$tool_specified"; then 39812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39813 $as_echo "not found" >&6; } 39814 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 39815 fi 39816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39817 $as_echo "$tool_specified" >&6; } 39818 fi 39819 fi 39820 fi 39821 39822 39823 39824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39825 39826 # First separate the path from the arguments. This will split at the first 39827 # space. 39828 complete="$BUILD_LD" 39829 path="${complete%% *}" 39830 tmp="$complete EOL" 39831 arguments="${tmp#* }" 39832 39833 # Input might be given as Windows format, start by converting to 39834 # unix format. 39835 new_path=`$CYGPATH -u "$path"` 39836 39837 # Now try to locate executable using which 39838 new_path=`$WHICH "$new_path" 2> /dev/null` 39839 # bat and cmd files are not always considered executable in cygwin causing which 39840 # to not find them 39841 if test "x$new_path" = x \ 39842 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39843 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39844 new_path=`$CYGPATH -u "$path"` 39845 fi 39846 if test "x$new_path" = x; then 39847 # Oops. Which didn't find the executable. 39848 # The splitting of arguments from the executable at a space might have been incorrect, 39849 # since paths with space are more likely in Windows. Give it another try with the whole 39850 # argument. 39851 path="$complete" 39852 arguments="EOL" 39853 new_path=`$CYGPATH -u "$path"` 39854 new_path=`$WHICH "$new_path" 2> /dev/null` 39855 # bat and cmd files are not always considered executable in cygwin causing which 39856 # to not find them 39857 if test "x$new_path" = x \ 39858 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39859 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39860 new_path=`$CYGPATH -u "$path"` 39861 fi 39862 if test "x$new_path" = x; then 39863 # It's still not found. Now this is an unrecoverable error. 39864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 39865 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 39866 has_space=`$ECHO "$complete" | $GREP " "` 39867 if test "x$has_space" != x; then 39868 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39869 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39870 fi 39871 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39872 fi 39873 fi 39874 39875 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39876 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39877 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39878 # "foo.exe" is OK but "foo" is an error. 39879 # 39880 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39881 # It is also a way to make sure we got the proper file name for the real test later on. 39882 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39883 if test "x$test_shortpath" = x; then 39884 # Short path failed, file does not exist as specified. 39885 # Try adding .exe or .cmd 39886 if test -f "${new_path}.exe"; then 39887 input_to_shortpath="${new_path}.exe" 39888 elif test -f "${new_path}.cmd"; then 39889 input_to_shortpath="${new_path}.cmd" 39890 else 39891 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 39892 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 39893 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39894 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39895 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39896 fi 39897 else 39898 input_to_shortpath="$new_path" 39899 fi 39900 39901 # Call helper function which possibly converts this using DOS-style short mode. 39902 # If so, the updated path is stored in $new_path. 39903 new_path="$input_to_shortpath" 39904 39905 input_path="$input_to_shortpath" 39906 # Check if we need to convert this using DOS-style short mode. If the path 39907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39908 # take no chances and rewrite it. 39909 # Note: m4 eats our [], so we need to use [ and ] instead. 39910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39911 if test "x$has_forbidden_chars" != x; then 39912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39913 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39914 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39915 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39916 # Going to short mode and back again did indeed matter. Since short mode is 39917 # case insensitive, let's make it lowercase to improve readability. 39918 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39919 # Now convert it back to Unix-style (cygpath) 39920 input_path=`$CYGPATH -u "$shortmode_path"` 39921 new_path="$input_path" 39922 fi 39923 fi 39924 39925 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39926 if test "x$test_cygdrive_prefix" = x; then 39927 # As a simple fix, exclude /usr/bin since it's not a real path. 39928 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39929 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39930 # a path prefixed by /cygdrive for fixpath to work. 39931 new_path="$CYGWIN_ROOT_PATH$input_path" 39932 fi 39933 fi 39934 39935 # remove trailing .exe if any 39936 new_path="${new_path/%.exe/}" 39937 39938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39939 39940 # First separate the path from the arguments. This will split at the first 39941 # space. 39942 complete="$BUILD_LD" 39943 path="${complete%% *}" 39944 tmp="$complete EOL" 39945 arguments="${tmp#* }" 39946 39947 # Input might be given as Windows format, start by converting to 39948 # unix format. 39949 new_path="$path" 39950 39951 windows_path="$new_path" 39952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39953 unix_path=`$CYGPATH -u "$windows_path"` 39954 new_path="$unix_path" 39955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39956 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39957 new_path="$unix_path" 39958 fi 39959 39960 39961 # Now try to locate executable using which 39962 new_path=`$WHICH "$new_path" 2> /dev/null` 39963 39964 if test "x$new_path" = x; then 39965 # Oops. Which didn't find the executable. 39966 # The splitting of arguments from the executable at a space might have been incorrect, 39967 # since paths with space are more likely in Windows. Give it another try with the whole 39968 # argument. 39969 path="$complete" 39970 arguments="EOL" 39971 new_path="$path" 39972 39973 windows_path="$new_path" 39974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39975 unix_path=`$CYGPATH -u "$windows_path"` 39976 new_path="$unix_path" 39977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39979 new_path="$unix_path" 39980 fi 39981 39982 39983 new_path=`$WHICH "$new_path" 2> /dev/null` 39984 # bat and cmd files are not always considered executable in MSYS causing which 39985 # to not find them 39986 if test "x$new_path" = x \ 39987 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39988 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39989 new_path="$path" 39990 39991 windows_path="$new_path" 39992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39993 unix_path=`$CYGPATH -u "$windows_path"` 39994 new_path="$unix_path" 39995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39997 new_path="$unix_path" 39998 fi 39999 40000 fi 40001 40002 if test "x$new_path" = x; then 40003 # It's still not found. Now this is an unrecoverable error. 40004 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40005 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40006 has_space=`$ECHO "$complete" | $GREP " "` 40007 if test "x$has_space" != x; then 40008 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40009 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40010 fi 40011 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40012 fi 40013 fi 40014 40015 # Now new_path has a complete unix path to the binary 40016 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40017 # Keep paths in /bin as-is, but remove trailing .exe if any 40018 new_path="${new_path/%.exe/}" 40019 # Do not save /bin paths to all_fixpath_prefixes! 40020 else 40021 # Not in mixed or Windows style, start by that. 40022 new_path=`cmd //c echo $new_path` 40023 40024 input_path="$new_path" 40025 # Check if we need to convert this using DOS-style short mode. If the path 40026 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40027 # take no chances and rewrite it. 40028 # Note: m4 eats our [], so we need to use [ and ] instead. 40029 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40030 if test "x$has_forbidden_chars" != x; then 40031 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40032 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40033 fi 40034 40035 # Output is in $new_path 40036 40037 windows_path="$new_path" 40038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40039 unix_path=`$CYGPATH -u "$windows_path"` 40040 new_path="$unix_path" 40041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40042 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40043 new_path="$unix_path" 40044 fi 40045 40046 # remove trailing .exe if any 40047 new_path="${new_path/%.exe/}" 40048 40049 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40050 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40051 fi 40052 40053 else 40054 # We're on a posix platform. Hooray! :) 40055 # First separate the path from the arguments. This will split at the first 40056 # space. 40057 complete="$BUILD_LD" 40058 path="${complete%% *}" 40059 tmp="$complete EOL" 40060 arguments="${tmp#* }" 40061 40062 # Cannot rely on the command "which" here since it doesn't always work. 40063 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40064 if test -z "$is_absolute_path"; then 40065 # Path to executable is not absolute. Find it. 40066 IFS_save="$IFS" 40067 IFS=: 40068 for p in $PATH; do 40069 if test -f "$p/$path" && test -x "$p/$path"; then 40070 new_path="$p/$path" 40071 break 40072 fi 40073 done 40074 IFS="$IFS_save" 40075 else 40076 # This is an absolute path, we can use it without further modifications. 40077 new_path="$path" 40078 fi 40079 40080 if test "x$new_path" = x; then 40081 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40082 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40083 has_space=`$ECHO "$complete" | $GREP " "` 40084 if test "x$has_space" != x; then 40085 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40086 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40087 fi 40088 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40089 fi 40090 fi 40091 40092 # Now join together the path and the arguments once again 40093 if test "x$arguments" != xEOL; then 40094 new_complete="$new_path ${arguments% *}" 40095 else 40096 new_complete="$new_path" 40097 fi 40098 40099 if test "x$complete" != "x$new_complete"; then 40100 BUILD_LD="$new_complete" 40101 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40102 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40103 fi 40104 40105 else 40106 # If we are not cross compiling, use the normal target compilers for 40107 # building the build platform executables. 40108 BUILD_CC="$CC" 40109 BUILD_CXX="$CXX" 40110 BUILD_LD="$LD" 40111 fi 40112 40113 40114 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40115 # For hotspot, we need these in Windows mixed path, 40116 # so rewrite them all. Need added .exe suffix. 40117 HOTSPOT_CXX="$CXX.exe" 40118 HOTSPOT_LD="$LD.exe" 40119 HOTSPOT_MT="$MT.exe" 40120 HOTSPOT_RC="$RC.exe" 40121 40122 unix_path="$HOTSPOT_CXX" 40123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40124 windows_path=`$CYGPATH -m "$unix_path"` 40125 HOTSPOT_CXX="$windows_path" 40126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40127 windows_path=`cmd //c echo $unix_path` 40128 HOTSPOT_CXX="$windows_path" 40129 fi 40130 40131 40132 unix_path="$HOTSPOT_LD" 40133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40134 windows_path=`$CYGPATH -m "$unix_path"` 40135 HOTSPOT_LD="$windows_path" 40136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40137 windows_path=`cmd //c echo $unix_path` 40138 HOTSPOT_LD="$windows_path" 40139 fi 40140 40141 40142 unix_path="$HOTSPOT_MT" 40143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40144 windows_path=`$CYGPATH -m "$unix_path"` 40145 HOTSPOT_MT="$windows_path" 40146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40147 windows_path=`cmd //c echo $unix_path` 40148 HOTSPOT_MT="$windows_path" 40149 fi 40150 40151 40152 unix_path="$HOTSPOT_RC" 40153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40154 windows_path=`$CYGPATH -m "$unix_path"` 40155 HOTSPOT_RC="$windows_path" 40156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40157 windows_path=`cmd //c echo $unix_path` 40158 HOTSPOT_RC="$windows_path" 40159 fi 40160 40161 40162 40163 else 40164 HOTSPOT_CXX="$CXX" 40165 HOTSPOT_LD="$LD" 40166 fi 40167 40168 40169 40170 if test "x$TOOLCHAIN_TYPE" = xclang; then 40171 USE_CLANG=true 40172 fi 40173 40174 40175 # LDEXE is the linker to use, when creating executables. Not really used. 40176 # FIXME: These should just be removed! 40177 LDEXE="$LD" 40178 LDEXECXX="$LDCXX" 40179 40180 40181 40182 40183 # The package path is used only on macosx? 40184 # FIXME: clean this up, and/or move it elsewhere. 40185 PACKAGE_PATH=/opt/local 40186 40187 40188 # Check for extra potential brokenness. 40189 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40190 # On Windows, double-check that we got the right compiler. 40191 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40192 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40193 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40194 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 40195 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 40196 fi 40197 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40198 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40199 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40200 fi 40201 fi 40202 fi 40203 40204 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40205 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40206 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40207 # This is later checked when setting flags. 40208 fi 40209 40210 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 40211 # in executable.' 40212 USING_BROKEN_SUSE_LD=no 40213 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 40214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 40215 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 40216 echo "SUNWprivate_1.1 { local: *; };" > version-script.map 40217 echo "int main() { }" > main.c 40218 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 40219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40220 $as_echo "no" >&6; } 40221 USING_BROKEN_SUSE_LD=no 40222 else 40223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40224 $as_echo "yes" >&6; } 40225 USING_BROKEN_SUSE_LD=yes 40226 fi 40227 rm -rf version-script.map main.c 40228 fi 40229 40230 40231 40232 # Setup the JTReg Regression Test Harness. 40233 40234 40235 # Check whether --with-jtreg was given. 40236 if test "${with_jtreg+set}" = set; then : 40237 withval=$with_jtreg; 40238 else 40239 with_jtreg=no 40240 fi 40241 40242 40243 if test "x$with_jtreg" = xno; then 40244 # jtreg disabled 40245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40246 $as_echo_n "checking for jtreg... " >&6; } 40247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40248 $as_echo "no" >&6; } 40249 else 40250 if test "x$with_jtreg" != xyes; then 40251 # with path specified. 40252 JT_HOME="$with_jtreg" 40253 fi 40254 40255 if test "x$JT_HOME" != x; then 40256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40257 $as_echo_n "checking for jtreg... " >&6; } 40258 40259 # use JT_HOME enviroment var. 40260 40261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40262 40263 # Input might be given as Windows format, start by converting to 40264 # unix format. 40265 path="$JT_HOME" 40266 new_path=`$CYGPATH -u "$path"` 40267 40268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40271 # "foo.exe" is OK but "foo" is an error. 40272 # 40273 # This test is therefore slightly more accurate than "test -f" to check for file precense. 40274 # It is also a way to make sure we got the proper file name for the real test later on. 40275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40276 if test "x$test_shortpath" = x; then 40277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40278 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40279 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 40280 fi 40281 40282 # Call helper function which possibly converts this using DOS-style short mode. 40283 # If so, the updated path is stored in $new_path. 40284 40285 input_path="$new_path" 40286 # Check if we need to convert this using DOS-style short mode. If the path 40287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40288 # take no chances and rewrite it. 40289 # Note: m4 eats our [], so we need to use [ and ] instead. 40290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40291 if test "x$has_forbidden_chars" != x; then 40292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40293 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40294 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40295 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40296 # Going to short mode and back again did indeed matter. Since short mode is 40297 # case insensitive, let's make it lowercase to improve readability. 40298 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40299 # Now convert it back to Unix-style (cygpath) 40300 input_path=`$CYGPATH -u "$shortmode_path"` 40301 new_path="$input_path" 40302 fi 40303 fi 40304 40305 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40306 if test "x$test_cygdrive_prefix" = x; then 40307 # As a simple fix, exclude /usr/bin since it's not a real path. 40308 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 40309 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40310 # a path prefixed by /cygdrive for fixpath to work. 40311 new_path="$CYGWIN_ROOT_PATH$input_path" 40312 fi 40313 fi 40314 40315 40316 if test "x$path" != "x$new_path"; then 40317 JT_HOME="$new_path" 40318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40319 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40320 fi 40321 40322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40323 40324 path="$JT_HOME" 40325 has_colon=`$ECHO $path | $GREP ^.:` 40326 new_path="$path" 40327 if test "x$has_colon" = x; then 40328 # Not in mixed or Windows style, start by that. 40329 new_path=`cmd //c echo $path` 40330 fi 40331 40332 40333 input_path="$new_path" 40334 # Check if we need to convert this using DOS-style short mode. If the path 40335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40336 # take no chances and rewrite it. 40337 # Note: m4 eats our [], so we need to use [ and ] instead. 40338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40339 if test "x$has_forbidden_chars" != x; then 40340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40341 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40342 fi 40343 40344 40345 windows_path="$new_path" 40346 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40347 unix_path=`$CYGPATH -u "$windows_path"` 40348 new_path="$unix_path" 40349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40350 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40351 new_path="$unix_path" 40352 fi 40353 40354 if test "x$path" != "x$new_path"; then 40355 JT_HOME="$new_path" 40356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40357 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40358 fi 40359 40360 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40361 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40362 40363 else 40364 # We're on a posix platform. Hooray! :) 40365 path="$JT_HOME" 40366 has_space=`$ECHO "$path" | $GREP " "` 40367 if test "x$has_space" != x; then 40368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40369 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40370 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 40371 fi 40372 40373 # Use eval to expand a potential ~ 40374 eval path="$path" 40375 if test ! -f "$path" && test ! -d "$path"; then 40376 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 40377 fi 40378 40379 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 40380 fi 40381 40382 40383 # jtreg win32 script works for everybody 40384 JTREGEXE="$JT_HOME/bin/jtreg" 40385 40386 if test ! -f "$JTREGEXE"; then 40387 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 40388 fi 40389 40390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40391 $as_echo "$JTREGEXE" >&6; } 40392 else 40393 # try to find jtreg on path 40394 40395 40396 40397 # Publish this variable in the help. 40398 40399 40400 if test "x$JTREGEXE" = x; then 40401 # The variable is not set by user, try to locate tool using the code snippet 40402 for ac_prog in jtreg 40403 do 40404 # Extract the first word of "$ac_prog", so it can be a program name with args. 40405 set dummy $ac_prog; ac_word=$2 40406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40407 $as_echo_n "checking for $ac_word... " >&6; } 40408 if ${ac_cv_path_JTREGEXE+:} false; then : 40409 $as_echo_n "(cached) " >&6 40410 else 40411 case $JTREGEXE in 40412 [\\/]* | ?:[\\/]*) 40413 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40414 ;; 40415 *) 40416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40417 for as_dir in $PATH 40418 do 40419 IFS=$as_save_IFS 40420 test -z "$as_dir" && as_dir=. 40421 for ac_exec_ext in '' $ac_executable_extensions; do 40422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40423 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40425 break 2 40426 fi 40427 done 40428 done 40429 IFS=$as_save_IFS 40430 40431 ;; 40432 esac 40433 fi 40434 JTREGEXE=$ac_cv_path_JTREGEXE 40435 if test -n "$JTREGEXE"; then 40436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40437 $as_echo "$JTREGEXE" >&6; } 40438 else 40439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40440 $as_echo "no" >&6; } 40441 fi 40442 40443 40444 test -n "$JTREGEXE" && break 40445 done 40446 40447 else 40448 # The variable is set, but is it from the command line or the environment? 40449 40450 # Try to remove the string !JTREGEXE! from our list. 40451 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 40452 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40453 # If it failed, the variable was not from the command line. Ignore it, 40454 # but warn the user (except for BASH, which is always set by the calling BASH). 40455 if test "xJTREGEXE" != xBASH; then 40456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 40457 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 40458 fi 40459 # Try to locate tool using the code snippet 40460 for ac_prog in jtreg 40461 do 40462 # Extract the first word of "$ac_prog", so it can be a program name with args. 40463 set dummy $ac_prog; ac_word=$2 40464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40465 $as_echo_n "checking for $ac_word... " >&6; } 40466 if ${ac_cv_path_JTREGEXE+:} false; then : 40467 $as_echo_n "(cached) " >&6 40468 else 40469 case $JTREGEXE in 40470 [\\/]* | ?:[\\/]*) 40471 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40472 ;; 40473 *) 40474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40475 for as_dir in $PATH 40476 do 40477 IFS=$as_save_IFS 40478 test -z "$as_dir" && as_dir=. 40479 for ac_exec_ext in '' $ac_executable_extensions; do 40480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40481 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40483 break 2 40484 fi 40485 done 40486 done 40487 IFS=$as_save_IFS 40488 40489 ;; 40490 esac 40491 fi 40492 JTREGEXE=$ac_cv_path_JTREGEXE 40493 if test -n "$JTREGEXE"; then 40494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40495 $as_echo "$JTREGEXE" >&6; } 40496 else 40497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40498 $as_echo "no" >&6; } 40499 fi 40500 40501 40502 test -n "$JTREGEXE" && break 40503 done 40504 40505 else 40506 # If it succeeded, then it was overridden by the user. We will use it 40507 # for the tool. 40508 40509 # First remove it from the list of overridden variables, so we can test 40510 # for unknown variables in the end. 40511 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40512 40513 # Check if the provided tool contains a complete path. 40514 tool_specified="$JTREGEXE" 40515 tool_basename="${tool_specified##*/}" 40516 if test "x$tool_basename" = "x$tool_specified"; then 40517 # A command without a complete path is provided, search $PATH. 40518 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 40519 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 40520 # Extract the first word of "$tool_basename", so it can be a program name with args. 40521 set dummy $tool_basename; ac_word=$2 40522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40523 $as_echo_n "checking for $ac_word... " >&6; } 40524 if ${ac_cv_path_JTREGEXE+:} false; then : 40525 $as_echo_n "(cached) " >&6 40526 else 40527 case $JTREGEXE in 40528 [\\/]* | ?:[\\/]*) 40529 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40530 ;; 40531 *) 40532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40533 for as_dir in $PATH 40534 do 40535 IFS=$as_save_IFS 40536 test -z "$as_dir" && as_dir=. 40537 for ac_exec_ext in '' $ac_executable_extensions; do 40538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40539 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40541 break 2 40542 fi 40543 done 40544 done 40545 IFS=$as_save_IFS 40546 40547 ;; 40548 esac 40549 fi 40550 JTREGEXE=$ac_cv_path_JTREGEXE 40551 if test -n "$JTREGEXE"; then 40552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40553 $as_echo "$JTREGEXE" >&6; } 40554 else 40555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40556 $as_echo "no" >&6; } 40557 fi 40558 40559 40560 if test "x$JTREGEXE" = x; then 40561 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40562 fi 40563 else 40564 # Otherwise we believe it is a complete path. Use it as it is. 40565 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 40566 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 40567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 40568 $as_echo_n "checking for JTREGEXE... " >&6; } 40569 if test ! -x "$tool_specified"; then 40570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40571 $as_echo "not found" >&6; } 40572 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 40573 fi 40574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40575 $as_echo "$tool_specified" >&6; } 40576 fi 40577 fi 40578 fi 40579 40580 40581 40582 if test "x$JTREGEXE" = x; then 40583 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 40584 fi 40585 40586 40587 JT_HOME="`$DIRNAME $JTREGEXE`" 40588 fi 40589 fi 40590 40591 40592 40593 40594 40595 40596 # Option used to tell the compiler whether to create 32- or 64-bit executables 40597 if test "x$TOOLCHAIN_TYPE" = xxlc; then 40598 COMPILER_TARGET_BITS_FLAG="-q" 40599 else 40600 COMPILER_TARGET_BITS_FLAG="-m" 40601 fi 40602 40603 40604 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 40605 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40606 ARFLAGS="-r" 40607 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40608 ARFLAGS="-X64" 40609 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 40610 # lib.exe is used as AR to create static libraries. 40611 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 40612 else 40613 ARFLAGS="" 40614 fi 40615 40616 40617 ## Setup strip. 40618 # FIXME: should this really be per platform, or should it be per toolchain type? 40619 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 40620 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 40621 if test "x$OPENJDK_TARGET_OS" = xlinux; then 40622 STRIPFLAGS="-g" 40623 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 40624 STRIPFLAGS="-x" 40625 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 40626 STRIPFLAGS="-S" 40627 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40628 STRIPFLAGS="-X32_64" 40629 fi 40630 40631 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40632 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 40633 fi 40634 40635 40636 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40637 # FIXME: break out into MCSFLAGS 40638 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 40639 fi 40640 40641 40642 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40643 CC_OUT_OPTION=-Fo 40644 EXE_OUT_OPTION=-out: 40645 LD_OUT_OPTION=-out: 40646 AR_OUT_OPTION=-out: 40647 else 40648 # The option used to specify the target .o,.a or .so file. 40649 # When compiling, how to specify the to be created object file. 40650 CC_OUT_OPTION='-o$(SPACE)' 40651 # When linking, how to specify the to be created executable. 40652 EXE_OUT_OPTION='-o$(SPACE)' 40653 # When linking, how to specify the to be created dynamically linkable library. 40654 LD_OUT_OPTION='-o$(SPACE)' 40655 # When archiving, how to specify the to be create static archive for object files. 40656 AR_OUT_OPTION='rcs$(SPACE)' 40657 fi 40658 40659 40660 40661 40662 40663 # On Windows, we need to set RC flags. 40664 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40665 RC_FLAGS="-nologo -l 0x409 -r" 40666 if test "x$VARIANT" = xOPT; then 40667 RC_FLAGS="$RC_FLAGS -d NDEBUG" 40668 fi 40669 40670 # The version variables used to create RC_FLAGS may be overridden 40671 # in a custom configure script, or possibly the command line. 40672 # Let those variables be expanded at make time in spec.gmk. 40673 # The \$ are escaped to the shell, and the $(...) variables 40674 # are evaluated by make. 40675 RC_FLAGS="$RC_FLAGS \ 40676 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 40677 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 40678 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 40679 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(COOKED_JDK_UPDATE_VERSION).\$(COOKED_BUILD_NUMBER)\" \ 40680 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 40681 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 40682 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(COOKED_JDK_UPDATE_VERSION),\$(COOKED_JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 40683 fi 40684 40685 40686 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40687 # FIXME: likely bug, should be CCXXFLAGS_JDK? or one for C or CXX. 40688 CCXXFLAGS="$CCXXFLAGS -nologo" 40689 fi 40690 40691 if test "x$SYSROOT" != "x"; then 40692 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40693 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40694 # Solaris Studio does not have a concept of sysroot. Instead we must 40695 # make sure the default include and lib dirs are appended to each 40696 # compile and link command line. 40697 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 40698 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 40699 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 40700 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 40701 fi 40702 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 40703 SYSROOT_CFLAGS="--sysroot=\"$SYSROOT\"" 40704 SYSROOT_LDFLAGS="--sysroot=\"$SYSROOT\"" 40705 elif test "x$TOOLCHAIN_TYPE" = xclang; then 40706 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 40707 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 40708 fi 40709 # Propagate the sysroot args to hotspot 40710 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 40711 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 40712 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 40713 fi 40714 40715 40716 40717 40718 # FIXME: Currently we must test this after toolchain but before flags. Fix! 40719 40720 # Now we can test some aspects on the target using configure macros. 40721 40722 40723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 40724 $as_echo_n "checking for ANSI C header files... " >&6; } 40725 if ${ac_cv_header_stdc+:} false; then : 40726 $as_echo_n "(cached) " >&6 40727 else 40728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40729 /* end confdefs.h. */ 40730 #include <stdlib.h> 40731 #include <stdarg.h> 40732 #include <string.h> 40733 #include <float.h> 40734 40735 int 40736 main () 40737 { 40738 40739 ; 40740 return 0; 40741 } 40742 _ACEOF 40743 if ac_fn_cxx_try_compile "$LINENO"; then : 40744 ac_cv_header_stdc=yes 40745 else 40746 ac_cv_header_stdc=no 40747 fi 40748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40749 40750 if test $ac_cv_header_stdc = yes; then 40751 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 40752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40753 /* end confdefs.h. */ 40754 #include <string.h> 40755 40756 _ACEOF 40757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40758 $EGREP "memchr" >/dev/null 2>&1; then : 40759 40760 else 40761 ac_cv_header_stdc=no 40762 fi 40763 rm -f conftest* 40764 40765 fi 40766 40767 if test $ac_cv_header_stdc = yes; then 40768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 40769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40770 /* end confdefs.h. */ 40771 #include <stdlib.h> 40772 40773 _ACEOF 40774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40775 $EGREP "free" >/dev/null 2>&1; then : 40776 40777 else 40778 ac_cv_header_stdc=no 40779 fi 40780 rm -f conftest* 40781 40782 fi 40783 40784 if test $ac_cv_header_stdc = yes; then 40785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 40786 if test "$cross_compiling" = yes; then : 40787 : 40788 else 40789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40790 /* end confdefs.h. */ 40791 #include <ctype.h> 40792 #include <stdlib.h> 40793 #if ((' ' & 0x0FF) == 0x020) 40794 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 40795 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 40796 #else 40797 # define ISLOWER(c) \ 40798 (('a' <= (c) && (c) <= 'i') \ 40799 || ('j' <= (c) && (c) <= 'r') \ 40800 || ('s' <= (c) && (c) <= 'z')) 40801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 40802 #endif 40803 40804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 40805 int 40806 main () 40807 { 40808 int i; 40809 for (i = 0; i < 256; i++) 40810 if (XOR (islower (i), ISLOWER (i)) 40811 || toupper (i) != TOUPPER (i)) 40812 return 2; 40813 return 0; 40814 } 40815 _ACEOF 40816 if ac_fn_cxx_try_run "$LINENO"; then : 40817 40818 else 40819 ac_cv_header_stdc=no 40820 fi 40821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40822 conftest.$ac_objext conftest.beam conftest.$ac_ext 40823 fi 40824 40825 fi 40826 fi 40827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 40828 $as_echo "$ac_cv_header_stdc" >&6; } 40829 if test $ac_cv_header_stdc = yes; then 40830 40831 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 40832 40833 fi 40834 40835 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 40836 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 40837 inttypes.h stdint.h unistd.h 40838 do : 40839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 40840 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 40841 " 40842 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 40843 cat >>confdefs.h <<_ACEOF 40844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 40845 _ACEOF 40846 40847 fi 40848 40849 done 40850 40851 40852 40853 ############################################################################### 40854 # 40855 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 40856 # (The JVM can use 32 or 64 bit Java pointers but that decision 40857 # is made at runtime.) 40858 # 40859 40860 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 40861 # Always specify -m flag on Solaris 40862 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 40863 40864 # When we add flags to the "official" CFLAGS etc, we need to 40865 # keep track of these additions in ADDED_CFLAGS etc. These 40866 # will later be checked to make sure only controlled additions 40867 # have been made to CFLAGS etc. 40868 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40869 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40870 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40871 40872 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40873 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40874 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40875 40876 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40877 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40878 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40879 40880 elif test "x$COMPILE_TYPE" = xreduced; then 40881 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40882 # Specify -m if running reduced on other Posix platforms 40883 40884 # When we add flags to the "official" CFLAGS etc, we need to 40885 # keep track of these additions in ADDED_CFLAGS etc. These 40886 # will later be checked to make sure only controlled additions 40887 # have been made to CFLAGS etc. 40888 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40889 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40890 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40891 40892 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40893 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40894 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40895 40896 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40897 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40898 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40899 40900 fi 40901 fi 40902 40903 # Make compilation sanity check 40904 for ac_header in stdio.h 40905 do : 40906 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 40907 if test "x$ac_cv_header_stdio_h" = xyes; then : 40908 cat >>confdefs.h <<_ACEOF 40909 #define HAVE_STDIO_H 1 40910 _ACEOF 40911 40912 else 40913 40914 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 40915 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 40916 if test "x$COMPILE_TYPE" = xreduced; then 40917 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 40918 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 40919 elif test "x$COMPILE_TYPE" = xcross; then 40920 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 40921 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 40922 fi 40923 as_fn_error $? "Cannot continue." "$LINENO" 5 40924 40925 fi 40926 40927 done 40928 40929 40930 # The cast to long int works around a bug in the HP C Compiler 40931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 40932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 40933 # This bug is HP SR number 8606223364. 40934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 40935 $as_echo_n "checking size of int *... " >&6; } 40936 if ${ac_cv_sizeof_int_p+:} false; then : 40937 $as_echo_n "(cached) " >&6 40938 else 40939 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 40940 40941 else 40942 if test "$ac_cv_type_int_p" = yes; then 40943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 40945 as_fn_error 77 "cannot compute sizeof (int *) 40946 See \`config.log' for more details" "$LINENO" 5; } 40947 else 40948 ac_cv_sizeof_int_p=0 40949 fi 40950 fi 40951 40952 fi 40953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 40954 $as_echo "$ac_cv_sizeof_int_p" >&6; } 40955 40956 40957 40958 cat >>confdefs.h <<_ACEOF 40959 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 40960 _ACEOF 40961 40962 40963 40964 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 40965 if test "x$ac_cv_sizeof_int_p" = x; then 40966 # The test failed, lets stick to the assumed value. 40967 { $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 40968 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 40969 else 40970 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 40971 40972 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 40973 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 40974 # Let's try to implicitely set the compilers target architecture and retry the test 40975 { $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 40976 $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;} 40977 { $as_echo "$as_me:${as_lineno-$LINENO}: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 40978 $as_echo "$as_me: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 40979 40980 # When we add flags to the "official" CFLAGS etc, we need to 40981 # keep track of these additions in ADDED_CFLAGS etc. These 40982 # will later be checked to make sure only controlled additions 40983 # have been made to CFLAGS etc. 40984 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40985 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40986 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40987 40988 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40989 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40990 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40991 40992 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40993 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40994 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40995 40996 40997 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 40998 unset ac_cv_sizeof_int_p 40999 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41000 cat >>confdefs.h <<_ACEOF 41001 #undef SIZEOF_INT_P 41002 _ACEOF 41003 41004 # The cast to long int works around a bug in the HP C Compiler 41005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41007 # This bug is HP SR number 8606223364. 41008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41009 $as_echo_n "checking size of int *... " >&6; } 41010 if ${ac_cv_sizeof_int_p+:} false; then : 41011 $as_echo_n "(cached) " >&6 41012 else 41013 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41014 41015 else 41016 if test "$ac_cv_type_int_p" = yes; then 41017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41019 as_fn_error 77 "cannot compute sizeof (int *) 41020 See \`config.log' for more details" "$LINENO" 5; } 41021 else 41022 ac_cv_sizeof_int_p=0 41023 fi 41024 fi 41025 41026 fi 41027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41028 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41029 41030 41031 41032 cat >>confdefs.h <<_ACEOF 41033 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41034 _ACEOF 41035 41036 41037 41038 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41039 41040 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41041 as_fn_error $? "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)" "$LINENO" 5 41042 fi 41043 fi 41044 fi 41045 41046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41047 $as_echo_n "checking for target address size... " >&6; } 41048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41049 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41050 41051 41052 ############################################################################### 41053 # 41054 # Is the target little of big endian? 41055 # 41056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41057 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41058 if ${ac_cv_c_bigendian+:} false; then : 41059 $as_echo_n "(cached) " >&6 41060 else 41061 ac_cv_c_bigendian=unknown 41062 # See if we're dealing with a universal compiler. 41063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41064 /* end confdefs.h. */ 41065 #ifndef __APPLE_CC__ 41066 not a universal capable compiler 41067 #endif 41068 typedef int dummy; 41069 41070 _ACEOF 41071 if ac_fn_cxx_try_compile "$LINENO"; then : 41072 41073 # Check for potential -arch flags. It is not universal unless 41074 # there are at least two -arch flags with different values. 41075 ac_arch= 41076 ac_prev= 41077 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41078 if test -n "$ac_prev"; then 41079 case $ac_word in 41080 i?86 | x86_64 | ppc | ppc64) 41081 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41082 ac_arch=$ac_word 41083 else 41084 ac_cv_c_bigendian=universal 41085 break 41086 fi 41087 ;; 41088 esac 41089 ac_prev= 41090 elif test "x$ac_word" = "x-arch"; then 41091 ac_prev=arch 41092 fi 41093 done 41094 fi 41095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41096 if test $ac_cv_c_bigendian = unknown; then 41097 # See if sys/param.h defines the BYTE_ORDER macro. 41098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41099 /* end confdefs.h. */ 41100 #include <sys/types.h> 41101 #include <sys/param.h> 41102 41103 int 41104 main () 41105 { 41106 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41107 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41108 && LITTLE_ENDIAN) 41109 bogus endian macros 41110 #endif 41111 41112 ; 41113 return 0; 41114 } 41115 _ACEOF 41116 if ac_fn_cxx_try_compile "$LINENO"; then : 41117 # It does; now see whether it defined to BIG_ENDIAN or not. 41118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41119 /* end confdefs.h. */ 41120 #include <sys/types.h> 41121 #include <sys/param.h> 41122 41123 int 41124 main () 41125 { 41126 #if BYTE_ORDER != BIG_ENDIAN 41127 not big endian 41128 #endif 41129 41130 ; 41131 return 0; 41132 } 41133 _ACEOF 41134 if ac_fn_cxx_try_compile "$LINENO"; then : 41135 ac_cv_c_bigendian=yes 41136 else 41137 ac_cv_c_bigendian=no 41138 fi 41139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41140 fi 41141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41142 fi 41143 if test $ac_cv_c_bigendian = unknown; then 41144 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41146 /* end confdefs.h. */ 41147 #include <limits.h> 41148 41149 int 41150 main () 41151 { 41152 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41153 bogus endian macros 41154 #endif 41155 41156 ; 41157 return 0; 41158 } 41159 _ACEOF 41160 if ac_fn_cxx_try_compile "$LINENO"; then : 41161 # It does; now see whether it defined to _BIG_ENDIAN or not. 41162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41163 /* end confdefs.h. */ 41164 #include <limits.h> 41165 41166 int 41167 main () 41168 { 41169 #ifndef _BIG_ENDIAN 41170 not big endian 41171 #endif 41172 41173 ; 41174 return 0; 41175 } 41176 _ACEOF 41177 if ac_fn_cxx_try_compile "$LINENO"; then : 41178 ac_cv_c_bigendian=yes 41179 else 41180 ac_cv_c_bigendian=no 41181 fi 41182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41183 fi 41184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41185 fi 41186 if test $ac_cv_c_bigendian = unknown; then 41187 # Compile a test program. 41188 if test "$cross_compiling" = yes; then : 41189 # Try to guess by grepping values from an object file. 41190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41191 /* end confdefs.h. */ 41192 short int ascii_mm[] = 41193 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 41194 short int ascii_ii[] = 41195 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 41196 int use_ascii (int i) { 41197 return ascii_mm[i] + ascii_ii[i]; 41198 } 41199 short int ebcdic_ii[] = 41200 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 41201 short int ebcdic_mm[] = 41202 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 41203 int use_ebcdic (int i) { 41204 return ebcdic_mm[i] + ebcdic_ii[i]; 41205 } 41206 extern int foo; 41207 41208 int 41209 main () 41210 { 41211 return use_ascii (foo) == use_ebcdic (foo); 41212 ; 41213 return 0; 41214 } 41215 _ACEOF 41216 if ac_fn_cxx_try_compile "$LINENO"; then : 41217 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 41218 ac_cv_c_bigendian=yes 41219 fi 41220 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 41221 if test "$ac_cv_c_bigendian" = unknown; then 41222 ac_cv_c_bigendian=no 41223 else 41224 # finding both strings is unlikely to happen, but who knows? 41225 ac_cv_c_bigendian=unknown 41226 fi 41227 fi 41228 fi 41229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41230 else 41231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41232 /* end confdefs.h. */ 41233 $ac_includes_default 41234 int 41235 main () 41236 { 41237 41238 /* Are we little or big endian? From Harbison&Steele. */ 41239 union 41240 { 41241 long int l; 41242 char c[sizeof (long int)]; 41243 } u; 41244 u.l = 1; 41245 return u.c[sizeof (long int) - 1] == 1; 41246 41247 ; 41248 return 0; 41249 } 41250 _ACEOF 41251 if ac_fn_cxx_try_run "$LINENO"; then : 41252 ac_cv_c_bigendian=no 41253 else 41254 ac_cv_c_bigendian=yes 41255 fi 41256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41257 conftest.$ac_objext conftest.beam conftest.$ac_ext 41258 fi 41259 41260 fi 41261 fi 41262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 41263 $as_echo "$ac_cv_c_bigendian" >&6; } 41264 case $ac_cv_c_bigendian in #( 41265 yes) 41266 ENDIAN="big";; #( 41267 no) 41268 ENDIAN="little" ;; #( 41269 universal) 41270 ENDIAN="universal_endianness" 41271 ;; #( 41272 *) 41273 ENDIAN="unknown" ;; 41274 esac 41275 41276 41277 if test "x$ENDIAN" = xuniversal_endianness; then 41278 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 41279 fi 41280 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 41281 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 41282 fi 41283 41284 41285 # Configure flags for the tools 41286 41287 ############################################################################### 41288 # 41289 # How to compile shared libraries. 41290 # 41291 41292 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41293 PICFLAG="-fPIC" 41294 PIEFLAG="-fPIE" 41295 C_FLAG_REORDER='' 41296 CXX_FLAG_REORDER='' 41297 41298 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41299 # Linking is different on MacOSX 41300 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41301 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41302 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41303 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41304 SET_SHARED_LIBRARY_MAPFILE='' 41305 else 41306 # Default works for linux, might work on other platforms as well. 41307 SHARED_LIBRARY_FLAGS='-shared' 41308 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41309 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41310 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41311 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41312 fi 41313 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41314 PICFLAG="-KPIC" 41315 PIEFLAG="" 41316 C_FLAG_REORDER='-xF' 41317 CXX_FLAG_REORDER='-xF' 41318 SHARED_LIBRARY_FLAGS="-G" 41319 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 41320 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41321 SET_SHARED_LIBRARY_NAME='' 41322 SET_SHARED_LIBRARY_MAPFILE='-M$1' 41323 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41324 PICFLAG="-qpic=large" 41325 PIEFLAG="" 41326 C_FLAG_REORDER='' 41327 CXX_FLAG_REORDER='' 41328 SHARED_LIBRARY_FLAGS="-qmkshrobj" 41329 SET_EXECUTABLE_ORIGIN="" 41330 SET_SHARED_LIBRARY_ORIGIN='' 41331 SET_SHARED_LIBRARY_NAME='' 41332 SET_SHARED_LIBRARY_MAPFILE='' 41333 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41334 PICFLAG="" 41335 PIEFLAG="" 41336 C_FLAG_REORDER='' 41337 CXX_FLAG_REORDER='' 41338 SHARED_LIBRARY_FLAGS="-LD" 41339 SET_EXECUTABLE_ORIGIN='' 41340 SET_SHARED_LIBRARY_ORIGIN='' 41341 SET_SHARED_LIBRARY_NAME='' 41342 SET_SHARED_LIBRARY_MAPFILE='' 41343 fi 41344 41345 41346 41347 41348 41349 41350 41351 41352 41353 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41354 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 41355 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 41356 CFLAGS_JDKLIB_EXTRA='-xstrconst' 41357 fi 41358 # The (cross) compiler is now configured, we can now test capabilities 41359 # of the target platform. 41360 41361 41362 41363 ############################################################################### 41364 # 41365 # Setup the opt flags for different compilers 41366 # and different operating systems. 41367 # 41368 41369 # FIXME: this was indirectly the old default, but just inherited. 41370 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41371 # C_FLAG_DEPS="-MMD -MF" 41372 # fi 41373 41374 # Generate make dependency files 41375 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41376 C_FLAG_DEPS="-MMD -MF" 41377 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41378 C_FLAG_DEPS="-xMMD -xMF" 41379 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41380 C_FLAG_DEPS="-qmakedep=gcc -MF" 41381 fi 41382 CXX_FLAG_DEPS="$C_FLAG_DEPS" 41383 41384 41385 41386 # Debug symbols 41387 # 41388 # By default don't set any specific assembler debug 41389 # info flags for toolchains unless we know they work. 41390 # See JDK-8207057. 41391 ASFLAGS_DEBUG_SYMBOLS="" 41392 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41393 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 41394 CFLAGS_DEBUG_SYMBOLS="-g1" 41395 CXXFLAGS_DEBUG_SYMBOLS="-g1" 41396 else 41397 CFLAGS_DEBUG_SYMBOLS="-g" 41398 CXXFLAGS_DEBUG_SYMBOLS="-g" 41399 fi 41400 ASFLAGS_DEBUG_SYMBOLS="-g" 41401 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41402 CFLAGS_DEBUG_SYMBOLS="-g -xs" 41403 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 41404 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41405 CFLAGS_DEBUG_SYMBOLS="-g" 41406 CXXFLAGS_DEBUG_SYMBOLS="-g" 41407 fi 41408 41409 41410 41411 41412 # Optimization levels 41413 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41414 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xalias_level=basic -xbuiltin=%all -xdepend -xrestrict -xlibmil" 41415 41416 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 41417 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 41418 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr" 41419 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 41420 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 41421 C_O_FLAG_NONE="-xregs=no%frameptr" 41422 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 41423 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 41424 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 41425 CXX_O_FLAG_NONE="-xregs=no%frameptr" 41426 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41427 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 41428 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 41429 fi 41430 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41431 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41432 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41433 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41434 C_O_FLAG_NONE="" 41435 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41436 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41437 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41438 CXX_O_FLAG_NONE="" 41439 fi 41440 else 41441 # The remaining toolchains share opt flags between CC and CXX; 41442 # setup for C and duplicate afterwards. 41443 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41444 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41445 # On MacOSX we optimize for size, something 41446 # we should do for all platforms? 41447 C_O_FLAG_HIGHEST="-Os" 41448 C_O_FLAG_HI="-Os" 41449 C_O_FLAG_NORM="-Os" 41450 C_O_FLAG_NONE="" 41451 else 41452 C_O_FLAG_HIGHEST="-O3" 41453 C_O_FLAG_HI="-O3" 41454 C_O_FLAG_NORM="-O2" 41455 C_O_FLAG_NONE="-O0" 41456 fi 41457 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41458 C_O_FLAG_HIGHEST="-O3" 41459 C_O_FLAG_HI="-O3 -qstrict" 41460 C_O_FLAG_NORM="-O2" 41461 C_O_FLAG_NONE="" 41462 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41463 C_O_FLAG_HIGHEST="-O2" 41464 C_O_FLAG_HI="-O1" 41465 C_O_FLAG_NORM="-O1" 41466 C_O_FLAG_NONE="-Od" 41467 fi 41468 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 41469 CXX_O_FLAG_HI="$C_O_FLAG_HI" 41470 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 41471 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 41472 fi 41473 41474 41475 41476 41477 41478 41479 41480 41481 41482 41483 41484 # Special extras... 41485 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41486 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41487 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41488 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41489 fi 41490 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41491 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 41492 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41493 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41494 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41495 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS -fstack-protector" 41496 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS -fstack-protector" 41497 if test "x$OPENJDK_TARGET_OS" != xmacosx; then 41498 LDFLAGS_JDK="$LDFLAGS_JDK -Wl,-z,relro" 41499 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS -Wl,-z,relro" 41500 fi 41501 CXXSTD_CXXFLAG="-std=gnu++98" 41502 41503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 41504 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 41505 supports=yes 41506 41507 saved_cxxflags="$CXXFLAGS" 41508 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 41509 ac_ext=cpp 41510 ac_cpp='$CXXCPP $CPPFLAGS' 41511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41514 41515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41516 /* end confdefs.h. */ 41517 int i; 41518 _ACEOF 41519 if ac_fn_cxx_try_compile "$LINENO"; then : 41520 41521 else 41522 supports=no 41523 fi 41524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41525 ac_ext=cpp 41526 ac_cpp='$CXXCPP $CPPFLAGS' 41527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41530 41531 CXXFLAGS="$saved_cxxflags" 41532 41533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41534 $as_echo "$supports" >&6; } 41535 if test "x$supports" = "xyes" ; then 41536 : 41537 else 41538 CXXSTD_CXXFLAG="" 41539 fi 41540 41541 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 41542 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 41543 41544 fi 41545 41546 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 41547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 41548 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 41549 fi 41550 41551 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 41552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 41553 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 41554 fi 41555 41556 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 41557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 41558 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 41559 fi 41560 41561 41562 if test "x$ASFLAGS" != "x"; then 41563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring ASFLAGS($ASFLAGS) found in environment. Use --with-extra-asflags" >&5 41564 $as_echo "$as_me: WARNING: Ignoring ASFLAGS($ASFLAGS) found in environment. Use --with-extra-asflags" >&2;} 41565 fi 41566 41567 41568 # Check whether --with-extra-cflags was given. 41569 if test "${with_extra_cflags+set}" = set; then : 41570 withval=$with_extra_cflags; 41571 fi 41572 41573 41574 41575 # Check whether --with-extra-cxxflags was given. 41576 if test "${with_extra_cxxflags+set}" = set; then : 41577 withval=$with_extra_cxxflags; 41578 fi 41579 41580 41581 41582 # Check whether --with-extra-ldflags was given. 41583 if test "${with_extra_ldflags+set}" = set; then : 41584 withval=$with_extra_ldflags; 41585 fi 41586 41587 41588 41589 # Check whether --with-extra-asflags was given. 41590 if test "${with_extra_asflags+set}" = set; then : 41591 withval=$with_extra_asflags; 41592 fi 41593 41594 41595 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 41596 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 41597 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 41598 41599 # Hotspot needs these set in their legacy form 41600 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 41601 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 41602 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 41603 LEGACY_EXTRA_ASFLAGS="$with_extra_asflags" 41604 41605 41606 41607 41608 41609 41610 ############################################################################### 41611 # 41612 # Now setup the CFLAGS and LDFLAGS for the JDK build. 41613 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 41614 # 41615 41616 FDLIBM_CFLAGS="" 41617 # Setup compiler/platform specific flags to CFLAGS_JDK, 41618 # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?) 41619 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41620 # these options are used for both C and C++ compiles 41621 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 41622 -pipe -fstack-protector -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 41623 case $OPENJDK_TARGET_CPU_ARCH in 41624 arm ) 41625 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 41626 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41627 ;; 41628 ppc ) 41629 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 41630 ;; 41631 * ) 41632 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 41633 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41634 ;; 41635 esac 41636 41637 REFERENCE_VERSION=6 41638 41639 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 41640 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 41641 fi 41642 41643 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 41644 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only parts < 99999 is supported" "$LINENO" 5 41645 fi 41646 41647 # Version comparison method inspired by http://stackoverflow.com/a/24067243 41648 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 41649 41650 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 41651 41652 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 41653 # runs afoul of the more aggressive versions of these optimisations. 41654 # Notably, value range propagation now assumes that the this pointer of C++ 41655 # member functions is non-null. 41656 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 41657 41658 41659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 41660 $as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 41661 supports=yes 41662 41663 saved_cflags="$CFLAGS" 41664 CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 41665 ac_ext=c 41666 ac_cpp='$CPP $CPPFLAGS' 41667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41669 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41670 41671 41672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41673 /* end confdefs.h. */ 41674 int i; 41675 _ACEOF 41676 if ac_fn_c_try_compile "$LINENO"; then : 41677 41678 else 41679 supports=no 41680 fi 41681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41682 ac_ext=cpp 41683 ac_cpp='$CXXCPP $CPPFLAGS' 41684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41687 41688 CFLAGS="$saved_cflags" 41689 41690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41691 $as_echo "$supports" >&6; } 41692 if test "x$supports" = "xyes" ; then 41693 C_COMP_SUPPORTS="yes" 41694 else 41695 C_COMP_SUPPORTS="no" 41696 fi 41697 41698 41699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 41700 $as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 41701 supports=yes 41702 41703 saved_cxxflags="$CXXFLAGS" 41704 CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 41705 ac_ext=cpp 41706 ac_cpp='$CXXCPP $CPPFLAGS' 41707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41710 41711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41712 /* end confdefs.h. */ 41713 int i; 41714 _ACEOF 41715 if ac_fn_cxx_try_compile "$LINENO"; then : 41716 41717 else 41718 supports=no 41719 fi 41720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41721 ac_ext=cpp 41722 ac_cpp='$CXXCPP $CPPFLAGS' 41723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41726 41727 CXXFLAGS="$saved_cxxflags" 41728 41729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41730 $as_echo "$supports" >&6; } 41731 if test "x$supports" = "xyes" ; then 41732 CXX_COMP_SUPPORTS="yes" 41733 else 41734 CXX_COMP_SUPPORTS="no" 41735 fi 41736 41737 41738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 41739 $as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 41740 supports=no 41741 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 41742 41743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41744 $as_echo "$supports" >&6; } 41745 if test "x$supports" = "xyes" ; then 41746 : 41747 else 41748 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="" 41749 fi 41750 41751 41752 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 41753 41754 41755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 41756 $as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 41757 supports=yes 41758 41759 saved_cflags="$CFLAGS" 41760 CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror" 41761 ac_ext=c 41762 ac_cpp='$CPP $CPPFLAGS' 41763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41765 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41766 41767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41768 /* end confdefs.h. */ 41769 int i; 41770 _ACEOF 41771 if ac_fn_c_try_compile "$LINENO"; then : 41772 41773 else 41774 supports=no 41775 fi 41776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41777 ac_ext=cpp 41778 ac_cpp='$CXXCPP $CPPFLAGS' 41779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41782 41783 CFLAGS="$saved_cflags" 41784 41785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41786 $as_echo "$supports" >&6; } 41787 if test "x$supports" = "xyes" ; then 41788 C_COMP_SUPPORTS="yes" 41789 else 41790 C_COMP_SUPPORTS="no" 41791 fi 41792 41793 41794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 41795 $as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 41796 supports=yes 41797 41798 saved_cxxflags="$CXXFLAGS" 41799 CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror" 41800 ac_ext=cpp 41801 ac_cpp='$CXXCPP $CPPFLAGS' 41802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41805 41806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41807 /* end confdefs.h. */ 41808 int i; 41809 _ACEOF 41810 if ac_fn_cxx_try_compile "$LINENO"; then : 41811 41812 else 41813 supports=no 41814 fi 41815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41816 ac_ext=cpp 41817 ac_cpp='$CXXCPP $CPPFLAGS' 41818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41821 41822 CXXFLAGS="$saved_cxxflags" 41823 41824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41825 $as_echo "$supports" >&6; } 41826 if test "x$supports" = "xyes" ; then 41827 CXX_COMP_SUPPORTS="yes" 41828 else 41829 CXX_COMP_SUPPORTS="no" 41830 fi 41831 41832 41833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 41834 $as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 41835 supports=no 41836 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 41837 41838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41839 $as_echo "$supports" >&6; } 41840 if test "x$supports" = "xyes" ; then 41841 : 41842 else 41843 NO_LIFETIME_DSE_CFLAG="" 41844 fi 41845 41846 CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 41847 41848 41849 41850 else 41851 : 41852 fi 41853 41854 41855 # Check that the compiler supports -ffp-contract=off flag 41856 # Set FDLIBM_CFLAGS to -ffp-contract=off if it does. 41857 # For GCC < 4.6, on x86, x86_64 and ppc check for 41858 # -mno-fused-madd and -fno-strict-aliasing. If they exist, 41859 # use them as a substitute for -ffp-contract=off. 41860 # 41861 # These flags are required for GCC-based builds of 41862 # fdlibm with optimization without losing precision. 41863 # Notably, -ffp-contract=off needs to be added for GCC >= 4.6, 41864 # -mno-fused-madd -fno-strict-aliasing for GCC < 4.6 41865 COMPILER_FP_CONTRACT_OFF_FLAG="-ffp-contract=off" 41866 41867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"" >&5 41868 $as_echo_n "checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"... " >&6; } 41869 supports=yes 41870 41871 saved_cxxflags="$CXXFLAGS" 41872 CXXFLAGS="$CXXFLAG $COMPILER_FP_CONTRACT_OFF_FLAG -Werror" 41873 ac_ext=cpp 41874 ac_cpp='$CXXCPP $CPPFLAGS' 41875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41878 41879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41880 /* end confdefs.h. */ 41881 int i; 41882 _ACEOF 41883 if ac_fn_cxx_try_compile "$LINENO"; then : 41884 41885 else 41886 supports=no 41887 fi 41888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41889 ac_ext=cpp 41890 ac_cpp='$CXXCPP $CPPFLAGS' 41891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41894 41895 CXXFLAGS="$saved_cxxflags" 41896 41897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41898 $as_echo "$supports" >&6; } 41899 if test "x$supports" = "xyes" ; then 41900 : 41901 else 41902 COMPILER_FP_CONTRACT_OFF_FLAG="" 41903 fi 41904 41905 if test "x$COMPILER_FP_CONTRACT_OFF_FLAG" = x; then 41906 if test "$OPENJDK_TARGET_CPU_ARCH" = "x86" || 41907 test "$OPENJDK_TARGET_CPU_ARCH" = "x86_64" || 41908 test "$OPENJDK_TARGET_CPU_ARCH" = "ppc"; then 41909 M_NO_FUSED_ADD_FLAG="-mno-fused-madd" 41910 41911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"" >&5 41912 $as_echo_n "checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"... " >&6; } 41913 supports=yes 41914 41915 saved_cxxflags="$CXXFLAGS" 41916 CXXFLAGS="$CXXFLAG $M_NO_FUSED_ADD_FLAG -Werror" 41917 ac_ext=cpp 41918 ac_cpp='$CXXCPP $CPPFLAGS' 41919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41922 41923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41924 /* end confdefs.h. */ 41925 int i; 41926 _ACEOF 41927 if ac_fn_cxx_try_compile "$LINENO"; then : 41928 41929 else 41930 supports=no 41931 fi 41932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41933 ac_ext=cpp 41934 ac_cpp='$CXXCPP $CPPFLAGS' 41935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41938 41939 CXXFLAGS="$saved_cxxflags" 41940 41941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41942 $as_echo "$supports" >&6; } 41943 if test "x$supports" = "xyes" ; then 41944 : 41945 else 41946 M_NO_FUSED_ADD_FLAG="" 41947 fi 41948 41949 NO_STRICT_ALIASING_FLAG="-fno-strict-aliasing" 41950 41951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"" >&5 41952 $as_echo_n "checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"... " >&6; } 41953 supports=yes 41954 41955 saved_cxxflags="$CXXFLAGS" 41956 CXXFLAGS="$CXXFLAG $NO_STRICT_ALIASING_FLAG -Werror" 41957 ac_ext=cpp 41958 ac_cpp='$CXXCPP $CPPFLAGS' 41959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41962 41963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41964 /* end confdefs.h. */ 41965 int i; 41966 _ACEOF 41967 if ac_fn_cxx_try_compile "$LINENO"; then : 41968 41969 else 41970 supports=no 41971 fi 41972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41973 ac_ext=cpp 41974 ac_cpp='$CXXCPP $CPPFLAGS' 41975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41978 41979 CXXFLAGS="$saved_cxxflags" 41980 41981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41982 $as_echo "$supports" >&6; } 41983 if test "x$supports" = "xyes" ; then 41984 : 41985 else 41986 NO_STRICT_ALIASING_FLAG="" 41987 fi 41988 41989 if test "x$M_NO_FUSED_ADD_FLAG" != "x" && test "x$NO_STRICT_ALIASING_FLAG" != "x"; then 41990 FDLIBM_CFLAGS="$M_NO_FUSED_ADD_FLAG $NO_STRICT_ALIASING_FLAG" 41991 fi 41992 fi 41993 else 41994 FDLIBM_CFLAGS="$COMPILER_FP_CONTRACT_OFF_FLAG" 41995 fi 41996 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41997 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 41998 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 41999 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42000 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 42001 fi 42002 42003 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42004 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42005 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42006 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42007 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42008 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42009 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK \ 42010 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42011 -DWIN32_LEAN_AND_MEAN \ 42012 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42013 -DWIN32 -DIAL" 42014 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42015 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42016 else 42017 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 42018 fi 42019 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 42020 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 42021 # studio. 42022 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 42023 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 42024 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 42025 fi 42026 fi 42027 42028 42029 ############################################################################### 42030 42031 # Adjust flags according to debug level. 42032 case $DEBUG_LEVEL in 42033 fastdebug ) 42034 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 42035 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 42036 C_O_FLAG_HI="$C_O_FLAG_NORM" 42037 C_O_FLAG_NORM="$C_O_FLAG_NORM" 42038 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42039 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM" 42040 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42041 ;; 42042 slowdebug ) 42043 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 42044 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 42045 C_O_FLAG_HI="$C_O_FLAG_NONE" 42046 C_O_FLAG_NORM="$C_O_FLAG_NONE" 42047 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 42048 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 42049 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42050 ;; 42051 esac 42052 42053 # Setup LP64 42054 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 42055 42056 # Set some common defines. These works for all compilers, but assume 42057 # -D is universally accepted. 42058 42059 # Setup endianness 42060 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42061 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42062 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42063 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42064 # Note: -Dmacro is the same as #define macro 1 42065 # -Dmacro= is the same as #define macro 42066 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42067 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42068 else 42069 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42070 fi 42071 else 42072 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42073 # are defined in the system? 42074 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42075 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42076 else 42077 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 42078 fi 42079 fi 42080 if test "x$OPENJDK_TARGET_CPU" = xppc64le; then 42081 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2" 42082 fi 42083 42084 # Setup target OS define. Use OS target name but in upper case. 42085 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42086 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42087 42088 # Setup target CPU 42089 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42090 42091 # Setup debug/release defines 42092 if test "x$DEBUG_LEVEL" = xrelease; then 42093 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 42094 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42095 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 42096 fi 42097 else 42098 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 42099 fi 42100 42101 # Setup release name 42102 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42103 42104 42105 # Set some additional per-OS defines. 42106 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42107 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42108 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42109 # FIXME: PPC64 should not be here. 42110 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DPPC64" 42111 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42112 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42113 fi 42114 42115 # Additional macosx handling 42116 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42117 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42118 # FIXME: This needs to be exported in spec.gmk due to closed legacy code. 42119 # FIXME: clean this up, and/or move it elsewhere. 42120 42121 # Setting these parameters makes it an error to link to macosx APIs that are 42122 # newer than the given OS version and makes the linked binaries compatible 42123 # even if built on a newer version of the OS. 42124 # The expected format is X.Y.Z 42125 MACOSX_VERSION_MIN=10.7.0 42126 42127 42128 # The macro takes the version with no dots, ex: 1070 42129 # Let the flags variables get resolved in make for easier override on make 42130 # command line. 42131 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42132 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42133 fi 42134 fi 42135 42136 # Setup some hard coded includes 42137 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 42138 -I${JDK_OUTPUTDIR}/include \ 42139 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 42140 -I${JDK_TOPDIR}/src/share/javavm/export \ 42141 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 42142 -I${JDK_TOPDIR}/src/share/native/common \ 42143 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 42144 42145 # The shared libraries are compiled using the picflag. 42146 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42147 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42148 42149 # Executable flags 42150 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK $PIEFLAG" 42151 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PIEFLAG" 42152 42153 42154 42155 42156 42157 42158 # Setup LDFLAGS et al. 42159 # 42160 # Now this is odd. The JDK native libraries have to link against libjvm.so 42161 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42162 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42163 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42164 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42165 # libraries will link to whatever is in memory. Yuck. 42166 # 42167 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42168 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42169 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42170 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42171 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42172 fi 42173 # TODO: make -debug optional "--disable-full-debug-symbols" 42174 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42175 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 42176 LDFLAGS_JDKLIB_SUFFIX="" 42177 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42178 LDFLAGS_STACK_SIZE=1048576 42179 else 42180 LDFLAGS_STACK_SIZE=327680 42181 fi 42182 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 42183 else 42184 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42185 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42186 # We have previously set HAS_GNU_HASH if this is the case 42187 if test -n "$HAS_GNU_HASH"; then 42188 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 42189 fi 42190 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42191 # And since we now know that the linker is gnu, then add: 42192 # -z defs, to forbid undefined symbols in object files 42193 # -z noexecstack, to mark stack regions as non-executable 42194 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs -Xlinker -z -Xlinker noexecstack" 42195 if test "x$DEBUG_LEVEL" = "xrelease"; then 42196 # When building release libraries, tell the linker optimize them. 42197 # Should this be supplied to the OSS linker as well? 42198 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42199 fi 42200 fi 42201 fi 42202 42203 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42204 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42205 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42206 fi 42207 42208 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 42209 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 42210 42211 # On some platforms (mac) the linker warns about non existing -L dirs. 42212 # Add server first if available. Linking aginst client does not always produce the same results. 42213 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42214 # Default to server for other variants. 42215 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42216 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42217 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42218 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 42219 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42220 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42221 else 42222 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42223 fi 42224 42225 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42226 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42227 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42228 fi 42229 42230 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42231 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42232 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42233 fi 42234 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42235 # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous 42236 # java heap. 42237 if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then 42238 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -pie" 42239 fi 42240 fi 42241 fi 42242 42243 42244 42245 42246 42247 42248 42249 # Some Zero and Shark settings. 42250 # ZERO_ARCHFLAG tells the compiler which mode to build for 42251 case "${OPENJDK_TARGET_CPU}" in 42252 s390) 42253 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42254 ;; 42255 *) 42256 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42257 esac 42258 42259 42260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 42261 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42262 supports=yes 42263 42264 saved_cflags="$CFLAGS" 42265 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42266 ac_ext=c 42267 ac_cpp='$CPP $CPPFLAGS' 42268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42270 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42271 42272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42273 /* end confdefs.h. */ 42274 int i; 42275 _ACEOF 42276 if ac_fn_c_try_compile "$LINENO"; then : 42277 42278 else 42279 supports=no 42280 fi 42281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42282 ac_ext=cpp 42283 ac_cpp='$CXXCPP $CPPFLAGS' 42284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42287 42288 CFLAGS="$saved_cflags" 42289 42290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42291 $as_echo "$supports" >&6; } 42292 if test "x$supports" = "xyes" ; then 42293 C_COMP_SUPPORTS="yes" 42294 else 42295 C_COMP_SUPPORTS="no" 42296 fi 42297 42298 42299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 42300 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42301 supports=yes 42302 42303 saved_cxxflags="$CXXFLAGS" 42304 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42305 ac_ext=cpp 42306 ac_cpp='$CXXCPP $CPPFLAGS' 42307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42310 42311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42312 /* end confdefs.h. */ 42313 int i; 42314 _ACEOF 42315 if ac_fn_cxx_try_compile "$LINENO"; then : 42316 42317 else 42318 supports=no 42319 fi 42320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42321 ac_ext=cpp 42322 ac_cpp='$CXXCPP $CPPFLAGS' 42323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42326 42327 CXXFLAGS="$saved_cxxflags" 42328 42329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42330 $as_echo "$supports" >&6; } 42331 if test "x$supports" = "xyes" ; then 42332 CXX_COMP_SUPPORTS="yes" 42333 else 42334 CXX_COMP_SUPPORTS="no" 42335 fi 42336 42337 42338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 42339 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 42340 supports=no 42341 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 42342 42343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42344 $as_echo "$supports" >&6; } 42345 if test "x$supports" = "xyes" ; then 42346 : 42347 else 42348 ZERO_ARCHFLAG="" 42349 fi 42350 42351 42352 42353 # Check that the compiler supports -mX (or -qX on AIX) flags 42354 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42355 42356 42357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42358 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42359 supports=yes 42360 42361 saved_cflags="$CFLAGS" 42362 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42363 ac_ext=c 42364 ac_cpp='$CPP $CPPFLAGS' 42365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42367 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42368 42369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42370 /* end confdefs.h. */ 42371 int i; 42372 _ACEOF 42373 if ac_fn_c_try_compile "$LINENO"; then : 42374 42375 else 42376 supports=no 42377 fi 42378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42379 ac_ext=cpp 42380 ac_cpp='$CXXCPP $CPPFLAGS' 42381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42384 42385 CFLAGS="$saved_cflags" 42386 42387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42388 $as_echo "$supports" >&6; } 42389 if test "x$supports" = "xyes" ; then 42390 C_COMP_SUPPORTS="yes" 42391 else 42392 C_COMP_SUPPORTS="no" 42393 fi 42394 42395 42396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42397 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42398 supports=yes 42399 42400 saved_cxxflags="$CXXFLAGS" 42401 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42402 ac_ext=cpp 42403 ac_cpp='$CXXCPP $CPPFLAGS' 42404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42407 42408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42409 /* end confdefs.h. */ 42410 int i; 42411 _ACEOF 42412 if ac_fn_cxx_try_compile "$LINENO"; then : 42413 42414 else 42415 supports=no 42416 fi 42417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42418 ac_ext=cpp 42419 ac_cpp='$CXXCPP $CPPFLAGS' 42420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42423 42424 CXXFLAGS="$saved_cxxflags" 42425 42426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42427 $as_echo "$supports" >&6; } 42428 if test "x$supports" = "xyes" ; then 42429 CXX_COMP_SUPPORTS="yes" 42430 else 42431 CXX_COMP_SUPPORTS="no" 42432 fi 42433 42434 42435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42436 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42437 supports=no 42438 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 42439 42440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42441 $as_echo "$supports" >&6; } 42442 if test "x$supports" = "xyes" ; then 42443 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42444 else 42445 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42446 fi 42447 42448 42449 42450 42451 # Setup debug symbols (need objcopy from the toolchain for that) 42452 42453 # Backwards compatibility. --with-native-debug-symbols is preferred post JDK-8207234, 42454 # but if somebody does not specify it via configure, we still want to preserve old 42455 # behaviour of --disable-debug-symbols 42456 # 42457 # ENABLE_DEBUG_SYMBOLS 42458 # This must be done after the toolchain is setup, since we're looking at objcopy. 42459 # 42460 # Check whether --enable-debug-symbols was given. 42461 if test "${enable_debug_symbols+set}" = set; then : 42462 enableval=$enable_debug_symbols; 42463 fi 42464 42465 42466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 42467 $as_echo_n "checking if we should generate debug symbols... " >&6; } 42468 42469 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 42470 # explicit enabling of enable-debug-symbols and can't find objcopy 42471 # this is an error 42472 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 42473 fi 42474 42475 if test "x$enable_debug_symbols" = "xyes"; then 42476 ENABLE_DEBUG_SYMBOLS=true 42477 elif test "x$enable_debug_symbols" = "xno"; then 42478 ENABLE_DEBUG_SYMBOLS=false 42479 else 42480 # Default is on if objcopy is found 42481 if test "x$OBJCOPY" != x; then 42482 ENABLE_DEBUG_SYMBOLS=true 42483 # MacOS X and Windows don't use objcopy but default is on for those OSes 42484 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 42485 ENABLE_DEBUG_SYMBOLS=true 42486 else 42487 ENABLE_DEBUG_SYMBOLS=false 42488 fi 42489 fi 42490 42491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 42492 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 42493 42494 # Backwards compatibility. --with-native-debug-symbols is preferred post JDK-8207234, 42495 # but if somebody does not specify it via configure, we still want to preserve old 42496 # behaviour of --disable-zip-debug-info. 42497 # 42498 # ZIP_DEBUGINFO_FILES 42499 # 42500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 42501 $as_echo_n "checking if we should zip debug-info files... " >&6; } 42502 # Check whether --enable-zip-debug-info was given. 42503 if test "${enable_zip_debug_info+set}" = set; then : 42504 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 42505 else 42506 enable_zip_debug_info="yes" 42507 fi 42508 42509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 42510 $as_echo "${enable_zip_debug_info}" >&6; } 42511 42512 if test "x${enable_zip_debug_info}" = "xno"; then 42513 ZIP_DEBUGINFO_FILES=false 42514 elif test "x${enable_zip_debug_info}" = "xyes"; then 42515 ZIP_DEBUGINFO_FILES=true 42516 fi 42517 42518 # 42519 # NATIVE_DEBUG_SYMBOLS 42520 # This must be done after the toolchain is setup, since we're looking at objcopy. 42521 # In addition, this must be done after ENABLE_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES 42522 # checking in order to preserve backwards compatibility post JDK-8207234. 42523 # 42524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use (this will override previous settings)" >&5 42525 $as_echo_n "checking what type of native debug symbols to use (this will override previous settings)... " >&6; } 42526 42527 # Check whether --with-native-debug-symbols was given. 42528 if test "${with_native_debug_symbols+set}" = set; then : 42529 withval=$with_native_debug_symbols; 42530 if test "x$OPENJDK_TARGET_OS" = xaix; then 42531 if test "x$with_native_debug_symbols" = xexternal || test "x$with_native_debug_symbols" = xzipped; then 42532 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 42533 fi 42534 fi 42535 42536 else 42537 42538 # Default to unset for backwards compatibility 42539 with_native_debug_symbols="" 42540 42541 fi 42542 42543 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 42544 if test "x$NATIVE_DEBUG_SYMBOLS" = x; then 42545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified" >&5 42546 $as_echo "not specified" >&6; } 42547 else 42548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 42549 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 42550 fi 42551 # Default is empty 42552 DEBUG_BINARIES= 42553 # Default is min_strip. Possible values are min_strip, all_strip, no_strip 42554 STRIP_POLICY=min_strip 42555 42556 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 42557 42558 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42559 if test "x$OBJCOPY" = x; then 42560 # enabling of enable-debug-symbols and can't find objcopy 42561 # this is an error 42562 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 42563 fi 42564 fi 42565 42566 ENABLE_DEBUG_SYMBOLS=true 42567 STRIP_POLICY=min_strip 42568 ZIP_DEBUGINFO_FILES=true 42569 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 42570 ENABLE_DEBUG_SYMBOLS=false 42571 STRIP_POLICY=min_strip 42572 ZIP_DEBUGINFO_FILES=false 42573 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 42574 ENABLE_DEBUG_SYMBOLS=true 42575 STRIP_POLICY=no_strip 42576 ZIP_DEBUGINFO_FILES=false 42577 POST_STRIP_CMD= 42578 DEBUG_BINARIES=true 42579 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 42580 42581 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42582 if test "x$OBJCOPY" = x; then 42583 # enabling of enable-debug-symbols and can't find objcopy 42584 # this is an error 42585 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 42586 fi 42587 fi 42588 42589 ENABLE_DEBUG_SYMBOLS=true 42590 STRIP_POLICY=min_strip 42591 ZIP_DEBUGINFO_FILES=false 42592 elif test "x$NATIVE_DEBUG_SYMBOLS" != x; then 42593 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 42594 else 42595 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-native-debug-symbols not specified. Using values from --disable-debug-symbols and --disable-zip-debug-info" >&5 42596 $as_echo "$as_me: --with-native-debug-symbols not specified. Using values from --disable-debug-symbols and --disable-zip-debug-info" >&6;} 42597 fi 42598 42599 42600 42601 42602 42603 42604 42605 42606 ############################################################################### 42607 # 42608 # Check dependencies for external and internal libraries. 42609 # 42610 ############################################################################### 42611 42612 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 42613 42614 # When using cygwin or msys, we need a wrapper binary that renames 42615 # /cygdrive/c/ arguments into c:/ arguments and peeks into 42616 # @files and rewrites these too! This wrapper binary is 42617 # called fixpath. 42618 FIXPATH= 42619 if test "x$OPENJDK_BUILD_OS" = xwindows; then 42620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 42621 $as_echo_n "checking if fixpath can be created... " >&6; } 42622 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 42623 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 42624 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 42625 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 42626 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 42627 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 42628 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 42629 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 42630 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 42631 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 42632 42633 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 42634 # @ was chosen as separator to minimize risk of other tools messing around with it 42635 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 42636 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 42637 42638 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 42639 fi 42640 rm -f $OUTPUT_ROOT/fixpath* 42641 cd $OUTPUT_ROOT 42642 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 42643 cd $CURDIR 42644 42645 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 42646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42647 $as_echo "no" >&6; } 42648 cat $OUTPUT_ROOT/fixpath1.log 42649 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 42650 fi 42651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42652 $as_echo "yes" >&6; } 42653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 42654 $as_echo_n "checking if fixpath.exe works... " >&6; } 42655 cd $OUTPUT_ROOT 42656 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 42657 cd $CURDIR 42658 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 42659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42660 $as_echo "no" >&6; } 42661 cat $OUTPUT_ROOT/fixpath2.log 42662 as_fn_error $? "fixpath did not work!" "$LINENO" 5 42663 fi 42664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42665 $as_echo "yes" >&6; } 42666 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 42667 fi 42668 42669 42670 42671 42672 42673 42674 ############################################################################### 42675 # 42676 # OS specific settings that we never will need to probe. 42677 # 42678 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 42680 $as_echo_n "checking what is not needed on Linux?... " >&6; } 42681 PULSE_NOT_NEEDED=yes 42682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 42683 $as_echo "pulse" >&6; } 42684 fi 42685 42686 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 42688 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 42689 ALSA_NOT_NEEDED=yes 42690 PULSE_NOT_NEEDED=yes 42691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42692 $as_echo "alsa pulse" >&6; } 42693 fi 42694 42695 if test "x$OPENJDK_TARGET_OS" = xaix; then 42696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 42697 $as_echo_n "checking what is not needed on AIX?... " >&6; } 42698 ALSA_NOT_NEEDED=yes 42699 PULSE_NOT_NEEDED=yes 42700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42701 $as_echo "alsa pulse" >&6; } 42702 fi 42703 42704 42705 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 42707 $as_echo_n "checking what is not needed on Windows?... " >&6; } 42708 CUPS_NOT_NEEDED=yes 42709 ALSA_NOT_NEEDED=yes 42710 PULSE_NOT_NEEDED=yes 42711 X11_NOT_NEEDED=yes 42712 FONTCONFIG_NOT_NEEDED=yes 42713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 42714 $as_echo "alsa cups pulse x11" >&6; } 42715 fi 42716 42717 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 42719 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 42720 ALSA_NOT_NEEDED=yes 42721 PULSE_NOT_NEEDED=yes 42722 X11_NOT_NEEDED=yes 42723 FONTCONFIG_NOT_NEEDED=yes 42724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 42725 $as_echo "alsa pulse x11" >&6; } 42726 fi 42727 42728 if test "x$OPENJDK_TARGET_OS" = xbsd; then 42729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 42730 $as_echo_n "checking what is not needed on bsd?... " >&6; } 42731 ALSA_NOT_NEEDED=yes 42732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 42733 $as_echo "alsa" >&6; } 42734 fi 42735 42736 if test "x$OPENJDK" = "xfalse"; then 42737 FREETYPE_NOT_NEEDED=yes 42738 fi 42739 42740 if test "x$SUPPORT_HEADFUL" = xno; then 42741 X11_NOT_NEEDED=yes 42742 fi 42743 42744 # Deprecated and now ignored 42745 42746 # Check whether --enable-macosx-runtime-support was given. 42747 if test "${enable_macosx_runtime_support+set}" = set; then : 42748 enableval=$enable_macosx_runtime_support; 42749 fi 42750 42751 if test "x$enable_macosx_runtime_support" != x; then 42752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5 42753 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;} 42754 fi 42755 42756 42757 42758 42759 ############################################################################### 42760 # 42761 # Check for X Windows 42762 # 42763 42764 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 42765 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 42766 # --x-libraries for the sysroot, if that seems to be correct. 42767 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 42768 if test "x$SYSROOT" != "x"; then 42769 if test "x$x_includes" = xNONE; then 42770 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 42771 x_includes="$SYSROOT/usr/X11R6/include" 42772 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 42773 x_includes="$SYSROOT/usr/include" 42774 fi 42775 fi 42776 if test "x$x_libraries" = xNONE; then 42777 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 42778 x_libraries="$SYSROOT/usr/X11R6/lib" 42779 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 42780 x_libraries="$SYSROOT/usr/lib64" 42781 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 42782 x_libraries="$SYSROOT/usr/lib" 42783 fi 42784 fi 42785 fi 42786 fi 42787 42788 # Now let autoconf do it's magic 42789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 42790 $as_echo_n "checking for X... " >&6; } 42791 42792 42793 # Check whether --with-x was given. 42794 if test "${with_x+set}" = set; then : 42795 withval=$with_x; 42796 fi 42797 42798 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 42799 if test "x$with_x" = xno; then 42800 # The user explicitly disabled X. 42801 have_x=disabled 42802 else 42803 case $x_includes,$x_libraries in #( 42804 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 42805 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 42806 $as_echo_n "(cached) " >&6 42807 else 42808 # One or both of the vars are not set, and there is no cached value. 42809 ac_x_includes=no ac_x_libraries=no 42810 rm -f -r conftest.dir 42811 if mkdir conftest.dir; then 42812 cd conftest.dir 42813 cat >Imakefile <<'_ACEOF' 42814 incroot: 42815 @echo incroot='${INCROOT}' 42816 usrlibdir: 42817 @echo usrlibdir='${USRLIBDIR}' 42818 libdir: 42819 @echo libdir='${LIBDIR}' 42820 _ACEOF 42821 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 42822 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 42823 for ac_var in incroot usrlibdir libdir; do 42824 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 42825 done 42826 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 42827 for ac_extension in a so sl dylib la dll; do 42828 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 42829 test -f "$ac_im_libdir/libX11.$ac_extension"; then 42830 ac_im_usrlibdir=$ac_im_libdir; break 42831 fi 42832 done 42833 # Screen out bogus values from the imake configuration. They are 42834 # bogus both because they are the default anyway, and because 42835 # using them would break gcc on systems where it needs fixed includes. 42836 case $ac_im_incroot in 42837 /usr/include) ac_x_includes= ;; 42838 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 42839 esac 42840 case $ac_im_usrlibdir in 42841 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 42842 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 42843 esac 42844 fi 42845 cd .. 42846 rm -f -r conftest.dir 42847 fi 42848 42849 # Standard set of common directories for X headers. 42850 # Check X11 before X11Rn because it is often a symlink to the current release. 42851 ac_x_header_dirs=' 42852 /usr/X11/include 42853 /usr/X11R7/include 42854 /usr/X11R6/include 42855 /usr/X11R5/include 42856 /usr/X11R4/include 42857 42858 /usr/include/X11 42859 /usr/include/X11R7 42860 /usr/include/X11R6 42861 /usr/include/X11R5 42862 /usr/include/X11R4 42863 42864 /usr/local/X11/include 42865 /usr/local/X11R7/include 42866 /usr/local/X11R6/include 42867 /usr/local/X11R5/include 42868 /usr/local/X11R4/include 42869 42870 /usr/local/include/X11 42871 /usr/local/include/X11R7 42872 /usr/local/include/X11R6 42873 /usr/local/include/X11R5 42874 /usr/local/include/X11R4 42875 42876 /usr/X386/include 42877 /usr/x386/include 42878 /usr/XFree86/include/X11 42879 42880 /usr/include 42881 /usr/local/include 42882 /usr/unsupported/include 42883 /usr/athena/include 42884 /usr/local/x11r5/include 42885 /usr/lpp/Xamples/include 42886 42887 /usr/openwin/include 42888 /usr/openwin/share/include' 42889 42890 if test "$ac_x_includes" = no; then 42891 # Guess where to find include files, by looking for Xlib.h. 42892 # First, try using that file with no special directory specified. 42893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42894 /* end confdefs.h. */ 42895 #include <X11/Xlib.h> 42896 _ACEOF 42897 if ac_fn_cxx_try_cpp "$LINENO"; then : 42898 # We can compile using X headers with no special include directory. 42899 ac_x_includes= 42900 else 42901 for ac_dir in $ac_x_header_dirs; do 42902 if test -r "$ac_dir/X11/Xlib.h"; then 42903 ac_x_includes=$ac_dir 42904 break 42905 fi 42906 done 42907 fi 42908 rm -f conftest.err conftest.i conftest.$ac_ext 42909 fi # $ac_x_includes = no 42910 42911 if test "$ac_x_libraries" = no; then 42912 # Check for the libraries. 42913 # See if we find them without any special options. 42914 # Don't add to $LIBS permanently. 42915 ac_save_LIBS=$LIBS 42916 LIBS="-lX11 $LIBS" 42917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42918 /* end confdefs.h. */ 42919 #include <X11/Xlib.h> 42920 int 42921 main () 42922 { 42923 XrmInitialize () 42924 ; 42925 return 0; 42926 } 42927 _ACEOF 42928 if ac_fn_cxx_try_link "$LINENO"; then : 42929 LIBS=$ac_save_LIBS 42930 # We can link X programs with no special library path. 42931 ac_x_libraries= 42932 else 42933 LIBS=$ac_save_LIBS 42934 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 42935 do 42936 # Don't even attempt the hair of trying to link an X program! 42937 for ac_extension in a so sl dylib la dll; do 42938 if test -r "$ac_dir/libX11.$ac_extension"; then 42939 ac_x_libraries=$ac_dir 42940 break 2 42941 fi 42942 done 42943 done 42944 fi 42945 rm -f core conftest.err conftest.$ac_objext \ 42946 conftest$ac_exeext conftest.$ac_ext 42947 fi # $ac_x_libraries = no 42948 42949 case $ac_x_includes,$ac_x_libraries in #( 42950 no,* | *,no | *\'*) 42951 # Didn't find X, or a directory has "'" in its name. 42952 ac_cv_have_x="have_x=no";; #( 42953 *) 42954 # Record where we found X for the cache. 42955 ac_cv_have_x="have_x=yes\ 42956 ac_x_includes='$ac_x_includes'\ 42957 ac_x_libraries='$ac_x_libraries'" 42958 esac 42959 fi 42960 ;; #( 42961 *) have_x=yes;; 42962 esac 42963 eval "$ac_cv_have_x" 42964 fi # $with_x != no 42965 42966 if test "$have_x" != yes; then 42967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 42968 $as_echo "$have_x" >&6; } 42969 no_x=yes 42970 else 42971 # If each of the values was on the command line, it overrides each guess. 42972 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 42973 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 42974 # Update the cache value to reflect the command line values. 42975 ac_cv_have_x="have_x=yes\ 42976 ac_x_includes='$x_includes'\ 42977 ac_x_libraries='$x_libraries'" 42978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 42979 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 42980 fi 42981 42982 if test "$no_x" = yes; then 42983 # Not all programs may use this symbol, but it does not hurt to define it. 42984 42985 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 42986 42987 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 42988 else 42989 if test -n "$x_includes"; then 42990 X_CFLAGS="$X_CFLAGS -I$x_includes" 42991 fi 42992 42993 # It would also be nice to do this for all -L options, not just this one. 42994 if test -n "$x_libraries"; then 42995 X_LIBS="$X_LIBS -L$x_libraries" 42996 # For Solaris; some versions of Sun CC require a space after -R and 42997 # others require no space. Words are not sufficient . . . . 42998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 42999 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43000 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43001 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43002 ac_cxx_werror_flag=yes 43003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43004 /* end confdefs.h. */ 43005 43006 int 43007 main () 43008 { 43009 43010 ; 43011 return 0; 43012 } 43013 _ACEOF 43014 if ac_fn_cxx_try_link "$LINENO"; then : 43015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43016 $as_echo "no" >&6; } 43017 X_LIBS="$X_LIBS -R$x_libraries" 43018 else 43019 LIBS="$ac_xsave_LIBS -R $x_libraries" 43020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43021 /* end confdefs.h. */ 43022 43023 int 43024 main () 43025 { 43026 43027 ; 43028 return 0; 43029 } 43030 _ACEOF 43031 if ac_fn_cxx_try_link "$LINENO"; then : 43032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43033 $as_echo "yes" >&6; } 43034 X_LIBS="$X_LIBS -R $x_libraries" 43035 else 43036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43037 $as_echo "neither works" >&6; } 43038 fi 43039 rm -f core conftest.err conftest.$ac_objext \ 43040 conftest$ac_exeext conftest.$ac_ext 43041 fi 43042 rm -f core conftest.err conftest.$ac_objext \ 43043 conftest$ac_exeext conftest.$ac_ext 43044 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43045 LIBS=$ac_xsave_LIBS 43046 fi 43047 43048 # Check for system-dependent libraries X programs must link with. 43049 # Do this before checking for the system-independent R6 libraries 43050 # (-lICE), since we may need -lsocket or whatever for X linking. 43051 43052 if test "$ISC" = yes; then 43053 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43054 else 43055 # Martyn Johnson says this is needed for Ultrix, if the X 43056 # libraries were built with DECnet support. And Karl Berry says 43057 # the Alpha needs dnet_stub (dnet does not exist). 43058 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43060 /* end confdefs.h. */ 43061 43062 /* Override any GCC internal prototype to avoid an error. 43063 Use char because int might match the return type of a GCC 43064 builtin and then its argument prototype would still apply. */ 43065 #ifdef __cplusplus 43066 extern "C" 43067 #endif 43068 char XOpenDisplay (); 43069 int 43070 main () 43071 { 43072 return XOpenDisplay (); 43073 ; 43074 return 0; 43075 } 43076 _ACEOF 43077 if ac_fn_cxx_try_link "$LINENO"; then : 43078 43079 else 43080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43081 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43082 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43083 $as_echo_n "(cached) " >&6 43084 else 43085 ac_check_lib_save_LIBS=$LIBS 43086 LIBS="-ldnet $LIBS" 43087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43088 /* end confdefs.h. */ 43089 43090 /* Override any GCC internal prototype to avoid an error. 43091 Use char because int might match the return type of a GCC 43092 builtin and then its argument prototype would still apply. */ 43093 #ifdef __cplusplus 43094 extern "C" 43095 #endif 43096 char dnet_ntoa (); 43097 int 43098 main () 43099 { 43100 return dnet_ntoa (); 43101 ; 43102 return 0; 43103 } 43104 _ACEOF 43105 if ac_fn_cxx_try_link "$LINENO"; then : 43106 ac_cv_lib_dnet_dnet_ntoa=yes 43107 else 43108 ac_cv_lib_dnet_dnet_ntoa=no 43109 fi 43110 rm -f core conftest.err conftest.$ac_objext \ 43111 conftest$ac_exeext conftest.$ac_ext 43112 LIBS=$ac_check_lib_save_LIBS 43113 fi 43114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43115 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43116 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43117 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43118 fi 43119 43120 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43122 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43123 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43124 $as_echo_n "(cached) " >&6 43125 else 43126 ac_check_lib_save_LIBS=$LIBS 43127 LIBS="-ldnet_stub $LIBS" 43128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43129 /* end confdefs.h. */ 43130 43131 /* Override any GCC internal prototype to avoid an error. 43132 Use char because int might match the return type of a GCC 43133 builtin and then its argument prototype would still apply. */ 43134 #ifdef __cplusplus 43135 extern "C" 43136 #endif 43137 char dnet_ntoa (); 43138 int 43139 main () 43140 { 43141 return dnet_ntoa (); 43142 ; 43143 return 0; 43144 } 43145 _ACEOF 43146 if ac_fn_cxx_try_link "$LINENO"; then : 43147 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43148 else 43149 ac_cv_lib_dnet_stub_dnet_ntoa=no 43150 fi 43151 rm -f core conftest.err conftest.$ac_objext \ 43152 conftest$ac_exeext conftest.$ac_ext 43153 LIBS=$ac_check_lib_save_LIBS 43154 fi 43155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43156 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43157 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43158 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43159 fi 43160 43161 fi 43162 fi 43163 rm -f core conftest.err conftest.$ac_objext \ 43164 conftest$ac_exeext conftest.$ac_ext 43165 LIBS="$ac_xsave_LIBS" 43166 43167 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43168 # to get the SysV transport functions. 43169 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43170 # needs -lnsl. 43171 # The nsl library prevents programs from opening the X display 43172 # on Irix 5.2, according to T.E. Dickey. 43173 # The functions gethostbyname, getservbyname, and inet_addr are 43174 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43175 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43176 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43177 43178 fi 43179 43180 if test $ac_cv_func_gethostbyname = no; then 43181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43182 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43183 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43184 $as_echo_n "(cached) " >&6 43185 else 43186 ac_check_lib_save_LIBS=$LIBS 43187 LIBS="-lnsl $LIBS" 43188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43189 /* end confdefs.h. */ 43190 43191 /* Override any GCC internal prototype to avoid an error. 43192 Use char because int might match the return type of a GCC 43193 builtin and then its argument prototype would still apply. */ 43194 #ifdef __cplusplus 43195 extern "C" 43196 #endif 43197 char gethostbyname (); 43198 int 43199 main () 43200 { 43201 return gethostbyname (); 43202 ; 43203 return 0; 43204 } 43205 _ACEOF 43206 if ac_fn_cxx_try_link "$LINENO"; then : 43207 ac_cv_lib_nsl_gethostbyname=yes 43208 else 43209 ac_cv_lib_nsl_gethostbyname=no 43210 fi 43211 rm -f core conftest.err conftest.$ac_objext \ 43212 conftest$ac_exeext conftest.$ac_ext 43213 LIBS=$ac_check_lib_save_LIBS 43214 fi 43215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43216 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43217 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43218 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43219 fi 43220 43221 if test $ac_cv_lib_nsl_gethostbyname = no; then 43222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43223 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43224 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43225 $as_echo_n "(cached) " >&6 43226 else 43227 ac_check_lib_save_LIBS=$LIBS 43228 LIBS="-lbsd $LIBS" 43229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43230 /* end confdefs.h. */ 43231 43232 /* Override any GCC internal prototype to avoid an error. 43233 Use char because int might match the return type of a GCC 43234 builtin and then its argument prototype would still apply. */ 43235 #ifdef __cplusplus 43236 extern "C" 43237 #endif 43238 char gethostbyname (); 43239 int 43240 main () 43241 { 43242 return gethostbyname (); 43243 ; 43244 return 0; 43245 } 43246 _ACEOF 43247 if ac_fn_cxx_try_link "$LINENO"; then : 43248 ac_cv_lib_bsd_gethostbyname=yes 43249 else 43250 ac_cv_lib_bsd_gethostbyname=no 43251 fi 43252 rm -f core conftest.err conftest.$ac_objext \ 43253 conftest$ac_exeext conftest.$ac_ext 43254 LIBS=$ac_check_lib_save_LIBS 43255 fi 43256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43257 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43258 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43259 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43260 fi 43261 43262 fi 43263 fi 43264 43265 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43266 # socket/setsockopt and other routines are undefined under SCO ODT 43267 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43268 # on later versions), says Simon Leinen: it contains gethostby* 43269 # variants that don't use the name server (or something). -lsocket 43270 # must be given before -lnsl if both are needed. We assume that 43271 # if connect needs -lnsl, so does gethostbyname. 43272 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43273 if test "x$ac_cv_func_connect" = xyes; then : 43274 43275 fi 43276 43277 if test $ac_cv_func_connect = no; then 43278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43279 $as_echo_n "checking for connect in -lsocket... " >&6; } 43280 if ${ac_cv_lib_socket_connect+:} false; then : 43281 $as_echo_n "(cached) " >&6 43282 else 43283 ac_check_lib_save_LIBS=$LIBS 43284 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43286 /* end confdefs.h. */ 43287 43288 /* Override any GCC internal prototype to avoid an error. 43289 Use char because int might match the return type of a GCC 43290 builtin and then its argument prototype would still apply. */ 43291 #ifdef __cplusplus 43292 extern "C" 43293 #endif 43294 char connect (); 43295 int 43296 main () 43297 { 43298 return connect (); 43299 ; 43300 return 0; 43301 } 43302 _ACEOF 43303 if ac_fn_cxx_try_link "$LINENO"; then : 43304 ac_cv_lib_socket_connect=yes 43305 else 43306 ac_cv_lib_socket_connect=no 43307 fi 43308 rm -f core conftest.err conftest.$ac_objext \ 43309 conftest$ac_exeext conftest.$ac_ext 43310 LIBS=$ac_check_lib_save_LIBS 43311 fi 43312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43313 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43314 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43315 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43316 fi 43317 43318 fi 43319 43320 # Guillermo Gomez says -lposix is necessary on A/UX. 43321 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43322 if test "x$ac_cv_func_remove" = xyes; then : 43323 43324 fi 43325 43326 if test $ac_cv_func_remove = no; then 43327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43328 $as_echo_n "checking for remove in -lposix... " >&6; } 43329 if ${ac_cv_lib_posix_remove+:} false; then : 43330 $as_echo_n "(cached) " >&6 43331 else 43332 ac_check_lib_save_LIBS=$LIBS 43333 LIBS="-lposix $LIBS" 43334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43335 /* end confdefs.h. */ 43336 43337 /* Override any GCC internal prototype to avoid an error. 43338 Use char because int might match the return type of a GCC 43339 builtin and then its argument prototype would still apply. */ 43340 #ifdef __cplusplus 43341 extern "C" 43342 #endif 43343 char remove (); 43344 int 43345 main () 43346 { 43347 return remove (); 43348 ; 43349 return 0; 43350 } 43351 _ACEOF 43352 if ac_fn_cxx_try_link "$LINENO"; then : 43353 ac_cv_lib_posix_remove=yes 43354 else 43355 ac_cv_lib_posix_remove=no 43356 fi 43357 rm -f core conftest.err conftest.$ac_objext \ 43358 conftest$ac_exeext conftest.$ac_ext 43359 LIBS=$ac_check_lib_save_LIBS 43360 fi 43361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43362 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43363 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43365 fi 43366 43367 fi 43368 43369 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43370 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43371 if test "x$ac_cv_func_shmat" = xyes; then : 43372 43373 fi 43374 43375 if test $ac_cv_func_shmat = no; then 43376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43377 $as_echo_n "checking for shmat in -lipc... " >&6; } 43378 if ${ac_cv_lib_ipc_shmat+:} false; then : 43379 $as_echo_n "(cached) " >&6 43380 else 43381 ac_check_lib_save_LIBS=$LIBS 43382 LIBS="-lipc $LIBS" 43383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43384 /* end confdefs.h. */ 43385 43386 /* Override any GCC internal prototype to avoid an error. 43387 Use char because int might match the return type of a GCC 43388 builtin and then its argument prototype would still apply. */ 43389 #ifdef __cplusplus 43390 extern "C" 43391 #endif 43392 char shmat (); 43393 int 43394 main () 43395 { 43396 return shmat (); 43397 ; 43398 return 0; 43399 } 43400 _ACEOF 43401 if ac_fn_cxx_try_link "$LINENO"; then : 43402 ac_cv_lib_ipc_shmat=yes 43403 else 43404 ac_cv_lib_ipc_shmat=no 43405 fi 43406 rm -f core conftest.err conftest.$ac_objext \ 43407 conftest$ac_exeext conftest.$ac_ext 43408 LIBS=$ac_check_lib_save_LIBS 43409 fi 43410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43411 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43412 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43413 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43414 fi 43415 43416 fi 43417 fi 43418 43419 # Check for libraries that X11R6 Xt/Xaw programs need. 43420 ac_save_LDFLAGS=$LDFLAGS 43421 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43422 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43423 # check for ICE first), but we must link in the order -lSM -lICE or 43424 # we get undefined symbols. So assume we have SM if we have ICE. 43425 # These have to be linked with before -lX11, unlike the other 43426 # libraries we check for below, so use a different variable. 43427 # John Interrante, Karl Berry 43428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43429 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43430 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43431 $as_echo_n "(cached) " >&6 43432 else 43433 ac_check_lib_save_LIBS=$LIBS 43434 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43436 /* end confdefs.h. */ 43437 43438 /* Override any GCC internal prototype to avoid an error. 43439 Use char because int might match the return type of a GCC 43440 builtin and then its argument prototype would still apply. */ 43441 #ifdef __cplusplus 43442 extern "C" 43443 #endif 43444 char IceConnectionNumber (); 43445 int 43446 main () 43447 { 43448 return IceConnectionNumber (); 43449 ; 43450 return 0; 43451 } 43452 _ACEOF 43453 if ac_fn_cxx_try_link "$LINENO"; then : 43454 ac_cv_lib_ICE_IceConnectionNumber=yes 43455 else 43456 ac_cv_lib_ICE_IceConnectionNumber=no 43457 fi 43458 rm -f core conftest.err conftest.$ac_objext \ 43459 conftest$ac_exeext conftest.$ac_ext 43460 LIBS=$ac_check_lib_save_LIBS 43461 fi 43462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43463 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43464 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43465 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43466 fi 43467 43468 LDFLAGS=$ac_save_LDFLAGS 43469 43470 fi 43471 43472 43473 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43474 # this doesn't make sense so we remove it. 43475 if test "x$COMPILE_TYPE" = xcross; then 43476 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 43477 fi 43478 43479 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 43480 43481 # Print a helpful message on how to acquire the necessary build dependency. 43482 # x11 is the help tag: freetype, cups, pulse, alsa etc 43483 MISSING_DEPENDENCY=x11 43484 43485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43486 cygwin_help $MISSING_DEPENDENCY 43487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43488 msys_help $MISSING_DEPENDENCY 43489 else 43490 PKGHANDLER_COMMAND= 43491 43492 case $PKGHANDLER in 43493 apt-get) 43494 apt_help $MISSING_DEPENDENCY ;; 43495 yum) 43496 yum_help $MISSING_DEPENDENCY ;; 43497 port) 43498 port_help $MISSING_DEPENDENCY ;; 43499 pkgutil) 43500 pkgutil_help $MISSING_DEPENDENCY ;; 43501 pkgadd) 43502 pkgadd_help $MISSING_DEPENDENCY ;; 43503 esac 43504 43505 if test "x$PKGHANDLER_COMMAND" != x; then 43506 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43507 fi 43508 fi 43509 43510 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 43511 fi 43512 43513 43514 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43515 OPENWIN_HOME="/usr/openwin" 43516 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 43517 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43518 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 43519 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43520 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 43521 fi 43522 43523 # 43524 # Weird Sol10 something check...TODO change to try compile 43525 # 43526 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 43527 if test "`uname -r`" = "5.10"; then 43528 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 43529 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 43530 fi 43531 fi 43532 fi 43533 43534 ac_ext=c 43535 ac_cpp='$CPP $CPPFLAGS' 43536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43538 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43539 43540 OLD_CFLAGS="$CFLAGS" 43541 CFLAGS="$CFLAGS $X_CFLAGS" 43542 43543 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 43544 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 43545 do : 43546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43547 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 43548 # include <X11/Xlib.h> 43549 # include <X11/Xutil.h> 43550 43551 43552 " 43553 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43554 cat >>confdefs.h <<_ACEOF 43555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43556 _ACEOF 43557 X11_A_OK=yes 43558 else 43559 X11_A_OK=no; break 43560 fi 43561 43562 done 43563 43564 43565 CFLAGS="$OLD_CFLAGS" 43566 ac_ext=cpp 43567 ac_cpp='$CXXCPP $CPPFLAGS' 43568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43571 43572 43573 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 43574 43575 # Print a helpful message on how to acquire the necessary build dependency. 43576 # x11 is the help tag: freetype, cups, pulse, alsa etc 43577 MISSING_DEPENDENCY=x11 43578 43579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43580 cygwin_help $MISSING_DEPENDENCY 43581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43582 msys_help $MISSING_DEPENDENCY 43583 else 43584 PKGHANDLER_COMMAND= 43585 43586 case $PKGHANDLER in 43587 apt-get) 43588 apt_help $MISSING_DEPENDENCY ;; 43589 yum) 43590 yum_help $MISSING_DEPENDENCY ;; 43591 port) 43592 port_help $MISSING_DEPENDENCY ;; 43593 pkgutil) 43594 pkgutil_help $MISSING_DEPENDENCY ;; 43595 pkgadd) 43596 pkgadd_help $MISSING_DEPENDENCY ;; 43597 esac 43598 43599 if test "x$PKGHANDLER_COMMAND" != x; then 43600 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43601 fi 43602 fi 43603 43604 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 43605 fi 43606 43607 43608 43609 43610 43611 43612 ############################################################################### 43613 # 43614 # The common unix printing system cups is used to print from java. 43615 # 43616 43617 # Check whether --with-cups was given. 43618 if test "${with_cups+set}" = set; then : 43619 withval=$with_cups; 43620 fi 43621 43622 43623 # Check whether --with-cups-include was given. 43624 if test "${with_cups_include+set}" = set; then : 43625 withval=$with_cups_include; 43626 fi 43627 43628 43629 if test "x$CUPS_NOT_NEEDED" = xyes; then 43630 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 43631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 43632 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 43633 fi 43634 CUPS_CFLAGS= 43635 else 43636 CUPS_FOUND=no 43637 43638 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 43639 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 43640 fi 43641 43642 if test "x${with_cups}" != x; then 43643 CUPS_CFLAGS="-I${with_cups}/include" 43644 CUPS_FOUND=yes 43645 fi 43646 if test "x${with_cups_include}" != x; then 43647 CUPS_CFLAGS="-I${with_cups_include}" 43648 CUPS_FOUND=yes 43649 fi 43650 if test "x$CUPS_FOUND" = xno; then 43651 43652 43653 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43654 # Source the builddeps file again, to make sure it uses the latest variables! 43655 . $builddepsfile 43656 # Look for a target and build machine specific resource! 43657 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43658 if test "x$resource" = x; then 43659 # Ok, lets instead look for a target specific resource 43660 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 43661 fi 43662 if test "x$resource" = x; then 43663 # Ok, lets instead look for a build specific resource 43664 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 43665 fi 43666 if test "x$resource" = x; then 43667 # Ok, lets instead look for a generic resource 43668 # (The cups comes from M4 and not the shell, thus no need for eval here.) 43669 resource=${builddep_cups} 43670 fi 43671 if test "x$resource" != x; then 43672 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 43673 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 43674 # If the resource in the builddeps.conf file is an existing directory, 43675 # for example /java/linux/cups 43676 if test -d ${resource}; then 43677 depdir=${resource} 43678 else 43679 43680 # cups is for example mymodule 43681 # $resource is for example libs/general/libmymod_1_2_3.zip 43682 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43683 # $with_builddeps_dir is for example /localhome/builddeps 43684 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43685 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43686 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43687 filename=`basename $resource` 43688 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43689 filebase=${filename%%.*} 43690 extension=${filename#*.} 43691 installdir=$with_builddeps_dir/$filebase 43692 if test ! -f $installdir/$filename.unpacked; then 43693 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 43694 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43695 if test ! -d $installdir; then 43696 mkdir -p $installdir 43697 fi 43698 if test ! -d $installdir; then 43699 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43700 fi 43701 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 43702 touch $tmpfile 43703 if test ! -f $tmpfile; then 43704 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43705 fi 43706 43707 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43708 # $tmpfile is the local file name for the downloaded file. 43709 VALID_TOOL=no 43710 if test "x$BDEPS_FTP" = xwget; then 43711 VALID_TOOL=yes 43712 wget -O $tmpfile $with_builddeps_server/$resource 43713 fi 43714 if test "x$BDEPS_FTP" = xlftp; then 43715 VALID_TOOL=yes 43716 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43717 fi 43718 if test "x$BDEPS_FTP" = xftp; then 43719 VALID_TOOL=yes 43720 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43721 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43722 FTPUSERPWD=${FTPSERVER%%@*} 43723 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43724 FTPUSER=${userpwd%%:*} 43725 FTPPWD=${userpwd#*@} 43726 FTPSERVER=${FTPSERVER#*@} 43727 else 43728 FTPUSER=ftp 43729 FTPPWD=ftp 43730 fi 43731 # the "pass" command does not work on some 43732 # ftp clients (read ftp.exe) but if it works, 43733 # passive mode is better! 43734 ( \ 43735 echo "user $FTPUSER $FTPPWD" ; \ 43736 echo "pass" ; \ 43737 echo "bin" ; \ 43738 echo "get $FTPPATH $tmpfile" ; \ 43739 ) | ftp -in $FTPSERVER 43740 fi 43741 if test "x$VALID_TOOL" != xyes; then 43742 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43743 fi 43744 43745 mv $tmpfile $installdir/$filename 43746 if test ! -s $installdir/$filename; then 43747 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43748 fi 43749 case "$extension" in 43750 zip) echo "Unzipping $installdir/$filename..." 43751 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43752 ;; 43753 tar.gz) echo "Untaring $installdir/$filename..." 43754 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43755 ;; 43756 tgz) echo "Untaring $installdir/$filename..." 43757 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43758 ;; 43759 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43760 ;; 43761 esac 43762 fi 43763 if test -f $installdir/$filename.unpacked; then 43764 depdir=$installdir 43765 fi 43766 43767 fi 43768 # Source the builddeps file again, because in the previous command, the depdir 43769 # was updated to point at the current build dependency install directory. 43770 . $builddepsfile 43771 # Now extract variables from the builddeps.conf files. 43772 theroot=${builddep_cups_ROOT} 43773 thecflags=${builddep_cups_CFLAGS} 43774 thelibs=${builddep_cups_LIBS} 43775 if test "x$depdir" = x; then 43776 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 43777 fi 43778 CUPS=$depdir 43779 if test "x$theroot" != x; then 43780 CUPS="$theroot" 43781 fi 43782 if test "x$thecflags" != x; then 43783 CUPS_CFLAGS="$thecflags" 43784 fi 43785 if test "x$thelibs" != x; then 43786 CUPS_LIBS="$thelibs" 43787 fi 43788 CUPS_FOUND=yes 43789 43790 fi 43791 43792 fi 43793 43794 fi 43795 if test "x$CUPS_FOUND" = xno; then 43796 # Are the cups headers installed in the default /usr/include location? 43797 for ac_header in cups/cups.h cups/ppd.h 43798 do : 43799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43800 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 43801 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43802 cat >>confdefs.h <<_ACEOF 43803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43804 _ACEOF 43805 43806 CUPS_FOUND=yes 43807 CUPS_CFLAGS= 43808 DEFAULT_CUPS=yes 43809 43810 43811 fi 43812 43813 done 43814 43815 fi 43816 if test "x$CUPS_FOUND" = xno; then 43817 # Getting nervous now? Lets poke around for standard Solaris third-party 43818 # package installation locations. 43819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 43820 $as_echo_n "checking for cups headers... " >&6; } 43821 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 43822 # An SFW package seems to be installed! 43823 CUPS_FOUND=yes 43824 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 43825 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 43826 # A CSW package seems to be installed! 43827 CUPS_FOUND=yes 43828 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 43829 fi 43830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 43831 $as_echo "$CUPS_FOUND" >&6; } 43832 fi 43833 if test "x$CUPS_FOUND" = xno; then 43834 43835 # Print a helpful message on how to acquire the necessary build dependency. 43836 # cups is the help tag: freetype, cups, pulse, alsa etc 43837 MISSING_DEPENDENCY=cups 43838 43839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43840 cygwin_help $MISSING_DEPENDENCY 43841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43842 msys_help $MISSING_DEPENDENCY 43843 else 43844 PKGHANDLER_COMMAND= 43845 43846 case $PKGHANDLER in 43847 apt-get) 43848 apt_help $MISSING_DEPENDENCY ;; 43849 yum) 43850 yum_help $MISSING_DEPENDENCY ;; 43851 port) 43852 port_help $MISSING_DEPENDENCY ;; 43853 pkgutil) 43854 pkgutil_help $MISSING_DEPENDENCY ;; 43855 pkgadd) 43856 pkgadd_help $MISSING_DEPENDENCY ;; 43857 esac 43858 43859 if test "x$PKGHANDLER_COMMAND" != x; then 43860 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43861 fi 43862 fi 43863 43864 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 43865 fi 43866 fi 43867 43868 43869 43870 43871 43872 43873 ############################################################################### 43874 # 43875 # The ubiquitous freetype library is used to render fonts. 43876 # 43877 43878 # Check whether --with-freetype was given. 43879 if test "${with_freetype+set}" = set; then : 43880 withval=$with_freetype; 43881 fi 43882 43883 43884 # Check whether --with-freetype-include was given. 43885 if test "${with_freetype_include+set}" = set; then : 43886 withval=$with_freetype_include; 43887 fi 43888 43889 43890 # Check whether --with-freetype-lib was given. 43891 if test "${with_freetype_lib+set}" = set; then : 43892 withval=$with_freetype_lib; 43893 fi 43894 43895 43896 # Check whether --with-freetype-src was given. 43897 if test "${with_freetype_src+set}" = set; then : 43898 withval=$with_freetype_src; 43899 fi 43900 43901 # Check whether --enable-freetype-bundling was given. 43902 if test "${enable_freetype_bundling+set}" = set; then : 43903 enableval=$enable_freetype_bundling; 43904 fi 43905 43906 43907 FREETYPE_CFLAGS= 43908 FREETYPE_LIBS= 43909 FREETYPE_BUNDLE_LIB_PATH= 43910 43911 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 43912 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x || test "x$with_freetype_src" != x; then 43913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 43914 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 43915 fi 43916 if test "x$enable_freetype_bundling" != x; then 43917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 43918 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 43919 fi 43920 else 43921 # freetype is needed to build; go get it! 43922 43923 BUNDLE_FREETYPE="$enable_freetype_bundling" 43924 43925 if test "x$with_freetype_src" != x; then 43926 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43927 # Try to build freetype if --with-freetype-src was given on Windows 43928 43929 FREETYPE_SRC_PATH="$with_freetype_src" 43930 BUILD_FREETYPE=yes 43931 43932 # Check if the freetype sources are acessible.. 43933 if ! test -d $FREETYPE_SRC_PATH; then 43934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 43935 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 43936 BUILD_FREETYPE=no 43937 fi 43938 # ..and contain a vc2010 project file 43939 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 43940 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 43941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 43942 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 43943 BUILD_FREETYPE=no 43944 fi 43945 # Now check if configure found a version of 'msbuild.exe' 43946 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 43947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 43948 $as_echo "$as_me: WARNING: Can't find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 43949 BUILD_FREETYPE=no 43950 fi 43951 43952 # Ready to go.. 43953 if test "x$BUILD_FREETYPE" = xyes; then 43954 43955 # msbuild requires trailing slashes for output directories 43956 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 43957 freetype_lib_path_unix="$freetype_lib_path" 43958 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 43959 43960 unix_path="$vcxproj_path" 43961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43962 windows_path=`$CYGPATH -m "$unix_path"` 43963 vcxproj_path="$windows_path" 43964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43965 windows_path=`cmd //c echo $unix_path` 43966 vcxproj_path="$windows_path" 43967 fi 43968 43969 43970 unix_path="$freetype_lib_path" 43971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43972 windows_path=`$CYGPATH -m "$unix_path"` 43973 freetype_lib_path="$windows_path" 43974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43975 windows_path=`cmd //c echo $unix_path` 43976 freetype_lib_path="$windows_path" 43977 fi 43978 43979 43980 unix_path="$freetype_obj_path" 43981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43982 windows_path=`$CYGPATH -m "$unix_path"` 43983 freetype_obj_path="$windows_path" 43984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43985 windows_path=`cmd //c echo $unix_path` 43986 freetype_obj_path="$windows_path" 43987 fi 43988 43989 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43990 freetype_platform=x64 43991 else 43992 freetype_platform=win32 43993 fi 43994 43995 # The original freetype project file is for VS 2010 (i.e. 'v100'), 43996 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 43997 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 43998 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 43999 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44000 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44001 44002 # First we try to build the freetype.dll 44003 $ECHO -e "@echo off\n"\ 44004 "$MSBUILD $vcxproj_path "\ 44005 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44006 "/p:Configuration=\"Release Multithreaded\" "\ 44007 "/p:Platform=$freetype_platform "\ 44008 "/p:ConfigurationType=DynamicLibrary "\ 44009 "/p:TargetName=freetype "\ 44010 "/p:OutDir=\"$freetype_lib_path\" "\ 44011 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44012 cmd /c freetype.bat 44013 44014 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44015 # If that succeeds we also build freetype.lib 44016 $ECHO -e "@echo off\n"\ 44017 "$MSBUILD $vcxproj_path "\ 44018 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44019 "/p:Configuration=\"Release Multithreaded\" "\ 44020 "/p:Platform=$freetype_platform "\ 44021 "/p:ConfigurationType=StaticLibrary "\ 44022 "/p:TargetName=freetype "\ 44023 "/p:OutDir=\"$freetype_lib_path\" "\ 44024 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44025 cmd /c freetype.bat 44026 44027 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44028 # Once we build both, lib and dll, set freetype lib and include path appropriately 44029 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44030 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44031 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44032 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44033 else 44034 BUILD_FREETYPE=no 44035 fi 44036 else 44037 BUILD_FREETYPE=no 44038 fi 44039 fi 44040 44041 if test "x$BUILD_FREETYPE" = xyes; then 44042 # Okay, we built it. Check that it works. 44043 44044 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44045 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44046 METHOD="--with-freetype-src" 44047 44048 # First check if the files exists. 44049 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44050 # We found an arbitrary include file. That's a good sign. 44051 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44052 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44053 FOUND_FREETYPE=yes 44054 44055 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44056 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44057 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44058 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44059 FOUND_FREETYPE=no 44060 else 44061 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44062 # On Windows, we will need both .lib and .dll file. 44063 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44064 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44065 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44066 FOUND_FREETYPE=no 44067 fi 44068 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44069 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44070 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44071 fi 44072 fi 44073 fi 44074 44075 if test "x$FOUND_FREETYPE" = xyes; then 44076 44077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44078 44079 # Input might be given as Windows format, start by converting to 44080 # unix format. 44081 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44082 new_path=`$CYGPATH -u "$path"` 44083 44084 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44085 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44086 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44087 # "foo.exe" is OK but "foo" is an error. 44088 # 44089 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44090 # It is also a way to make sure we got the proper file name for the real test later on. 44091 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44092 if test "x$test_shortpath" = x; then 44093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44094 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44095 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44096 fi 44097 44098 # Call helper function which possibly converts this using DOS-style short mode. 44099 # If so, the updated path is stored in $new_path. 44100 44101 input_path="$new_path" 44102 # Check if we need to convert this using DOS-style short mode. If the path 44103 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44104 # take no chances and rewrite it. 44105 # Note: m4 eats our [], so we need to use [ and ] instead. 44106 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44107 if test "x$has_forbidden_chars" != x; then 44108 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44109 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44110 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44111 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44112 # Going to short mode and back again did indeed matter. Since short mode is 44113 # case insensitive, let's make it lowercase to improve readability. 44114 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44115 # Now convert it back to Unix-style (cygpath) 44116 input_path=`$CYGPATH -u "$shortmode_path"` 44117 new_path="$input_path" 44118 fi 44119 fi 44120 44121 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44122 if test "x$test_cygdrive_prefix" = x; then 44123 # As a simple fix, exclude /usr/bin since it's not a real path. 44124 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44125 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44126 # a path prefixed by /cygdrive for fixpath to work. 44127 new_path="$CYGWIN_ROOT_PATH$input_path" 44128 fi 44129 fi 44130 44131 44132 if test "x$path" != "x$new_path"; then 44133 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44134 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44135 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44136 fi 44137 44138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44139 44140 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44141 has_colon=`$ECHO $path | $GREP ^.:` 44142 new_path="$path" 44143 if test "x$has_colon" = x; then 44144 # Not in mixed or Windows style, start by that. 44145 new_path=`cmd //c echo $path` 44146 fi 44147 44148 44149 input_path="$new_path" 44150 # Check if we need to convert this using DOS-style short mode. If the path 44151 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44152 # take no chances and rewrite it. 44153 # Note: m4 eats our [], so we need to use [ and ] instead. 44154 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44155 if test "x$has_forbidden_chars" != x; then 44156 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44157 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44158 fi 44159 44160 44161 windows_path="$new_path" 44162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44163 unix_path=`$CYGPATH -u "$windows_path"` 44164 new_path="$unix_path" 44165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44166 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44167 new_path="$unix_path" 44168 fi 44169 44170 if test "x$path" != "x$new_path"; then 44171 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44172 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44173 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44174 fi 44175 44176 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44177 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44178 44179 else 44180 # We're on a posix platform. Hooray! :) 44181 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44182 has_space=`$ECHO "$path" | $GREP " "` 44183 if test "x$has_space" != x; then 44184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44185 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44186 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44187 fi 44188 44189 # Use eval to expand a potential ~ 44190 eval path="$path" 44191 if test ! -f "$path" && test ! -d "$path"; then 44192 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44193 fi 44194 44195 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44196 fi 44197 44198 44199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44200 44201 # Input might be given as Windows format, start by converting to 44202 # unix format. 44203 path="$POTENTIAL_FREETYPE_LIB_PATH" 44204 new_path=`$CYGPATH -u "$path"` 44205 44206 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44207 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44208 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44209 # "foo.exe" is OK but "foo" is an error. 44210 # 44211 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44212 # It is also a way to make sure we got the proper file name for the real test later on. 44213 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44214 if test "x$test_shortpath" = x; then 44215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44216 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44217 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44218 fi 44219 44220 # Call helper function which possibly converts this using DOS-style short mode. 44221 # If so, the updated path is stored in $new_path. 44222 44223 input_path="$new_path" 44224 # Check if we need to convert this using DOS-style short mode. If the path 44225 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44226 # take no chances and rewrite it. 44227 # Note: m4 eats our [], so we need to use [ and ] instead. 44228 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44229 if test "x$has_forbidden_chars" != x; then 44230 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44231 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44232 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44233 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44234 # Going to short mode and back again did indeed matter. Since short mode is 44235 # case insensitive, let's make it lowercase to improve readability. 44236 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44237 # Now convert it back to Unix-style (cygpath) 44238 input_path=`$CYGPATH -u "$shortmode_path"` 44239 new_path="$input_path" 44240 fi 44241 fi 44242 44243 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44244 if test "x$test_cygdrive_prefix" = x; then 44245 # As a simple fix, exclude /usr/bin since it's not a real path. 44246 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44247 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44248 # a path prefixed by /cygdrive for fixpath to work. 44249 new_path="$CYGWIN_ROOT_PATH$input_path" 44250 fi 44251 fi 44252 44253 44254 if test "x$path" != "x$new_path"; then 44255 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44256 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44257 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44258 fi 44259 44260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44261 44262 path="$POTENTIAL_FREETYPE_LIB_PATH" 44263 has_colon=`$ECHO $path | $GREP ^.:` 44264 new_path="$path" 44265 if test "x$has_colon" = x; then 44266 # Not in mixed or Windows style, start by that. 44267 new_path=`cmd //c echo $path` 44268 fi 44269 44270 44271 input_path="$new_path" 44272 # Check if we need to convert this using DOS-style short mode. If the path 44273 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44274 # take no chances and rewrite it. 44275 # Note: m4 eats our [], so we need to use [ and ] instead. 44276 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44277 if test "x$has_forbidden_chars" != x; then 44278 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44279 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44280 fi 44281 44282 44283 windows_path="$new_path" 44284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44285 unix_path=`$CYGPATH -u "$windows_path"` 44286 new_path="$unix_path" 44287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44288 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44289 new_path="$unix_path" 44290 fi 44291 44292 if test "x$path" != "x$new_path"; then 44293 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44295 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44296 fi 44297 44298 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44299 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44300 44301 else 44302 # We're on a posix platform. Hooray! :) 44303 path="$POTENTIAL_FREETYPE_LIB_PATH" 44304 has_space=`$ECHO "$path" | $GREP " "` 44305 if test "x$has_space" != x; then 44306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44307 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44308 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44309 fi 44310 44311 # Use eval to expand a potential ~ 44312 eval path="$path" 44313 if test ! -f "$path" && test ! -d "$path"; then 44314 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44315 fi 44316 44317 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44318 fi 44319 44320 44321 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44323 $as_echo_n "checking for freetype includes... " >&6; } 44324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44325 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44326 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44328 $as_echo_n "checking for freetype libraries... " >&6; } 44329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44330 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44331 fi 44332 44333 if test "x$FOUND_FREETYPE" != xyes; then 44334 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44335 fi 44336 else 44337 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44338 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44339 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44340 fi 44341 else 44342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44343 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44344 fi 44345 fi 44346 44347 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44348 # User has specified settings 44349 44350 if test "x$BUNDLE_FREETYPE" = x; then 44351 # If not specified, default is to bundle freetype 44352 BUNDLE_FREETYPE=yes 44353 fi 44354 44355 if test "x$with_freetype" != x; then 44356 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44357 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44358 fi 44359 44360 # Allow --with-freetype-lib and --with-freetype-include to override 44361 if test "x$with_freetype_include" != x; then 44362 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44363 fi 44364 if test "x$with_freetype_lib" != x; then 44365 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44366 fi 44367 44368 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44369 # Okay, we got it. Check that it works. 44370 44371 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44372 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44373 METHOD="--with-freetype" 44374 44375 # First check if the files exists. 44376 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44377 # We found an arbitrary include file. That's a good sign. 44378 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44379 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44380 FOUND_FREETYPE=yes 44381 44382 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44383 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44384 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44385 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44386 FOUND_FREETYPE=no 44387 else 44388 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44389 # On Windows, we will need both .lib and .dll file. 44390 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44391 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44392 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44393 FOUND_FREETYPE=no 44394 fi 44395 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44396 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44397 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44398 fi 44399 fi 44400 fi 44401 44402 if test "x$FOUND_FREETYPE" = xyes; then 44403 44404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44405 44406 # Input might be given as Windows format, start by converting to 44407 # unix format. 44408 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44409 new_path=`$CYGPATH -u "$path"` 44410 44411 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44412 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44413 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44414 # "foo.exe" is OK but "foo" is an error. 44415 # 44416 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44417 # It is also a way to make sure we got the proper file name for the real test later on. 44418 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44419 if test "x$test_shortpath" = x; then 44420 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44421 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44422 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44423 fi 44424 44425 # Call helper function which possibly converts this using DOS-style short mode. 44426 # If so, the updated path is stored in $new_path. 44427 44428 input_path="$new_path" 44429 # Check if we need to convert this using DOS-style short mode. If the path 44430 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44431 # take no chances and rewrite it. 44432 # Note: m4 eats our [], so we need to use [ and ] instead. 44433 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44434 if test "x$has_forbidden_chars" != x; then 44435 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44436 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44437 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44438 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44439 # Going to short mode and back again did indeed matter. Since short mode is 44440 # case insensitive, let's make it lowercase to improve readability. 44441 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44442 # Now convert it back to Unix-style (cygpath) 44443 input_path=`$CYGPATH -u "$shortmode_path"` 44444 new_path="$input_path" 44445 fi 44446 fi 44447 44448 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44449 if test "x$test_cygdrive_prefix" = x; then 44450 # As a simple fix, exclude /usr/bin since it's not a real path. 44451 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44452 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44453 # a path prefixed by /cygdrive for fixpath to work. 44454 new_path="$CYGWIN_ROOT_PATH$input_path" 44455 fi 44456 fi 44457 44458 44459 if test "x$path" != "x$new_path"; then 44460 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44461 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44462 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44463 fi 44464 44465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44466 44467 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44468 has_colon=`$ECHO $path | $GREP ^.:` 44469 new_path="$path" 44470 if test "x$has_colon" = x; then 44471 # Not in mixed or Windows style, start by that. 44472 new_path=`cmd //c echo $path` 44473 fi 44474 44475 44476 input_path="$new_path" 44477 # Check if we need to convert this using DOS-style short mode. If the path 44478 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44479 # take no chances and rewrite it. 44480 # Note: m4 eats our [], so we need to use [ and ] instead. 44481 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44482 if test "x$has_forbidden_chars" != x; then 44483 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44484 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44485 fi 44486 44487 44488 windows_path="$new_path" 44489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44490 unix_path=`$CYGPATH -u "$windows_path"` 44491 new_path="$unix_path" 44492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44493 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44494 new_path="$unix_path" 44495 fi 44496 44497 if test "x$path" != "x$new_path"; then 44498 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44499 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44500 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44501 fi 44502 44503 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44504 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44505 44506 else 44507 # We're on a posix platform. Hooray! :) 44508 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44509 has_space=`$ECHO "$path" | $GREP " "` 44510 if test "x$has_space" != x; then 44511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44512 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44513 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44514 fi 44515 44516 # Use eval to expand a potential ~ 44517 eval path="$path" 44518 if test ! -f "$path" && test ! -d "$path"; then 44519 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44520 fi 44521 44522 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44523 fi 44524 44525 44526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44527 44528 # Input might be given as Windows format, start by converting to 44529 # unix format. 44530 path="$POTENTIAL_FREETYPE_LIB_PATH" 44531 new_path=`$CYGPATH -u "$path"` 44532 44533 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44534 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44535 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44536 # "foo.exe" is OK but "foo" is an error. 44537 # 44538 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44539 # It is also a way to make sure we got the proper file name for the real test later on. 44540 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44541 if test "x$test_shortpath" = x; then 44542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44543 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44544 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44545 fi 44546 44547 # Call helper function which possibly converts this using DOS-style short mode. 44548 # If so, the updated path is stored in $new_path. 44549 44550 input_path="$new_path" 44551 # Check if we need to convert this using DOS-style short mode. If the path 44552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44553 # take no chances and rewrite it. 44554 # Note: m4 eats our [], so we need to use [ and ] instead. 44555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44556 if test "x$has_forbidden_chars" != x; then 44557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44558 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44559 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44560 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44561 # Going to short mode and back again did indeed matter. Since short mode is 44562 # case insensitive, let's make it lowercase to improve readability. 44563 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44564 # Now convert it back to Unix-style (cygpath) 44565 input_path=`$CYGPATH -u "$shortmode_path"` 44566 new_path="$input_path" 44567 fi 44568 fi 44569 44570 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44571 if test "x$test_cygdrive_prefix" = x; then 44572 # As a simple fix, exclude /usr/bin since it's not a real path. 44573 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44574 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44575 # a path prefixed by /cygdrive for fixpath to work. 44576 new_path="$CYGWIN_ROOT_PATH$input_path" 44577 fi 44578 fi 44579 44580 44581 if test "x$path" != "x$new_path"; then 44582 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44584 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44585 fi 44586 44587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44588 44589 path="$POTENTIAL_FREETYPE_LIB_PATH" 44590 has_colon=`$ECHO $path | $GREP ^.:` 44591 new_path="$path" 44592 if test "x$has_colon" = x; then 44593 # Not in mixed or Windows style, start by that. 44594 new_path=`cmd //c echo $path` 44595 fi 44596 44597 44598 input_path="$new_path" 44599 # Check if we need to convert this using DOS-style short mode. If the path 44600 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44601 # take no chances and rewrite it. 44602 # Note: m4 eats our [], so we need to use [ and ] instead. 44603 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44604 if test "x$has_forbidden_chars" != x; then 44605 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44606 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44607 fi 44608 44609 44610 windows_path="$new_path" 44611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44612 unix_path=`$CYGPATH -u "$windows_path"` 44613 new_path="$unix_path" 44614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44616 new_path="$unix_path" 44617 fi 44618 44619 if test "x$path" != "x$new_path"; then 44620 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44621 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44622 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44623 fi 44624 44625 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44626 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44627 44628 else 44629 # We're on a posix platform. Hooray! :) 44630 path="$POTENTIAL_FREETYPE_LIB_PATH" 44631 has_space=`$ECHO "$path" | $GREP " "` 44632 if test "x$has_space" != x; then 44633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44634 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44635 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44636 fi 44637 44638 # Use eval to expand a potential ~ 44639 eval path="$path" 44640 if test ! -f "$path" && test ! -d "$path"; then 44641 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44642 fi 44643 44644 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44645 fi 44646 44647 44648 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44650 $as_echo_n "checking for freetype includes... " >&6; } 44651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44652 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44653 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44655 $as_echo_n "checking for freetype libraries... " >&6; } 44656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44657 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44658 fi 44659 44660 if test "x$FOUND_FREETYPE" != xyes; then 44661 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 44662 fi 44663 else 44664 # User specified only one of lib or include. This is an error. 44665 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 44666 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 44667 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 44668 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44669 else 44670 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 44671 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 44672 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44673 fi 44674 fi 44675 else 44676 # User did not specify settings, but we need freetype. Try to locate it. 44677 44678 if test "x$BUNDLE_FREETYPE" = x; then 44679 # If not specified, default is to bundle freetype only on windows 44680 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44681 BUNDLE_FREETYPE=yes 44682 else 44683 BUNDLE_FREETYPE=no 44684 fi 44685 fi 44686 44687 if test "x$FOUND_FREETYPE" != xyes; then 44688 # Check builddeps 44689 44690 44691 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44692 # Source the builddeps file again, to make sure it uses the latest variables! 44693 . $builddepsfile 44694 # Look for a target and build machine specific resource! 44695 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44696 if test "x$resource" = x; then 44697 # Ok, lets instead look for a target specific resource 44698 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 44699 fi 44700 if test "x$resource" = x; then 44701 # Ok, lets instead look for a build specific resource 44702 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 44703 fi 44704 if test "x$resource" = x; then 44705 # Ok, lets instead look for a generic resource 44706 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 44707 resource=${builddep_freetype2} 44708 fi 44709 if test "x$resource" != x; then 44710 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 44711 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 44712 # If the resource in the builddeps.conf file is an existing directory, 44713 # for example /java/linux/cups 44714 if test -d ${resource}; then 44715 depdir=${resource} 44716 else 44717 44718 # freetype2 is for example mymodule 44719 # $resource is for example libs/general/libmymod_1_2_3.zip 44720 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44721 # $with_builddeps_dir is for example /localhome/builddeps 44722 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44723 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44724 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44725 filename=`basename $resource` 44726 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44727 filebase=${filename%%.*} 44728 extension=${filename#*.} 44729 installdir=$with_builddeps_dir/$filebase 44730 if test ! -f $installdir/$filename.unpacked; then 44731 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 44732 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44733 if test ! -d $installdir; then 44734 mkdir -p $installdir 44735 fi 44736 if test ! -d $installdir; then 44737 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44738 fi 44739 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 44740 touch $tmpfile 44741 if test ! -f $tmpfile; then 44742 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44743 fi 44744 44745 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44746 # $tmpfile is the local file name for the downloaded file. 44747 VALID_TOOL=no 44748 if test "x$BDEPS_FTP" = xwget; then 44749 VALID_TOOL=yes 44750 wget -O $tmpfile $with_builddeps_server/$resource 44751 fi 44752 if test "x$BDEPS_FTP" = xlftp; then 44753 VALID_TOOL=yes 44754 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44755 fi 44756 if test "x$BDEPS_FTP" = xftp; then 44757 VALID_TOOL=yes 44758 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44759 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44760 FTPUSERPWD=${FTPSERVER%%@*} 44761 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44762 FTPUSER=${userpwd%%:*} 44763 FTPPWD=${userpwd#*@} 44764 FTPSERVER=${FTPSERVER#*@} 44765 else 44766 FTPUSER=ftp 44767 FTPPWD=ftp 44768 fi 44769 # the "pass" command does not work on some 44770 # ftp clients (read ftp.exe) but if it works, 44771 # passive mode is better! 44772 ( \ 44773 echo "user $FTPUSER $FTPPWD" ; \ 44774 echo "pass" ; \ 44775 echo "bin" ; \ 44776 echo "get $FTPPATH $tmpfile" ; \ 44777 ) | ftp -in $FTPSERVER 44778 fi 44779 if test "x$VALID_TOOL" != xyes; then 44780 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44781 fi 44782 44783 mv $tmpfile $installdir/$filename 44784 if test ! -s $installdir/$filename; then 44785 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44786 fi 44787 case "$extension" in 44788 zip) echo "Unzipping $installdir/$filename..." 44789 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44790 ;; 44791 tar.gz) echo "Untaring $installdir/$filename..." 44792 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44793 ;; 44794 tgz) echo "Untaring $installdir/$filename..." 44795 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44796 ;; 44797 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44798 ;; 44799 esac 44800 fi 44801 if test -f $installdir/$filename.unpacked; then 44802 depdir=$installdir 44803 fi 44804 44805 fi 44806 # Source the builddeps file again, because in the previous command, the depdir 44807 # was updated to point at the current build dependency install directory. 44808 . $builddepsfile 44809 # Now extract variables from the builddeps.conf files. 44810 theroot=${builddep_freetype2_ROOT} 44811 thecflags=${builddep_freetype2_CFLAGS} 44812 thelibs=${builddep_freetype2_LIBS} 44813 if test "x$depdir" = x; then 44814 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 44815 fi 44816 FREETYPE=$depdir 44817 if test "x$theroot" != x; then 44818 FREETYPE="$theroot" 44819 fi 44820 if test "x$thecflags" != x; then 44821 FREETYPE_CFLAGS="$thecflags" 44822 fi 44823 if test "x$thelibs" != x; then 44824 FREETYPE_LIBS="$thelibs" 44825 fi 44826 FOUND_FREETYPE=yes 44827 else FOUND_FREETYPE=no 44828 44829 fi 44830 else FOUND_FREETYPE=no 44831 44832 fi 44833 44834 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 44835 if test "x$FOUND_FREETYPE" = xyes; then 44836 if test "x$BUNDLE_FREETYPE" = xyes; then 44837 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 44838 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 44839 FOUND_FREETYPE=no 44840 else 44841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44842 $as_echo_n "checking for freetype... " >&6; } 44843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 44844 $as_echo "yes (using builddeps)" >&6; } 44845 fi 44846 fi 44847 fi 44848 44849 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 44850 if test "x$SYSROOT" = x; then 44851 if test "x$FOUND_FREETYPE" != xyes; then 44852 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 44853 if test "x$PKG_CONFIG" != x; then 44854 44855 pkg_failed=no 44856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 44857 $as_echo_n "checking for FREETYPE... " >&6; } 44858 44859 if test -n "$FREETYPE_CFLAGS"; then 44860 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 44861 elif test -n "$PKG_CONFIG"; then 44862 if test -n "$PKG_CONFIG" && \ 44863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 44864 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 44865 ac_status=$? 44866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44867 test $ac_status = 0; }; then 44868 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 44869 else 44870 pkg_failed=yes 44871 fi 44872 else 44873 pkg_failed=untried 44874 fi 44875 if test -n "$FREETYPE_LIBS"; then 44876 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 44877 elif test -n "$PKG_CONFIG"; then 44878 if test -n "$PKG_CONFIG" && \ 44879 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 44880 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 44881 ac_status=$? 44882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44883 test $ac_status = 0; }; then 44884 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 44885 else 44886 pkg_failed=yes 44887 fi 44888 else 44889 pkg_failed=untried 44890 fi 44891 44892 44893 44894 if test $pkg_failed = yes; then 44895 44896 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 44897 _pkg_short_errors_supported=yes 44898 else 44899 _pkg_short_errors_supported=no 44900 fi 44901 if test $_pkg_short_errors_supported = yes; then 44902 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 44903 else 44904 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 44905 fi 44906 # Put the nasty error message in config.log where it belongs 44907 echo "$FREETYPE_PKG_ERRORS" >&5 44908 44909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44910 $as_echo "no" >&6; } 44911 FOUND_FREETYPE=no 44912 elif test $pkg_failed = untried; then 44913 FOUND_FREETYPE=no 44914 else 44915 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 44916 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 44917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44918 $as_echo "yes" >&6; } 44919 FOUND_FREETYPE=yes 44920 fi 44921 if test "x$FOUND_FREETYPE" = xyes; then 44922 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 44923 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 44924 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 44925 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 44926 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 44927 fi 44928 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 44929 if test "x$BUNDLE_FREETYPE" = xyes; then 44930 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 44931 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 44932 FOUND_FREETYPE=no 44933 else 44934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44935 $as_echo_n "checking for freetype... " >&6; } 44936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 44937 $as_echo "yes (using pkg-config)" >&6; } 44938 fi 44939 fi 44940 fi 44941 fi 44942 fi 44943 44944 if test "x$FOUND_FREETYPE" != xyes; then 44945 # Check in well-known locations 44946 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44947 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 44948 44949 windows_path="$FREETYPE_BASE_DIR" 44950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44951 unix_path=`$CYGPATH -u "$windows_path"` 44952 FREETYPE_BASE_DIR="$unix_path" 44953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44954 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44955 FREETYPE_BASE_DIR="$unix_path" 44956 fi 44957 44958 44959 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44960 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44961 METHOD="well-known location" 44962 44963 # First check if the files exists. 44964 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44965 # We found an arbitrary include file. That's a good sign. 44966 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44967 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44968 FOUND_FREETYPE=yes 44969 44970 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44971 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44972 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44973 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44974 FOUND_FREETYPE=no 44975 else 44976 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44977 # On Windows, we will need both .lib and .dll file. 44978 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44979 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44980 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44981 FOUND_FREETYPE=no 44982 fi 44983 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44984 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44985 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44986 fi 44987 fi 44988 fi 44989 44990 if test "x$FOUND_FREETYPE" = xyes; then 44991 44992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44993 44994 # Input might be given as Windows format, start by converting to 44995 # unix format. 44996 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44997 new_path=`$CYGPATH -u "$path"` 44998 44999 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45000 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45001 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45002 # "foo.exe" is OK but "foo" is an error. 45003 # 45004 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45005 # It is also a way to make sure we got the proper file name for the real test later on. 45006 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45007 if test "x$test_shortpath" = x; then 45008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45009 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45010 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45011 fi 45012 45013 # Call helper function which possibly converts this using DOS-style short mode. 45014 # If so, the updated path is stored in $new_path. 45015 45016 input_path="$new_path" 45017 # Check if we need to convert this using DOS-style short mode. If the path 45018 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45019 # take no chances and rewrite it. 45020 # Note: m4 eats our [], so we need to use [ and ] instead. 45021 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45022 if test "x$has_forbidden_chars" != x; then 45023 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45024 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45025 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45026 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45027 # Going to short mode and back again did indeed matter. Since short mode is 45028 # case insensitive, let's make it lowercase to improve readability. 45029 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45030 # Now convert it back to Unix-style (cygpath) 45031 input_path=`$CYGPATH -u "$shortmode_path"` 45032 new_path="$input_path" 45033 fi 45034 fi 45035 45036 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45037 if test "x$test_cygdrive_prefix" = x; then 45038 # As a simple fix, exclude /usr/bin since it's not a real path. 45039 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45040 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45041 # a path prefixed by /cygdrive for fixpath to work. 45042 new_path="$CYGWIN_ROOT_PATH$input_path" 45043 fi 45044 fi 45045 45046 45047 if test "x$path" != "x$new_path"; then 45048 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45049 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45050 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45051 fi 45052 45053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45054 45055 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45056 has_colon=`$ECHO $path | $GREP ^.:` 45057 new_path="$path" 45058 if test "x$has_colon" = x; then 45059 # Not in mixed or Windows style, start by that. 45060 new_path=`cmd //c echo $path` 45061 fi 45062 45063 45064 input_path="$new_path" 45065 # Check if we need to convert this using DOS-style short mode. If the path 45066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45067 # take no chances and rewrite it. 45068 # Note: m4 eats our [], so we need to use [ and ] instead. 45069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45070 if test "x$has_forbidden_chars" != x; then 45071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45072 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45073 fi 45074 45075 45076 windows_path="$new_path" 45077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45078 unix_path=`$CYGPATH -u "$windows_path"` 45079 new_path="$unix_path" 45080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45081 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45082 new_path="$unix_path" 45083 fi 45084 45085 if test "x$path" != "x$new_path"; then 45086 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45087 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45088 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45089 fi 45090 45091 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45092 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45093 45094 else 45095 # We're on a posix platform. Hooray! :) 45096 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45097 has_space=`$ECHO "$path" | $GREP " "` 45098 if test "x$has_space" != x; then 45099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45100 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45101 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45102 fi 45103 45104 # Use eval to expand a potential ~ 45105 eval path="$path" 45106 if test ! -f "$path" && test ! -d "$path"; then 45107 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45108 fi 45109 45110 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45111 fi 45112 45113 45114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45115 45116 # Input might be given as Windows format, start by converting to 45117 # unix format. 45118 path="$POTENTIAL_FREETYPE_LIB_PATH" 45119 new_path=`$CYGPATH -u "$path"` 45120 45121 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45122 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45123 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45124 # "foo.exe" is OK but "foo" is an error. 45125 # 45126 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45127 # It is also a way to make sure we got the proper file name for the real test later on. 45128 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45129 if test "x$test_shortpath" = x; then 45130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45131 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45132 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45133 fi 45134 45135 # Call helper function which possibly converts this using DOS-style short mode. 45136 # If so, the updated path is stored in $new_path. 45137 45138 input_path="$new_path" 45139 # Check if we need to convert this using DOS-style short mode. If the path 45140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45141 # take no chances and rewrite it. 45142 # Note: m4 eats our [], so we need to use [ and ] instead. 45143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45144 if test "x$has_forbidden_chars" != x; then 45145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45146 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45147 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45148 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45149 # Going to short mode and back again did indeed matter. Since short mode is 45150 # case insensitive, let's make it lowercase to improve readability. 45151 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45152 # Now convert it back to Unix-style (cygpath) 45153 input_path=`$CYGPATH -u "$shortmode_path"` 45154 new_path="$input_path" 45155 fi 45156 fi 45157 45158 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45159 if test "x$test_cygdrive_prefix" = x; then 45160 # As a simple fix, exclude /usr/bin since it's not a real path. 45161 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45162 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45163 # a path prefixed by /cygdrive for fixpath to work. 45164 new_path="$CYGWIN_ROOT_PATH$input_path" 45165 fi 45166 fi 45167 45168 45169 if test "x$path" != "x$new_path"; then 45170 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45171 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45172 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45173 fi 45174 45175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45176 45177 path="$POTENTIAL_FREETYPE_LIB_PATH" 45178 has_colon=`$ECHO $path | $GREP ^.:` 45179 new_path="$path" 45180 if test "x$has_colon" = x; then 45181 # Not in mixed or Windows style, start by that. 45182 new_path=`cmd //c echo $path` 45183 fi 45184 45185 45186 input_path="$new_path" 45187 # Check if we need to convert this using DOS-style short mode. If the path 45188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45189 # take no chances and rewrite it. 45190 # Note: m4 eats our [], so we need to use [ and ] instead. 45191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45192 if test "x$has_forbidden_chars" != x; then 45193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45194 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45195 fi 45196 45197 45198 windows_path="$new_path" 45199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45200 unix_path=`$CYGPATH -u "$windows_path"` 45201 new_path="$unix_path" 45202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45203 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45204 new_path="$unix_path" 45205 fi 45206 45207 if test "x$path" != "x$new_path"; then 45208 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45209 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45210 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45211 fi 45212 45213 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45214 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45215 45216 else 45217 # We're on a posix platform. Hooray! :) 45218 path="$POTENTIAL_FREETYPE_LIB_PATH" 45219 has_space=`$ECHO "$path" | $GREP " "` 45220 if test "x$has_space" != x; then 45221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45222 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45223 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45224 fi 45225 45226 # Use eval to expand a potential ~ 45227 eval path="$path" 45228 if test ! -f "$path" && test ! -d "$path"; then 45229 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45230 fi 45231 45232 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45233 fi 45234 45235 45236 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45238 $as_echo_n "checking for freetype includes... " >&6; } 45239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45240 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45241 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45243 $as_echo_n "checking for freetype libraries... " >&6; } 45244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45245 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45246 fi 45247 45248 if test "x$FOUND_FREETYPE" != xyes; then 45249 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45250 45251 windows_path="$FREETYPE_BASE_DIR" 45252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45253 unix_path=`$CYGPATH -u "$windows_path"` 45254 FREETYPE_BASE_DIR="$unix_path" 45255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45257 FREETYPE_BASE_DIR="$unix_path" 45258 fi 45259 45260 45261 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45262 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45263 METHOD="well-known location" 45264 45265 # First check if the files exists. 45266 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45267 # We found an arbitrary include file. That's a good sign. 45268 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45269 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45270 FOUND_FREETYPE=yes 45271 45272 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45273 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45274 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45275 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45276 FOUND_FREETYPE=no 45277 else 45278 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45279 # On Windows, we will need both .lib and .dll file. 45280 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45281 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45282 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45283 FOUND_FREETYPE=no 45284 fi 45285 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45286 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45287 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45288 fi 45289 fi 45290 fi 45291 45292 if test "x$FOUND_FREETYPE" = xyes; then 45293 45294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45295 45296 # Input might be given as Windows format, start by converting to 45297 # unix format. 45298 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45299 new_path=`$CYGPATH -u "$path"` 45300 45301 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45302 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45303 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45304 # "foo.exe" is OK but "foo" is an error. 45305 # 45306 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45307 # It is also a way to make sure we got the proper file name for the real test later on. 45308 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45309 if test "x$test_shortpath" = x; then 45310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45311 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45312 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45313 fi 45314 45315 # Call helper function which possibly converts this using DOS-style short mode. 45316 # If so, the updated path is stored in $new_path. 45317 45318 input_path="$new_path" 45319 # Check if we need to convert this using DOS-style short mode. If the path 45320 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45321 # take no chances and rewrite it. 45322 # Note: m4 eats our [], so we need to use [ and ] instead. 45323 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45324 if test "x$has_forbidden_chars" != x; then 45325 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45326 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45327 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45328 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45329 # Going to short mode and back again did indeed matter. Since short mode is 45330 # case insensitive, let's make it lowercase to improve readability. 45331 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45332 # Now convert it back to Unix-style (cygpath) 45333 input_path=`$CYGPATH -u "$shortmode_path"` 45334 new_path="$input_path" 45335 fi 45336 fi 45337 45338 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45339 if test "x$test_cygdrive_prefix" = x; then 45340 # As a simple fix, exclude /usr/bin since it's not a real path. 45341 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45342 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45343 # a path prefixed by /cygdrive for fixpath to work. 45344 new_path="$CYGWIN_ROOT_PATH$input_path" 45345 fi 45346 fi 45347 45348 45349 if test "x$path" != "x$new_path"; then 45350 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45351 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45352 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45353 fi 45354 45355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45356 45357 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45358 has_colon=`$ECHO $path | $GREP ^.:` 45359 new_path="$path" 45360 if test "x$has_colon" = x; then 45361 # Not in mixed or Windows style, start by that. 45362 new_path=`cmd //c echo $path` 45363 fi 45364 45365 45366 input_path="$new_path" 45367 # Check if we need to convert this using DOS-style short mode. If the path 45368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45369 # take no chances and rewrite it. 45370 # Note: m4 eats our [], so we need to use [ and ] instead. 45371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45372 if test "x$has_forbidden_chars" != x; then 45373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45374 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45375 fi 45376 45377 45378 windows_path="$new_path" 45379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45380 unix_path=`$CYGPATH -u "$windows_path"` 45381 new_path="$unix_path" 45382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45383 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45384 new_path="$unix_path" 45385 fi 45386 45387 if test "x$path" != "x$new_path"; then 45388 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45389 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45390 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45391 fi 45392 45393 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45394 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45395 45396 else 45397 # We're on a posix platform. Hooray! :) 45398 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45399 has_space=`$ECHO "$path" | $GREP " "` 45400 if test "x$has_space" != x; then 45401 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45402 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45403 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45404 fi 45405 45406 # Use eval to expand a potential ~ 45407 eval path="$path" 45408 if test ! -f "$path" && test ! -d "$path"; then 45409 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45410 fi 45411 45412 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45413 fi 45414 45415 45416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45417 45418 # Input might be given as Windows format, start by converting to 45419 # unix format. 45420 path="$POTENTIAL_FREETYPE_LIB_PATH" 45421 new_path=`$CYGPATH -u "$path"` 45422 45423 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45424 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45425 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45426 # "foo.exe" is OK but "foo" is an error. 45427 # 45428 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45429 # It is also a way to make sure we got the proper file name for the real test later on. 45430 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45431 if test "x$test_shortpath" = x; then 45432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45433 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45434 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45435 fi 45436 45437 # Call helper function which possibly converts this using DOS-style short mode. 45438 # If so, the updated path is stored in $new_path. 45439 45440 input_path="$new_path" 45441 # Check if we need to convert this using DOS-style short mode. If the path 45442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45443 # take no chances and rewrite it. 45444 # Note: m4 eats our [], so we need to use [ and ] instead. 45445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45446 if test "x$has_forbidden_chars" != x; then 45447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45448 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45449 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45450 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45451 # Going to short mode and back again did indeed matter. Since short mode is 45452 # case insensitive, let's make it lowercase to improve readability. 45453 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45454 # Now convert it back to Unix-style (cygpath) 45455 input_path=`$CYGPATH -u "$shortmode_path"` 45456 new_path="$input_path" 45457 fi 45458 fi 45459 45460 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45461 if test "x$test_cygdrive_prefix" = x; then 45462 # As a simple fix, exclude /usr/bin since it's not a real path. 45463 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45464 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45465 # a path prefixed by /cygdrive for fixpath to work. 45466 new_path="$CYGWIN_ROOT_PATH$input_path" 45467 fi 45468 fi 45469 45470 45471 if test "x$path" != "x$new_path"; then 45472 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45473 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45474 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45475 fi 45476 45477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45478 45479 path="$POTENTIAL_FREETYPE_LIB_PATH" 45480 has_colon=`$ECHO $path | $GREP ^.:` 45481 new_path="$path" 45482 if test "x$has_colon" = x; then 45483 # Not in mixed or Windows style, start by that. 45484 new_path=`cmd //c echo $path` 45485 fi 45486 45487 45488 input_path="$new_path" 45489 # Check if we need to convert this using DOS-style short mode. If the path 45490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45491 # take no chances and rewrite it. 45492 # Note: m4 eats our [], so we need to use [ and ] instead. 45493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45494 if test "x$has_forbidden_chars" != x; then 45495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45496 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45497 fi 45498 45499 45500 windows_path="$new_path" 45501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45502 unix_path=`$CYGPATH -u "$windows_path"` 45503 new_path="$unix_path" 45504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45505 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45506 new_path="$unix_path" 45507 fi 45508 45509 if test "x$path" != "x$new_path"; then 45510 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45511 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45512 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45513 fi 45514 45515 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45516 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45517 45518 else 45519 # We're on a posix platform. Hooray! :) 45520 path="$POTENTIAL_FREETYPE_LIB_PATH" 45521 has_space=`$ECHO "$path" | $GREP " "` 45522 if test "x$has_space" != x; then 45523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45524 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45525 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45526 fi 45527 45528 # Use eval to expand a potential ~ 45529 eval path="$path" 45530 if test ! -f "$path" && test ! -d "$path"; then 45531 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45532 fi 45533 45534 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45535 fi 45536 45537 45538 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45540 $as_echo_n "checking for freetype includes... " >&6; } 45541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45542 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45543 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45545 $as_echo_n "checking for freetype libraries... " >&6; } 45546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45547 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45548 fi 45549 45550 fi 45551 else 45552 FREETYPE_BASE_DIR="$SYSROOT/usr" 45553 45554 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45555 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45556 METHOD="well-known location" 45557 45558 # First check if the files exists. 45559 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45560 # We found an arbitrary include file. That's a good sign. 45561 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45562 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45563 FOUND_FREETYPE=yes 45564 45565 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45566 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45567 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45568 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45569 FOUND_FREETYPE=no 45570 else 45571 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45572 # On Windows, we will need both .lib and .dll file. 45573 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45574 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45575 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45576 FOUND_FREETYPE=no 45577 fi 45578 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45579 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45580 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45581 fi 45582 fi 45583 fi 45584 45585 if test "x$FOUND_FREETYPE" = xyes; then 45586 45587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45588 45589 # Input might be given as Windows format, start by converting to 45590 # unix format. 45591 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45592 new_path=`$CYGPATH -u "$path"` 45593 45594 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45595 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45596 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45597 # "foo.exe" is OK but "foo" is an error. 45598 # 45599 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45600 # It is also a way to make sure we got the proper file name for the real test later on. 45601 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45602 if test "x$test_shortpath" = x; then 45603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45604 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45605 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45606 fi 45607 45608 # Call helper function which possibly converts this using DOS-style short mode. 45609 # If so, the updated path is stored in $new_path. 45610 45611 input_path="$new_path" 45612 # Check if we need to convert this using DOS-style short mode. If the path 45613 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45614 # take no chances and rewrite it. 45615 # Note: m4 eats our [], so we need to use [ and ] instead. 45616 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45617 if test "x$has_forbidden_chars" != x; then 45618 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45619 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45620 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45621 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45622 # Going to short mode and back again did indeed matter. Since short mode is 45623 # case insensitive, let's make it lowercase to improve readability. 45624 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45625 # Now convert it back to Unix-style (cygpath) 45626 input_path=`$CYGPATH -u "$shortmode_path"` 45627 new_path="$input_path" 45628 fi 45629 fi 45630 45631 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45632 if test "x$test_cygdrive_prefix" = x; then 45633 # As a simple fix, exclude /usr/bin since it's not a real path. 45634 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45635 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45636 # a path prefixed by /cygdrive for fixpath to work. 45637 new_path="$CYGWIN_ROOT_PATH$input_path" 45638 fi 45639 fi 45640 45641 45642 if test "x$path" != "x$new_path"; then 45643 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45644 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45645 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45646 fi 45647 45648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45649 45650 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45651 has_colon=`$ECHO $path | $GREP ^.:` 45652 new_path="$path" 45653 if test "x$has_colon" = x; then 45654 # Not in mixed or Windows style, start by that. 45655 new_path=`cmd //c echo $path` 45656 fi 45657 45658 45659 input_path="$new_path" 45660 # Check if we need to convert this using DOS-style short mode. If the path 45661 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45662 # take no chances and rewrite it. 45663 # Note: m4 eats our [], so we need to use [ and ] instead. 45664 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45665 if test "x$has_forbidden_chars" != x; then 45666 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45667 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45668 fi 45669 45670 45671 windows_path="$new_path" 45672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45673 unix_path=`$CYGPATH -u "$windows_path"` 45674 new_path="$unix_path" 45675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45676 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45677 new_path="$unix_path" 45678 fi 45679 45680 if test "x$path" != "x$new_path"; then 45681 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45682 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45683 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45684 fi 45685 45686 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45687 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45688 45689 else 45690 # We're on a posix platform. Hooray! :) 45691 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45692 has_space=`$ECHO "$path" | $GREP " "` 45693 if test "x$has_space" != x; then 45694 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45695 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45696 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45697 fi 45698 45699 # Use eval to expand a potential ~ 45700 eval path="$path" 45701 if test ! -f "$path" && test ! -d "$path"; then 45702 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45703 fi 45704 45705 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45706 fi 45707 45708 45709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45710 45711 # Input might be given as Windows format, start by converting to 45712 # unix format. 45713 path="$POTENTIAL_FREETYPE_LIB_PATH" 45714 new_path=`$CYGPATH -u "$path"` 45715 45716 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45717 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45718 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45719 # "foo.exe" is OK but "foo" is an error. 45720 # 45721 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45722 # It is also a way to make sure we got the proper file name for the real test later on. 45723 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45724 if test "x$test_shortpath" = x; then 45725 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45726 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45727 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45728 fi 45729 45730 # Call helper function which possibly converts this using DOS-style short mode. 45731 # If so, the updated path is stored in $new_path. 45732 45733 input_path="$new_path" 45734 # Check if we need to convert this using DOS-style short mode. If the path 45735 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45736 # take no chances and rewrite it. 45737 # Note: m4 eats our [], so we need to use [ and ] instead. 45738 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45739 if test "x$has_forbidden_chars" != x; then 45740 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45741 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45742 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45743 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45744 # Going to short mode and back again did indeed matter. Since short mode is 45745 # case insensitive, let's make it lowercase to improve readability. 45746 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45747 # Now convert it back to Unix-style (cygpath) 45748 input_path=`$CYGPATH -u "$shortmode_path"` 45749 new_path="$input_path" 45750 fi 45751 fi 45752 45753 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45754 if test "x$test_cygdrive_prefix" = x; then 45755 # As a simple fix, exclude /usr/bin since it's not a real path. 45756 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45757 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45758 # a path prefixed by /cygdrive for fixpath to work. 45759 new_path="$CYGWIN_ROOT_PATH$input_path" 45760 fi 45761 fi 45762 45763 45764 if test "x$path" != "x$new_path"; then 45765 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45766 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45767 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45768 fi 45769 45770 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45771 45772 path="$POTENTIAL_FREETYPE_LIB_PATH" 45773 has_colon=`$ECHO $path | $GREP ^.:` 45774 new_path="$path" 45775 if test "x$has_colon" = x; then 45776 # Not in mixed or Windows style, start by that. 45777 new_path=`cmd //c echo $path` 45778 fi 45779 45780 45781 input_path="$new_path" 45782 # Check if we need to convert this using DOS-style short mode. If the path 45783 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45784 # take no chances and rewrite it. 45785 # Note: m4 eats our [], so we need to use [ and ] instead. 45786 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45787 if test "x$has_forbidden_chars" != x; then 45788 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45789 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45790 fi 45791 45792 45793 windows_path="$new_path" 45794 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45795 unix_path=`$CYGPATH -u "$windows_path"` 45796 new_path="$unix_path" 45797 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45798 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45799 new_path="$unix_path" 45800 fi 45801 45802 if test "x$path" != "x$new_path"; then 45803 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45805 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45806 fi 45807 45808 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45809 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45810 45811 else 45812 # We're on a posix platform. Hooray! :) 45813 path="$POTENTIAL_FREETYPE_LIB_PATH" 45814 has_space=`$ECHO "$path" | $GREP " "` 45815 if test "x$has_space" != x; then 45816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45817 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45818 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45819 fi 45820 45821 # Use eval to expand a potential ~ 45822 eval path="$path" 45823 if test ! -f "$path" && test ! -d "$path"; then 45824 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45825 fi 45826 45827 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45828 fi 45829 45830 45831 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45833 $as_echo_n "checking for freetype includes... " >&6; } 45834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45835 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45836 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45838 $as_echo_n "checking for freetype libraries... " >&6; } 45839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45840 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45841 fi 45842 45843 45844 if test "x$FOUND_FREETYPE" != xyes; then 45845 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 45846 45847 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45848 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45849 METHOD="well-known location" 45850 45851 # First check if the files exists. 45852 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45853 # We found an arbitrary include file. That's a good sign. 45854 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45855 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45856 FOUND_FREETYPE=yes 45857 45858 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45859 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45860 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45861 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45862 FOUND_FREETYPE=no 45863 else 45864 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45865 # On Windows, we will need both .lib and .dll file. 45866 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45867 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45868 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45869 FOUND_FREETYPE=no 45870 fi 45871 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45872 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45873 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45874 fi 45875 fi 45876 fi 45877 45878 if test "x$FOUND_FREETYPE" = xyes; then 45879 45880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45881 45882 # Input might be given as Windows format, start by converting to 45883 # unix format. 45884 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45885 new_path=`$CYGPATH -u "$path"` 45886 45887 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45888 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45889 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45890 # "foo.exe" is OK but "foo" is an error. 45891 # 45892 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45893 # It is also a way to make sure we got the proper file name for the real test later on. 45894 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45895 if test "x$test_shortpath" = x; then 45896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45897 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45898 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45899 fi 45900 45901 # Call helper function which possibly converts this using DOS-style short mode. 45902 # If so, the updated path is stored in $new_path. 45903 45904 input_path="$new_path" 45905 # Check if we need to convert this using DOS-style short mode. If the path 45906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45907 # take no chances and rewrite it. 45908 # Note: m4 eats our [], so we need to use [ and ] instead. 45909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45910 if test "x$has_forbidden_chars" != x; then 45911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45912 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45913 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45914 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45915 # Going to short mode and back again did indeed matter. Since short mode is 45916 # case insensitive, let's make it lowercase to improve readability. 45917 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45918 # Now convert it back to Unix-style (cygpath) 45919 input_path=`$CYGPATH -u "$shortmode_path"` 45920 new_path="$input_path" 45921 fi 45922 fi 45923 45924 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45925 if test "x$test_cygdrive_prefix" = x; then 45926 # As a simple fix, exclude /usr/bin since it's not a real path. 45927 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45928 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45929 # a path prefixed by /cygdrive for fixpath to work. 45930 new_path="$CYGWIN_ROOT_PATH$input_path" 45931 fi 45932 fi 45933 45934 45935 if test "x$path" != "x$new_path"; then 45936 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45937 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45938 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45939 fi 45940 45941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45942 45943 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45944 has_colon=`$ECHO $path | $GREP ^.:` 45945 new_path="$path" 45946 if test "x$has_colon" = x; then 45947 # Not in mixed or Windows style, start by that. 45948 new_path=`cmd //c echo $path` 45949 fi 45950 45951 45952 input_path="$new_path" 45953 # Check if we need to convert this using DOS-style short mode. If the path 45954 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45955 # take no chances and rewrite it. 45956 # Note: m4 eats our [], so we need to use [ and ] instead. 45957 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45958 if test "x$has_forbidden_chars" != x; then 45959 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45960 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45961 fi 45962 45963 45964 windows_path="$new_path" 45965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45966 unix_path=`$CYGPATH -u "$windows_path"` 45967 new_path="$unix_path" 45968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45969 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45970 new_path="$unix_path" 45971 fi 45972 45973 if test "x$path" != "x$new_path"; then 45974 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45976 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45977 fi 45978 45979 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45980 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45981 45982 else 45983 # We're on a posix platform. Hooray! :) 45984 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45985 has_space=`$ECHO "$path" | $GREP " "` 45986 if test "x$has_space" != x; then 45987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45988 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45989 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45990 fi 45991 45992 # Use eval to expand a potential ~ 45993 eval path="$path" 45994 if test ! -f "$path" && test ! -d "$path"; then 45995 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45996 fi 45997 45998 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45999 fi 46000 46001 46002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46003 46004 # Input might be given as Windows format, start by converting to 46005 # unix format. 46006 path="$POTENTIAL_FREETYPE_LIB_PATH" 46007 new_path=`$CYGPATH -u "$path"` 46008 46009 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46010 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46011 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46012 # "foo.exe" is OK but "foo" is an error. 46013 # 46014 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46015 # It is also a way to make sure we got the proper file name for the real test later on. 46016 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46017 if test "x$test_shortpath" = x; then 46018 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46019 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46020 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46021 fi 46022 46023 # Call helper function which possibly converts this using DOS-style short mode. 46024 # If so, the updated path is stored in $new_path. 46025 46026 input_path="$new_path" 46027 # Check if we need to convert this using DOS-style short mode. If the path 46028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46029 # take no chances and rewrite it. 46030 # Note: m4 eats our [], so we need to use [ and ] instead. 46031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46032 if test "x$has_forbidden_chars" != x; then 46033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46034 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46035 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46036 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46037 # Going to short mode and back again did indeed matter. Since short mode is 46038 # case insensitive, let's make it lowercase to improve readability. 46039 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46040 # Now convert it back to Unix-style (cygpath) 46041 input_path=`$CYGPATH -u "$shortmode_path"` 46042 new_path="$input_path" 46043 fi 46044 fi 46045 46046 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46047 if test "x$test_cygdrive_prefix" = x; then 46048 # As a simple fix, exclude /usr/bin since it's not a real path. 46049 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46050 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46051 # a path prefixed by /cygdrive for fixpath to work. 46052 new_path="$CYGWIN_ROOT_PATH$input_path" 46053 fi 46054 fi 46055 46056 46057 if test "x$path" != "x$new_path"; then 46058 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46059 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46060 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46061 fi 46062 46063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46064 46065 path="$POTENTIAL_FREETYPE_LIB_PATH" 46066 has_colon=`$ECHO $path | $GREP ^.:` 46067 new_path="$path" 46068 if test "x$has_colon" = x; then 46069 # Not in mixed or Windows style, start by that. 46070 new_path=`cmd //c echo $path` 46071 fi 46072 46073 46074 input_path="$new_path" 46075 # Check if we need to convert this using DOS-style short mode. If the path 46076 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46077 # take no chances and rewrite it. 46078 # Note: m4 eats our [], so we need to use [ and ] instead. 46079 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46080 if test "x$has_forbidden_chars" != x; then 46081 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46082 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46083 fi 46084 46085 46086 windows_path="$new_path" 46087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46088 unix_path=`$CYGPATH -u "$windows_path"` 46089 new_path="$unix_path" 46090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46091 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46092 new_path="$unix_path" 46093 fi 46094 46095 if test "x$path" != "x$new_path"; then 46096 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46097 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46098 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46099 fi 46100 46101 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46102 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46103 46104 else 46105 # We're on a posix platform. Hooray! :) 46106 path="$POTENTIAL_FREETYPE_LIB_PATH" 46107 has_space=`$ECHO "$path" | $GREP " "` 46108 if test "x$has_space" != x; then 46109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46110 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46111 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46112 fi 46113 46114 # Use eval to expand a potential ~ 46115 eval path="$path" 46116 if test ! -f "$path" && test ! -d "$path"; then 46117 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46118 fi 46119 46120 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46121 fi 46122 46123 46124 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46126 $as_echo_n "checking for freetype includes... " >&6; } 46127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46128 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46129 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46131 $as_echo_n "checking for freetype libraries... " >&6; } 46132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46133 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46134 fi 46135 46136 fi 46137 46138 if test "x$FOUND_FREETYPE" != xyes; then 46139 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46140 46141 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46142 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46143 METHOD="well-known location" 46144 46145 # First check if the files exists. 46146 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46147 # We found an arbitrary include file. That's a good sign. 46148 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46149 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46150 FOUND_FREETYPE=yes 46151 46152 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46153 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46154 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46155 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46156 FOUND_FREETYPE=no 46157 else 46158 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46159 # On Windows, we will need both .lib and .dll file. 46160 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46161 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46162 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46163 FOUND_FREETYPE=no 46164 fi 46165 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46166 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46167 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46168 fi 46169 fi 46170 fi 46171 46172 if test "x$FOUND_FREETYPE" = xyes; then 46173 46174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46175 46176 # Input might be given as Windows format, start by converting to 46177 # unix format. 46178 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46179 new_path=`$CYGPATH -u "$path"` 46180 46181 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46182 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46183 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46184 # "foo.exe" is OK but "foo" is an error. 46185 # 46186 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46187 # It is also a way to make sure we got the proper file name for the real test later on. 46188 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46189 if test "x$test_shortpath" = x; then 46190 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46191 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46192 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46193 fi 46194 46195 # Call helper function which possibly converts this using DOS-style short mode. 46196 # If so, the updated path is stored in $new_path. 46197 46198 input_path="$new_path" 46199 # Check if we need to convert this using DOS-style short mode. If the path 46200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46201 # take no chances and rewrite it. 46202 # Note: m4 eats our [], so we need to use [ and ] instead. 46203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46204 if test "x$has_forbidden_chars" != x; then 46205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46206 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46207 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46208 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46209 # Going to short mode and back again did indeed matter. Since short mode is 46210 # case insensitive, let's make it lowercase to improve readability. 46211 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46212 # Now convert it back to Unix-style (cygpath) 46213 input_path=`$CYGPATH -u "$shortmode_path"` 46214 new_path="$input_path" 46215 fi 46216 fi 46217 46218 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46219 if test "x$test_cygdrive_prefix" = x; then 46220 # As a simple fix, exclude /usr/bin since it's not a real path. 46221 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46222 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46223 # a path prefixed by /cygdrive for fixpath to work. 46224 new_path="$CYGWIN_ROOT_PATH$input_path" 46225 fi 46226 fi 46227 46228 46229 if test "x$path" != "x$new_path"; then 46230 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46231 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46232 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46233 fi 46234 46235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46236 46237 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46238 has_colon=`$ECHO $path | $GREP ^.:` 46239 new_path="$path" 46240 if test "x$has_colon" = x; then 46241 # Not in mixed or Windows style, start by that. 46242 new_path=`cmd //c echo $path` 46243 fi 46244 46245 46246 input_path="$new_path" 46247 # Check if we need to convert this using DOS-style short mode. If the path 46248 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46249 # take no chances and rewrite it. 46250 # Note: m4 eats our [], so we need to use [ and ] instead. 46251 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46252 if test "x$has_forbidden_chars" != x; then 46253 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46254 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46255 fi 46256 46257 46258 windows_path="$new_path" 46259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46260 unix_path=`$CYGPATH -u "$windows_path"` 46261 new_path="$unix_path" 46262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46264 new_path="$unix_path" 46265 fi 46266 46267 if test "x$path" != "x$new_path"; then 46268 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46269 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46270 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46271 fi 46272 46273 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46274 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46275 46276 else 46277 # We're on a posix platform. Hooray! :) 46278 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46279 has_space=`$ECHO "$path" | $GREP " "` 46280 if test "x$has_space" != x; then 46281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46282 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46283 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46284 fi 46285 46286 # Use eval to expand a potential ~ 46287 eval path="$path" 46288 if test ! -f "$path" && test ! -d "$path"; then 46289 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46290 fi 46291 46292 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46293 fi 46294 46295 46296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46297 46298 # Input might be given as Windows format, start by converting to 46299 # unix format. 46300 path="$POTENTIAL_FREETYPE_LIB_PATH" 46301 new_path=`$CYGPATH -u "$path"` 46302 46303 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46304 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46305 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46306 # "foo.exe" is OK but "foo" is an error. 46307 # 46308 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46309 # It is also a way to make sure we got the proper file name for the real test later on. 46310 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46311 if test "x$test_shortpath" = x; then 46312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46313 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46314 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46315 fi 46316 46317 # Call helper function which possibly converts this using DOS-style short mode. 46318 # If so, the updated path is stored in $new_path. 46319 46320 input_path="$new_path" 46321 # Check if we need to convert this using DOS-style short mode. If the path 46322 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46323 # take no chances and rewrite it. 46324 # Note: m4 eats our [], so we need to use [ and ] instead. 46325 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46326 if test "x$has_forbidden_chars" != x; then 46327 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46328 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46329 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46330 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46331 # Going to short mode and back again did indeed matter. Since short mode is 46332 # case insensitive, let's make it lowercase to improve readability. 46333 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46334 # Now convert it back to Unix-style (cygpath) 46335 input_path=`$CYGPATH -u "$shortmode_path"` 46336 new_path="$input_path" 46337 fi 46338 fi 46339 46340 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46341 if test "x$test_cygdrive_prefix" = x; then 46342 # As a simple fix, exclude /usr/bin since it's not a real path. 46343 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46344 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46345 # a path prefixed by /cygdrive for fixpath to work. 46346 new_path="$CYGWIN_ROOT_PATH$input_path" 46347 fi 46348 fi 46349 46350 46351 if test "x$path" != "x$new_path"; then 46352 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46353 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46354 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46355 fi 46356 46357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46358 46359 path="$POTENTIAL_FREETYPE_LIB_PATH" 46360 has_colon=`$ECHO $path | $GREP ^.:` 46361 new_path="$path" 46362 if test "x$has_colon" = x; then 46363 # Not in mixed or Windows style, start by that. 46364 new_path=`cmd //c echo $path` 46365 fi 46366 46367 46368 input_path="$new_path" 46369 # Check if we need to convert this using DOS-style short mode. If the path 46370 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46371 # take no chances and rewrite it. 46372 # Note: m4 eats our [], so we need to use [ and ] instead. 46373 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46374 if test "x$has_forbidden_chars" != x; then 46375 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46376 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46377 fi 46378 46379 46380 windows_path="$new_path" 46381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46382 unix_path=`$CYGPATH -u "$windows_path"` 46383 new_path="$unix_path" 46384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46385 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46386 new_path="$unix_path" 46387 fi 46388 46389 if test "x$path" != "x$new_path"; then 46390 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46391 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46392 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46393 fi 46394 46395 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46396 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46397 46398 else 46399 # We're on a posix platform. Hooray! :) 46400 path="$POTENTIAL_FREETYPE_LIB_PATH" 46401 has_space=`$ECHO "$path" | $GREP " "` 46402 if test "x$has_space" != x; then 46403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46404 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46405 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46406 fi 46407 46408 # Use eval to expand a potential ~ 46409 eval path="$path" 46410 if test ! -f "$path" && test ! -d "$path"; then 46411 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46412 fi 46413 46414 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46415 fi 46416 46417 46418 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46420 $as_echo_n "checking for freetype includes... " >&6; } 46421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46422 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46423 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46425 $as_echo_n "checking for freetype libraries... " >&6; } 46426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46427 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46428 fi 46429 46430 fi 46431 46432 if test "x$FOUND_FREETYPE" != xyes; then 46433 FREETYPE_BASE_DIR="$SYSROOT/usr" 46434 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46435 46436 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46437 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 46438 METHOD="well-known location" 46439 46440 # First check if the files exists. 46441 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46442 # We found an arbitrary include file. That's a good sign. 46443 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46444 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46445 FOUND_FREETYPE=yes 46446 46447 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46448 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46449 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46450 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46451 FOUND_FREETYPE=no 46452 else 46453 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46454 # On Windows, we will need both .lib and .dll file. 46455 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46456 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46457 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46458 FOUND_FREETYPE=no 46459 fi 46460 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46461 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46462 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46463 fi 46464 fi 46465 fi 46466 46467 if test "x$FOUND_FREETYPE" = xyes; then 46468 46469 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46470 46471 # Input might be given as Windows format, start by converting to 46472 # unix format. 46473 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46474 new_path=`$CYGPATH -u "$path"` 46475 46476 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46477 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46478 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46479 # "foo.exe" is OK but "foo" is an error. 46480 # 46481 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46482 # It is also a way to make sure we got the proper file name for the real test later on. 46483 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46484 if test "x$test_shortpath" = x; then 46485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46486 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46487 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46488 fi 46489 46490 # Call helper function which possibly converts this using DOS-style short mode. 46491 # If so, the updated path is stored in $new_path. 46492 46493 input_path="$new_path" 46494 # Check if we need to convert this using DOS-style short mode. If the path 46495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46496 # take no chances and rewrite it. 46497 # Note: m4 eats our [], so we need to use [ and ] instead. 46498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46499 if test "x$has_forbidden_chars" != x; then 46500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46501 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46502 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46503 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46504 # Going to short mode and back again did indeed matter. Since short mode is 46505 # case insensitive, let's make it lowercase to improve readability. 46506 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46507 # Now convert it back to Unix-style (cygpath) 46508 input_path=`$CYGPATH -u "$shortmode_path"` 46509 new_path="$input_path" 46510 fi 46511 fi 46512 46513 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46514 if test "x$test_cygdrive_prefix" = x; then 46515 # As a simple fix, exclude /usr/bin since it's not a real path. 46516 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46517 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46518 # a path prefixed by /cygdrive for fixpath to work. 46519 new_path="$CYGWIN_ROOT_PATH$input_path" 46520 fi 46521 fi 46522 46523 46524 if test "x$path" != "x$new_path"; then 46525 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46526 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46527 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46528 fi 46529 46530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46531 46532 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46533 has_colon=`$ECHO $path | $GREP ^.:` 46534 new_path="$path" 46535 if test "x$has_colon" = x; then 46536 # Not in mixed or Windows style, start by that. 46537 new_path=`cmd //c echo $path` 46538 fi 46539 46540 46541 input_path="$new_path" 46542 # Check if we need to convert this using DOS-style short mode. If the path 46543 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46544 # take no chances and rewrite it. 46545 # Note: m4 eats our [], so we need to use [ and ] instead. 46546 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46547 if test "x$has_forbidden_chars" != x; then 46548 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46549 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46550 fi 46551 46552 46553 windows_path="$new_path" 46554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46555 unix_path=`$CYGPATH -u "$windows_path"` 46556 new_path="$unix_path" 46557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46559 new_path="$unix_path" 46560 fi 46561 46562 if test "x$path" != "x$new_path"; then 46563 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46564 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46565 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46566 fi 46567 46568 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46569 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46570 46571 else 46572 # We're on a posix platform. Hooray! :) 46573 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46574 has_space=`$ECHO "$path" | $GREP " "` 46575 if test "x$has_space" != x; then 46576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46577 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46578 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46579 fi 46580 46581 # Use eval to expand a potential ~ 46582 eval path="$path" 46583 if test ! -f "$path" && test ! -d "$path"; then 46584 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46585 fi 46586 46587 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46588 fi 46589 46590 46591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46592 46593 # Input might be given as Windows format, start by converting to 46594 # unix format. 46595 path="$POTENTIAL_FREETYPE_LIB_PATH" 46596 new_path=`$CYGPATH -u "$path"` 46597 46598 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46599 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46600 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46601 # "foo.exe" is OK but "foo" is an error. 46602 # 46603 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46604 # It is also a way to make sure we got the proper file name for the real test later on. 46605 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46606 if test "x$test_shortpath" = x; then 46607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46608 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46609 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46610 fi 46611 46612 # Call helper function which possibly converts this using DOS-style short mode. 46613 # If so, the updated path is stored in $new_path. 46614 46615 input_path="$new_path" 46616 # Check if we need to convert this using DOS-style short mode. If the path 46617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46618 # take no chances and rewrite it. 46619 # Note: m4 eats our [], so we need to use [ and ] instead. 46620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46621 if test "x$has_forbidden_chars" != x; then 46622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46623 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46624 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46625 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46626 # Going to short mode and back again did indeed matter. Since short mode is 46627 # case insensitive, let's make it lowercase to improve readability. 46628 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46629 # Now convert it back to Unix-style (cygpath) 46630 input_path=`$CYGPATH -u "$shortmode_path"` 46631 new_path="$input_path" 46632 fi 46633 fi 46634 46635 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46636 if test "x$test_cygdrive_prefix" = x; then 46637 # As a simple fix, exclude /usr/bin since it's not a real path. 46638 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46639 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46640 # a path prefixed by /cygdrive for fixpath to work. 46641 new_path="$CYGWIN_ROOT_PATH$input_path" 46642 fi 46643 fi 46644 46645 46646 if test "x$path" != "x$new_path"; then 46647 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46649 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46650 fi 46651 46652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46653 46654 path="$POTENTIAL_FREETYPE_LIB_PATH" 46655 has_colon=`$ECHO $path | $GREP ^.:` 46656 new_path="$path" 46657 if test "x$has_colon" = x; then 46658 # Not in mixed or Windows style, start by that. 46659 new_path=`cmd //c echo $path` 46660 fi 46661 46662 46663 input_path="$new_path" 46664 # Check if we need to convert this using DOS-style short mode. If the path 46665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46666 # take no chances and rewrite it. 46667 # Note: m4 eats our [], so we need to use [ and ] instead. 46668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46669 if test "x$has_forbidden_chars" != x; then 46670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46671 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46672 fi 46673 46674 46675 windows_path="$new_path" 46676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46677 unix_path=`$CYGPATH -u "$windows_path"` 46678 new_path="$unix_path" 46679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46680 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46681 new_path="$unix_path" 46682 fi 46683 46684 if test "x$path" != "x$new_path"; then 46685 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46687 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46688 fi 46689 46690 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46691 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46692 46693 else 46694 # We're on a posix platform. Hooray! :) 46695 path="$POTENTIAL_FREETYPE_LIB_PATH" 46696 has_space=`$ECHO "$path" | $GREP " "` 46697 if test "x$has_space" != x; then 46698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46699 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46700 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46701 fi 46702 46703 # Use eval to expand a potential ~ 46704 eval path="$path" 46705 if test ! -f "$path" && test ! -d "$path"; then 46706 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46707 fi 46708 46709 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46710 fi 46711 46712 46713 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46715 $as_echo_n "checking for freetype includes... " >&6; } 46716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46717 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46718 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46720 $as_echo_n "checking for freetype libraries... " >&6; } 46721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46722 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46723 fi 46724 46725 else 46726 46727 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46728 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 46729 METHOD="well-known location" 46730 46731 # First check if the files exists. 46732 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46733 # We found an arbitrary include file. That's a good sign. 46734 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46735 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46736 FOUND_FREETYPE=yes 46737 46738 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46739 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46740 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46741 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46742 FOUND_FREETYPE=no 46743 else 46744 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46745 # On Windows, we will need both .lib and .dll file. 46746 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46747 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46748 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46749 FOUND_FREETYPE=no 46750 fi 46751 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46752 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46753 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46754 fi 46755 fi 46756 fi 46757 46758 if test "x$FOUND_FREETYPE" = xyes; then 46759 46760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46761 46762 # Input might be given as Windows format, start by converting to 46763 # unix format. 46764 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46765 new_path=`$CYGPATH -u "$path"` 46766 46767 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46768 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46769 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46770 # "foo.exe" is OK but "foo" is an error. 46771 # 46772 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46773 # It is also a way to make sure we got the proper file name for the real test later on. 46774 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46775 if test "x$test_shortpath" = x; then 46776 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46777 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46778 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46779 fi 46780 46781 # Call helper function which possibly converts this using DOS-style short mode. 46782 # If so, the updated path is stored in $new_path. 46783 46784 input_path="$new_path" 46785 # Check if we need to convert this using DOS-style short mode. If the path 46786 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46787 # take no chances and rewrite it. 46788 # Note: m4 eats our [], so we need to use [ and ] instead. 46789 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46790 if test "x$has_forbidden_chars" != x; then 46791 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46792 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46793 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46794 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46795 # Going to short mode and back again did indeed matter. Since short mode is 46796 # case insensitive, let's make it lowercase to improve readability. 46797 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46798 # Now convert it back to Unix-style (cygpath) 46799 input_path=`$CYGPATH -u "$shortmode_path"` 46800 new_path="$input_path" 46801 fi 46802 fi 46803 46804 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46805 if test "x$test_cygdrive_prefix" = x; then 46806 # As a simple fix, exclude /usr/bin since it's not a real path. 46807 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46808 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46809 # a path prefixed by /cygdrive for fixpath to work. 46810 new_path="$CYGWIN_ROOT_PATH$input_path" 46811 fi 46812 fi 46813 46814 46815 if test "x$path" != "x$new_path"; then 46816 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46817 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46818 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46819 fi 46820 46821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46822 46823 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46824 has_colon=`$ECHO $path | $GREP ^.:` 46825 new_path="$path" 46826 if test "x$has_colon" = x; then 46827 # Not in mixed or Windows style, start by that. 46828 new_path=`cmd //c echo $path` 46829 fi 46830 46831 46832 input_path="$new_path" 46833 # Check if we need to convert this using DOS-style short mode. If the path 46834 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46835 # take no chances and rewrite it. 46836 # Note: m4 eats our [], so we need to use [ and ] instead. 46837 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46838 if test "x$has_forbidden_chars" != x; then 46839 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46840 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46841 fi 46842 46843 46844 windows_path="$new_path" 46845 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46846 unix_path=`$CYGPATH -u "$windows_path"` 46847 new_path="$unix_path" 46848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46849 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46850 new_path="$unix_path" 46851 fi 46852 46853 if test "x$path" != "x$new_path"; then 46854 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46855 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46856 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46857 fi 46858 46859 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46860 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46861 46862 else 46863 # We're on a posix platform. Hooray! :) 46864 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46865 has_space=`$ECHO "$path" | $GREP " "` 46866 if test "x$has_space" != x; then 46867 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46868 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46869 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46870 fi 46871 46872 # Use eval to expand a potential ~ 46873 eval path="$path" 46874 if test ! -f "$path" && test ! -d "$path"; then 46875 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46876 fi 46877 46878 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46879 fi 46880 46881 46882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46883 46884 # Input might be given as Windows format, start by converting to 46885 # unix format. 46886 path="$POTENTIAL_FREETYPE_LIB_PATH" 46887 new_path=`$CYGPATH -u "$path"` 46888 46889 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46890 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46891 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46892 # "foo.exe" is OK but "foo" is an error. 46893 # 46894 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46895 # It is also a way to make sure we got the proper file name for the real test later on. 46896 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46897 if test "x$test_shortpath" = x; then 46898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46899 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46900 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46901 fi 46902 46903 # Call helper function which possibly converts this using DOS-style short mode. 46904 # If so, the updated path is stored in $new_path. 46905 46906 input_path="$new_path" 46907 # Check if we need to convert this using DOS-style short mode. If the path 46908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46909 # take no chances and rewrite it. 46910 # Note: m4 eats our [], so we need to use [ and ] instead. 46911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46912 if test "x$has_forbidden_chars" != x; then 46913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46914 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46915 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46916 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46917 # Going to short mode and back again did indeed matter. Since short mode is 46918 # case insensitive, let's make it lowercase to improve readability. 46919 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46920 # Now convert it back to Unix-style (cygpath) 46921 input_path=`$CYGPATH -u "$shortmode_path"` 46922 new_path="$input_path" 46923 fi 46924 fi 46925 46926 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46927 if test "x$test_cygdrive_prefix" = x; then 46928 # As a simple fix, exclude /usr/bin since it's not a real path. 46929 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46930 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46931 # a path prefixed by /cygdrive for fixpath to work. 46932 new_path="$CYGWIN_ROOT_PATH$input_path" 46933 fi 46934 fi 46935 46936 46937 if test "x$path" != "x$new_path"; then 46938 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46940 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46941 fi 46942 46943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46944 46945 path="$POTENTIAL_FREETYPE_LIB_PATH" 46946 has_colon=`$ECHO $path | $GREP ^.:` 46947 new_path="$path" 46948 if test "x$has_colon" = x; then 46949 # Not in mixed or Windows style, start by that. 46950 new_path=`cmd //c echo $path` 46951 fi 46952 46953 46954 input_path="$new_path" 46955 # Check if we need to convert this using DOS-style short mode. If the path 46956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46957 # take no chances and rewrite it. 46958 # Note: m4 eats our [], so we need to use [ and ] instead. 46959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46960 if test "x$has_forbidden_chars" != x; then 46961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46962 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46963 fi 46964 46965 46966 windows_path="$new_path" 46967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46968 unix_path=`$CYGPATH -u "$windows_path"` 46969 new_path="$unix_path" 46970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46972 new_path="$unix_path" 46973 fi 46974 46975 if test "x$path" != "x$new_path"; then 46976 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46978 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46979 fi 46980 46981 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46982 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46983 46984 else 46985 # We're on a posix platform. Hooray! :) 46986 path="$POTENTIAL_FREETYPE_LIB_PATH" 46987 has_space=`$ECHO "$path" | $GREP " "` 46988 if test "x$has_space" != x; then 46989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46990 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46991 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46992 fi 46993 46994 # Use eval to expand a potential ~ 46995 eval path="$path" 46996 if test ! -f "$path" && test ! -d "$path"; then 46997 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46998 fi 46999 47000 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47001 fi 47002 47003 47004 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47006 $as_echo_n "checking for freetype includes... " >&6; } 47007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47008 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47009 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47011 $as_echo_n "checking for freetype libraries... " >&6; } 47012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47013 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47014 fi 47015 47016 if test "x$FOUND_FREETYPE" != xyes; then 47017 47018 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47019 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47020 METHOD="well-known location" 47021 47022 # First check if the files exists. 47023 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47024 # We found an arbitrary include file. That's a good sign. 47025 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47026 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47027 FOUND_FREETYPE=yes 47028 47029 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 47030 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47031 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47032 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47033 FOUND_FREETYPE=no 47034 else 47035 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47036 # On Windows, we will need both .lib and .dll file. 47037 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 47038 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 47039 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 47040 FOUND_FREETYPE=no 47041 fi 47042 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 47043 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 47044 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 47045 fi 47046 fi 47047 fi 47048 47049 if test "x$FOUND_FREETYPE" = xyes; then 47050 47051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47052 47053 # Input might be given as Windows format, start by converting to 47054 # unix format. 47055 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47056 new_path=`$CYGPATH -u "$path"` 47057 47058 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47059 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47060 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47061 # "foo.exe" is OK but "foo" is an error. 47062 # 47063 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47064 # It is also a way to make sure we got the proper file name for the real test later on. 47065 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47066 if test "x$test_shortpath" = x; then 47067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47068 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47069 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47070 fi 47071 47072 # Call helper function which possibly converts this using DOS-style short mode. 47073 # If so, the updated path is stored in $new_path. 47074 47075 input_path="$new_path" 47076 # Check if we need to convert this using DOS-style short mode. If the path 47077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47078 # take no chances and rewrite it. 47079 # Note: m4 eats our [], so we need to use [ and ] instead. 47080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47081 if test "x$has_forbidden_chars" != x; then 47082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47083 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47084 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47085 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47086 # Going to short mode and back again did indeed matter. Since short mode is 47087 # case insensitive, let's make it lowercase to improve readability. 47088 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47089 # Now convert it back to Unix-style (cygpath) 47090 input_path=`$CYGPATH -u "$shortmode_path"` 47091 new_path="$input_path" 47092 fi 47093 fi 47094 47095 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47096 if test "x$test_cygdrive_prefix" = x; then 47097 # As a simple fix, exclude /usr/bin since it's not a real path. 47098 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47099 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47100 # a path prefixed by /cygdrive for fixpath to work. 47101 new_path="$CYGWIN_ROOT_PATH$input_path" 47102 fi 47103 fi 47104 47105 47106 if test "x$path" != "x$new_path"; then 47107 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47108 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47109 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47110 fi 47111 47112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47113 47114 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47115 has_colon=`$ECHO $path | $GREP ^.:` 47116 new_path="$path" 47117 if test "x$has_colon" = x; then 47118 # Not in mixed or Windows style, start by that. 47119 new_path=`cmd //c echo $path` 47120 fi 47121 47122 47123 input_path="$new_path" 47124 # Check if we need to convert this using DOS-style short mode. If the path 47125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47126 # take no chances and rewrite it. 47127 # Note: m4 eats our [], so we need to use [ and ] instead. 47128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47129 if test "x$has_forbidden_chars" != x; then 47130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47131 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47132 fi 47133 47134 47135 windows_path="$new_path" 47136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47137 unix_path=`$CYGPATH -u "$windows_path"` 47138 new_path="$unix_path" 47139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47140 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47141 new_path="$unix_path" 47142 fi 47143 47144 if test "x$path" != "x$new_path"; then 47145 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47146 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47147 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47148 fi 47149 47150 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47151 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47152 47153 else 47154 # We're on a posix platform. Hooray! :) 47155 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47156 has_space=`$ECHO "$path" | $GREP " "` 47157 if test "x$has_space" != x; then 47158 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47159 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47160 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47161 fi 47162 47163 # Use eval to expand a potential ~ 47164 eval path="$path" 47165 if test ! -f "$path" && test ! -d "$path"; then 47166 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47167 fi 47168 47169 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47170 fi 47171 47172 47173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47174 47175 # Input might be given as Windows format, start by converting to 47176 # unix format. 47177 path="$POTENTIAL_FREETYPE_LIB_PATH" 47178 new_path=`$CYGPATH -u "$path"` 47179 47180 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47181 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47182 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47183 # "foo.exe" is OK but "foo" is an error. 47184 # 47185 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47186 # It is also a way to make sure we got the proper file name for the real test later on. 47187 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47188 if test "x$test_shortpath" = x; then 47189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47190 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47191 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47192 fi 47193 47194 # Call helper function which possibly converts this using DOS-style short mode. 47195 # If so, the updated path is stored in $new_path. 47196 47197 input_path="$new_path" 47198 # Check if we need to convert this using DOS-style short mode. If the path 47199 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47200 # take no chances and rewrite it. 47201 # Note: m4 eats our [], so we need to use [ and ] instead. 47202 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47203 if test "x$has_forbidden_chars" != x; then 47204 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47205 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47206 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47207 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47208 # Going to short mode and back again did indeed matter. Since short mode is 47209 # case insensitive, let's make it lowercase to improve readability. 47210 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47211 # Now convert it back to Unix-style (cygpath) 47212 input_path=`$CYGPATH -u "$shortmode_path"` 47213 new_path="$input_path" 47214 fi 47215 fi 47216 47217 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47218 if test "x$test_cygdrive_prefix" = x; then 47219 # As a simple fix, exclude /usr/bin since it's not a real path. 47220 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47221 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47222 # a path prefixed by /cygdrive for fixpath to work. 47223 new_path="$CYGWIN_ROOT_PATH$input_path" 47224 fi 47225 fi 47226 47227 47228 if test "x$path" != "x$new_path"; then 47229 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47230 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47231 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47232 fi 47233 47234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47235 47236 path="$POTENTIAL_FREETYPE_LIB_PATH" 47237 has_colon=`$ECHO $path | $GREP ^.:` 47238 new_path="$path" 47239 if test "x$has_colon" = x; then 47240 # Not in mixed or Windows style, start by that. 47241 new_path=`cmd //c echo $path` 47242 fi 47243 47244 47245 input_path="$new_path" 47246 # Check if we need to convert this using DOS-style short mode. If the path 47247 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47248 # take no chances and rewrite it. 47249 # Note: m4 eats our [], so we need to use [ and ] instead. 47250 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47251 if test "x$has_forbidden_chars" != x; then 47252 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47253 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47254 fi 47255 47256 47257 windows_path="$new_path" 47258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47259 unix_path=`$CYGPATH -u "$windows_path"` 47260 new_path="$unix_path" 47261 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47262 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47263 new_path="$unix_path" 47264 fi 47265 47266 if test "x$path" != "x$new_path"; then 47267 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47268 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47269 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47270 fi 47271 47272 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47273 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47274 47275 else 47276 # We're on a posix platform. Hooray! :) 47277 path="$POTENTIAL_FREETYPE_LIB_PATH" 47278 has_space=`$ECHO "$path" | $GREP " "` 47279 if test "x$has_space" != x; then 47280 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47281 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47282 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47283 fi 47284 47285 # Use eval to expand a potential ~ 47286 eval path="$path" 47287 if test ! -f "$path" && test ! -d "$path"; then 47288 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47289 fi 47290 47291 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47292 fi 47293 47294 47295 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47297 $as_echo_n "checking for freetype includes... " >&6; } 47298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47299 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47300 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47302 $as_echo_n "checking for freetype libraries... " >&6; } 47303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47304 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47305 fi 47306 47307 fi 47308 fi 47309 fi 47310 fi 47311 fi # end check in well-known locations 47312 47313 if test "x$FOUND_FREETYPE" != xyes; then 47314 47315 # Print a helpful message on how to acquire the necessary build dependency. 47316 # freetype is the help tag: freetype, cups, pulse, alsa etc 47317 MISSING_DEPENDENCY=freetype 47318 47319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47320 cygwin_help $MISSING_DEPENDENCY 47321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47322 msys_help $MISSING_DEPENDENCY 47323 else 47324 PKGHANDLER_COMMAND= 47325 47326 case $PKGHANDLER in 47327 apt-get) 47328 apt_help $MISSING_DEPENDENCY ;; 47329 yum) 47330 yum_help $MISSING_DEPENDENCY ;; 47331 port) 47332 port_help $MISSING_DEPENDENCY ;; 47333 pkgutil) 47334 pkgutil_help $MISSING_DEPENDENCY ;; 47335 pkgadd) 47336 pkgadd_help $MISSING_DEPENDENCY ;; 47337 esac 47338 47339 if test "x$PKGHANDLER_COMMAND" != x; then 47340 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47341 fi 47342 fi 47343 47344 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 47345 fi 47346 fi # end user specified settings 47347 47348 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 47349 if test "x$FREETYPE_CFLAGS" = x; then 47350 47351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47352 47353 # Input might be given as Windows format, start by converting to 47354 # unix format. 47355 path="$FREETYPE_INCLUDE_PATH" 47356 new_path=`$CYGPATH -u "$path"` 47357 47358 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47359 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47360 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47361 # "foo.exe" is OK but "foo" is an error. 47362 # 47363 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47364 # It is also a way to make sure we got the proper file name for the real test later on. 47365 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47366 if test "x$test_shortpath" = x; then 47367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47368 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47369 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 47370 fi 47371 47372 # Call helper function which possibly converts this using DOS-style short mode. 47373 # If so, the updated path is stored in $new_path. 47374 47375 input_path="$new_path" 47376 # Check if we need to convert this using DOS-style short mode. If the path 47377 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47378 # take no chances and rewrite it. 47379 # Note: m4 eats our [], so we need to use [ and ] instead. 47380 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47381 if test "x$has_forbidden_chars" != x; then 47382 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47383 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47384 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47385 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47386 # Going to short mode and back again did indeed matter. Since short mode is 47387 # case insensitive, let's make it lowercase to improve readability. 47388 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47389 # Now convert it back to Unix-style (cygpath) 47390 input_path=`$CYGPATH -u "$shortmode_path"` 47391 new_path="$input_path" 47392 fi 47393 fi 47394 47395 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47396 if test "x$test_cygdrive_prefix" = x; then 47397 # As a simple fix, exclude /usr/bin since it's not a real path. 47398 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47399 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47400 # a path prefixed by /cygdrive for fixpath to work. 47401 new_path="$CYGWIN_ROOT_PATH$input_path" 47402 fi 47403 fi 47404 47405 47406 if test "x$path" != "x$new_path"; then 47407 FREETYPE_INCLUDE_PATH="$new_path" 47408 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47409 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47410 fi 47411 47412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47413 47414 path="$FREETYPE_INCLUDE_PATH" 47415 has_colon=`$ECHO $path | $GREP ^.:` 47416 new_path="$path" 47417 if test "x$has_colon" = x; then 47418 # Not in mixed or Windows style, start by that. 47419 new_path=`cmd //c echo $path` 47420 fi 47421 47422 47423 input_path="$new_path" 47424 # Check if we need to convert this using DOS-style short mode. If the path 47425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47426 # take no chances and rewrite it. 47427 # Note: m4 eats our [], so we need to use [ and ] instead. 47428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47429 if test "x$has_forbidden_chars" != x; then 47430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47431 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47432 fi 47433 47434 47435 windows_path="$new_path" 47436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47437 unix_path=`$CYGPATH -u "$windows_path"` 47438 new_path="$unix_path" 47439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47441 new_path="$unix_path" 47442 fi 47443 47444 if test "x$path" != "x$new_path"; then 47445 FREETYPE_INCLUDE_PATH="$new_path" 47446 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47447 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47448 fi 47449 47450 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47451 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47452 47453 else 47454 # We're on a posix platform. Hooray! :) 47455 path="$FREETYPE_INCLUDE_PATH" 47456 has_space=`$ECHO "$path" | $GREP " "` 47457 if test "x$has_space" != x; then 47458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47459 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47460 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47461 fi 47462 47463 # Use eval to expand a potential ~ 47464 eval path="$path" 47465 if test ! -f "$path" && test ! -d "$path"; then 47466 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47467 fi 47468 47469 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47470 fi 47471 47472 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 47473 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 47474 else 47475 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 47476 fi 47477 fi 47478 47479 if test "x$FREETYPE_LIBS" = x; then 47480 47481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47482 47483 # Input might be given as Windows format, start by converting to 47484 # unix format. 47485 path="$FREETYPE_LIB_PATH" 47486 new_path=`$CYGPATH -u "$path"` 47487 47488 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47489 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47490 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47491 # "foo.exe" is OK but "foo" is an error. 47492 # 47493 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47494 # It is also a way to make sure we got the proper file name for the real test later on. 47495 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47496 if test "x$test_shortpath" = x; then 47497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47498 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47499 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 47500 fi 47501 47502 # Call helper function which possibly converts this using DOS-style short mode. 47503 # If so, the updated path is stored in $new_path. 47504 47505 input_path="$new_path" 47506 # Check if we need to convert this using DOS-style short mode. If the path 47507 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47508 # take no chances and rewrite it. 47509 # Note: m4 eats our [], so we need to use [ and ] instead. 47510 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47511 if test "x$has_forbidden_chars" != x; then 47512 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47513 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47514 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47515 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47516 # Going to short mode and back again did indeed matter. Since short mode is 47517 # case insensitive, let's make it lowercase to improve readability. 47518 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47519 # Now convert it back to Unix-style (cygpath) 47520 input_path=`$CYGPATH -u "$shortmode_path"` 47521 new_path="$input_path" 47522 fi 47523 fi 47524 47525 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47526 if test "x$test_cygdrive_prefix" = x; then 47527 # As a simple fix, exclude /usr/bin since it's not a real path. 47528 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47529 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47530 # a path prefixed by /cygdrive for fixpath to work. 47531 new_path="$CYGWIN_ROOT_PATH$input_path" 47532 fi 47533 fi 47534 47535 47536 if test "x$path" != "x$new_path"; then 47537 FREETYPE_LIB_PATH="$new_path" 47538 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47539 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47540 fi 47541 47542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47543 47544 path="$FREETYPE_LIB_PATH" 47545 has_colon=`$ECHO $path | $GREP ^.:` 47546 new_path="$path" 47547 if test "x$has_colon" = x; then 47548 # Not in mixed or Windows style, start by that. 47549 new_path=`cmd //c echo $path` 47550 fi 47551 47552 47553 input_path="$new_path" 47554 # Check if we need to convert this using DOS-style short mode. If the path 47555 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47556 # take no chances and rewrite it. 47557 # Note: m4 eats our [], so we need to use [ and ] instead. 47558 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47559 if test "x$has_forbidden_chars" != x; then 47560 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47561 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47562 fi 47563 47564 47565 windows_path="$new_path" 47566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47567 unix_path=`$CYGPATH -u "$windows_path"` 47568 new_path="$unix_path" 47569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47570 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47571 new_path="$unix_path" 47572 fi 47573 47574 if test "x$path" != "x$new_path"; then 47575 FREETYPE_LIB_PATH="$new_path" 47576 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47577 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47578 fi 47579 47580 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47581 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47582 47583 else 47584 # We're on a posix platform. Hooray! :) 47585 path="$FREETYPE_LIB_PATH" 47586 has_space=`$ECHO "$path" | $GREP " "` 47587 if test "x$has_space" != x; then 47588 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47589 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47590 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47591 fi 47592 47593 # Use eval to expand a potential ~ 47594 eval path="$path" 47595 if test ! -f "$path" && test ! -d "$path"; then 47596 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47597 fi 47598 47599 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47600 fi 47601 47602 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47603 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 47604 else 47605 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 47606 fi 47607 fi 47608 47609 # Try to compile it 47610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 47611 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 47612 ac_ext=cpp 47613 ac_cpp='$CXXCPP $CPPFLAGS' 47614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47617 47618 PREV_CXXCFLAGS="$CXXFLAGS" 47619 PREV_LIBS="$LIBS" 47620 PREV_CXX="$CXX" 47621 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 47622 LIBS="$LIBS $FREETYPE_LIBS" 47623 CXX="$FIXPATH $CXX" 47624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47625 /* end confdefs.h. */ 47626 47627 #include<ft2build.h> 47628 #include FT_FREETYPE_H 47629 int main () { 47630 FT_Init_FreeType(NULL); 47631 return 0; 47632 } 47633 47634 _ACEOF 47635 if ac_fn_cxx_try_link "$LINENO"; then : 47636 47637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47638 $as_echo "yes" >&6; } 47639 47640 else 47641 47642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47643 $as_echo "no" >&6; } 47644 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 47645 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 47646 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 47647 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 47648 47649 47650 # Print a helpful message on how to acquire the necessary build dependency. 47651 # freetype is the help tag: freetype, cups, pulse, alsa etc 47652 MISSING_DEPENDENCY=freetype 47653 47654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47655 cygwin_help $MISSING_DEPENDENCY 47656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47657 msys_help $MISSING_DEPENDENCY 47658 else 47659 PKGHANDLER_COMMAND= 47660 47661 case $PKGHANDLER in 47662 apt-get) 47663 apt_help $MISSING_DEPENDENCY ;; 47664 yum) 47665 yum_help $MISSING_DEPENDENCY ;; 47666 port) 47667 port_help $MISSING_DEPENDENCY ;; 47668 pkgutil) 47669 pkgutil_help $MISSING_DEPENDENCY ;; 47670 pkgadd) 47671 pkgadd_help $MISSING_DEPENDENCY ;; 47672 esac 47673 47674 if test "x$PKGHANDLER_COMMAND" != x; then 47675 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47676 fi 47677 fi 47678 47679 47680 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 47681 47682 47683 fi 47684 rm -f core conftest.err conftest.$ac_objext \ 47685 conftest$ac_exeext conftest.$ac_ext 47686 CXXCFLAGS="$PREV_CXXFLAGS" 47687 LIBS="$PREV_LIBS" 47688 CXX="$PREV_CXX" 47689 ac_ext=cpp 47690 ac_cpp='$CXXCPP $CPPFLAGS' 47691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47694 47695 47696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 47697 $as_echo_n "checking if we should bundle freetype... " >&6; } 47698 if test "x$BUNDLE_FREETYPE" = xyes; then 47699 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 47700 fi 47701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 47702 $as_echo "$BUNDLE_FREETYPE" >&6; } 47703 47704 fi # end freetype needed 47705 47706 47707 47708 47709 47710 47711 47712 ############################################################################### 47713 # 47714 # Check for alsa headers and libraries. Used on Linux/GNU systems. 47715 # 47716 47717 # Check whether --with-alsa was given. 47718 if test "${with_alsa+set}" = set; then : 47719 withval=$with_alsa; 47720 fi 47721 47722 47723 # Check whether --with-alsa-include was given. 47724 if test "${with_alsa_include+set}" = set; then : 47725 withval=$with_alsa_include; 47726 fi 47727 47728 47729 # Check whether --with-alsa-lib was given. 47730 if test "${with_alsa_lib+set}" = set; then : 47731 withval=$with_alsa_lib; 47732 fi 47733 47734 47735 if test "x$ALSA_NOT_NEEDED" = xyes; then 47736 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 47737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 47738 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 47739 fi 47740 ALSA_CFLAGS= 47741 ALSA_LIBS= 47742 else 47743 ALSA_FOUND=no 47744 47745 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 47746 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 47747 fi 47748 47749 if test "x${with_alsa}" != x; then 47750 ALSA_LIBS="-L${with_alsa}/lib -lasound" 47751 ALSA_CFLAGS="-I${with_alsa}/include" 47752 ALSA_FOUND=yes 47753 fi 47754 if test "x${with_alsa_include}" != x; then 47755 ALSA_CFLAGS="-I${with_alsa_include}" 47756 ALSA_FOUND=yes 47757 fi 47758 if test "x${with_alsa_lib}" != x; then 47759 ALSA_LIBS="-L${with_alsa_lib} -lasound" 47760 ALSA_FOUND=yes 47761 fi 47762 if test "x$ALSA_FOUND" = xno; then 47763 47764 47765 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 47766 # Source the builddeps file again, to make sure it uses the latest variables! 47767 . $builddepsfile 47768 # Look for a target and build machine specific resource! 47769 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 47770 if test "x$resource" = x; then 47771 # Ok, lets instead look for a target specific resource 47772 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 47773 fi 47774 if test "x$resource" = x; then 47775 # Ok, lets instead look for a build specific resource 47776 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 47777 fi 47778 if test "x$resource" = x; then 47779 # Ok, lets instead look for a generic resource 47780 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 47781 resource=${builddep_alsa} 47782 fi 47783 if test "x$resource" != x; then 47784 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 47785 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 47786 # If the resource in the builddeps.conf file is an existing directory, 47787 # for example /java/linux/cups 47788 if test -d ${resource}; then 47789 depdir=${resource} 47790 else 47791 47792 # alsa is for example mymodule 47793 # $resource is for example libs/general/libmymod_1_2_3.zip 47794 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 47795 # $with_builddeps_dir is for example /localhome/builddeps 47796 # depdir is the name of the variable into which we store the depdir, eg MYMOD 47797 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 47798 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 47799 filename=`basename $resource` 47800 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 47801 filebase=${filename%%.*} 47802 extension=${filename#*.} 47803 installdir=$with_builddeps_dir/$filebase 47804 if test ! -f $installdir/$filename.unpacked; then 47805 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 47806 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 47807 if test ! -d $installdir; then 47808 mkdir -p $installdir 47809 fi 47810 if test ! -d $installdir; then 47811 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 47812 fi 47813 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 47814 touch $tmpfile 47815 if test ! -f $tmpfile; then 47816 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 47817 fi 47818 47819 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 47820 # $tmpfile is the local file name for the downloaded file. 47821 VALID_TOOL=no 47822 if test "x$BDEPS_FTP" = xwget; then 47823 VALID_TOOL=yes 47824 wget -O $tmpfile $with_builddeps_server/$resource 47825 fi 47826 if test "x$BDEPS_FTP" = xlftp; then 47827 VALID_TOOL=yes 47828 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 47829 fi 47830 if test "x$BDEPS_FTP" = xftp; then 47831 VALID_TOOL=yes 47832 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 47833 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 47834 FTPUSERPWD=${FTPSERVER%%@*} 47835 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 47836 FTPUSER=${userpwd%%:*} 47837 FTPPWD=${userpwd#*@} 47838 FTPSERVER=${FTPSERVER#*@} 47839 else 47840 FTPUSER=ftp 47841 FTPPWD=ftp 47842 fi 47843 # the "pass" command does not work on some 47844 # ftp clients (read ftp.exe) but if it works, 47845 # passive mode is better! 47846 ( \ 47847 echo "user $FTPUSER $FTPPWD" ; \ 47848 echo "pass" ; \ 47849 echo "bin" ; \ 47850 echo "get $FTPPATH $tmpfile" ; \ 47851 ) | ftp -in $FTPSERVER 47852 fi 47853 if test "x$VALID_TOOL" != xyes; then 47854 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 47855 fi 47856 47857 mv $tmpfile $installdir/$filename 47858 if test ! -s $installdir/$filename; then 47859 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 47860 fi 47861 case "$extension" in 47862 zip) echo "Unzipping $installdir/$filename..." 47863 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 47864 ;; 47865 tar.gz) echo "Untaring $installdir/$filename..." 47866 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 47867 ;; 47868 tgz) echo "Untaring $installdir/$filename..." 47869 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 47870 ;; 47871 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 47872 ;; 47873 esac 47874 fi 47875 if test -f $installdir/$filename.unpacked; then 47876 depdir=$installdir 47877 fi 47878 47879 fi 47880 # Source the builddeps file again, because in the previous command, the depdir 47881 # was updated to point at the current build dependency install directory. 47882 . $builddepsfile 47883 # Now extract variables from the builddeps.conf files. 47884 theroot=${builddep_alsa_ROOT} 47885 thecflags=${builddep_alsa_CFLAGS} 47886 thelibs=${builddep_alsa_LIBS} 47887 if test "x$depdir" = x; then 47888 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 47889 fi 47890 ALSA=$depdir 47891 if test "x$theroot" != x; then 47892 ALSA="$theroot" 47893 fi 47894 if test "x$thecflags" != x; then 47895 ALSA_CFLAGS="$thecflags" 47896 fi 47897 if test "x$thelibs" != x; then 47898 ALSA_LIBS="$thelibs" 47899 fi 47900 ALSA_FOUND=yes 47901 else ALSA_FOUND=no 47902 47903 fi 47904 else ALSA_FOUND=no 47905 47906 fi 47907 47908 fi 47909 # Do not try pkg-config if we have a sysroot set. 47910 if test "x$SYSROOT" = x; then 47911 if test "x$ALSA_FOUND" = xno; then 47912 47913 pkg_failed=no 47914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 47915 $as_echo_n "checking for ALSA... " >&6; } 47916 47917 if test -n "$ALSA_CFLAGS"; then 47918 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 47919 elif test -n "$PKG_CONFIG"; then 47920 if test -n "$PKG_CONFIG" && \ 47921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 47922 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 47923 ac_status=$? 47924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47925 test $ac_status = 0; }; then 47926 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 47927 else 47928 pkg_failed=yes 47929 fi 47930 else 47931 pkg_failed=untried 47932 fi 47933 if test -n "$ALSA_LIBS"; then 47934 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 47935 elif test -n "$PKG_CONFIG"; then 47936 if test -n "$PKG_CONFIG" && \ 47937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 47938 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 47939 ac_status=$? 47940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47941 test $ac_status = 0; }; then 47942 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 47943 else 47944 pkg_failed=yes 47945 fi 47946 else 47947 pkg_failed=untried 47948 fi 47949 47950 47951 47952 if test $pkg_failed = yes; then 47953 47954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47955 _pkg_short_errors_supported=yes 47956 else 47957 _pkg_short_errors_supported=no 47958 fi 47959 if test $_pkg_short_errors_supported = yes; then 47960 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 47961 else 47962 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 47963 fi 47964 # Put the nasty error message in config.log where it belongs 47965 echo "$ALSA_PKG_ERRORS" >&5 47966 47967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47968 $as_echo "no" >&6; } 47969 ALSA_FOUND=no 47970 elif test $pkg_failed = untried; then 47971 ALSA_FOUND=no 47972 else 47973 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 47974 ALSA_LIBS=$pkg_cv_ALSA_LIBS 47975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47976 $as_echo "yes" >&6; } 47977 ALSA_FOUND=yes 47978 fi 47979 fi 47980 fi 47981 if test "x$ALSA_FOUND" = xno; then 47982 for ac_header in alsa/asoundlib.h 47983 do : 47984 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 47985 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 47986 cat >>confdefs.h <<_ACEOF 47987 #define HAVE_ALSA_ASOUNDLIB_H 1 47988 _ACEOF 47989 47990 ALSA_FOUND=yes 47991 ALSA_CFLAGS=-Iignoreme 47992 ALSA_LIBS=-lasound 47993 DEFAULT_ALSA=yes 47994 47995 else 47996 ALSA_FOUND=no 47997 fi 47998 47999 done 48000 48001 fi 48002 if test "x$ALSA_FOUND" = xno; then 48003 48004 # Print a helpful message on how to acquire the necessary build dependency. 48005 # alsa is the help tag: freetype, cups, pulse, alsa etc 48006 MISSING_DEPENDENCY=alsa 48007 48008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48009 cygwin_help $MISSING_DEPENDENCY 48010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48011 msys_help $MISSING_DEPENDENCY 48012 else 48013 PKGHANDLER_COMMAND= 48014 48015 case $PKGHANDLER in 48016 apt-get) 48017 apt_help $MISSING_DEPENDENCY ;; 48018 yum) 48019 yum_help $MISSING_DEPENDENCY ;; 48020 port) 48021 port_help $MISSING_DEPENDENCY ;; 48022 pkgutil) 48023 pkgutil_help $MISSING_DEPENDENCY ;; 48024 pkgadd) 48025 pkgadd_help $MISSING_DEPENDENCY ;; 48026 esac 48027 48028 if test "x$PKGHANDLER_COMMAND" != x; then 48029 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48030 fi 48031 fi 48032 48033 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48034 fi 48035 fi 48036 48037 48038 48039 48040 48041 48042 # Check whether --with-fontconfig was given. 48043 if test "${with_fontconfig+set}" = set; then : 48044 withval=$with_fontconfig; 48045 fi 48046 48047 48048 # Check whether --with-fontconfig-include was given. 48049 if test "${with_fontconfig_include+set}" = set; then : 48050 withval=$with_fontconfig_include; 48051 fi 48052 48053 48054 if test "x$FONTCONFIG_NOT_NEEDED" = xyes; then 48055 if (test "x${with_fontconfig}" != x && test "x${with_fontconfig}" != xno) || \ 48056 (test "x${with_fontconfig_include}" != x && test "x${with_fontconfig_include}" != xno); then 48057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&5 48058 $as_echo "$as_me: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&2;} 48059 fi 48060 FONTCONFIG_CFLAGS= 48061 else 48062 FONTCONFIG_FOUND=no 48063 48064 if test "x${with_fontconfig}" = xno || test "x${with_fontconfig_include}" = xno; then 48065 as_fn_error $? "It is not possible to disable the use of fontconfig. Remove the --without-fontconfig option." "$LINENO" 5 48066 fi 48067 48068 if test "x${with_fontconfig}" != x; then 48069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 48070 $as_echo_n "checking for fontconfig headers... " >&6; } 48071 if test -s "${with_fontconfig}/include/fontconfig/fontconfig.h"; then 48072 FONTCONFIG_CFLAGS="-I${with_fontconfig}/include" 48073 FONTCONFIG_FOUND=yes 48074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 48075 $as_echo "$FONTCONFIG_FOUND" >&6; } 48076 else 48077 as_fn_error $? "Can't find 'include/fontconfig/fontconfig.h' under ${with_fontconfig} given with the --with-fontconfig option." "$LINENO" 5 48078 fi 48079 fi 48080 if test "x${with_fontconfig_include}" != x; then 48081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 48082 $as_echo_n "checking for fontconfig headers... " >&6; } 48083 if test -s "${with_fontconfig_include}/fontconfig/fontconfig.h"; then 48084 FONTCONFIG_CFLAGS="-I${with_fontconfig_include}" 48085 FONTCONFIG_FOUND=yes 48086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 48087 $as_echo "$FONTCONFIG_FOUND" >&6; } 48088 else 48089 as_fn_error $? "Can't find 'fontconfig/fontconfig.h' under ${with_fontconfig_include} given with the --with-fontconfig-include option." "$LINENO" 5 48090 fi 48091 fi 48092 if test "x$FONTCONFIG_FOUND" = xno; then 48093 # Are the fontconfig headers installed in the default /usr/include location? 48094 for ac_header in fontconfig/fontconfig.h 48095 do : 48096 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" 48097 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : 48098 cat >>confdefs.h <<_ACEOF 48099 #define HAVE_FONTCONFIG_FONTCONFIG_H 1 48100 _ACEOF 48101 48102 FONTCONFIG_FOUND=yes 48103 FONTCONFIG_CFLAGS= 48104 DEFAULT_FONTCONFIG=yes 48105 48106 fi 48107 48108 done 48109 48110 fi 48111 if test "x$FONTCONFIG_FOUND" = xno; then 48112 48113 # Print a helpful message on how to acquire the necessary build dependency. 48114 # fontconfig is the help tag: freetype, cups, pulse, alsa etc 48115 MISSING_DEPENDENCY=fontconfig 48116 48117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48118 cygwin_help $MISSING_DEPENDENCY 48119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48120 msys_help $MISSING_DEPENDENCY 48121 else 48122 PKGHANDLER_COMMAND= 48123 48124 case $PKGHANDLER in 48125 apt-get) 48126 apt_help $MISSING_DEPENDENCY ;; 48127 yum) 48128 yum_help $MISSING_DEPENDENCY ;; 48129 port) 48130 port_help $MISSING_DEPENDENCY ;; 48131 pkgutil) 48132 pkgutil_help $MISSING_DEPENDENCY ;; 48133 pkgadd) 48134 pkgadd_help $MISSING_DEPENDENCY ;; 48135 esac 48136 48137 if test "x$PKGHANDLER_COMMAND" != x; then 48138 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48139 fi 48140 fi 48141 48142 as_fn_error $? "Could not find fontconfig! $HELP_MSG " "$LINENO" 5 48143 fi 48144 fi 48145 48146 48147 48148 48149 48150 ############################################################################### 48151 # 48152 # Check for the jpeg library 48153 # 48154 48155 USE_EXTERNAL_LIBJPEG=true 48156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 48157 $as_echo_n "checking for main in -ljpeg... " >&6; } 48158 if ${ac_cv_lib_jpeg_main+:} false; then : 48159 $as_echo_n "(cached) " >&6 48160 else 48161 ac_check_lib_save_LIBS=$LIBS 48162 LIBS="-ljpeg $LIBS" 48163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48164 /* end confdefs.h. */ 48165 48166 48167 int 48168 main () 48169 { 48170 return main (); 48171 ; 48172 return 0; 48173 } 48174 _ACEOF 48175 if ac_fn_cxx_try_link "$LINENO"; then : 48176 ac_cv_lib_jpeg_main=yes 48177 else 48178 ac_cv_lib_jpeg_main=no 48179 fi 48180 rm -f core conftest.err conftest.$ac_objext \ 48181 conftest$ac_exeext conftest.$ac_ext 48182 LIBS=$ac_check_lib_save_LIBS 48183 fi 48184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 48185 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 48186 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 48187 cat >>confdefs.h <<_ACEOF 48188 #define HAVE_LIBJPEG 1 48189 _ACEOF 48190 48191 LIBS="-ljpeg $LIBS" 48192 48193 else 48194 USE_EXTERNAL_LIBJPEG=false 48195 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 48196 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 48197 48198 fi 48199 48200 48201 48202 ############################################################################### 48203 # 48204 # Check for the gif library 48205 # 48206 48207 48208 # Check whether --with-giflib was given. 48209 if test "${with_giflib+set}" = set; then : 48210 withval=$with_giflib; 48211 fi 48212 48213 48214 48215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 48216 $as_echo_n "checking for which giflib to use... " >&6; } 48217 48218 # default is bundled 48219 DEFAULT_GIFLIB=bundled 48220 48221 # 48222 # if user didn't specify, use DEFAULT_GIFLIB 48223 # 48224 if test "x${with_giflib}" = "x"; then 48225 with_giflib=${DEFAULT_GIFLIB} 48226 fi 48227 48228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 48229 $as_echo "${with_giflib}" >&6; } 48230 48231 if test "x${with_giflib}" = "xbundled"; then 48232 USE_EXTERNAL_LIBGIF=false 48233 elif test "x${with_giflib}" = "xsystem"; then 48234 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 48235 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 48236 48237 else 48238 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 48239 fi 48240 48241 48242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 48243 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 48244 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 48245 $as_echo_n "(cached) " >&6 48246 else 48247 ac_check_lib_save_LIBS=$LIBS 48248 LIBS="-lgif $LIBS" 48249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48250 /* end confdefs.h. */ 48251 48252 /* Override any GCC internal prototype to avoid an error. 48253 Use char because int might match the return type of a GCC 48254 builtin and then its argument prototype would still apply. */ 48255 #ifdef __cplusplus 48256 extern "C" 48257 #endif 48258 char DGifGetCode (); 48259 int 48260 main () 48261 { 48262 return DGifGetCode (); 48263 ; 48264 return 0; 48265 } 48266 _ACEOF 48267 if ac_fn_cxx_try_link "$LINENO"; then : 48268 ac_cv_lib_gif_DGifGetCode=yes 48269 else 48270 ac_cv_lib_gif_DGifGetCode=no 48271 fi 48272 rm -f core conftest.err conftest.$ac_objext \ 48273 conftest$ac_exeext conftest.$ac_ext 48274 LIBS=$ac_check_lib_save_LIBS 48275 fi 48276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 48277 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 48278 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 48279 cat >>confdefs.h <<_ACEOF 48280 #define HAVE_LIBGIF 1 48281 _ACEOF 48282 48283 LIBS="-lgif $LIBS" 48284 48285 else 48286 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 48287 fi 48288 48289 48290 USE_EXTERNAL_LIBGIF=true 48291 else 48292 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 48293 fi 48294 48295 48296 ############################################################################### 48297 # 48298 # Check for the zlib library 48299 # 48300 48301 48302 # Check whether --with-zlib was given. 48303 if test "${with_zlib+set}" = set; then : 48304 withval=$with_zlib; 48305 fi 48306 48307 48308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 48309 $as_echo_n "checking for compress in -lz... " >&6; } 48310 if ${ac_cv_lib_z_compress+:} false; then : 48311 $as_echo_n "(cached) " >&6 48312 else 48313 ac_check_lib_save_LIBS=$LIBS 48314 LIBS="-lz $LIBS" 48315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48316 /* end confdefs.h. */ 48317 48318 /* Override any GCC internal prototype to avoid an error. 48319 Use char because int might match the return type of a GCC 48320 builtin and then its argument prototype would still apply. */ 48321 #ifdef __cplusplus 48322 extern "C" 48323 #endif 48324 char compress (); 48325 int 48326 main () 48327 { 48328 return compress (); 48329 ; 48330 return 0; 48331 } 48332 _ACEOF 48333 if ac_fn_cxx_try_link "$LINENO"; then : 48334 ac_cv_lib_z_compress=yes 48335 else 48336 ac_cv_lib_z_compress=no 48337 fi 48338 rm -f core conftest.err conftest.$ac_objext \ 48339 conftest$ac_exeext conftest.$ac_ext 48340 LIBS=$ac_check_lib_save_LIBS 48341 fi 48342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 48343 $as_echo "$ac_cv_lib_z_compress" >&6; } 48344 if test "x$ac_cv_lib_z_compress" = xyes; then : 48345 ZLIB_FOUND=yes 48346 else 48347 ZLIB_FOUND=no 48348 fi 48349 48350 48351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 48352 $as_echo_n "checking for which zlib to use... " >&6; } 48353 48354 DEFAULT_ZLIB=bundled 48355 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48356 # 48357 # On macosx default is system...on others default is 48358 # 48359 DEFAULT_ZLIB=system 48360 fi 48361 48362 if test "x${ZLIB_FOUND}" != "xyes"; then 48363 # 48364 # If we don't find any system...set default to bundled 48365 # 48366 DEFAULT_ZLIB=bundled 48367 fi 48368 48369 # 48370 # If user didn't specify, use DEFAULT_ZLIB 48371 # 48372 if test "x${with_zlib}" = "x"; then 48373 with_zlib=${DEFAULT_ZLIB} 48374 fi 48375 48376 if test "x${with_zlib}" = "xbundled"; then 48377 USE_EXTERNAL_LIBZ=false 48378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48379 $as_echo "bundled" >&6; } 48380 elif test "x${with_zlib}" = "xsystem"; then 48381 if test "x${ZLIB_FOUND}" = "xyes"; then 48382 USE_EXTERNAL_LIBZ=true 48383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48384 $as_echo "system" >&6; } 48385 else 48386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 48387 $as_echo "system not found" >&6; } 48388 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 48389 fi 48390 else 48391 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 48392 fi 48393 48394 48395 48396 ############################################################################### 48397 LIBZIP_CAN_USE_MMAP=true 48398 48399 48400 48401 ############################################################################### 48402 # 48403 # Check if altzone exists in time.h 48404 # 48405 48406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48407 /* end confdefs.h. */ 48408 #include <time.h> 48409 int 48410 main () 48411 { 48412 return (int)altzone; 48413 ; 48414 return 0; 48415 } 48416 _ACEOF 48417 if ac_fn_cxx_try_link "$LINENO"; then : 48418 has_altzone=yes 48419 else 48420 has_altzone=no 48421 fi 48422 rm -f core conftest.err conftest.$ac_objext \ 48423 conftest$ac_exeext conftest.$ac_ext 48424 if test "x$has_altzone" = xyes; then 48425 48426 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 48427 48428 fi 48429 48430 ############################################################################### 48431 # 48432 # Check the maths library 48433 # 48434 48435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 48436 $as_echo_n "checking for cos in -lm... " >&6; } 48437 if ${ac_cv_lib_m_cos+:} false; then : 48438 $as_echo_n "(cached) " >&6 48439 else 48440 ac_check_lib_save_LIBS=$LIBS 48441 LIBS="-lm $LIBS" 48442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48443 /* end confdefs.h. */ 48444 48445 /* Override any GCC internal prototype to avoid an error. 48446 Use char because int might match the return type of a GCC 48447 builtin and then its argument prototype would still apply. */ 48448 #ifdef __cplusplus 48449 extern "C" 48450 #endif 48451 char cos (); 48452 int 48453 main () 48454 { 48455 return cos (); 48456 ; 48457 return 0; 48458 } 48459 _ACEOF 48460 if ac_fn_cxx_try_link "$LINENO"; then : 48461 ac_cv_lib_m_cos=yes 48462 else 48463 ac_cv_lib_m_cos=no 48464 fi 48465 rm -f core conftest.err conftest.$ac_objext \ 48466 conftest$ac_exeext conftest.$ac_ext 48467 LIBS=$ac_check_lib_save_LIBS 48468 fi 48469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 48470 $as_echo "$ac_cv_lib_m_cos" >&6; } 48471 if test "x$ac_cv_lib_m_cos" = xyes; then : 48472 cat >>confdefs.h <<_ACEOF 48473 #define HAVE_LIBM 1 48474 _ACEOF 48475 48476 LIBS="-lm $LIBS" 48477 48478 else 48479 48480 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 48481 $as_echo "$as_me: Maths library was not found" >&6;} 48482 48483 48484 fi 48485 48486 48487 48488 ############################################################################### 48489 # 48490 # Check for libdl.so 48491 48492 save_LIBS="$LIBS" 48493 LIBS="" 48494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 48495 $as_echo_n "checking for dlopen in -ldl... " >&6; } 48496 if ${ac_cv_lib_dl_dlopen+:} false; then : 48497 $as_echo_n "(cached) " >&6 48498 else 48499 ac_check_lib_save_LIBS=$LIBS 48500 LIBS="-ldl $LIBS" 48501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48502 /* end confdefs.h. */ 48503 48504 /* Override any GCC internal prototype to avoid an error. 48505 Use char because int might match the return type of a GCC 48506 builtin and then its argument prototype would still apply. */ 48507 #ifdef __cplusplus 48508 extern "C" 48509 #endif 48510 char dlopen (); 48511 int 48512 main () 48513 { 48514 return dlopen (); 48515 ; 48516 return 0; 48517 } 48518 _ACEOF 48519 if ac_fn_cxx_try_link "$LINENO"; then : 48520 ac_cv_lib_dl_dlopen=yes 48521 else 48522 ac_cv_lib_dl_dlopen=no 48523 fi 48524 rm -f core conftest.err conftest.$ac_objext \ 48525 conftest$ac_exeext conftest.$ac_ext 48526 LIBS=$ac_check_lib_save_LIBS 48527 fi 48528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 48529 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 48530 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 48531 cat >>confdefs.h <<_ACEOF 48532 #define HAVE_LIBDL 1 48533 _ACEOF 48534 48535 LIBS="-ldl $LIBS" 48536 48537 fi 48538 48539 LIBDL="$LIBS" 48540 48541 LIBS="$save_LIBS" 48542 48543 48544 ############################################################################### 48545 # 48546 # statically link libstdc++ before C++ ABI is stablized on Linux unless 48547 # dynamic build is configured on command line. 48548 # 48549 48550 # Check whether --with-stdc++lib was given. 48551 if test "${with_stdc__lib+set}" = set; then : 48552 withval=$with_stdc__lib; 48553 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 48554 && test "x$with_stdc__lib" != xdefault; then 48555 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 48556 fi 48557 48558 else 48559 with_stdc__lib=default 48560 48561 fi 48562 48563 48564 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48565 # Test if -lstdc++ works. 48566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 48567 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 48568 ac_ext=cpp 48569 ac_cpp='$CXXCPP $CPPFLAGS' 48570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48573 48574 OLD_CXXFLAGS="$CXXFLAGS" 48575 CXXFLAGS="$CXXFLAGS -lstdc++" 48576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48577 /* end confdefs.h. */ 48578 48579 int 48580 main () 48581 { 48582 return 0; 48583 ; 48584 return 0; 48585 } 48586 _ACEOF 48587 if ac_fn_cxx_try_link "$LINENO"; then : 48588 has_dynamic_libstdcxx=yes 48589 else 48590 has_dynamic_libstdcxx=no 48591 fi 48592 rm -f core conftest.err conftest.$ac_objext \ 48593 conftest$ac_exeext conftest.$ac_ext 48594 CXXFLAGS="$OLD_CXXFLAGS" 48595 ac_ext=cpp 48596 ac_cpp='$CXXCPP $CPPFLAGS' 48597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48600 48601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 48602 $as_echo "$has_dynamic_libstdcxx" >&6; } 48603 48604 # Test if stdc++ can be linked statically. 48605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 48606 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 48607 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 48608 ac_ext=cpp 48609 ac_cpp='$CXXCPP $CPPFLAGS' 48610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48613 48614 OLD_LIBS="$LIBS" 48615 OLD_CXX="$CXX" 48616 LIBS="$STATIC_STDCXX_FLAGS" 48617 CXX="$CC" 48618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48619 /* end confdefs.h. */ 48620 48621 int 48622 main () 48623 { 48624 return 0; 48625 ; 48626 return 0; 48627 } 48628 _ACEOF 48629 if ac_fn_cxx_try_link "$LINENO"; then : 48630 has_static_libstdcxx=yes 48631 else 48632 has_static_libstdcxx=no 48633 fi 48634 rm -f core conftest.err conftest.$ac_objext \ 48635 conftest$ac_exeext conftest.$ac_ext 48636 LIBS="$OLD_LIBS" 48637 CXX="$OLD_CXX" 48638 ac_ext=cpp 48639 ac_cpp='$CXXCPP $CPPFLAGS' 48640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48643 48644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 48645 $as_echo "$has_static_libstdcxx" >&6; } 48646 48647 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 48648 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 48649 fi 48650 48651 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 48652 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 48653 fi 48654 48655 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 48656 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 48657 fi 48658 48659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 48660 $as_echo_n "checking how to link with libstdc++... " >&6; } 48661 # If dynamic was requested, it's available since it would fail above otherwise. 48662 # If dynamic wasn't requested, go with static unless it isn't available. 48663 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48664 LIBCXX="$LIBCXX -lstdc++" 48665 LDCXX="$CXX" 48666 STATIC_CXX_SETTING="STATIC_CXX=false" 48667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 48668 $as_echo "dynamic" >&6; } 48669 else 48670 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 48671 LDCXX="$CC" 48672 STATIC_CXX_SETTING="STATIC_CXX=true" 48673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 48674 $as_echo "static" >&6; } 48675 fi 48676 fi 48677 48678 48679 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48680 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 48681 48682 pkg_failed=no 48683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 48684 $as_echo_n "checking for LIBFFI... " >&6; } 48685 48686 if test -n "$LIBFFI_CFLAGS"; then 48687 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 48688 elif test -n "$PKG_CONFIG"; then 48689 if test -n "$PKG_CONFIG" && \ 48690 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 48691 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 48692 ac_status=$? 48693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48694 test $ac_status = 0; }; then 48695 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 48696 else 48697 pkg_failed=yes 48698 fi 48699 else 48700 pkg_failed=untried 48701 fi 48702 if test -n "$LIBFFI_LIBS"; then 48703 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 48704 elif test -n "$PKG_CONFIG"; then 48705 if test -n "$PKG_CONFIG" && \ 48706 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 48707 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 48708 ac_status=$? 48709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48710 test $ac_status = 0; }; then 48711 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 48712 else 48713 pkg_failed=yes 48714 fi 48715 else 48716 pkg_failed=untried 48717 fi 48718 48719 48720 48721 if test $pkg_failed = yes; then 48722 48723 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48724 _pkg_short_errors_supported=yes 48725 else 48726 _pkg_short_errors_supported=no 48727 fi 48728 if test $_pkg_short_errors_supported = yes; then 48729 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 48730 else 48731 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 48732 fi 48733 # Put the nasty error message in config.log where it belongs 48734 echo "$LIBFFI_PKG_ERRORS" >&5 48735 48736 as_fn_error $? "Package requirements (libffi) were not met: 48737 48738 $LIBFFI_PKG_ERRORS 48739 48740 Consider adjusting the PKG_CONFIG_PATH environment variable if you 48741 installed software in a non-standard prefix. 48742 48743 Alternatively, you may set the environment variables LIBFFI_CFLAGS 48744 and LIBFFI_LIBS to avoid the need to call pkg-config. 48745 See the pkg-config man page for more details. 48746 " "$LINENO" 5 48747 elif test $pkg_failed = untried; then 48748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48750 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 48751 is in your PATH or set the PKG_CONFIG environment variable to the full 48752 path to pkg-config. 48753 48754 Alternatively, you may set the environment variables LIBFFI_CFLAGS 48755 and LIBFFI_LIBS to avoid the need to call pkg-config. 48756 See the pkg-config man page for more details. 48757 48758 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 48759 See \`config.log' for more details" "$LINENO" 5; } 48760 else 48761 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 48762 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 48763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48764 $as_echo "yes" >&6; } 48765 : 48766 fi 48767 48768 fi 48769 48770 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48771 # Extract the first word of "llvm-config", so it can be a program name with args. 48772 set dummy llvm-config; ac_word=$2 48773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48774 $as_echo_n "checking for $ac_word... " >&6; } 48775 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 48776 $as_echo_n "(cached) " >&6 48777 else 48778 if test -n "$LLVM_CONFIG"; then 48779 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 48780 else 48781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48782 for as_dir in $PATH 48783 do 48784 IFS=$as_save_IFS 48785 test -z "$as_dir" && as_dir=. 48786 for ac_exec_ext in '' $ac_executable_extensions; do 48787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48788 ac_cv_prog_LLVM_CONFIG="llvm-config" 48789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48790 break 2 48791 fi 48792 done 48793 done 48794 IFS=$as_save_IFS 48795 48796 fi 48797 fi 48798 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 48799 if test -n "$LLVM_CONFIG"; then 48800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 48801 $as_echo "$LLVM_CONFIG" >&6; } 48802 else 48803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48804 $as_echo "no" >&6; } 48805 fi 48806 48807 48808 48809 if test "x$LLVM_CONFIG" != xllvm-config; then 48810 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 48811 fi 48812 48813 llvm_components="jit mcjit engine nativecodegen native" 48814 unset LLVM_CFLAGS 48815 for flag in $("$LLVM_CONFIG" --cxxflags); do 48816 if echo "${flag}" | grep -q '^-[ID]'; then 48817 if test "${flag}" != "-D_DEBUG" ; then 48818 if test "${LLVM_CFLAGS}" != "" ; then 48819 LLVM_CFLAGS="${LLVM_CFLAGS} " 48820 fi 48821 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 48822 fi 48823 fi 48824 done 48825 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 48826 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 48827 48828 unset LLVM_LDFLAGS 48829 for flag in $("${LLVM_CONFIG}" --ldflags); do 48830 if echo "${flag}" | grep -q '^-L'; then 48831 if test "${LLVM_LDFLAGS}" != ""; then 48832 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 48833 fi 48834 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 48835 fi 48836 done 48837 48838 unset LLVM_LIBS 48839 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 48840 if echo "${flag}" | grep -q '^-l'; then 48841 if test "${LLVM_LIBS}" != ""; then 48842 LLVM_LIBS="${LLVM_LIBS} " 48843 fi 48844 LLVM_LIBS="${LLVM_LIBS}${flag}" 48845 fi 48846 done 48847 48848 48849 48850 48851 fi 48852 48853 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 48854 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 48855 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 48856 fi 48857 48858 # TODO better (platform agnostic) test 48859 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 48860 LIBCXX="-lstdc++" 48861 fi 48862 48863 48864 48865 48866 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 48867 48868 48869 # Check whether --with-msvcr-dll was given. 48870 if test "${with_msvcr_dll+set}" = set; then : 48871 withval=$with_msvcr_dll; 48872 fi 48873 48874 48875 if test "x$with_msvcr_dll" != x; then 48876 # If given explicitely by user, do not probe. If not present, fail directly. 48877 48878 DLL_NAME="$MSVCR_NAME" 48879 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 48880 METHOD="--with-msvcr-dll" 48881 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48882 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48883 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48884 48885 # Need to check if the found msvcr is correct architecture 48886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48887 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48888 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48890 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48891 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48892 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48893 CORRECT_MSVCR_ARCH="PE32 executable" 48894 else 48895 CORRECT_MSVCR_ARCH="PE32+ executable" 48896 fi 48897 else 48898 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48899 CORRECT_MSVCR_ARCH=386 48900 else 48901 CORRECT_MSVCR_ARCH=x86-64 48902 fi 48903 fi 48904 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48906 $as_echo "ok" >&6; } 48907 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48908 48909 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48910 48911 # Input might be given as Windows format, start by converting to 48912 # unix format. 48913 path="$MSVC_DLL" 48914 new_path=`$CYGPATH -u "$path"` 48915 48916 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48917 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48918 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48919 # "foo.exe" is OK but "foo" is an error. 48920 # 48921 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48922 # It is also a way to make sure we got the proper file name for the real test later on. 48923 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48924 if test "x$test_shortpath" = x; then 48925 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48926 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48927 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48928 fi 48929 48930 # Call helper function which possibly converts this using DOS-style short mode. 48931 # If so, the updated path is stored in $new_path. 48932 48933 input_path="$new_path" 48934 # Check if we need to convert this using DOS-style short mode. If the path 48935 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48936 # take no chances and rewrite it. 48937 # Note: m4 eats our [], so we need to use [ and ] instead. 48938 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48939 if test "x$has_forbidden_chars" != x; then 48940 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48941 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48942 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48943 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48944 # Going to short mode and back again did indeed matter. Since short mode is 48945 # case insensitive, let's make it lowercase to improve readability. 48946 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48947 # Now convert it back to Unix-style (cygpath) 48948 input_path=`$CYGPATH -u "$shortmode_path"` 48949 new_path="$input_path" 48950 fi 48951 fi 48952 48953 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48954 if test "x$test_cygdrive_prefix" = x; then 48955 # As a simple fix, exclude /usr/bin since it's not a real path. 48956 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48957 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48958 # a path prefixed by /cygdrive for fixpath to work. 48959 new_path="$CYGWIN_ROOT_PATH$input_path" 48960 fi 48961 fi 48962 48963 48964 if test "x$path" != "x$new_path"; then 48965 MSVC_DLL="$new_path" 48966 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48967 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48968 fi 48969 48970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48971 48972 path="$MSVC_DLL" 48973 has_colon=`$ECHO $path | $GREP ^.:` 48974 new_path="$path" 48975 if test "x$has_colon" = x; then 48976 # Not in mixed or Windows style, start by that. 48977 new_path=`cmd //c echo $path` 48978 fi 48979 48980 48981 input_path="$new_path" 48982 # Check if we need to convert this using DOS-style short mode. If the path 48983 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48984 # take no chances and rewrite it. 48985 # Note: m4 eats our [], so we need to use [ and ] instead. 48986 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48987 if test "x$has_forbidden_chars" != x; then 48988 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48989 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48990 fi 48991 48992 48993 windows_path="$new_path" 48994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48995 unix_path=`$CYGPATH -u "$windows_path"` 48996 new_path="$unix_path" 48997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48998 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48999 new_path="$unix_path" 49000 fi 49001 49002 if test "x$path" != "x$new_path"; then 49003 MSVC_DLL="$new_path" 49004 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49005 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49006 fi 49007 49008 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49009 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49010 49011 else 49012 # We're on a posix platform. Hooray! :) 49013 path="$MSVC_DLL" 49014 has_space=`$ECHO "$path" | $GREP " "` 49015 if test "x$has_space" != x; then 49016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49017 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49018 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49019 fi 49020 49021 # Use eval to expand a potential ~ 49022 eval path="$path" 49023 if test ! -f "$path" && test ! -d "$path"; then 49024 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49025 fi 49026 49027 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49028 fi 49029 49030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49031 $as_echo_n "checking for $DLL_NAME... " >&6; } 49032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49033 $as_echo "$MSVC_DLL" >&6; } 49034 else 49035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49036 $as_echo "incorrect, ignoring" >&6; } 49037 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49038 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49039 fi 49040 fi 49041 49042 if test "x$MSVC_DLL" = x; then 49043 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 49044 fi 49045 MSVCR_DLL="$MSVC_DLL" 49046 elif test "x$DEVKIT_MSVCR_DLL" != x; then 49047 49048 DLL_NAME="$MSVCR_NAME" 49049 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 49050 METHOD="devkit" 49051 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49052 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49053 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49054 49055 # Need to check if the found msvcr is correct architecture 49056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49057 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49058 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49060 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49061 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49062 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49063 CORRECT_MSVCR_ARCH="PE32 executable" 49064 else 49065 CORRECT_MSVCR_ARCH="PE32+ executable" 49066 fi 49067 else 49068 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49069 CORRECT_MSVCR_ARCH=386 49070 else 49071 CORRECT_MSVCR_ARCH=x86-64 49072 fi 49073 fi 49074 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49076 $as_echo "ok" >&6; } 49077 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49078 49079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49080 49081 # Input might be given as Windows format, start by converting to 49082 # unix format. 49083 path="$MSVC_DLL" 49084 new_path=`$CYGPATH -u "$path"` 49085 49086 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49087 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49088 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49089 # "foo.exe" is OK but "foo" is an error. 49090 # 49091 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49092 # It is also a way to make sure we got the proper file name for the real test later on. 49093 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49094 if test "x$test_shortpath" = x; then 49095 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49096 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49097 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49098 fi 49099 49100 # Call helper function which possibly converts this using DOS-style short mode. 49101 # If so, the updated path is stored in $new_path. 49102 49103 input_path="$new_path" 49104 # Check if we need to convert this using DOS-style short mode. If the path 49105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49106 # take no chances and rewrite it. 49107 # Note: m4 eats our [], so we need to use [ and ] instead. 49108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49109 if test "x$has_forbidden_chars" != x; then 49110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49111 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49112 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49113 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49114 # Going to short mode and back again did indeed matter. Since short mode is 49115 # case insensitive, let's make it lowercase to improve readability. 49116 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49117 # Now convert it back to Unix-style (cygpath) 49118 input_path=`$CYGPATH -u "$shortmode_path"` 49119 new_path="$input_path" 49120 fi 49121 fi 49122 49123 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49124 if test "x$test_cygdrive_prefix" = x; then 49125 # As a simple fix, exclude /usr/bin since it's not a real path. 49126 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49127 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49128 # a path prefixed by /cygdrive for fixpath to work. 49129 new_path="$CYGWIN_ROOT_PATH$input_path" 49130 fi 49131 fi 49132 49133 49134 if test "x$path" != "x$new_path"; then 49135 MSVC_DLL="$new_path" 49136 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49137 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49138 fi 49139 49140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49141 49142 path="$MSVC_DLL" 49143 has_colon=`$ECHO $path | $GREP ^.:` 49144 new_path="$path" 49145 if test "x$has_colon" = x; then 49146 # Not in mixed or Windows style, start by that. 49147 new_path=`cmd //c echo $path` 49148 fi 49149 49150 49151 input_path="$new_path" 49152 # Check if we need to convert this using DOS-style short mode. If the path 49153 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49154 # take no chances and rewrite it. 49155 # Note: m4 eats our [], so we need to use [ and ] instead. 49156 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49157 if test "x$has_forbidden_chars" != x; then 49158 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49159 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49160 fi 49161 49162 49163 windows_path="$new_path" 49164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49165 unix_path=`$CYGPATH -u "$windows_path"` 49166 new_path="$unix_path" 49167 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49168 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49169 new_path="$unix_path" 49170 fi 49171 49172 if test "x$path" != "x$new_path"; then 49173 MSVC_DLL="$new_path" 49174 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49175 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49176 fi 49177 49178 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49179 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49180 49181 else 49182 # We're on a posix platform. Hooray! :) 49183 path="$MSVC_DLL" 49184 has_space=`$ECHO "$path" | $GREP " "` 49185 if test "x$has_space" != x; then 49186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49187 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49188 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49189 fi 49190 49191 # Use eval to expand a potential ~ 49192 eval path="$path" 49193 if test ! -f "$path" && test ! -d "$path"; then 49194 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49195 fi 49196 49197 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49198 fi 49199 49200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49201 $as_echo_n "checking for $DLL_NAME... " >&6; } 49202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49203 $as_echo "$MSVC_DLL" >&6; } 49204 else 49205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49206 $as_echo "incorrect, ignoring" >&6; } 49207 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49208 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49209 fi 49210 fi 49211 49212 if test "x$MSVC_DLL" = x; then 49213 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 49214 fi 49215 MSVCR_DLL="$MSVC_DLL" 49216 else 49217 49218 DLL_NAME="${MSVCR_NAME}" 49219 MSVC_DLL= 49220 49221 if test "x$MSVC_DLL" = x; then 49222 if test "x$VCINSTALLDIR" != x; then 49223 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49224 49225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49226 49227 # Input might be given as Windows format, start by converting to 49228 # unix format. 49229 path="$CYGWIN_VC_INSTALL_DIR" 49230 new_path=`$CYGPATH -u "$path"` 49231 49232 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49233 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49234 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49235 # "foo.exe" is OK but "foo" is an error. 49236 # 49237 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49238 # It is also a way to make sure we got the proper file name for the real test later on. 49239 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49240 if test "x$test_shortpath" = x; then 49241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 49242 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 49243 as_fn_error $? "Cannot locate the the path of CYGWIN_VC_INSTALL_DIR" "$LINENO" 5 49244 fi 49245 49246 # Call helper function which possibly converts this using DOS-style short mode. 49247 # If so, the updated path is stored in $new_path. 49248 49249 input_path="$new_path" 49250 # Check if we need to convert this using DOS-style short mode. If the path 49251 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49252 # take no chances and rewrite it. 49253 # Note: m4 eats our [], so we need to use [ and ] instead. 49254 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49255 if test "x$has_forbidden_chars" != x; then 49256 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49257 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49258 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49259 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49260 # Going to short mode and back again did indeed matter. Since short mode is 49261 # case insensitive, let's make it lowercase to improve readability. 49262 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49263 # Now convert it back to Unix-style (cygpath) 49264 input_path=`$CYGPATH -u "$shortmode_path"` 49265 new_path="$input_path" 49266 fi 49267 fi 49268 49269 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49270 if test "x$test_cygdrive_prefix" = x; then 49271 # As a simple fix, exclude /usr/bin since it's not a real path. 49272 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49273 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49274 # a path prefixed by /cygdrive for fixpath to work. 49275 new_path="$CYGWIN_ROOT_PATH$input_path" 49276 fi 49277 fi 49278 49279 49280 if test "x$path" != "x$new_path"; then 49281 CYGWIN_VC_INSTALL_DIR="$new_path" 49282 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 49283 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 49284 fi 49285 49286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49287 49288 path="$CYGWIN_VC_INSTALL_DIR" 49289 has_colon=`$ECHO $path | $GREP ^.:` 49290 new_path="$path" 49291 if test "x$has_colon" = x; then 49292 # Not in mixed or Windows style, start by that. 49293 new_path=`cmd //c echo $path` 49294 fi 49295 49296 49297 input_path="$new_path" 49298 # Check if we need to convert this using DOS-style short mode. If the path 49299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49300 # take no chances and rewrite it. 49301 # Note: m4 eats our [], so we need to use [ and ] instead. 49302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49303 if test "x$has_forbidden_chars" != x; then 49304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49305 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49306 fi 49307 49308 49309 windows_path="$new_path" 49310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49311 unix_path=`$CYGPATH -u "$windows_path"` 49312 new_path="$unix_path" 49313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49314 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49315 new_path="$unix_path" 49316 fi 49317 49318 if test "x$path" != "x$new_path"; then 49319 CYGWIN_VC_INSTALL_DIR="$new_path" 49320 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 49321 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 49322 fi 49323 49324 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49325 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49326 49327 else 49328 # We're on a posix platform. Hooray! :) 49329 path="$CYGWIN_VC_INSTALL_DIR" 49330 has_space=`$ECHO "$path" | $GREP " "` 49331 if test "x$has_space" != x; then 49332 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 49333 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 49334 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49335 fi 49336 49337 # Use eval to expand a potential ~ 49338 eval path="$path" 49339 if test ! -f "$path" && test ! -d "$path"; then 49340 as_fn_error $? "The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 49341 fi 49342 49343 CYGWIN_VC_INSTALL_DIR="`cd "$path"; $THEPWDCMD -L`" 49344 fi 49345 49346 if test "$VS_VERSION" -lt 2017; then 49347 # Probe: Using well-known location from Visual Studio 12.0 and older 49348 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49349 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49350 else 49351 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49352 fi 49353 else 49354 # Probe: Using well-known location from VS 2017 49355 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49356 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 49357 else 49358 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 49359 fi 49360 fi 49361 # In case any of the above finds more than one file, loop over them. 49362 for possible_msvc_dll in $POSSIBLE_MSVC_DLL; do 49363 $ECHO "POSSIBLE_MSVC_DLL $possible_msvc_dll" 49364 49365 DLL_NAME="$DLL_NAME" 49366 POSSIBLE_MSVC_DLL="$possible_msvc_dll" 49367 METHOD="well-known location in VCINSTALLDIR" 49368 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49369 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49370 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49371 49372 # Need to check if the found msvcr is correct architecture 49373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49374 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49375 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49377 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49378 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49379 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49380 CORRECT_MSVCR_ARCH="PE32 executable" 49381 else 49382 CORRECT_MSVCR_ARCH="PE32+ executable" 49383 fi 49384 else 49385 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49386 CORRECT_MSVCR_ARCH=386 49387 else 49388 CORRECT_MSVCR_ARCH=x86-64 49389 fi 49390 fi 49391 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49393 $as_echo "ok" >&6; } 49394 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49395 49396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49397 49398 # Input might be given as Windows format, start by converting to 49399 # unix format. 49400 path="$MSVC_DLL" 49401 new_path=`$CYGPATH -u "$path"` 49402 49403 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49404 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49405 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49406 # "foo.exe" is OK but "foo" is an error. 49407 # 49408 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49409 # It is also a way to make sure we got the proper file name for the real test later on. 49410 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49411 if test "x$test_shortpath" = x; then 49412 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49413 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49414 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49415 fi 49416 49417 # Call helper function which possibly converts this using DOS-style short mode. 49418 # If so, the updated path is stored in $new_path. 49419 49420 input_path="$new_path" 49421 # Check if we need to convert this using DOS-style short mode. If the path 49422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49423 # take no chances and rewrite it. 49424 # Note: m4 eats our [], so we need to use [ and ] instead. 49425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49426 if test "x$has_forbidden_chars" != x; then 49427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49428 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49429 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49430 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49431 # Going to short mode and back again did indeed matter. Since short mode is 49432 # case insensitive, let's make it lowercase to improve readability. 49433 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49434 # Now convert it back to Unix-style (cygpath) 49435 input_path=`$CYGPATH -u "$shortmode_path"` 49436 new_path="$input_path" 49437 fi 49438 fi 49439 49440 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49441 if test "x$test_cygdrive_prefix" = x; then 49442 # As a simple fix, exclude /usr/bin since it's not a real path. 49443 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49444 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49445 # a path prefixed by /cygdrive for fixpath to work. 49446 new_path="$CYGWIN_ROOT_PATH$input_path" 49447 fi 49448 fi 49449 49450 49451 if test "x$path" != "x$new_path"; then 49452 MSVC_DLL="$new_path" 49453 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49454 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49455 fi 49456 49457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49458 49459 path="$MSVC_DLL" 49460 has_colon=`$ECHO $path | $GREP ^.:` 49461 new_path="$path" 49462 if test "x$has_colon" = x; then 49463 # Not in mixed or Windows style, start by that. 49464 new_path=`cmd //c echo $path` 49465 fi 49466 49467 49468 input_path="$new_path" 49469 # Check if we need to convert this using DOS-style short mode. If the path 49470 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49471 # take no chances and rewrite it. 49472 # Note: m4 eats our [], so we need to use [ and ] instead. 49473 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49474 if test "x$has_forbidden_chars" != x; then 49475 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49476 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49477 fi 49478 49479 49480 windows_path="$new_path" 49481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49482 unix_path=`$CYGPATH -u "$windows_path"` 49483 new_path="$unix_path" 49484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49485 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49486 new_path="$unix_path" 49487 fi 49488 49489 if test "x$path" != "x$new_path"; then 49490 MSVC_DLL="$new_path" 49491 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49492 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49493 fi 49494 49495 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49496 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49497 49498 else 49499 # We're on a posix platform. Hooray! :) 49500 path="$MSVC_DLL" 49501 has_space=`$ECHO "$path" | $GREP " "` 49502 if test "x$has_space" != x; then 49503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49504 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49505 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49506 fi 49507 49508 # Use eval to expand a potential ~ 49509 eval path="$path" 49510 if test ! -f "$path" && test ! -d "$path"; then 49511 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49512 fi 49513 49514 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49515 fi 49516 49517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49518 $as_echo_n "checking for $DLL_NAME... " >&6; } 49519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49520 $as_echo "$MSVC_DLL" >&6; } 49521 else 49522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49523 $as_echo "incorrect, ignoring" >&6; } 49524 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49525 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49526 fi 49527 fi 49528 49529 done 49530 fi 49531 fi 49532 49533 if test "x$MSVC_DLL" = x; then 49534 # Probe: Check in the Boot JDK directory. 49535 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 49536 49537 DLL_NAME="$DLL_NAME" 49538 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49539 METHOD="well-known location in Boot JDK" 49540 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49541 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49542 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49543 49544 # Need to check if the found msvcr is correct architecture 49545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49546 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49547 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49549 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49550 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49551 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49552 CORRECT_MSVCR_ARCH="PE32 executable" 49553 else 49554 CORRECT_MSVCR_ARCH="PE32+ executable" 49555 fi 49556 else 49557 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49558 CORRECT_MSVCR_ARCH=386 49559 else 49560 CORRECT_MSVCR_ARCH=x86-64 49561 fi 49562 fi 49563 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49565 $as_echo "ok" >&6; } 49566 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49567 49568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49569 49570 # Input might be given as Windows format, start by converting to 49571 # unix format. 49572 path="$MSVC_DLL" 49573 new_path=`$CYGPATH -u "$path"` 49574 49575 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49576 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49577 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49578 # "foo.exe" is OK but "foo" is an error. 49579 # 49580 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49581 # It is also a way to make sure we got the proper file name for the real test later on. 49582 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49583 if test "x$test_shortpath" = x; then 49584 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49585 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49586 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49587 fi 49588 49589 # Call helper function which possibly converts this using DOS-style short mode. 49590 # If so, the updated path is stored in $new_path. 49591 49592 input_path="$new_path" 49593 # Check if we need to convert this using DOS-style short mode. If the path 49594 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49595 # take no chances and rewrite it. 49596 # Note: m4 eats our [], so we need to use [ and ] instead. 49597 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49598 if test "x$has_forbidden_chars" != x; then 49599 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49600 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49601 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49602 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49603 # Going to short mode and back again did indeed matter. Since short mode is 49604 # case insensitive, let's make it lowercase to improve readability. 49605 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49606 # Now convert it back to Unix-style (cygpath) 49607 input_path=`$CYGPATH -u "$shortmode_path"` 49608 new_path="$input_path" 49609 fi 49610 fi 49611 49612 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49613 if test "x$test_cygdrive_prefix" = x; then 49614 # As a simple fix, exclude /usr/bin since it's not a real path. 49615 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49616 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49617 # a path prefixed by /cygdrive for fixpath to work. 49618 new_path="$CYGWIN_ROOT_PATH$input_path" 49619 fi 49620 fi 49621 49622 49623 if test "x$path" != "x$new_path"; then 49624 MSVC_DLL="$new_path" 49625 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49626 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49627 fi 49628 49629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49630 49631 path="$MSVC_DLL" 49632 has_colon=`$ECHO $path | $GREP ^.:` 49633 new_path="$path" 49634 if test "x$has_colon" = x; then 49635 # Not in mixed or Windows style, start by that. 49636 new_path=`cmd //c echo $path` 49637 fi 49638 49639 49640 input_path="$new_path" 49641 # Check if we need to convert this using DOS-style short mode. If the path 49642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49643 # take no chances and rewrite it. 49644 # Note: m4 eats our [], so we need to use [ and ] instead. 49645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49646 if test "x$has_forbidden_chars" != x; then 49647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49648 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49649 fi 49650 49651 49652 windows_path="$new_path" 49653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49654 unix_path=`$CYGPATH -u "$windows_path"` 49655 new_path="$unix_path" 49656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49658 new_path="$unix_path" 49659 fi 49660 49661 if test "x$path" != "x$new_path"; then 49662 MSVC_DLL="$new_path" 49663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49664 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49665 fi 49666 49667 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49668 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49669 49670 else 49671 # We're on a posix platform. Hooray! :) 49672 path="$MSVC_DLL" 49673 has_space=`$ECHO "$path" | $GREP " "` 49674 if test "x$has_space" != x; then 49675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49676 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49677 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49678 fi 49679 49680 # Use eval to expand a potential ~ 49681 eval path="$path" 49682 if test ! -f "$path" && test ! -d "$path"; then 49683 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49684 fi 49685 49686 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49687 fi 49688 49689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49690 $as_echo_n "checking for $DLL_NAME... " >&6; } 49691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49692 $as_echo "$MSVC_DLL" >&6; } 49693 else 49694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49695 $as_echo "incorrect, ignoring" >&6; } 49696 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49697 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49698 fi 49699 fi 49700 49701 fi 49702 49703 if test "x$MSVC_DLL" = x; then 49704 # Probe: Look in the Windows system32 directory 49705 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 49706 49707 windows_path="$CYGWIN_SYSTEMROOT" 49708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49709 unix_path=`$CYGPATH -u "$windows_path"` 49710 CYGWIN_SYSTEMROOT="$unix_path" 49711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49712 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49713 CYGWIN_SYSTEMROOT="$unix_path" 49714 fi 49715 49716 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 49717 49718 DLL_NAME="$DLL_NAME" 49719 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49720 METHOD="well-known location in SYSTEMROOT" 49721 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49722 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49723 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49724 49725 # Need to check if the found msvcr is correct architecture 49726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49727 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49728 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49730 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49731 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49732 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49733 CORRECT_MSVCR_ARCH="PE32 executable" 49734 else 49735 CORRECT_MSVCR_ARCH="PE32+ executable" 49736 fi 49737 else 49738 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49739 CORRECT_MSVCR_ARCH=386 49740 else 49741 CORRECT_MSVCR_ARCH=x86-64 49742 fi 49743 fi 49744 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49746 $as_echo "ok" >&6; } 49747 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49748 49749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49750 49751 # Input might be given as Windows format, start by converting to 49752 # unix format. 49753 path="$MSVC_DLL" 49754 new_path=`$CYGPATH -u "$path"` 49755 49756 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49757 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49758 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49759 # "foo.exe" is OK but "foo" is an error. 49760 # 49761 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49762 # It is also a way to make sure we got the proper file name for the real test later on. 49763 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49764 if test "x$test_shortpath" = x; then 49765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49766 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49767 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49768 fi 49769 49770 # Call helper function which possibly converts this using DOS-style short mode. 49771 # If so, the updated path is stored in $new_path. 49772 49773 input_path="$new_path" 49774 # Check if we need to convert this using DOS-style short mode. If the path 49775 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49776 # take no chances and rewrite it. 49777 # Note: m4 eats our [], so we need to use [ and ] instead. 49778 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49779 if test "x$has_forbidden_chars" != x; then 49780 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49781 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49782 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49783 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49784 # Going to short mode and back again did indeed matter. Since short mode is 49785 # case insensitive, let's make it lowercase to improve readability. 49786 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49787 # Now convert it back to Unix-style (cygpath) 49788 input_path=`$CYGPATH -u "$shortmode_path"` 49789 new_path="$input_path" 49790 fi 49791 fi 49792 49793 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49794 if test "x$test_cygdrive_prefix" = x; then 49795 # As a simple fix, exclude /usr/bin since it's not a real path. 49796 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49797 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49798 # a path prefixed by /cygdrive for fixpath to work. 49799 new_path="$CYGWIN_ROOT_PATH$input_path" 49800 fi 49801 fi 49802 49803 49804 if test "x$path" != "x$new_path"; then 49805 MSVC_DLL="$new_path" 49806 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49807 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49808 fi 49809 49810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49811 49812 path="$MSVC_DLL" 49813 has_colon=`$ECHO $path | $GREP ^.:` 49814 new_path="$path" 49815 if test "x$has_colon" = x; then 49816 # Not in mixed or Windows style, start by that. 49817 new_path=`cmd //c echo $path` 49818 fi 49819 49820 49821 input_path="$new_path" 49822 # Check if we need to convert this using DOS-style short mode. If the path 49823 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49824 # take no chances and rewrite it. 49825 # Note: m4 eats our [], so we need to use [ and ] instead. 49826 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49827 if test "x$has_forbidden_chars" != x; then 49828 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49829 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49830 fi 49831 49832 49833 windows_path="$new_path" 49834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49835 unix_path=`$CYGPATH -u "$windows_path"` 49836 new_path="$unix_path" 49837 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49838 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49839 new_path="$unix_path" 49840 fi 49841 49842 if test "x$path" != "x$new_path"; then 49843 MSVC_DLL="$new_path" 49844 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49845 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49846 fi 49847 49848 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49849 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49850 49851 else 49852 # We're on a posix platform. Hooray! :) 49853 path="$MSVC_DLL" 49854 has_space=`$ECHO "$path" | $GREP " "` 49855 if test "x$has_space" != x; then 49856 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49857 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49858 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49859 fi 49860 49861 # Use eval to expand a potential ~ 49862 eval path="$path" 49863 if test ! -f "$path" && test ! -d "$path"; then 49864 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49865 fi 49866 49867 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49868 fi 49869 49870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49871 $as_echo_n "checking for $DLL_NAME... " >&6; } 49872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49873 $as_echo "$MSVC_DLL" >&6; } 49874 else 49875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49876 $as_echo "incorrect, ignoring" >&6; } 49877 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49878 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49879 fi 49880 fi 49881 49882 fi 49883 49884 if test "x$MSVC_DLL" = x; then 49885 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 49886 if test "x$VS100COMNTOOLS" != x; then 49887 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 49888 49889 windows_path="$CYGWIN_VS_TOOLS_DIR" 49890 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49891 unix_path=`$CYGPATH -u "$windows_path"` 49892 CYGWIN_VS_TOOLS_DIR="$unix_path" 49893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49894 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49895 CYGWIN_VS_TOOLS_DIR="$unix_path" 49896 fi 49897 49898 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49899 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 49900 | $GREP -i /x64/ | $HEAD --lines 1` 49901 else 49902 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 49903 | $GREP -i /x86/ | $HEAD --lines 1` 49904 fi 49905 49906 DLL_NAME="$DLL_NAME" 49907 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49908 METHOD="search of VS100COMNTOOLS" 49909 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49910 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49911 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49912 49913 # Need to check if the found msvcr is correct architecture 49914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49915 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49916 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49918 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49919 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49920 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49921 CORRECT_MSVCR_ARCH="PE32 executable" 49922 else 49923 CORRECT_MSVCR_ARCH="PE32+ executable" 49924 fi 49925 else 49926 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49927 CORRECT_MSVCR_ARCH=386 49928 else 49929 CORRECT_MSVCR_ARCH=x86-64 49930 fi 49931 fi 49932 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49934 $as_echo "ok" >&6; } 49935 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49936 49937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49938 49939 # Input might be given as Windows format, start by converting to 49940 # unix format. 49941 path="$MSVC_DLL" 49942 new_path=`$CYGPATH -u "$path"` 49943 49944 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49945 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49946 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49947 # "foo.exe" is OK but "foo" is an error. 49948 # 49949 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49950 # It is also a way to make sure we got the proper file name for the real test later on. 49951 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49952 if test "x$test_shortpath" = x; then 49953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49954 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49955 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49956 fi 49957 49958 # Call helper function which possibly converts this using DOS-style short mode. 49959 # If so, the updated path is stored in $new_path. 49960 49961 input_path="$new_path" 49962 # Check if we need to convert this using DOS-style short mode. If the path 49963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49964 # take no chances and rewrite it. 49965 # Note: m4 eats our [], so we need to use [ and ] instead. 49966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49967 if test "x$has_forbidden_chars" != x; then 49968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49969 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49970 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49971 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49972 # Going to short mode and back again did indeed matter. Since short mode is 49973 # case insensitive, let's make it lowercase to improve readability. 49974 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49975 # Now convert it back to Unix-style (cygpath) 49976 input_path=`$CYGPATH -u "$shortmode_path"` 49977 new_path="$input_path" 49978 fi 49979 fi 49980 49981 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49982 if test "x$test_cygdrive_prefix" = x; then 49983 # As a simple fix, exclude /usr/bin since it's not a real path. 49984 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49985 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49986 # a path prefixed by /cygdrive for fixpath to work. 49987 new_path="$CYGWIN_ROOT_PATH$input_path" 49988 fi 49989 fi 49990 49991 49992 if test "x$path" != "x$new_path"; then 49993 MSVC_DLL="$new_path" 49994 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49995 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49996 fi 49997 49998 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49999 50000 path="$MSVC_DLL" 50001 has_colon=`$ECHO $path | $GREP ^.:` 50002 new_path="$path" 50003 if test "x$has_colon" = x; then 50004 # Not in mixed or Windows style, start by that. 50005 new_path=`cmd //c echo $path` 50006 fi 50007 50008 50009 input_path="$new_path" 50010 # Check if we need to convert this using DOS-style short mode. If the path 50011 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50012 # take no chances and rewrite it. 50013 # Note: m4 eats our [], so we need to use [ and ] instead. 50014 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50015 if test "x$has_forbidden_chars" != x; then 50016 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50017 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50018 fi 50019 50020 50021 windows_path="$new_path" 50022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50023 unix_path=`$CYGPATH -u "$windows_path"` 50024 new_path="$unix_path" 50025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50027 new_path="$unix_path" 50028 fi 50029 50030 if test "x$path" != "x$new_path"; then 50031 MSVC_DLL="$new_path" 50032 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50033 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50034 fi 50035 50036 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50037 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50038 50039 else 50040 # We're on a posix platform. Hooray! :) 50041 path="$MSVC_DLL" 50042 has_space=`$ECHO "$path" | $GREP " "` 50043 if test "x$has_space" != x; then 50044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50045 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50046 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50047 fi 50048 50049 # Use eval to expand a potential ~ 50050 eval path="$path" 50051 if test ! -f "$path" && test ! -d "$path"; then 50052 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50053 fi 50054 50055 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50056 fi 50057 50058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50059 $as_echo_n "checking for $DLL_NAME... " >&6; } 50060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50061 $as_echo "$MSVC_DLL" >&6; } 50062 else 50063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50064 $as_echo "incorrect, ignoring" >&6; } 50065 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50066 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50067 fi 50068 fi 50069 50070 fi 50071 fi 50072 50073 if test "x$MSVC_DLL" = x; then 50074 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50075 # (This was the original behaviour; kept since it might turn something up) 50076 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50077 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50078 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50079 | $GREP x64 | $HEAD --lines 1` 50080 else 50081 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50082 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50083 if test "x$POSSIBLE_MSVC_DLL" = x; then 50084 # We're grasping at straws now... 50085 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50086 | $HEAD --lines 1` 50087 fi 50088 fi 50089 50090 50091 DLL_NAME="$DLL_NAME" 50092 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50093 METHOD="search of VCINSTALLDIR" 50094 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50095 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50096 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50097 50098 # Need to check if the found msvcr is correct architecture 50099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50100 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50101 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50103 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50104 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50105 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50106 CORRECT_MSVCR_ARCH="PE32 executable" 50107 else 50108 CORRECT_MSVCR_ARCH="PE32+ executable" 50109 fi 50110 else 50111 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50112 CORRECT_MSVCR_ARCH=386 50113 else 50114 CORRECT_MSVCR_ARCH=x86-64 50115 fi 50116 fi 50117 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50119 $as_echo "ok" >&6; } 50120 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50121 50122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50123 50124 # Input might be given as Windows format, start by converting to 50125 # unix format. 50126 path="$MSVC_DLL" 50127 new_path=`$CYGPATH -u "$path"` 50128 50129 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50130 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50131 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50132 # "foo.exe" is OK but "foo" is an error. 50133 # 50134 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50135 # It is also a way to make sure we got the proper file name for the real test later on. 50136 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50137 if test "x$test_shortpath" = x; then 50138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50139 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50140 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50141 fi 50142 50143 # Call helper function which possibly converts this using DOS-style short mode. 50144 # If so, the updated path is stored in $new_path. 50145 50146 input_path="$new_path" 50147 # Check if we need to convert this using DOS-style short mode. If the path 50148 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50149 # take no chances and rewrite it. 50150 # Note: m4 eats our [], so we need to use [ and ] instead. 50151 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50152 if test "x$has_forbidden_chars" != x; then 50153 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50154 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50155 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50156 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50157 # Going to short mode and back again did indeed matter. Since short mode is 50158 # case insensitive, let's make it lowercase to improve readability. 50159 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50160 # Now convert it back to Unix-style (cygpath) 50161 input_path=`$CYGPATH -u "$shortmode_path"` 50162 new_path="$input_path" 50163 fi 50164 fi 50165 50166 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50167 if test "x$test_cygdrive_prefix" = x; then 50168 # As a simple fix, exclude /usr/bin since it's not a real path. 50169 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50170 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50171 # a path prefixed by /cygdrive for fixpath to work. 50172 new_path="$CYGWIN_ROOT_PATH$input_path" 50173 fi 50174 fi 50175 50176 50177 if test "x$path" != "x$new_path"; then 50178 MSVC_DLL="$new_path" 50179 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50180 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50181 fi 50182 50183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50184 50185 path="$MSVC_DLL" 50186 has_colon=`$ECHO $path | $GREP ^.:` 50187 new_path="$path" 50188 if test "x$has_colon" = x; then 50189 # Not in mixed or Windows style, start by that. 50190 new_path=`cmd //c echo $path` 50191 fi 50192 50193 50194 input_path="$new_path" 50195 # Check if we need to convert this using DOS-style short mode. If the path 50196 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50197 # take no chances and rewrite it. 50198 # Note: m4 eats our [], so we need to use [ and ] instead. 50199 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50200 if test "x$has_forbidden_chars" != x; then 50201 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50202 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50203 fi 50204 50205 50206 windows_path="$new_path" 50207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50208 unix_path=`$CYGPATH -u "$windows_path"` 50209 new_path="$unix_path" 50210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50211 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50212 new_path="$unix_path" 50213 fi 50214 50215 if test "x$path" != "x$new_path"; then 50216 MSVC_DLL="$new_path" 50217 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50218 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50219 fi 50220 50221 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50222 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50223 50224 else 50225 # We're on a posix platform. Hooray! :) 50226 path="$MSVC_DLL" 50227 has_space=`$ECHO "$path" | $GREP " "` 50228 if test "x$has_space" != x; then 50229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50230 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50231 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50232 fi 50233 50234 # Use eval to expand a potential ~ 50235 eval path="$path" 50236 if test ! -f "$path" && test ! -d "$path"; then 50237 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50238 fi 50239 50240 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50241 fi 50242 50243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50244 $as_echo_n "checking for $DLL_NAME... " >&6; } 50245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50246 $as_echo "$MSVC_DLL" >&6; } 50247 else 50248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50249 $as_echo "incorrect, ignoring" >&6; } 50250 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50251 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50252 fi 50253 fi 50254 50255 fi 50256 fi 50257 50258 if test "x$MSVC_DLL" = x; then 50259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50260 $as_echo_n "checking for $DLL_NAME... " >&6; } 50261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50262 $as_echo "no" >&6; } 50263 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50264 fi 50265 50266 MSVCR_DLL="$MSVC_DLL" 50267 fi 50268 50269 50270 50271 # Check whether --with-msvcp-dll was given. 50272 if test "${with_msvcp_dll+set}" = set; then : 50273 withval=$with_msvcp_dll; 50274 fi 50275 50276 50277 if test "x$MSVCP_NAME" != "x"; then 50278 if test "x$with_msvcp_dll" != x; then 50279 # If given explicitely by user, do not probe. If not present, fail directly. 50280 50281 DLL_NAME="$MSVCP_NAME" 50282 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 50283 METHOD="--with-msvcp-dll" 50284 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50285 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50286 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50287 50288 # Need to check if the found msvcr is correct architecture 50289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50290 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50291 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50293 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50294 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50295 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50296 CORRECT_MSVCR_ARCH="PE32 executable" 50297 else 50298 CORRECT_MSVCR_ARCH="PE32+ executable" 50299 fi 50300 else 50301 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50302 CORRECT_MSVCR_ARCH=386 50303 else 50304 CORRECT_MSVCR_ARCH=x86-64 50305 fi 50306 fi 50307 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50309 $as_echo "ok" >&6; } 50310 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50311 50312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50313 50314 # Input might be given as Windows format, start by converting to 50315 # unix format. 50316 path="$MSVC_DLL" 50317 new_path=`$CYGPATH -u "$path"` 50318 50319 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50320 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50321 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50322 # "foo.exe" is OK but "foo" is an error. 50323 # 50324 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50325 # It is also a way to make sure we got the proper file name for the real test later on. 50326 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50327 if test "x$test_shortpath" = x; then 50328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50329 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50330 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50331 fi 50332 50333 # Call helper function which possibly converts this using DOS-style short mode. 50334 # If so, the updated path is stored in $new_path. 50335 50336 input_path="$new_path" 50337 # Check if we need to convert this using DOS-style short mode. If the path 50338 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50339 # take no chances and rewrite it. 50340 # Note: m4 eats our [], so we need to use [ and ] instead. 50341 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50342 if test "x$has_forbidden_chars" != x; then 50343 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50344 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50345 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50346 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50347 # Going to short mode and back again did indeed matter. Since short mode is 50348 # case insensitive, let's make it lowercase to improve readability. 50349 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50350 # Now convert it back to Unix-style (cygpath) 50351 input_path=`$CYGPATH -u "$shortmode_path"` 50352 new_path="$input_path" 50353 fi 50354 fi 50355 50356 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50357 if test "x$test_cygdrive_prefix" = x; then 50358 # As a simple fix, exclude /usr/bin since it's not a real path. 50359 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50360 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50361 # a path prefixed by /cygdrive for fixpath to work. 50362 new_path="$CYGWIN_ROOT_PATH$input_path" 50363 fi 50364 fi 50365 50366 50367 if test "x$path" != "x$new_path"; then 50368 MSVC_DLL="$new_path" 50369 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50370 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50371 fi 50372 50373 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50374 50375 path="$MSVC_DLL" 50376 has_colon=`$ECHO $path | $GREP ^.:` 50377 new_path="$path" 50378 if test "x$has_colon" = x; then 50379 # Not in mixed or Windows style, start by that. 50380 new_path=`cmd //c echo $path` 50381 fi 50382 50383 50384 input_path="$new_path" 50385 # Check if we need to convert this using DOS-style short mode. If the path 50386 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50387 # take no chances and rewrite it. 50388 # Note: m4 eats our [], so we need to use [ and ] instead. 50389 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50390 if test "x$has_forbidden_chars" != x; then 50391 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50392 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50393 fi 50394 50395 50396 windows_path="$new_path" 50397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50398 unix_path=`$CYGPATH -u "$windows_path"` 50399 new_path="$unix_path" 50400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50401 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50402 new_path="$unix_path" 50403 fi 50404 50405 if test "x$path" != "x$new_path"; then 50406 MSVC_DLL="$new_path" 50407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50408 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50409 fi 50410 50411 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50412 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50413 50414 else 50415 # We're on a posix platform. Hooray! :) 50416 path="$MSVC_DLL" 50417 has_space=`$ECHO "$path" | $GREP " "` 50418 if test "x$has_space" != x; then 50419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50420 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50421 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50422 fi 50423 50424 # Use eval to expand a potential ~ 50425 eval path="$path" 50426 if test ! -f "$path" && test ! -d "$path"; then 50427 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50428 fi 50429 50430 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50431 fi 50432 50433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50434 $as_echo_n "checking for $DLL_NAME... " >&6; } 50435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50436 $as_echo "$MSVC_DLL" >&6; } 50437 else 50438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50439 $as_echo "incorrect, ignoring" >&6; } 50440 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50441 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50442 fi 50443 fi 50444 50445 if test "x$MSVC_DLL" = x; then 50446 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 50447 fi 50448 MSVCP_DLL="$MSVC_DLL" 50449 elif test "x$DEVKIT_MSVCP_DLL" != x; then 50450 50451 DLL_NAME="$MSVCP_NAME" 50452 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 50453 METHOD="devkit" 50454 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50455 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50456 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50457 50458 # Need to check if the found msvcr is correct architecture 50459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50460 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50461 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50463 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50464 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50465 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50466 CORRECT_MSVCR_ARCH="PE32 executable" 50467 else 50468 CORRECT_MSVCR_ARCH="PE32+ executable" 50469 fi 50470 else 50471 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50472 CORRECT_MSVCR_ARCH=386 50473 else 50474 CORRECT_MSVCR_ARCH=x86-64 50475 fi 50476 fi 50477 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50479 $as_echo "ok" >&6; } 50480 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50481 50482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50483 50484 # Input might be given as Windows format, start by converting to 50485 # unix format. 50486 path="$MSVC_DLL" 50487 new_path=`$CYGPATH -u "$path"` 50488 50489 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50490 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50491 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50492 # "foo.exe" is OK but "foo" is an error. 50493 # 50494 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50495 # It is also a way to make sure we got the proper file name for the real test later on. 50496 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50497 if test "x$test_shortpath" = x; then 50498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50499 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50500 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50501 fi 50502 50503 # Call helper function which possibly converts this using DOS-style short mode. 50504 # If so, the updated path is stored in $new_path. 50505 50506 input_path="$new_path" 50507 # Check if we need to convert this using DOS-style short mode. If the path 50508 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50509 # take no chances and rewrite it. 50510 # Note: m4 eats our [], so we need to use [ and ] instead. 50511 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50512 if test "x$has_forbidden_chars" != x; then 50513 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50514 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50515 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50516 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50517 # Going to short mode and back again did indeed matter. Since short mode is 50518 # case insensitive, let's make it lowercase to improve readability. 50519 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50520 # Now convert it back to Unix-style (cygpath) 50521 input_path=`$CYGPATH -u "$shortmode_path"` 50522 new_path="$input_path" 50523 fi 50524 fi 50525 50526 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50527 if test "x$test_cygdrive_prefix" = x; then 50528 # As a simple fix, exclude /usr/bin since it's not a real path. 50529 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50530 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50531 # a path prefixed by /cygdrive for fixpath to work. 50532 new_path="$CYGWIN_ROOT_PATH$input_path" 50533 fi 50534 fi 50535 50536 50537 if test "x$path" != "x$new_path"; then 50538 MSVC_DLL="$new_path" 50539 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50540 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50541 fi 50542 50543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50544 50545 path="$MSVC_DLL" 50546 has_colon=`$ECHO $path | $GREP ^.:` 50547 new_path="$path" 50548 if test "x$has_colon" = x; then 50549 # Not in mixed or Windows style, start by that. 50550 new_path=`cmd //c echo $path` 50551 fi 50552 50553 50554 input_path="$new_path" 50555 # Check if we need to convert this using DOS-style short mode. If the path 50556 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50557 # take no chances and rewrite it. 50558 # Note: m4 eats our [], so we need to use [ and ] instead. 50559 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50560 if test "x$has_forbidden_chars" != x; then 50561 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50562 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50563 fi 50564 50565 50566 windows_path="$new_path" 50567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50568 unix_path=`$CYGPATH -u "$windows_path"` 50569 new_path="$unix_path" 50570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50571 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50572 new_path="$unix_path" 50573 fi 50574 50575 if test "x$path" != "x$new_path"; then 50576 MSVC_DLL="$new_path" 50577 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50578 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50579 fi 50580 50581 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50582 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50583 50584 else 50585 # We're on a posix platform. Hooray! :) 50586 path="$MSVC_DLL" 50587 has_space=`$ECHO "$path" | $GREP " "` 50588 if test "x$has_space" != x; then 50589 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50590 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50591 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50592 fi 50593 50594 # Use eval to expand a potential ~ 50595 eval path="$path" 50596 if test ! -f "$path" && test ! -d "$path"; then 50597 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50598 fi 50599 50600 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50601 fi 50602 50603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50604 $as_echo_n "checking for $DLL_NAME... " >&6; } 50605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50606 $as_echo "$MSVC_DLL" >&6; } 50607 else 50608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50609 $as_echo "incorrect, ignoring" >&6; } 50610 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50611 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50612 fi 50613 fi 50614 50615 if test "x$MSVC_DLL" = x; then 50616 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 50617 fi 50618 MSVCP_DLL="$MSVC_DLL" 50619 else 50620 50621 DLL_NAME="${MSVCP_NAME}" 50622 MSVC_DLL= 50623 50624 if test "x$MSVC_DLL" = x; then 50625 if test "x$VCINSTALLDIR" != x; then 50626 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 50627 50628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50629 50630 # Input might be given as Windows format, start by converting to 50631 # unix format. 50632 path="$CYGWIN_VC_INSTALL_DIR" 50633 new_path=`$CYGPATH -u "$path"` 50634 50635 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50636 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50637 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50638 # "foo.exe" is OK but "foo" is an error. 50639 # 50640 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50641 # It is also a way to make sure we got the proper file name for the real test later on. 50642 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50643 if test "x$test_shortpath" = x; then 50644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 50645 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 50646 as_fn_error $? "Cannot locate the the path of CYGWIN_VC_INSTALL_DIR" "$LINENO" 5 50647 fi 50648 50649 # Call helper function which possibly converts this using DOS-style short mode. 50650 # If so, the updated path is stored in $new_path. 50651 50652 input_path="$new_path" 50653 # Check if we need to convert this using DOS-style short mode. If the path 50654 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50655 # take no chances and rewrite it. 50656 # Note: m4 eats our [], so we need to use [ and ] instead. 50657 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50658 if test "x$has_forbidden_chars" != x; then 50659 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50660 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50661 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50662 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50663 # Going to short mode and back again did indeed matter. Since short mode is 50664 # case insensitive, let's make it lowercase to improve readability. 50665 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50666 # Now convert it back to Unix-style (cygpath) 50667 input_path=`$CYGPATH -u "$shortmode_path"` 50668 new_path="$input_path" 50669 fi 50670 fi 50671 50672 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50673 if test "x$test_cygdrive_prefix" = x; then 50674 # As a simple fix, exclude /usr/bin since it's not a real path. 50675 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50676 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50677 # a path prefixed by /cygdrive for fixpath to work. 50678 new_path="$CYGWIN_ROOT_PATH$input_path" 50679 fi 50680 fi 50681 50682 50683 if test "x$path" != "x$new_path"; then 50684 CYGWIN_VC_INSTALL_DIR="$new_path" 50685 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 50686 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 50687 fi 50688 50689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50690 50691 path="$CYGWIN_VC_INSTALL_DIR" 50692 has_colon=`$ECHO $path | $GREP ^.:` 50693 new_path="$path" 50694 if test "x$has_colon" = x; then 50695 # Not in mixed or Windows style, start by that. 50696 new_path=`cmd //c echo $path` 50697 fi 50698 50699 50700 input_path="$new_path" 50701 # Check if we need to convert this using DOS-style short mode. If the path 50702 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50703 # take no chances and rewrite it. 50704 # Note: m4 eats our [], so we need to use [ and ] instead. 50705 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50706 if test "x$has_forbidden_chars" != x; then 50707 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50708 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50709 fi 50710 50711 50712 windows_path="$new_path" 50713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50714 unix_path=`$CYGPATH -u "$windows_path"` 50715 new_path="$unix_path" 50716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50718 new_path="$unix_path" 50719 fi 50720 50721 if test "x$path" != "x$new_path"; then 50722 CYGWIN_VC_INSTALL_DIR="$new_path" 50723 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 50724 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 50725 fi 50726 50727 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50728 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50729 50730 else 50731 # We're on a posix platform. Hooray! :) 50732 path="$CYGWIN_VC_INSTALL_DIR" 50733 has_space=`$ECHO "$path" | $GREP " "` 50734 if test "x$has_space" != x; then 50735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 50736 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 50737 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50738 fi 50739 50740 # Use eval to expand a potential ~ 50741 eval path="$path" 50742 if test ! -f "$path" && test ! -d "$path"; then 50743 as_fn_error $? "The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 50744 fi 50745 50746 CYGWIN_VC_INSTALL_DIR="`cd "$path"; $THEPWDCMD -L`" 50747 fi 50748 50749 if test "$VS_VERSION" -lt 2017; then 50750 # Probe: Using well-known location from Visual Studio 12.0 and older 50751 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50752 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50753 else 50754 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50755 fi 50756 else 50757 # Probe: Using well-known location from VS 2017 50758 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50759 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 50760 else 50761 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 50762 fi 50763 fi 50764 # In case any of the above finds more than one file, loop over them. 50765 for possible_msvc_dll in $POSSIBLE_MSVC_DLL; do 50766 $ECHO "POSSIBLE_MSVC_DLL $possible_msvc_dll" 50767 50768 DLL_NAME="$DLL_NAME" 50769 POSSIBLE_MSVC_DLL="$possible_msvc_dll" 50770 METHOD="well-known location in VCINSTALLDIR" 50771 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50772 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50773 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50774 50775 # Need to check if the found msvcr is correct architecture 50776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50777 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50778 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50780 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50781 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50782 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50783 CORRECT_MSVCR_ARCH="PE32 executable" 50784 else 50785 CORRECT_MSVCR_ARCH="PE32+ executable" 50786 fi 50787 else 50788 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50789 CORRECT_MSVCR_ARCH=386 50790 else 50791 CORRECT_MSVCR_ARCH=x86-64 50792 fi 50793 fi 50794 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50796 $as_echo "ok" >&6; } 50797 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50798 50799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50800 50801 # Input might be given as Windows format, start by converting to 50802 # unix format. 50803 path="$MSVC_DLL" 50804 new_path=`$CYGPATH -u "$path"` 50805 50806 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50807 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50808 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50809 # "foo.exe" is OK but "foo" is an error. 50810 # 50811 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50812 # It is also a way to make sure we got the proper file name for the real test later on. 50813 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50814 if test "x$test_shortpath" = x; then 50815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50816 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50817 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50818 fi 50819 50820 # Call helper function which possibly converts this using DOS-style short mode. 50821 # If so, the updated path is stored in $new_path. 50822 50823 input_path="$new_path" 50824 # Check if we need to convert this using DOS-style short mode. If the path 50825 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50826 # take no chances and rewrite it. 50827 # Note: m4 eats our [], so we need to use [ and ] instead. 50828 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50829 if test "x$has_forbidden_chars" != x; then 50830 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50831 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50832 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50833 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50834 # Going to short mode and back again did indeed matter. Since short mode is 50835 # case insensitive, let's make it lowercase to improve readability. 50836 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50837 # Now convert it back to Unix-style (cygpath) 50838 input_path=`$CYGPATH -u "$shortmode_path"` 50839 new_path="$input_path" 50840 fi 50841 fi 50842 50843 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50844 if test "x$test_cygdrive_prefix" = x; then 50845 # As a simple fix, exclude /usr/bin since it's not a real path. 50846 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50847 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50848 # a path prefixed by /cygdrive for fixpath to work. 50849 new_path="$CYGWIN_ROOT_PATH$input_path" 50850 fi 50851 fi 50852 50853 50854 if test "x$path" != "x$new_path"; then 50855 MSVC_DLL="$new_path" 50856 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50857 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50858 fi 50859 50860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50861 50862 path="$MSVC_DLL" 50863 has_colon=`$ECHO $path | $GREP ^.:` 50864 new_path="$path" 50865 if test "x$has_colon" = x; then 50866 # Not in mixed or Windows style, start by that. 50867 new_path=`cmd //c echo $path` 50868 fi 50869 50870 50871 input_path="$new_path" 50872 # Check if we need to convert this using DOS-style short mode. If the path 50873 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50874 # take no chances and rewrite it. 50875 # Note: m4 eats our [], so we need to use [ and ] instead. 50876 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50877 if test "x$has_forbidden_chars" != x; then 50878 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50879 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50880 fi 50881 50882 50883 windows_path="$new_path" 50884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50885 unix_path=`$CYGPATH -u "$windows_path"` 50886 new_path="$unix_path" 50887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50888 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50889 new_path="$unix_path" 50890 fi 50891 50892 if test "x$path" != "x$new_path"; then 50893 MSVC_DLL="$new_path" 50894 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50895 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50896 fi 50897 50898 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50899 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50900 50901 else 50902 # We're on a posix platform. Hooray! :) 50903 path="$MSVC_DLL" 50904 has_space=`$ECHO "$path" | $GREP " "` 50905 if test "x$has_space" != x; then 50906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50907 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50908 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50909 fi 50910 50911 # Use eval to expand a potential ~ 50912 eval path="$path" 50913 if test ! -f "$path" && test ! -d "$path"; then 50914 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50915 fi 50916 50917 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50918 fi 50919 50920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50921 $as_echo_n "checking for $DLL_NAME... " >&6; } 50922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50923 $as_echo "$MSVC_DLL" >&6; } 50924 else 50925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50926 $as_echo "incorrect, ignoring" >&6; } 50927 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50928 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50929 fi 50930 fi 50931 50932 done 50933 fi 50934 fi 50935 50936 if test "x$MSVC_DLL" = x; then 50937 # Probe: Check in the Boot JDK directory. 50938 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50939 50940 DLL_NAME="$DLL_NAME" 50941 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50942 METHOD="well-known location in Boot JDK" 50943 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50944 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50945 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50946 50947 # Need to check if the found msvcr is correct architecture 50948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50949 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50950 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50952 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50953 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50954 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50955 CORRECT_MSVCR_ARCH="PE32 executable" 50956 else 50957 CORRECT_MSVCR_ARCH="PE32+ executable" 50958 fi 50959 else 50960 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50961 CORRECT_MSVCR_ARCH=386 50962 else 50963 CORRECT_MSVCR_ARCH=x86-64 50964 fi 50965 fi 50966 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50968 $as_echo "ok" >&6; } 50969 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50970 50971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50972 50973 # Input might be given as Windows format, start by converting to 50974 # unix format. 50975 path="$MSVC_DLL" 50976 new_path=`$CYGPATH -u "$path"` 50977 50978 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50979 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50980 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50981 # "foo.exe" is OK but "foo" is an error. 50982 # 50983 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50984 # It is also a way to make sure we got the proper file name for the real test later on. 50985 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50986 if test "x$test_shortpath" = x; then 50987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50988 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50989 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50990 fi 50991 50992 # Call helper function which possibly converts this using DOS-style short mode. 50993 # If so, the updated path is stored in $new_path. 50994 50995 input_path="$new_path" 50996 # Check if we need to convert this using DOS-style short mode. If the path 50997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50998 # take no chances and rewrite it. 50999 # Note: m4 eats our [], so we need to use [ and ] instead. 51000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51001 if test "x$has_forbidden_chars" != x; then 51002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51003 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51004 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51005 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51006 # Going to short mode and back again did indeed matter. Since short mode is 51007 # case insensitive, let's make it lowercase to improve readability. 51008 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51009 # Now convert it back to Unix-style (cygpath) 51010 input_path=`$CYGPATH -u "$shortmode_path"` 51011 new_path="$input_path" 51012 fi 51013 fi 51014 51015 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51016 if test "x$test_cygdrive_prefix" = x; then 51017 # As a simple fix, exclude /usr/bin since it's not a real path. 51018 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51019 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51020 # a path prefixed by /cygdrive for fixpath to work. 51021 new_path="$CYGWIN_ROOT_PATH$input_path" 51022 fi 51023 fi 51024 51025 51026 if test "x$path" != "x$new_path"; then 51027 MSVC_DLL="$new_path" 51028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51029 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51030 fi 51031 51032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51033 51034 path="$MSVC_DLL" 51035 has_colon=`$ECHO $path | $GREP ^.:` 51036 new_path="$path" 51037 if test "x$has_colon" = x; then 51038 # Not in mixed or Windows style, start by that. 51039 new_path=`cmd //c echo $path` 51040 fi 51041 51042 51043 input_path="$new_path" 51044 # Check if we need to convert this using DOS-style short mode. If the path 51045 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51046 # take no chances and rewrite it. 51047 # Note: m4 eats our [], so we need to use [ and ] instead. 51048 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51049 if test "x$has_forbidden_chars" != x; then 51050 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51051 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51052 fi 51053 51054 51055 windows_path="$new_path" 51056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51057 unix_path=`$CYGPATH -u "$windows_path"` 51058 new_path="$unix_path" 51059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51061 new_path="$unix_path" 51062 fi 51063 51064 if test "x$path" != "x$new_path"; then 51065 MSVC_DLL="$new_path" 51066 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51067 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51068 fi 51069 51070 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51071 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51072 51073 else 51074 # We're on a posix platform. Hooray! :) 51075 path="$MSVC_DLL" 51076 has_space=`$ECHO "$path" | $GREP " "` 51077 if test "x$has_space" != x; then 51078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51079 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51080 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51081 fi 51082 51083 # Use eval to expand a potential ~ 51084 eval path="$path" 51085 if test ! -f "$path" && test ! -d "$path"; then 51086 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51087 fi 51088 51089 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51090 fi 51091 51092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51093 $as_echo_n "checking for $DLL_NAME... " >&6; } 51094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51095 $as_echo "$MSVC_DLL" >&6; } 51096 else 51097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51098 $as_echo "incorrect, ignoring" >&6; } 51099 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51100 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51101 fi 51102 fi 51103 51104 fi 51105 51106 if test "x$MSVC_DLL" = x; then 51107 # Probe: Look in the Windows system32 directory 51108 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 51109 51110 windows_path="$CYGWIN_SYSTEMROOT" 51111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51112 unix_path=`$CYGPATH -u "$windows_path"` 51113 CYGWIN_SYSTEMROOT="$unix_path" 51114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51115 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51116 CYGWIN_SYSTEMROOT="$unix_path" 51117 fi 51118 51119 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 51120 51121 DLL_NAME="$DLL_NAME" 51122 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51123 METHOD="well-known location in SYSTEMROOT" 51124 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51125 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51126 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51127 51128 # Need to check if the found msvcr is correct architecture 51129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51130 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51131 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51133 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51134 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51135 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51136 CORRECT_MSVCR_ARCH="PE32 executable" 51137 else 51138 CORRECT_MSVCR_ARCH="PE32+ executable" 51139 fi 51140 else 51141 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51142 CORRECT_MSVCR_ARCH=386 51143 else 51144 CORRECT_MSVCR_ARCH=x86-64 51145 fi 51146 fi 51147 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51149 $as_echo "ok" >&6; } 51150 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51151 51152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51153 51154 # Input might be given as Windows format, start by converting to 51155 # unix format. 51156 path="$MSVC_DLL" 51157 new_path=`$CYGPATH -u "$path"` 51158 51159 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51160 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51161 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51162 # "foo.exe" is OK but "foo" is an error. 51163 # 51164 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51165 # It is also a way to make sure we got the proper file name for the real test later on. 51166 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51167 if test "x$test_shortpath" = x; then 51168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51169 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51170 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51171 fi 51172 51173 # Call helper function which possibly converts this using DOS-style short mode. 51174 # If so, the updated path is stored in $new_path. 51175 51176 input_path="$new_path" 51177 # Check if we need to convert this using DOS-style short mode. If the path 51178 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51179 # take no chances and rewrite it. 51180 # Note: m4 eats our [], so we need to use [ and ] instead. 51181 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51182 if test "x$has_forbidden_chars" != x; then 51183 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51184 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51185 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51186 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51187 # Going to short mode and back again did indeed matter. Since short mode is 51188 # case insensitive, let's make it lowercase to improve readability. 51189 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51190 # Now convert it back to Unix-style (cygpath) 51191 input_path=`$CYGPATH -u "$shortmode_path"` 51192 new_path="$input_path" 51193 fi 51194 fi 51195 51196 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51197 if test "x$test_cygdrive_prefix" = x; then 51198 # As a simple fix, exclude /usr/bin since it's not a real path. 51199 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51200 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51201 # a path prefixed by /cygdrive for fixpath to work. 51202 new_path="$CYGWIN_ROOT_PATH$input_path" 51203 fi 51204 fi 51205 51206 51207 if test "x$path" != "x$new_path"; then 51208 MSVC_DLL="$new_path" 51209 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51210 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51211 fi 51212 51213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51214 51215 path="$MSVC_DLL" 51216 has_colon=`$ECHO $path | $GREP ^.:` 51217 new_path="$path" 51218 if test "x$has_colon" = x; then 51219 # Not in mixed or Windows style, start by that. 51220 new_path=`cmd //c echo $path` 51221 fi 51222 51223 51224 input_path="$new_path" 51225 # Check if we need to convert this using DOS-style short mode. If the path 51226 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51227 # take no chances and rewrite it. 51228 # Note: m4 eats our [], so we need to use [ and ] instead. 51229 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51230 if test "x$has_forbidden_chars" != x; then 51231 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51232 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51233 fi 51234 51235 51236 windows_path="$new_path" 51237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51238 unix_path=`$CYGPATH -u "$windows_path"` 51239 new_path="$unix_path" 51240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51242 new_path="$unix_path" 51243 fi 51244 51245 if test "x$path" != "x$new_path"; then 51246 MSVC_DLL="$new_path" 51247 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51248 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51249 fi 51250 51251 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51252 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51253 51254 else 51255 # We're on a posix platform. Hooray! :) 51256 path="$MSVC_DLL" 51257 has_space=`$ECHO "$path" | $GREP " "` 51258 if test "x$has_space" != x; then 51259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51260 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51261 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51262 fi 51263 51264 # Use eval to expand a potential ~ 51265 eval path="$path" 51266 if test ! -f "$path" && test ! -d "$path"; then 51267 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51268 fi 51269 51270 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51271 fi 51272 51273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51274 $as_echo_n "checking for $DLL_NAME... " >&6; } 51275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51276 $as_echo "$MSVC_DLL" >&6; } 51277 else 51278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51279 $as_echo "incorrect, ignoring" >&6; } 51280 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51281 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51282 fi 51283 fi 51284 51285 fi 51286 51287 if test "x$MSVC_DLL" = x; then 51288 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 51289 if test "x$VS100COMNTOOLS" != x; then 51290 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 51291 51292 windows_path="$CYGWIN_VS_TOOLS_DIR" 51293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51294 unix_path=`$CYGPATH -u "$windows_path"` 51295 CYGWIN_VS_TOOLS_DIR="$unix_path" 51296 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51297 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51298 CYGWIN_VS_TOOLS_DIR="$unix_path" 51299 fi 51300 51301 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51302 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 51303 | $GREP -i /x64/ | $HEAD --lines 1` 51304 else 51305 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 51306 | $GREP -i /x86/ | $HEAD --lines 1` 51307 fi 51308 51309 DLL_NAME="$DLL_NAME" 51310 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51311 METHOD="search of VS100COMNTOOLS" 51312 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51313 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51314 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51315 51316 # Need to check if the found msvcr is correct architecture 51317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51318 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51319 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51321 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51322 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51323 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51324 CORRECT_MSVCR_ARCH="PE32 executable" 51325 else 51326 CORRECT_MSVCR_ARCH="PE32+ executable" 51327 fi 51328 else 51329 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51330 CORRECT_MSVCR_ARCH=386 51331 else 51332 CORRECT_MSVCR_ARCH=x86-64 51333 fi 51334 fi 51335 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51337 $as_echo "ok" >&6; } 51338 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51339 51340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51341 51342 # Input might be given as Windows format, start by converting to 51343 # unix format. 51344 path="$MSVC_DLL" 51345 new_path=`$CYGPATH -u "$path"` 51346 51347 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51348 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51349 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51350 # "foo.exe" is OK but "foo" is an error. 51351 # 51352 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51353 # It is also a way to make sure we got the proper file name for the real test later on. 51354 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51355 if test "x$test_shortpath" = x; then 51356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51357 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51358 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51359 fi 51360 51361 # Call helper function which possibly converts this using DOS-style short mode. 51362 # If so, the updated path is stored in $new_path. 51363 51364 input_path="$new_path" 51365 # Check if we need to convert this using DOS-style short mode. If the path 51366 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51367 # take no chances and rewrite it. 51368 # Note: m4 eats our [], so we need to use [ and ] instead. 51369 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51370 if test "x$has_forbidden_chars" != x; then 51371 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51372 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51373 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51374 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51375 # Going to short mode and back again did indeed matter. Since short mode is 51376 # case insensitive, let's make it lowercase to improve readability. 51377 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51378 # Now convert it back to Unix-style (cygpath) 51379 input_path=`$CYGPATH -u "$shortmode_path"` 51380 new_path="$input_path" 51381 fi 51382 fi 51383 51384 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51385 if test "x$test_cygdrive_prefix" = x; then 51386 # As a simple fix, exclude /usr/bin since it's not a real path. 51387 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51388 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51389 # a path prefixed by /cygdrive for fixpath to work. 51390 new_path="$CYGWIN_ROOT_PATH$input_path" 51391 fi 51392 fi 51393 51394 51395 if test "x$path" != "x$new_path"; then 51396 MSVC_DLL="$new_path" 51397 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51398 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51399 fi 51400 51401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51402 51403 path="$MSVC_DLL" 51404 has_colon=`$ECHO $path | $GREP ^.:` 51405 new_path="$path" 51406 if test "x$has_colon" = x; then 51407 # Not in mixed or Windows style, start by that. 51408 new_path=`cmd //c echo $path` 51409 fi 51410 51411 51412 input_path="$new_path" 51413 # Check if we need to convert this using DOS-style short mode. If the path 51414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51415 # take no chances and rewrite it. 51416 # Note: m4 eats our [], so we need to use [ and ] instead. 51417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51418 if test "x$has_forbidden_chars" != x; then 51419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51420 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51421 fi 51422 51423 51424 windows_path="$new_path" 51425 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51426 unix_path=`$CYGPATH -u "$windows_path"` 51427 new_path="$unix_path" 51428 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51429 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51430 new_path="$unix_path" 51431 fi 51432 51433 if test "x$path" != "x$new_path"; then 51434 MSVC_DLL="$new_path" 51435 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51436 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51437 fi 51438 51439 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51440 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51441 51442 else 51443 # We're on a posix platform. Hooray! :) 51444 path="$MSVC_DLL" 51445 has_space=`$ECHO "$path" | $GREP " "` 51446 if test "x$has_space" != x; then 51447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51448 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51449 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51450 fi 51451 51452 # Use eval to expand a potential ~ 51453 eval path="$path" 51454 if test ! -f "$path" && test ! -d "$path"; then 51455 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51456 fi 51457 51458 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51459 fi 51460 51461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51462 $as_echo_n "checking for $DLL_NAME... " >&6; } 51463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51464 $as_echo "$MSVC_DLL" >&6; } 51465 else 51466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51467 $as_echo "incorrect, ignoring" >&6; } 51468 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51469 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51470 fi 51471 fi 51472 51473 fi 51474 fi 51475 51476 if test "x$MSVC_DLL" = x; then 51477 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 51478 # (This was the original behaviour; kept since it might turn something up) 51479 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 51480 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51481 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51482 | $GREP x64 | $HEAD --lines 1` 51483 else 51484 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51485 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 51486 if test "x$POSSIBLE_MSVC_DLL" = x; then 51487 # We're grasping at straws now... 51488 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51489 | $HEAD --lines 1` 51490 fi 51491 fi 51492 51493 51494 DLL_NAME="$DLL_NAME" 51495 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51496 METHOD="search of VCINSTALLDIR" 51497 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51498 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51499 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51500 51501 # Need to check if the found msvcr is correct architecture 51502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51503 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51504 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51506 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51507 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51508 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51509 CORRECT_MSVCR_ARCH="PE32 executable" 51510 else 51511 CORRECT_MSVCR_ARCH="PE32+ executable" 51512 fi 51513 else 51514 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51515 CORRECT_MSVCR_ARCH=386 51516 else 51517 CORRECT_MSVCR_ARCH=x86-64 51518 fi 51519 fi 51520 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51522 $as_echo "ok" >&6; } 51523 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51524 51525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51526 51527 # Input might be given as Windows format, start by converting to 51528 # unix format. 51529 path="$MSVC_DLL" 51530 new_path=`$CYGPATH -u "$path"` 51531 51532 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51533 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51534 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51535 # "foo.exe" is OK but "foo" is an error. 51536 # 51537 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51538 # It is also a way to make sure we got the proper file name for the real test later on. 51539 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51540 if test "x$test_shortpath" = x; then 51541 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51542 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51543 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51544 fi 51545 51546 # Call helper function which possibly converts this using DOS-style short mode. 51547 # If so, the updated path is stored in $new_path. 51548 51549 input_path="$new_path" 51550 # Check if we need to convert this using DOS-style short mode. If the path 51551 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51552 # take no chances and rewrite it. 51553 # Note: m4 eats our [], so we need to use [ and ] instead. 51554 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51555 if test "x$has_forbidden_chars" != x; then 51556 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51557 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51558 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51559 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51560 # Going to short mode and back again did indeed matter. Since short mode is 51561 # case insensitive, let's make it lowercase to improve readability. 51562 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51563 # Now convert it back to Unix-style (cygpath) 51564 input_path=`$CYGPATH -u "$shortmode_path"` 51565 new_path="$input_path" 51566 fi 51567 fi 51568 51569 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51570 if test "x$test_cygdrive_prefix" = x; then 51571 # As a simple fix, exclude /usr/bin since it's not a real path. 51572 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51573 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51574 # a path prefixed by /cygdrive for fixpath to work. 51575 new_path="$CYGWIN_ROOT_PATH$input_path" 51576 fi 51577 fi 51578 51579 51580 if test "x$path" != "x$new_path"; then 51581 MSVC_DLL="$new_path" 51582 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51583 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51584 fi 51585 51586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51587 51588 path="$MSVC_DLL" 51589 has_colon=`$ECHO $path | $GREP ^.:` 51590 new_path="$path" 51591 if test "x$has_colon" = x; then 51592 # Not in mixed or Windows style, start by that. 51593 new_path=`cmd //c echo $path` 51594 fi 51595 51596 51597 input_path="$new_path" 51598 # Check if we need to convert this using DOS-style short mode. If the path 51599 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51600 # take no chances and rewrite it. 51601 # Note: m4 eats our [], so we need to use [ and ] instead. 51602 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51603 if test "x$has_forbidden_chars" != x; then 51604 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51605 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51606 fi 51607 51608 51609 windows_path="$new_path" 51610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51611 unix_path=`$CYGPATH -u "$windows_path"` 51612 new_path="$unix_path" 51613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51614 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51615 new_path="$unix_path" 51616 fi 51617 51618 if test "x$path" != "x$new_path"; then 51619 MSVC_DLL="$new_path" 51620 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51621 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51622 fi 51623 51624 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51625 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51626 51627 else 51628 # We're on a posix platform. Hooray! :) 51629 path="$MSVC_DLL" 51630 has_space=`$ECHO "$path" | $GREP " "` 51631 if test "x$has_space" != x; then 51632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51633 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51634 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51635 fi 51636 51637 # Use eval to expand a potential ~ 51638 eval path="$path" 51639 if test ! -f "$path" && test ! -d "$path"; then 51640 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51641 fi 51642 51643 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51644 fi 51645 51646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51647 $as_echo_n "checking for $DLL_NAME... " >&6; } 51648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51649 $as_echo "$MSVC_DLL" >&6; } 51650 else 51651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51652 $as_echo "incorrect, ignoring" >&6; } 51653 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51654 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51655 fi 51656 fi 51657 51658 fi 51659 fi 51660 51661 if test "x$MSVC_DLL" = x; then 51662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51663 $as_echo_n "checking for $DLL_NAME... " >&6; } 51664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51665 $as_echo "no" >&6; } 51666 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 51667 fi 51668 51669 MSVCP_DLL="$MSVC_DLL" 51670 fi 51671 51672 fi 51673 51674 51675 # Check whether --with-ucrt-dll-dir was given. 51676 if test "${with_ucrt_dll_dir+set}" = set; then : 51677 withval=$with_ucrt_dll_dir; 51678 fi 51679 51680 51681 if test "x$USE_UCRT" = "xtrue"; then 51682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCRT DLL dir" >&5 51683 $as_echo_n "checking for UCRT DLL dir... " >&6; } 51684 if test "x$with_ucrt_dll_dir" != x; then 51685 if test -z "$(ls -d "$with_ucrt_dll_dir/"*.dll 2> /dev/null)"; then 51686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51687 $as_echo "no" >&6; } 51688 as_fn_error $? "Could not find any dlls in $with_ucrt_dll_dir" "$LINENO" 5 51689 else 51690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ucrt_dll_dir" >&5 51691 $as_echo "$with_ucrt_dll_dir" >&6; } 51692 UCRT_DLL_DIR="$with_ucrt_dll_dir" 51693 51694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51695 51696 # Input might be given as Windows format, start by converting to 51697 # unix format. 51698 path="$UCRT_DLL_DIR" 51699 new_path=`$CYGPATH -u "$path"` 51700 51701 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51702 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51703 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51704 # "foo.exe" is OK but "foo" is an error. 51705 # 51706 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51707 # It is also a way to make sure we got the proper file name for the real test later on. 51708 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51709 if test "x$test_shortpath" = x; then 51710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&5 51711 $as_echo "$as_me: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&6;} 51712 as_fn_error $? "Cannot locate the the path of UCRT_DLL_DIR" "$LINENO" 5 51713 fi 51714 51715 # Call helper function which possibly converts this using DOS-style short mode. 51716 # If so, the updated path is stored in $new_path. 51717 51718 input_path="$new_path" 51719 # Check if we need to convert this using DOS-style short mode. If the path 51720 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51721 # take no chances and rewrite it. 51722 # Note: m4 eats our [], so we need to use [ and ] instead. 51723 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51724 if test "x$has_forbidden_chars" != x; then 51725 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51726 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51727 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51728 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51729 # Going to short mode and back again did indeed matter. Since short mode is 51730 # case insensitive, let's make it lowercase to improve readability. 51731 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51732 # Now convert it back to Unix-style (cygpath) 51733 input_path=`$CYGPATH -u "$shortmode_path"` 51734 new_path="$input_path" 51735 fi 51736 fi 51737 51738 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51739 if test "x$test_cygdrive_prefix" = x; then 51740 # As a simple fix, exclude /usr/bin since it's not a real path. 51741 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51742 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51743 # a path prefixed by /cygdrive for fixpath to work. 51744 new_path="$CYGWIN_ROOT_PATH$input_path" 51745 fi 51746 fi 51747 51748 51749 if test "x$path" != "x$new_path"; then 51750 UCRT_DLL_DIR="$new_path" 51751 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&5 51752 $as_echo "$as_me: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&6;} 51753 fi 51754 51755 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51756 51757 path="$UCRT_DLL_DIR" 51758 has_colon=`$ECHO $path | $GREP ^.:` 51759 new_path="$path" 51760 if test "x$has_colon" = x; then 51761 # Not in mixed or Windows style, start by that. 51762 new_path=`cmd //c echo $path` 51763 fi 51764 51765 51766 input_path="$new_path" 51767 # Check if we need to convert this using DOS-style short mode. If the path 51768 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51769 # take no chances and rewrite it. 51770 # Note: m4 eats our [], so we need to use [ and ] instead. 51771 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51772 if test "x$has_forbidden_chars" != x; then 51773 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51774 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51775 fi 51776 51777 51778 windows_path="$new_path" 51779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51780 unix_path=`$CYGPATH -u "$windows_path"` 51781 new_path="$unix_path" 51782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51783 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51784 new_path="$unix_path" 51785 fi 51786 51787 if test "x$path" != "x$new_path"; then 51788 UCRT_DLL_DIR="$new_path" 51789 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&5 51790 $as_echo "$as_me: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&6;} 51791 fi 51792 51793 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51794 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51795 51796 else 51797 # We're on a posix platform. Hooray! :) 51798 path="$UCRT_DLL_DIR" 51799 has_space=`$ECHO "$path" | $GREP " "` 51800 if test "x$has_space" != x; then 51801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&5 51802 $as_echo "$as_me: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&6;} 51803 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51804 fi 51805 51806 # Use eval to expand a potential ~ 51807 eval path="$path" 51808 if test ! -f "$path" && test ! -d "$path"; then 51809 as_fn_error $? "The path of UCRT_DLL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 51810 fi 51811 51812 UCRT_DLL_DIR="`cd "$path"; $THEPWDCMD -L`" 51813 fi 51814 51815 fi 51816 elif test "x$DEVKIT_UCRT_DLL_DIR" != "x"; then 51817 UCRT_DLL_DIR="$DEVKIT_UCRT_DLL_DIR" 51818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 51819 $as_echo "$UCRT_DLL_DIR" >&6; } 51820 else 51821 CYGWIN_WINDOWSSDKDIR="${WINDOWSSDKDIR}" 51822 51823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51824 51825 # Input might be given as Windows format, start by converting to 51826 # unix format. 51827 path="$CYGWIN_WINDOWSSDKDIR" 51828 new_path=`$CYGPATH -u "$path"` 51829 51830 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51831 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51832 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51833 # "foo.exe" is OK but "foo" is an error. 51834 # 51835 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51836 # It is also a way to make sure we got the proper file name for the real test later on. 51837 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51838 if test "x$test_shortpath" = x; then 51839 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&5 51840 $as_echo "$as_me: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&6;} 51841 as_fn_error $? "Cannot locate the the path of CYGWIN_WINDOWSSDKDIR" "$LINENO" 5 51842 fi 51843 51844 # Call helper function which possibly converts this using DOS-style short mode. 51845 # If so, the updated path is stored in $new_path. 51846 51847 input_path="$new_path" 51848 # Check if we need to convert this using DOS-style short mode. If the path 51849 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51850 # take no chances and rewrite it. 51851 # Note: m4 eats our [], so we need to use [ and ] instead. 51852 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51853 if test "x$has_forbidden_chars" != x; then 51854 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51855 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51856 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51857 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51858 # Going to short mode and back again did indeed matter. Since short mode is 51859 # case insensitive, let's make it lowercase to improve readability. 51860 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51861 # Now convert it back to Unix-style (cygpath) 51862 input_path=`$CYGPATH -u "$shortmode_path"` 51863 new_path="$input_path" 51864 fi 51865 fi 51866 51867 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51868 if test "x$test_cygdrive_prefix" = x; then 51869 # As a simple fix, exclude /usr/bin since it's not a real path. 51870 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51871 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51872 # a path prefixed by /cygdrive for fixpath to work. 51873 new_path="$CYGWIN_ROOT_PATH$input_path" 51874 fi 51875 fi 51876 51877 51878 if test "x$path" != "x$new_path"; then 51879 CYGWIN_WINDOWSSDKDIR="$new_path" 51880 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&5 51881 $as_echo "$as_me: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&6;} 51882 fi 51883 51884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51885 51886 path="$CYGWIN_WINDOWSSDKDIR" 51887 has_colon=`$ECHO $path | $GREP ^.:` 51888 new_path="$path" 51889 if test "x$has_colon" = x; then 51890 # Not in mixed or Windows style, start by that. 51891 new_path=`cmd //c echo $path` 51892 fi 51893 51894 51895 input_path="$new_path" 51896 # Check if we need to convert this using DOS-style short mode. If the path 51897 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51898 # take no chances and rewrite it. 51899 # Note: m4 eats our [], so we need to use [ and ] instead. 51900 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51901 if test "x$has_forbidden_chars" != x; then 51902 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51903 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51904 fi 51905 51906 51907 windows_path="$new_path" 51908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51909 unix_path=`$CYGPATH -u "$windows_path"` 51910 new_path="$unix_path" 51911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51912 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51913 new_path="$unix_path" 51914 fi 51915 51916 if test "x$path" != "x$new_path"; then 51917 CYGWIN_WINDOWSSDKDIR="$new_path" 51918 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&5 51919 $as_echo "$as_me: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&6;} 51920 fi 51921 51922 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51923 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51924 51925 else 51926 # We're on a posix platform. Hooray! :) 51927 path="$CYGWIN_WINDOWSSDKDIR" 51928 has_space=`$ECHO "$path" | $GREP " "` 51929 if test "x$has_space" != x; then 51930 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&5 51931 $as_echo "$as_me: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&6;} 51932 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51933 fi 51934 51935 # Use eval to expand a potential ~ 51936 eval path="$path" 51937 if test ! -f "$path" && test ! -d "$path"; then 51938 as_fn_error $? "The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is not found." "$LINENO" 5 51939 fi 51940 51941 CYGWIN_WINDOWSSDKDIR="`cd "$path"; $THEPWDCMD -L`" 51942 fi 51943 51944 dll_subdir=$OPENJDK_TARGET_CPU 51945 if test "x$dll_subdir" = "xx86_64"; then 51946 dll_subdir="x64" 51947 fi 51948 UCRT_DLL_DIR="$CYGWIN_WINDOWSSDKDIR/Redist/ucrt/DLLs/$dll_subdir" 51949 if test -z "$(ls -d "$UCRT_DLL_DIR/"*.dll 2> /dev/null)"; then 51950 # Try with version subdir 51951 UCRT_DLL_DIR="`ls -d $CYGWIN_WINDOWSSDKDIR/Redist/*/ucrt/DLLs/$dll_subdir \ 51952 2> /dev/null | $SORT -d | $HEAD -n1`" 51953 if test -z "$UCRT_DLL_DIR" \ 51954 || test -z "$(ls -d "$UCRT_DLL_DIR/"*.dll 2> /dev/null)"; then 51955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51956 $as_echo "no" >&6; } 51957 as_fn_error $? "Could not find any dlls in $UCRT_DLL_DIR" "$LINENO" 5 51958 else 51959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 51960 $as_echo "$UCRT_DLL_DIR" >&6; } 51961 fi 51962 else 51963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 51964 $as_echo "$UCRT_DLL_DIR" >&6; } 51965 fi 51966 fi 51967 else 51968 UCRT_DLL_DIR= 51969 fi 51970 51971 51972 51973 51974 # Check whether --with-dxsdk was given. 51975 if test "${with_dxsdk+set}" = set; then : 51976 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 51977 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 51978 fi 51979 51980 51981 51982 51983 # Check whether --with-dxsdk-lib was given. 51984 if test "${with_dxsdk_lib+set}" = set; then : 51985 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 51986 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 51987 fi 51988 51989 51990 51991 51992 # Check whether --with-dxsdk-include was given. 51993 if test "${with_dxsdk_include+set}" = set; then : 51994 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 51995 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 51996 fi 51997 51998 51999 fi 52000 52001 52002 ############################################################################### 52003 # 52004 # We need to do some final tweaking, when everything else is done. 52005 # 52006 ############################################################################### 52007 52008 52009 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 52010 52011 52012 # The name of the Service Agent jar. 52013 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 52014 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 52015 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 52016 fi 52017 52018 52019 52020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 52021 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 52022 52023 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 52024 ENABLE_INTREE_EC=yes 52025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52026 $as_echo "yes" >&6; } 52027 else 52028 ENABLE_INTREE_EC=no 52029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52030 $as_echo "no" >&6; } 52031 fi 52032 52033 52034 52035 52036 ############################################################################### 52037 # 52038 # Configure parts of the build that only affect the build performance, 52039 # not the result. 52040 # 52041 ############################################################################### 52042 52043 52044 # How many cores do we have on this build system? 52045 52046 # Check whether --with-num-cores was given. 52047 if test "${with_num_cores+set}" = set; then : 52048 withval=$with_num_cores; 52049 fi 52050 52051 if test "x$with_num_cores" = x; then 52052 # The number of cores were not specified, try to probe them. 52053 52054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 52055 $as_echo_n "checking for number of cores... " >&6; } 52056 NUM_CORES=1 52057 FOUND_CORES=no 52058 52059 if test -f /proc/cpuinfo; then 52060 # Looks like a Linux (or cygwin) system 52061 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 52062 FOUND_CORES=yes 52063 elif test -x /usr/sbin/psrinfo; then 52064 # Looks like a Solaris system 52065 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 52066 FOUND_CORES=yes 52067 elif test -x /usr/sbin/system_profiler; then 52068 # Looks like a MacOSX system 52069 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 52070 FOUND_CORES=yes 52071 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 52072 NUM_LCPU=`lparstat -m 2> /dev/null | $GREP -o "lcpu=[0-9]*" | $CUT -d "=" -f 2` 52073 if test -n "$NUM_LCPU"; then 52074 NUM_CORES=$NUM_LCPU 52075 FOUND_CORES=yes 52076 fi 52077 elif test -n "$NUMBER_OF_PROCESSORS"; then 52078 # On windows, look in the env 52079 NUM_CORES=$NUMBER_OF_PROCESSORS 52080 FOUND_CORES=yes 52081 fi 52082 52083 if test "x$FOUND_CORES" = xyes; then 52084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 52085 $as_echo "$NUM_CORES" >&6; } 52086 else 52087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 52088 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 52089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 52090 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 52091 fi 52092 52093 else 52094 NUM_CORES=$with_num_cores 52095 fi 52096 52097 52098 52099 # How much memory do we have on this build system? 52100 52101 # Check whether --with-memory-size was given. 52102 if test "${with_memory_size+set}" = set; then : 52103 withval=$with_memory_size; 52104 fi 52105 52106 if test "x$with_memory_size" = x; then 52107 # The memory size was not specified, try to probe it. 52108 52109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 52110 $as_echo_n "checking for memory size... " >&6; } 52111 # Default to 1024 MB 52112 MEMORY_SIZE=1024 52113 FOUND_MEM=no 52114 52115 if test -f /proc/meminfo; then 52116 # Looks like a Linux (or cygwin) system 52117 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 52118 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 52119 FOUND_MEM=yes 52120 elif test -x /usr/sbin/prtconf; then 52121 # Looks like a Solaris or AIX system 52122 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 52123 FOUND_MEM=yes 52124 elif test -x /usr/sbin/system_profiler; then 52125 # Looks like a MacOSX system 52126 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 52127 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 52128 FOUND_MEM=yes 52129 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52130 # Windows, but without cygwin 52131 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 52132 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 52133 FOUND_MEM=yes 52134 fi 52135 52136 if test "x$FOUND_MEM" = xyes; then 52137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 52138 $as_echo "$MEMORY_SIZE MB" >&6; } 52139 else 52140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 52141 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 52142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 52143 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 52144 fi 52145 52146 else 52147 MEMORY_SIZE=$with_memory_size 52148 fi 52149 52150 52151 52152 # Provide a decent default number of parallel jobs for make depending on 52153 # number of cores, amount of memory and machine architecture. 52154 52155 # Check whether --with-jobs was given. 52156 if test "${with_jobs+set}" = set; then : 52157 withval=$with_jobs; 52158 fi 52159 52160 if test "x$with_jobs" = x; then 52161 # Number of jobs was not specified, calculate. 52162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 52163 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 52164 # Approximate memory in GB, rounding up a bit. 52165 memory_gb=`expr $MEMORY_SIZE / 1100` 52166 # Pick the lowest of memory in gb and number of cores. 52167 if test "$memory_gb" -lt "$NUM_CORES"; then 52168 JOBS="$memory_gb" 52169 else 52170 JOBS="$NUM_CORES" 52171 # On bigger machines, leave some room for other processes to run 52172 if test "$JOBS" -gt "4"; then 52173 JOBS=`expr $JOBS '*' 90 / 100` 52174 fi 52175 fi 52176 # Cap number of jobs to 16 52177 if test "$JOBS" -gt "16"; then 52178 JOBS=16 52179 fi 52180 if test "$JOBS" -eq "0"; then 52181 JOBS=1 52182 fi 52183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 52184 $as_echo "$JOBS" >&6; } 52185 else 52186 JOBS=$with_jobs 52187 fi 52188 52189 52190 52191 # Setup smart javac (after cores and memory have been setup) 52192 52193 52194 # Check whether --with-sjavac-server-java was given. 52195 if test "${with_sjavac_server_java+set}" = set; then : 52196 withval=$with_sjavac_server_java; 52197 fi 52198 52199 52200 if test "x$with_sjavac_server_java" != x; then 52201 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 52202 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 52203 if test "x$FOUND_VERSION" = x; then 52204 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 52205 fi 52206 else 52207 SJAVAC_SERVER_JAVA="" 52208 # Hotspot specific options. 52209 52210 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 52211 $ECHO "Command: $JAVA -verbosegc -version" >&5 52212 OUTPUT=`$JAVA -verbosegc -version 2>&1` 52213 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52214 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52215 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52216 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 52217 JVM_ARG_OK=true 52218 else 52219 $ECHO "Arg failed:" >&5 52220 $ECHO "$OUTPUT" >&5 52221 JVM_ARG_OK=false 52222 fi 52223 52224 # JRockit specific options. 52225 52226 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 52227 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 52228 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 52229 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52230 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52231 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52232 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 52233 JVM_ARG_OK=true 52234 else 52235 $ECHO "Arg failed:" >&5 52236 $ECHO "$OUTPUT" >&5 52237 JVM_ARG_OK=false 52238 fi 52239 52240 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 52241 fi 52242 52243 52244 if test "$MEMORY_SIZE" -gt "2500"; then 52245 52246 $ECHO "Check if jvm arg is ok: -d64" >&5 52247 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 52248 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 52249 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52250 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52251 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52252 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 52253 JVM_ARG_OK=true 52254 else 52255 $ECHO "Arg failed:" >&5 52256 $ECHO "$OUTPUT" >&5 52257 JVM_ARG_OK=false 52258 fi 52259 52260 if test "$JVM_ARG_OK" = true; then 52261 JVM_64BIT=true 52262 JVM_ARG_OK=false 52263 fi 52264 fi 52265 52266 if test "$JVM_64BIT" = true; then 52267 if test "$MEMORY_SIZE" -gt "17000"; then 52268 52269 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 52270 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 52271 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 52272 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52273 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52274 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52275 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 52276 JVM_ARG_OK=true 52277 else 52278 $ECHO "Arg failed:" >&5 52279 $ECHO "$OUTPUT" >&5 52280 JVM_ARG_OK=false 52281 fi 52282 52283 fi 52284 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 52285 52286 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 52287 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 52288 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 52289 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52290 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52291 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52292 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 52293 JVM_ARG_OK=true 52294 else 52295 $ECHO "Arg failed:" >&5 52296 $ECHO "$OUTPUT" >&5 52297 JVM_ARG_OK=false 52298 fi 52299 52300 fi 52301 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 52302 52303 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 52304 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 52305 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 52306 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52307 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52308 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52309 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 52310 JVM_ARG_OK=true 52311 else 52312 $ECHO "Arg failed:" >&5 52313 $ECHO "$OUTPUT" >&5 52314 JVM_ARG_OK=false 52315 fi 52316 52317 fi 52318 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 52319 52320 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 52321 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 52322 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 52323 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52324 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52325 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52326 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 52327 JVM_ARG_OK=true 52328 else 52329 $ECHO "Arg failed:" >&5 52330 $ECHO "$OUTPUT" >&5 52331 JVM_ARG_OK=false 52332 fi 52333 52334 fi 52335 fi 52336 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 52337 52338 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 52339 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 52340 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 52341 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52342 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52343 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52344 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 52345 JVM_ARG_OK=true 52346 else 52347 $ECHO "Arg failed:" >&5 52348 $ECHO "$OUTPUT" >&5 52349 JVM_ARG_OK=false 52350 fi 52351 52352 fi 52353 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 52354 52355 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 52356 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 52357 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 52358 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52359 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52360 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52361 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 52362 JVM_ARG_OK=true 52363 else 52364 $ECHO "Arg failed:" >&5 52365 $ECHO "$OUTPUT" >&5 52366 JVM_ARG_OK=false 52367 fi 52368 52369 fi 52370 if test "$JVM_ARG_OK" = false; then 52371 52372 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 52373 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 52374 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 52375 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52376 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52377 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52378 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 52379 JVM_ARG_OK=true 52380 else 52381 $ECHO "Arg failed:" >&5 52382 $ECHO "$OUTPUT" >&5 52383 JVM_ARG_OK=false 52384 fi 52385 52386 fi 52387 52388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 52389 $as_echo_n "checking whether to use sjavac... " >&6; } 52390 # Check whether --enable-sjavac was given. 52391 if test "${enable_sjavac+set}" = set; then : 52392 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 52393 else 52394 ENABLE_SJAVAC='no' 52395 fi 52396 52397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 52398 $as_echo "$ENABLE_SJAVAC" >&6; } 52399 52400 52401 if test "x$ENABLE_SJAVAC" = xyes; then 52402 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 52403 else 52404 SJAVAC_SERVER_DIR= 52405 fi 52406 52407 52408 52409 # Can the C/C++ compiler use precompiled headers? 52410 52411 52412 ############################################################################### 52413 # 52414 # Can the C/C++ compiler use precompiled headers? 52415 # 52416 # Check whether --enable-precompiled-headers was given. 52417 if test "${enable_precompiled_headers+set}" = set; then : 52418 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 52419 else 52420 ENABLE_PRECOMPH=yes 52421 fi 52422 52423 52424 USE_PRECOMPILED_HEADER=1 52425 if test "x$ENABLE_PRECOMPH" = xno; then 52426 USE_PRECOMPILED_HEADER=0 52427 fi 52428 52429 if test "x$ENABLE_PRECOMPH" = xyes; then 52430 # Check that the compiler actually supports precomp headers. 52431 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 52433 $as_echo_n "checking that precompiled headers work... " >&6; } 52434 echo "int alfa();" > conftest.h 52435 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 52436 if test ! -f conftest.hpp.gch; then 52437 USE_PRECOMPILED_HEADER=0 52438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52439 $as_echo "no" >&6; } 52440 else 52441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52442 $as_echo "yes" >&6; } 52443 fi 52444 rm -f conftest.h conftest.hpp.gch 52445 fi 52446 fi 52447 52448 52449 52450 52451 # Setup use of ccache, if available 52452 52453 # Check whether --enable-ccache was given. 52454 if test "${enable_ccache+set}" = set; then : 52455 enableval=$enable_ccache; 52456 fi 52457 52458 52459 CCACHE= 52460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 52461 $as_echo_n "checking is ccache enabled... " >&6; } 52462 ENABLE_CCACHE=$enable_ccache 52463 if test "x$enable_ccache" = xyes; then 52464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52465 $as_echo "yes" >&6; } 52466 OLD_PATH="$PATH" 52467 if test "x$TOOLCHAIN_PATH" != x; then 52468 PATH=$TOOLCHAIN_PATH:$PATH 52469 fi 52470 52471 52472 52473 # Publish this variable in the help. 52474 52475 52476 if test "x$CCACHE" = x; then 52477 # The variable is not set by user, try to locate tool using the code snippet 52478 for ac_prog in ccache 52479 do 52480 # Extract the first word of "$ac_prog", so it can be a program name with args. 52481 set dummy $ac_prog; ac_word=$2 52482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52483 $as_echo_n "checking for $ac_word... " >&6; } 52484 if ${ac_cv_path_CCACHE+:} false; then : 52485 $as_echo_n "(cached) " >&6 52486 else 52487 case $CCACHE in 52488 [\\/]* | ?:[\\/]*) 52489 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52490 ;; 52491 *) 52492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52493 for as_dir in $PATH 52494 do 52495 IFS=$as_save_IFS 52496 test -z "$as_dir" && as_dir=. 52497 for ac_exec_ext in '' $ac_executable_extensions; do 52498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52499 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 52500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52501 break 2 52502 fi 52503 done 52504 done 52505 IFS=$as_save_IFS 52506 52507 ;; 52508 esac 52509 fi 52510 CCACHE=$ac_cv_path_CCACHE 52511 if test -n "$CCACHE"; then 52512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 52513 $as_echo "$CCACHE" >&6; } 52514 else 52515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52516 $as_echo "no" >&6; } 52517 fi 52518 52519 52520 test -n "$CCACHE" && break 52521 done 52522 52523 else 52524 # The variable is set, but is it from the command line or the environment? 52525 52526 # Try to remove the string !CCACHE! from our list. 52527 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 52528 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 52529 # If it failed, the variable was not from the command line. Ignore it, 52530 # but warn the user (except for BASH, which is always set by the calling BASH). 52531 if test "xCCACHE" != xBASH; then 52532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 52533 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 52534 fi 52535 # Try to locate tool using the code snippet 52536 for ac_prog in ccache 52537 do 52538 # Extract the first word of "$ac_prog", so it can be a program name with args. 52539 set dummy $ac_prog; ac_word=$2 52540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52541 $as_echo_n "checking for $ac_word... " >&6; } 52542 if ${ac_cv_path_CCACHE+:} false; then : 52543 $as_echo_n "(cached) " >&6 52544 else 52545 case $CCACHE in 52546 [\\/]* | ?:[\\/]*) 52547 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52548 ;; 52549 *) 52550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52551 for as_dir in $PATH 52552 do 52553 IFS=$as_save_IFS 52554 test -z "$as_dir" && as_dir=. 52555 for ac_exec_ext in '' $ac_executable_extensions; do 52556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52557 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 52558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52559 break 2 52560 fi 52561 done 52562 done 52563 IFS=$as_save_IFS 52564 52565 ;; 52566 esac 52567 fi 52568 CCACHE=$ac_cv_path_CCACHE 52569 if test -n "$CCACHE"; then 52570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 52571 $as_echo "$CCACHE" >&6; } 52572 else 52573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52574 $as_echo "no" >&6; } 52575 fi 52576 52577 52578 test -n "$CCACHE" && break 52579 done 52580 52581 else 52582 # If it succeeded, then it was overridden by the user. We will use it 52583 # for the tool. 52584 52585 # First remove it from the list of overridden variables, so we can test 52586 # for unknown variables in the end. 52587 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 52588 52589 # Check if the provided tool contains a complete path. 52590 tool_specified="$CCACHE" 52591 tool_basename="${tool_specified##*/}" 52592 if test "x$tool_basename" = "x$tool_specified"; then 52593 # A command without a complete path is provided, search $PATH. 52594 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 52595 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 52596 # Extract the first word of "$tool_basename", so it can be a program name with args. 52597 set dummy $tool_basename; ac_word=$2 52598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52599 $as_echo_n "checking for $ac_word... " >&6; } 52600 if ${ac_cv_path_CCACHE+:} false; then : 52601 $as_echo_n "(cached) " >&6 52602 else 52603 case $CCACHE in 52604 [\\/]* | ?:[\\/]*) 52605 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52606 ;; 52607 *) 52608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52609 for as_dir in $PATH 52610 do 52611 IFS=$as_save_IFS 52612 test -z "$as_dir" && as_dir=. 52613 for ac_exec_ext in '' $ac_executable_extensions; do 52614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52615 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 52616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52617 break 2 52618 fi 52619 done 52620 done 52621 IFS=$as_save_IFS 52622 52623 ;; 52624 esac 52625 fi 52626 CCACHE=$ac_cv_path_CCACHE 52627 if test -n "$CCACHE"; then 52628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 52629 $as_echo "$CCACHE" >&6; } 52630 else 52631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52632 $as_echo "no" >&6; } 52633 fi 52634 52635 52636 if test "x$CCACHE" = x; then 52637 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 52638 fi 52639 else 52640 # Otherwise we believe it is a complete path. Use it as it is. 52641 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 52642 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 52643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 52644 $as_echo_n "checking for CCACHE... " >&6; } 52645 if test ! -x "$tool_specified"; then 52646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 52647 $as_echo "not found" >&6; } 52648 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 52649 fi 52650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 52651 $as_echo "$tool_specified" >&6; } 52652 fi 52653 fi 52654 fi 52655 52656 52657 52658 if test "x$CCACHE" = x; then 52659 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 52660 fi 52661 52662 52663 CCACHE_STATUS="enabled" 52664 PATH="$OLD_PATH" 52665 elif test "x$enable_ccache" = xno; then 52666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 52667 $as_echo "no, explicitly disabled" >&6; } 52668 elif test "x$enable_ccache" = x; then 52669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52670 $as_echo "no" >&6; } 52671 else 52672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 52673 $as_echo "unknown" >&6; } 52674 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 52675 fi 52676 52677 52678 52679 # Check whether --with-ccache-dir was given. 52680 if test "${with_ccache_dir+set}" = set; then : 52681 withval=$with_ccache_dir; 52682 fi 52683 52684 52685 if test "x$with_ccache_dir" != x; then 52686 # When using a non home ccache directory, assume the use is to share ccache files 52687 # with other users. Thus change the umask. 52688 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 52689 if test "x$CCACHE" = x; then 52690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 52691 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 52692 fi 52693 fi 52694 52695 if test "x$CCACHE" != x; then 52696 52697 if test "x$CCACHE" != x; then 52698 # Only use ccache if it is 3.1.4 or later, which supports 52699 # precompiled headers. 52700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 52701 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 52702 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 52703 if test "x$HAS_GOOD_CCACHE" = x; then 52704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 52705 $as_echo "no, disabling ccache" >&6; } 52706 CCACHE= 52707 CCACHE_STATUS="disabled" 52708 else 52709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52710 $as_echo "yes" >&6; } 52711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 52712 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 52713 PUSHED_FLAGS="$CXXFLAGS" 52714 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 52715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52716 /* end confdefs.h. */ 52717 52718 int 52719 main () 52720 { 52721 52722 ; 52723 return 0; 52724 } 52725 _ACEOF 52726 if ac_fn_cxx_try_compile "$LINENO"; then : 52727 CC_KNOWS_CCACHE_TRICK=yes 52728 else 52729 CC_KNOWS_CCACHE_TRICK=no 52730 fi 52731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52732 CXXFLAGS="$PUSHED_FLAGS" 52733 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 52734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52735 $as_echo "yes" >&6; } 52736 else 52737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 52738 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 52739 CCACHE= 52740 CCACHE_STATUS="disabled" 52741 fi 52742 fi 52743 fi 52744 52745 if test "x$CCACHE" != x; then 52746 CCACHE_SLOPPINESS=time_macros 52747 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 52748 CCACHE_FLAGS=-fpch-preprocess 52749 52750 if test "x$SET_CCACHE_DIR" != x; then 52751 mkdir -p $CCACHE_DIR > /dev/null 2>&1 52752 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 52753 fi 52754 fi 52755 52756 fi 52757 52758 52759 ############################################################################### 52760 # 52761 # And now the finish... 52762 # 52763 ############################################################################### 52764 52765 # Check for some common pitfalls 52766 52767 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52768 file_to_test="$SRC_ROOT/LICENSE" 52769 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 52770 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 52771 fi 52772 fi 52773 52774 52775 # Did user specify any unknown variables? 52776 52777 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 52778 # Replace the separating ! with spaces before presenting for end user. 52779 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 52780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 52781 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 52782 fi 52783 52784 52785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 52786 $as_echo_n "checking if build directory is on local disk... " >&6; } 52787 52788 # df -l lists only local disks; if the given directory is not found then 52789 # a non-zero exit code is given 52790 if test "x$DF" = x; then 52791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52792 # msys does not have df; use Windows "net use" instead. 52793 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 52794 if test "x$IS_NETWORK_DISK" = x; then 52795 OUTPUT_DIR_IS_LOCAL="yes" 52796 else 52797 OUTPUT_DIR_IS_LOCAL="no" 52798 fi 52799 else 52800 # No df here, say it's local 52801 OUTPUT_DIR_IS_LOCAL="yes" 52802 fi 52803 else 52804 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 52805 OUTPUT_DIR_IS_LOCAL="yes" 52806 else 52807 OUTPUT_DIR_IS_LOCAL="no" 52808 fi 52809 fi 52810 52811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 52812 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 52813 52814 52815 52816 # Check if the user has any old-style ALT_ variables set. 52817 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 52818 52819 # Before generating output files, test if they exist. If they do, this is a reconfigure. 52820 # Since we can't properly handle the dependencies for this, warn the user about the situation 52821 if test -e $OUTPUT_ROOT/spec.gmk; then 52822 IS_RECONFIGURE=yes 52823 else 52824 IS_RECONFIGURE=no 52825 fi 52826 52827 52828 # At the end, call the custom hook. (Dummy macro if no custom sources available) 52829 52830 52831 # We're messing a bit with internal autoconf variables to put the config.status 52832 # in the output directory instead of the current directory. 52833 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 52834 52835 # Create the actual output files. Now the main work of configure is done. 52836 cat >confcache <<\_ACEOF 52837 # This file is a shell script that caches the results of configure 52838 # tests run on this system so they can be shared between configure 52839 # scripts and configure runs, see configure's option --config-cache. 52840 # It is not useful on other systems. If it contains results you don't 52841 # want to keep, you may remove or edit it. 52842 # 52843 # config.status only pays attention to the cache file if you give it 52844 # the --recheck option to rerun configure. 52845 # 52846 # `ac_cv_env_foo' variables (set or unset) will be overridden when 52847 # loading this file, other *unset* `ac_cv_foo' will be assigned the 52848 # following values. 52849 52850 _ACEOF 52851 52852 # The following way of writing the cache mishandles newlines in values, 52853 # but we know of no workaround that is simple, portable, and efficient. 52854 # So, we kill variables containing newlines. 52855 # Ultrix sh set writes to stderr and can't be redirected directly, 52856 # and sets the high bit in the cache file unless we assign to the vars. 52857 ( 52858 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 52859 eval ac_val=\$$ac_var 52860 case $ac_val in #( 52861 *${as_nl}*) 52862 case $ac_var in #( 52863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 52864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 52865 esac 52866 case $ac_var in #( 52867 _ | IFS | as_nl) ;; #( 52868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 52869 *) { eval $ac_var=; unset $ac_var;} ;; 52870 esac ;; 52871 esac 52872 done 52873 52874 (set) 2>&1 | 52875 case $as_nl`(ac_space=' '; set) 2>&1` in #( 52876 *${as_nl}ac_space=\ *) 52877 # `set' does not quote correctly, so add quotes: double-quote 52878 # substitution turns \\\\ into \\, and sed turns \\ into \. 52879 sed -n \ 52880 "s/'/'\\\\''/g; 52881 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 52882 ;; #( 52883 *) 52884 # `set' quotes correctly as required by POSIX, so do not add quotes. 52885 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 52886 ;; 52887 esac | 52888 sort 52889 ) | 52890 sed ' 52891 /^ac_cv_env_/b end 52892 t clear 52893 :clear 52894 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 52895 t end 52896 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 52897 :end' >>confcache 52898 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 52899 if test -w "$cache_file"; then 52900 if test "x$cache_file" != "x/dev/null"; then 52901 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 52902 $as_echo "$as_me: updating cache $cache_file" >&6;} 52903 if test ! -f "$cache_file" || test -h "$cache_file"; then 52904 cat confcache >"$cache_file" 52905 else 52906 case $cache_file in #( 52907 */* | ?:*) 52908 mv -f confcache "$cache_file"$$ && 52909 mv -f "$cache_file"$$ "$cache_file" ;; #( 52910 *) 52911 mv -f confcache "$cache_file" ;; 52912 esac 52913 fi 52914 fi 52915 else 52916 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 52917 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 52918 fi 52919 fi 52920 rm -f confcache 52921 52922 test "x$prefix" = xNONE && prefix=$ac_default_prefix 52923 # Let make expand exec_prefix. 52924 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 52925 52926 DEFS=-DHAVE_CONFIG_H 52927 52928 ac_libobjs= 52929 ac_ltlibobjs= 52930 U= 52931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 52932 # 1. Remove the extension, and $U if already installed. 52933 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 52934 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 52935 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 52936 # will be set to the directory where LIBOBJS objects are built. 52937 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 52938 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 52939 done 52940 LIBOBJS=$ac_libobjs 52941 52942 LTLIBOBJS=$ac_ltlibobjs 52943 52944 52945 52946 : "${CONFIG_STATUS=./config.status}" 52947 ac_write_fail=0 52948 ac_clean_files_save=$ac_clean_files 52949 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 52950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 52951 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 52952 as_write_fail=0 52953 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 52954 #! $SHELL 52955 # Generated by $as_me. 52956 # Run this file to recreate the current configuration. 52957 # Compiler output produced by configure, useful for debugging 52958 # configure, is in config.log if it exists. 52959 52960 debug=false 52961 ac_cs_recheck=false 52962 ac_cs_silent=false 52963 52964 SHELL=\${CONFIG_SHELL-$SHELL} 52965 export SHELL 52966 _ASEOF 52967 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 52968 ## -------------------- ## 52969 ## M4sh Initialization. ## 52970 ## -------------------- ## 52971 52972 # Be more Bourne compatible 52973 DUALCASE=1; export DUALCASE # for MKS sh 52974 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 52975 emulate sh 52976 NULLCMD=: 52977 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 52978 # is contrary to our usage. Disable this feature. 52979 alias -g '${1+"$@"}'='"$@"' 52980 setopt NO_GLOB_SUBST 52981 else 52982 case `(set -o) 2>/dev/null` in #( 52983 *posix*) : 52984 set -o posix ;; #( 52985 *) : 52986 ;; 52987 esac 52988 fi 52989 52990 52991 as_nl=' 52992 ' 52993 export as_nl 52994 # Printing a long string crashes Solaris 7 /usr/bin/printf. 52995 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 52996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 52997 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 52998 # Prefer a ksh shell builtin over an external printf program on Solaris, 52999 # but without wasting forks for bash or zsh. 53000 if test -z "$BASH_VERSION$ZSH_VERSION" \ 53001 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53002 as_echo='print -r --' 53003 as_echo_n='print -rn --' 53004 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 53005 as_echo='printf %s\n' 53006 as_echo_n='printf %s' 53007 else 53008 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53009 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53010 as_echo_n='/usr/ucb/echo -n' 53011 else 53012 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 53013 as_echo_n_body='eval 53014 arg=$1; 53015 case $arg in #( 53016 *"$as_nl"*) 53017 expr "X$arg" : "X\\(.*\\)$as_nl"; 53018 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 53019 esac; 53020 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 53021 ' 53022 export as_echo_n_body 53023 as_echo_n='sh -c $as_echo_n_body as_echo' 53024 fi 53025 export as_echo_body 53026 as_echo='sh -c $as_echo_body as_echo' 53027 fi 53028 53029 # The user is always right. 53030 if test "${PATH_SEPARATOR+set}" != set; then 53031 PATH_SEPARATOR=: 53032 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 53033 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 53034 PATH_SEPARATOR=';' 53035 } 53036 fi 53037 53038 53039 # IFS 53040 # We need space, tab and new line, in precisely that order. Quoting is 53041 # there to prevent editors from complaining about space-tab. 53042 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 53043 # splitting by setting IFS to empty value.) 53044 IFS=" "" $as_nl" 53045 53046 # Find who we are. Look in the path if we contain no directory separator. 53047 as_myself= 53048 case $0 in #(( 53049 *[\\/]* ) as_myself=$0 ;; 53050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53051 for as_dir in $PATH 53052 do 53053 IFS=$as_save_IFS 53054 test -z "$as_dir" && as_dir=. 53055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 53056 done 53057 IFS=$as_save_IFS 53058 53059 ;; 53060 esac 53061 # We did not find ourselves, most probably we were run as `sh COMMAND' 53062 # in which case we are not to be found in the path. 53063 if test "x$as_myself" = x; then 53064 as_myself=$0 53065 fi 53066 if test ! -f "$as_myself"; then 53067 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 53068 exit 1 53069 fi 53070 53071 # Unset variables that we do not need and which cause bugs (e.g. in 53072 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 53073 # suppresses any "Segmentation fault" message there. '((' could 53074 # trigger a bug in pdksh 5.2.14. 53075 for as_var in BASH_ENV ENV MAIL MAILPATH 53076 do eval test x\${$as_var+set} = xset \ 53077 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 53078 done 53079 PS1='$ ' 53080 PS2='> ' 53081 PS4='+ ' 53082 53083 # NLS nuisances. 53084 LC_ALL=C 53085 export LC_ALL 53086 LANGUAGE=C 53087 export LANGUAGE 53088 53089 # CDPATH. 53090 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 53091 53092 53093 # as_fn_error STATUS ERROR [LINENO LOG_FD] 53094 # ---------------------------------------- 53095 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 53096 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 53097 # script with STATUS, using 1 if that was 0. 53098 as_fn_error () 53099 { 53100 as_status=$1; test $as_status -eq 0 && as_status=1 53101 if test "$4"; then 53102 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 53103 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 53104 fi 53105 $as_echo "$as_me: error: $2" >&2 53106 as_fn_exit $as_status 53107 } # as_fn_error 53108 53109 53110 # as_fn_set_status STATUS 53111 # ----------------------- 53112 # Set $? to STATUS, without forking. 53113 as_fn_set_status () 53114 { 53115 return $1 53116 } # as_fn_set_status 53117 53118 # as_fn_exit STATUS 53119 # ----------------- 53120 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 53121 as_fn_exit () 53122 { 53123 set +e 53124 as_fn_set_status $1 53125 exit $1 53126 } # as_fn_exit 53127 53128 # as_fn_unset VAR 53129 # --------------- 53130 # Portably unset VAR. 53131 as_fn_unset () 53132 { 53133 { eval $1=; unset $1;} 53134 } 53135 as_unset=as_fn_unset 53136 # as_fn_append VAR VALUE 53137 # ---------------------- 53138 # Append the text in VALUE to the end of the definition contained in VAR. Take 53139 # advantage of any shell optimizations that allow amortized linear growth over 53140 # repeated appends, instead of the typical quadratic growth present in naive 53141 # implementations. 53142 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 53143 eval 'as_fn_append () 53144 { 53145 eval $1+=\$2 53146 }' 53147 else 53148 as_fn_append () 53149 { 53150 eval $1=\$$1\$2 53151 } 53152 fi # as_fn_append 53153 53154 # as_fn_arith ARG... 53155 # ------------------ 53156 # Perform arithmetic evaluation on the ARGs, and store the result in the 53157 # global $as_val. Take advantage of shells that can avoid forks. The arguments 53158 # must be portable across $(()) and expr. 53159 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 53160 eval 'as_fn_arith () 53161 { 53162 as_val=$(( $* )) 53163 }' 53164 else 53165 as_fn_arith () 53166 { 53167 as_val=`expr "$@" || test $? -eq 1` 53168 } 53169 fi # as_fn_arith 53170 53171 53172 if expr a : '\(a\)' >/dev/null 2>&1 && 53173 test "X`expr 00001 : '.*\(...\)'`" = X001; then 53174 as_expr=expr 53175 else 53176 as_expr=false 53177 fi 53178 53179 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 53180 as_basename=basename 53181 else 53182 as_basename=false 53183 fi 53184 53185 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 53186 as_dirname=dirname 53187 else 53188 as_dirname=false 53189 fi 53190 53191 as_me=`$as_basename -- "$0" || 53192 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 53193 X"$0" : 'X\(//\)$' \| \ 53194 X"$0" : 'X\(/\)' \| . 2>/dev/null || 53195 $as_echo X/"$0" | 53196 sed '/^.*\/\([^/][^/]*\)\/*$/{ 53197 s//\1/ 53198 q 53199 } 53200 /^X\/\(\/\/\)$/{ 53201 s//\1/ 53202 q 53203 } 53204 /^X\/\(\/\).*/{ 53205 s//\1/ 53206 q 53207 } 53208 s/.*/./; q'` 53209 53210 # Avoid depending upon Character Ranges. 53211 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 53212 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 53213 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 53214 as_cr_digits='0123456789' 53215 as_cr_alnum=$as_cr_Letters$as_cr_digits 53216 53217 ECHO_C= ECHO_N= ECHO_T= 53218 case `echo -n x` in #((((( 53219 -n*) 53220 case `echo 'xy\c'` in 53221 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 53222 xy) ECHO_C='\c';; 53223 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 53224 ECHO_T=' ';; 53225 esac;; 53226 *) 53227 ECHO_N='-n';; 53228 esac 53229 53230 rm -f conf$$ conf$$.exe conf$$.file 53231 if test -d conf$$.dir; then 53232 rm -f conf$$.dir/conf$$.file 53233 else 53234 rm -f conf$$.dir 53235 mkdir conf$$.dir 2>/dev/null 53236 fi 53237 if (echo >conf$$.file) 2>/dev/null; then 53238 if ln -s conf$$.file conf$$ 2>/dev/null; then 53239 as_ln_s='ln -s' 53240 # ... but there are two gotchas: 53241 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 53242 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 53243 # In both cases, we have to default to `cp -pR'. 53244 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53245 as_ln_s='cp -pR' 53246 elif ln conf$$.file conf$$ 2>/dev/null; then 53247 as_ln_s=ln 53248 else 53249 as_ln_s='cp -pR' 53250 fi 53251 else 53252 as_ln_s='cp -pR' 53253 fi 53254 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 53255 rmdir conf$$.dir 2>/dev/null 53256 53257 53258 # as_fn_mkdir_p 53259 # ------------- 53260 # Create "$as_dir" as a directory, including parents if necessary. 53261 as_fn_mkdir_p () 53262 { 53263 53264 case $as_dir in #( 53265 -*) as_dir=./$as_dir;; 53266 esac 53267 test -d "$as_dir" || eval $as_mkdir_p || { 53268 as_dirs= 53269 while :; do 53270 case $as_dir in #( 53271 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 53272 *) as_qdir=$as_dir;; 53273 esac 53274 as_dirs="'$as_qdir' $as_dirs" 53275 as_dir=`$as_dirname -- "$as_dir" || 53276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53277 X"$as_dir" : 'X\(//\)[^/]' \| \ 53278 X"$as_dir" : 'X\(//\)$' \| \ 53279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 53280 $as_echo X"$as_dir" | 53281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 53282 s//\1/ 53283 q 53284 } 53285 /^X\(\/\/\)[^/].*/{ 53286 s//\1/ 53287 q 53288 } 53289 /^X\(\/\/\)$/{ 53290 s//\1/ 53291 q 53292 } 53293 /^X\(\/\).*/{ 53294 s//\1/ 53295 q 53296 } 53297 s/.*/./; q'` 53298 test -d "$as_dir" && break 53299 done 53300 test -z "$as_dirs" || eval "mkdir $as_dirs" 53301 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 53302 53303 53304 } # as_fn_mkdir_p 53305 if mkdir -p . 2>/dev/null; then 53306 as_mkdir_p='mkdir -p "$as_dir"' 53307 else 53308 test -d ./-p && rmdir ./-p 53309 as_mkdir_p=false 53310 fi 53311 53312 53313 # as_fn_executable_p FILE 53314 # ----------------------- 53315 # Test if FILE is an executable regular file. 53316 as_fn_executable_p () 53317 { 53318 test -f "$1" && test -x "$1" 53319 } # as_fn_executable_p 53320 as_test_x='test -x' 53321 as_executable_p=as_fn_executable_p 53322 53323 # Sed expression to map a string onto a valid CPP name. 53324 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 53325 53326 # Sed expression to map a string onto a valid variable name. 53327 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 53328 53329 53330 exec 6>&1 53331 ## ----------------------------------- ## 53332 ## Main body of $CONFIG_STATUS script. ## 53333 ## ----------------------------------- ## 53334 _ASEOF 53335 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 53336 53337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53338 # Save the log message, to keep $0 and so on meaningful, and to 53339 # report actual input values of CONFIG_FILES etc. instead of their 53340 # values after options handling. 53341 ac_log=" 53342 This file was extended by OpenJDK $as_me jdk8, which was 53343 generated by GNU Autoconf 2.69. Invocation command line was 53344 53345 CONFIG_FILES = $CONFIG_FILES 53346 CONFIG_HEADERS = $CONFIG_HEADERS 53347 CONFIG_LINKS = $CONFIG_LINKS 53348 CONFIG_COMMANDS = $CONFIG_COMMANDS 53349 $ $0 $@ 53350 53351 on `(hostname || uname -n) 2>/dev/null | sed 1q` 53352 " 53353 53354 _ACEOF 53355 53356 case $ac_config_files in *" 53357 "*) set x $ac_config_files; shift; ac_config_files=$*;; 53358 esac 53359 53360 case $ac_config_headers in *" 53361 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 53362 esac 53363 53364 53365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53366 # Files that config.status was made for. 53367 config_files="$ac_config_files" 53368 config_headers="$ac_config_headers" 53369 53370 _ACEOF 53371 53372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53373 ac_cs_usage="\ 53374 \`$as_me' instantiates files and other configuration actions 53375 from templates according to the current configuration. Unless the files 53376 and actions are specified as TAGs, all are instantiated by default. 53377 53378 Usage: $0 [OPTION]... [TAG]... 53379 53380 -h, --help print this help, then exit 53381 -V, --version print version number and configuration settings, then exit 53382 --config print configuration, then exit 53383 -q, --quiet, --silent 53384 do not print progress messages 53385 -d, --debug don't remove temporary files 53386 --recheck update $as_me by reconfiguring in the same conditions 53387 --file=FILE[:TEMPLATE] 53388 instantiate the configuration file FILE 53389 --header=FILE[:TEMPLATE] 53390 instantiate the configuration header FILE 53391 53392 Configuration files: 53393 $config_files 53394 53395 Configuration headers: 53396 $config_headers 53397 53398 Report bugs to <build-dev@openjdk.java.net>. 53399 OpenJDK home page: <http://openjdk.java.net>." 53400 53401 _ACEOF 53402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53403 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 53404 ac_cs_version="\\ 53405 OpenJDK config.status jdk8 53406 configured by $0, generated by GNU Autoconf 2.69, 53407 with options \\"\$ac_cs_config\\" 53408 53409 Copyright (C) 2012 Free Software Foundation, Inc. 53410 This config.status script is free software; the Free Software Foundation 53411 gives unlimited permission to copy, distribute and modify it." 53412 53413 ac_pwd='$ac_pwd' 53414 srcdir='$srcdir' 53415 AWK='$AWK' 53416 test -n "\$AWK" || AWK=awk 53417 _ACEOF 53418 53419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53420 # The default lists apply if the user does not specify any file. 53421 ac_need_defaults=: 53422 while test $# != 0 53423 do 53424 case $1 in 53425 --*=?*) 53426 ac_option=`expr "X$1" : 'X\([^=]*\)='` 53427 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 53428 ac_shift=: 53429 ;; 53430 --*=) 53431 ac_option=`expr "X$1" : 'X\([^=]*\)='` 53432 ac_optarg= 53433 ac_shift=: 53434 ;; 53435 *) 53436 ac_option=$1 53437 ac_optarg=$2 53438 ac_shift=shift 53439 ;; 53440 esac 53441 53442 case $ac_option in 53443 # Handling of the options. 53444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 53445 ac_cs_recheck=: ;; 53446 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 53447 $as_echo "$ac_cs_version"; exit ;; 53448 --config | --confi | --conf | --con | --co | --c ) 53449 $as_echo "$ac_cs_config"; exit ;; 53450 --debug | --debu | --deb | --de | --d | -d ) 53451 debug=: ;; 53452 --file | --fil | --fi | --f ) 53453 $ac_shift 53454 case $ac_optarg in 53455 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 53456 '') as_fn_error $? "missing file argument" ;; 53457 esac 53458 as_fn_append CONFIG_FILES " '$ac_optarg'" 53459 ac_need_defaults=false;; 53460 --header | --heade | --head | --hea ) 53461 $ac_shift 53462 case $ac_optarg in 53463 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 53464 esac 53465 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 53466 ac_need_defaults=false;; 53467 --he | --h) 53468 # Conflict between --help and --header 53469 as_fn_error $? "ambiguous option: \`$1' 53470 Try \`$0 --help' for more information.";; 53471 --help | --hel | -h ) 53472 $as_echo "$ac_cs_usage"; exit ;; 53473 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 53474 | -silent | --silent | --silen | --sile | --sil | --si | --s) 53475 ac_cs_silent=: ;; 53476 53477 # This is an error. 53478 -*) as_fn_error $? "unrecognized option: \`$1' 53479 Try \`$0 --help' for more information." ;; 53480 53481 *) as_fn_append ac_config_targets " $1" 53482 ac_need_defaults=false ;; 53483 53484 esac 53485 shift 53486 done 53487 53488 ac_configure_extra_args= 53489 53490 if $ac_cs_silent; then 53491 exec 6>/dev/null 53492 ac_configure_extra_args="$ac_configure_extra_args --silent" 53493 fi 53494 53495 _ACEOF 53496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53497 if \$ac_cs_recheck; then 53498 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 53499 shift 53500 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 53501 CONFIG_SHELL='$SHELL' 53502 export CONFIG_SHELL 53503 exec "\$@" 53504 fi 53505 53506 _ACEOF 53507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53508 exec 5>>config.log 53509 { 53510 echo 53511 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 53512 ## Running $as_me. ## 53513 _ASBOX 53514 $as_echo "$ac_log" 53515 } >&5 53516 53517 _ACEOF 53518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53519 _ACEOF 53520 53521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53522 53523 # Handling of arguments. 53524 for ac_config_target in $ac_config_targets 53525 do 53526 case $ac_config_target in 53527 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 53528 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 53529 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 53530 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 53531 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 53532 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 53533 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 53534 53535 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 53536 esac 53537 done 53538 53539 53540 # If the user did not use the arguments to specify the items to instantiate, 53541 # then the envvar interface is used. Set only those that are not. 53542 # We use the long form for the default assignment because of an extremely 53543 # bizarre bug on SunOS 4.1.3. 53544 if $ac_need_defaults; then 53545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 53546 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 53547 fi 53548 53549 # Have a temporary directory for convenience. Make it in the build tree 53550 # simply because there is no reason against having it here, and in addition, 53551 # creating and moving files from /tmp can sometimes cause problems. 53552 # Hook for its removal unless debugging. 53553 # Note that there is a small window in which the directory will not be cleaned: 53554 # after its creation but before its name has been assigned to `$tmp'. 53555 $debug || 53556 { 53557 tmp= ac_tmp= 53558 trap 'exit_status=$? 53559 : "${ac_tmp:=$tmp}" 53560 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 53561 ' 0 53562 trap 'as_fn_exit 1' 1 2 13 15 53563 } 53564 # Create a (secure) tmp directory for tmp files. 53565 53566 { 53567 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 53568 test -d "$tmp" 53569 } || 53570 { 53571 tmp=./conf$$-$RANDOM 53572 (umask 077 && mkdir "$tmp") 53573 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 53574 ac_tmp=$tmp 53575 53576 # Set up the scripts for CONFIG_FILES section. 53577 # No need to generate them if there are no CONFIG_FILES. 53578 # This happens for instance with `./config.status config.h'. 53579 if test -n "$CONFIG_FILES"; then 53580 53581 53582 ac_cr=`echo X | tr X '\015'` 53583 # On cygwin, bash can eat \r inside `` if the user requested igncr. 53584 # But we know of no other shell where ac_cr would be empty at this 53585 # point, so we can use a bashism as a fallback. 53586 if test "x$ac_cr" = x; then 53587 eval ac_cr=\$\'\\r\' 53588 fi 53589 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 53590 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 53591 ac_cs_awk_cr='\\r' 53592 else 53593 ac_cs_awk_cr=$ac_cr 53594 fi 53595 53596 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 53597 _ACEOF 53598 53599 53600 { 53601 echo "cat >conf$$subs.awk <<_ACEOF" && 53602 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 53603 echo "_ACEOF" 53604 } >conf$$subs.sh || 53605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 53606 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 53607 ac_delim='%!_!# ' 53608 for ac_last_try in false false false false false :; do 53609 . ./conf$$subs.sh || 53610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 53611 53612 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 53613 if test $ac_delim_n = $ac_delim_num; then 53614 break 53615 elif $ac_last_try; then 53616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 53617 else 53618 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 53619 fi 53620 done 53621 rm -f conf$$subs.sh 53622 53623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53624 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 53625 _ACEOF 53626 sed -n ' 53627 h 53628 s/^/S["/; s/!.*/"]=/ 53629 p 53630 g 53631 s/^[^!]*!// 53632 :repl 53633 t repl 53634 s/'"$ac_delim"'$// 53635 t delim 53636 :nl 53637 h 53638 s/\(.\{148\}\)..*/\1/ 53639 t more1 53640 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 53641 p 53642 n 53643 b repl 53644 :more1 53645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 53646 p 53647 g 53648 s/.\{148\}// 53649 t nl 53650 :delim 53651 h 53652 s/\(.\{148\}\)..*/\1/ 53653 t more2 53654 s/["\\]/\\&/g; s/^/"/; s/$/"/ 53655 p 53656 b 53657 :more2 53658 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 53659 p 53660 g 53661 s/.\{148\}// 53662 t delim 53663 ' <conf$$subs.awk | sed ' 53664 /^[^""]/{ 53665 N 53666 s/\n// 53667 } 53668 ' >>$CONFIG_STATUS || ac_write_fail=1 53669 rm -f conf$$subs.awk 53670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53671 _ACAWK 53672 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 53673 for (key in S) S_is_set[key] = 1 53674 FS = "" 53675 53676 } 53677 { 53678 line = $ 0 53679 nfields = split(line, field, "@") 53680 substed = 0 53681 len = length(field[1]) 53682 for (i = 2; i < nfields; i++) { 53683 key = field[i] 53684 keylen = length(key) 53685 if (S_is_set[key]) { 53686 value = S[key] 53687 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 53688 len += length(value) + length(field[++i]) 53689 substed = 1 53690 } else 53691 len += 1 + keylen 53692 } 53693 53694 print line 53695 } 53696 53697 _ACAWK 53698 _ACEOF 53699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53700 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 53701 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 53702 else 53703 cat 53704 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 53705 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 53706 _ACEOF 53707 53708 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 53709 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 53710 # trailing colons and then remove the whole line if VPATH becomes empty 53711 # (actually we leave an empty line to preserve line numbers). 53712 if test "x$srcdir" = x.; then 53713 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 53714 h 53715 s/// 53716 s/^/:/ 53717 s/[ ]*$/:/ 53718 s/:\$(srcdir):/:/g 53719 s/:\${srcdir}:/:/g 53720 s/:@srcdir@:/:/g 53721 s/^:*// 53722 s/:*$// 53723 x 53724 s/\(=[ ]*\).*/\1/ 53725 G 53726 s/\n// 53727 s/^[^=]*=[ ]*$// 53728 }' 53729 fi 53730 53731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53732 fi # test -n "$CONFIG_FILES" 53733 53734 # Set up the scripts for CONFIG_HEADERS section. 53735 # No need to generate them if there are no CONFIG_HEADERS. 53736 # This happens for instance with `./config.status Makefile'. 53737 if test -n "$CONFIG_HEADERS"; then 53738 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 53739 BEGIN { 53740 _ACEOF 53741 53742 # Transform confdefs.h into an awk script `defines.awk', embedded as 53743 # here-document in config.status, that substitutes the proper values into 53744 # config.h.in to produce config.h. 53745 53746 # Create a delimiter string that does not exist in confdefs.h, to ease 53747 # handling of long lines. 53748 ac_delim='%!_!# ' 53749 for ac_last_try in false false :; do 53750 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 53751 if test -z "$ac_tt"; then 53752 break 53753 elif $ac_last_try; then 53754 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 53755 else 53756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 53757 fi 53758 done 53759 53760 # For the awk script, D is an array of macro values keyed by name, 53761 # likewise P contains macro parameters if any. Preserve backslash 53762 # newline sequences. 53763 53764 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 53765 sed -n ' 53766 s/.\{148\}/&'"$ac_delim"'/g 53767 t rset 53768 :rset 53769 s/^[ ]*#[ ]*define[ ][ ]*/ / 53770 t def 53771 d 53772 :def 53773 s/\\$// 53774 t bsnl 53775 s/["\\]/\\&/g 53776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 53777 D["\1"]=" \3"/p 53778 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 53779 d 53780 :bsnl 53781 s/["\\]/\\&/g 53782 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 53783 D["\1"]=" \3\\\\\\n"\\/p 53784 t cont 53785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 53786 t cont 53787 d 53788 :cont 53789 n 53790 s/.\{148\}/&'"$ac_delim"'/g 53791 t clear 53792 :clear 53793 s/\\$// 53794 t bsnlc 53795 s/["\\]/\\&/g; s/^/"/; s/$/"/p 53796 d 53797 :bsnlc 53798 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 53799 b cont 53800 ' <confdefs.h | sed ' 53801 s/'"$ac_delim"'/"\\\ 53802 "/g' >>$CONFIG_STATUS || ac_write_fail=1 53803 53804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53805 for (key in D) D_is_set[key] = 1 53806 FS = "" 53807 } 53808 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 53809 line = \$ 0 53810 split(line, arg, " ") 53811 if (arg[1] == "#") { 53812 defundef = arg[2] 53813 mac1 = arg[3] 53814 } else { 53815 defundef = substr(arg[1], 2) 53816 mac1 = arg[2] 53817 } 53818 split(mac1, mac2, "(") #) 53819 macro = mac2[1] 53820 prefix = substr(line, 1, index(line, defundef) - 1) 53821 if (D_is_set[macro]) { 53822 # Preserve the white space surrounding the "#". 53823 print prefix "define", macro P[macro] D[macro] 53824 next 53825 } else { 53826 # Replace #undef with comments. This is necessary, for example, 53827 # in the case of _POSIX_SOURCE, which is predefined and required 53828 # on some systems where configure will not decide to define it. 53829 if (defundef == "undef") { 53830 print "/*", prefix defundef, macro, "*/" 53831 next 53832 } 53833 } 53834 } 53835 { print } 53836 _ACAWK 53837 _ACEOF 53838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53839 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 53840 fi # test -n "$CONFIG_HEADERS" 53841 53842 53843 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 53844 shift 53845 for ac_tag 53846 do 53847 case $ac_tag in 53848 :[FHLC]) ac_mode=$ac_tag; continue;; 53849 esac 53850 case $ac_mode$ac_tag in 53851 :[FHL]*:*);; 53852 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 53853 :[FH]-) ac_tag=-:-;; 53854 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 53855 esac 53856 ac_save_IFS=$IFS 53857 IFS=: 53858 set x $ac_tag 53859 IFS=$ac_save_IFS 53860 shift 53861 ac_file=$1 53862 shift 53863 53864 case $ac_mode in 53865 :L) ac_source=$1;; 53866 :[FH]) 53867 ac_file_inputs= 53868 for ac_f 53869 do 53870 case $ac_f in 53871 -) ac_f="$ac_tmp/stdin";; 53872 *) # Look for the file first in the build tree, then in the source tree 53873 # (if the path is not absolute). The absolute path cannot be DOS-style, 53874 # because $ac_f cannot contain `:'. 53875 test -f "$ac_f" || 53876 case $ac_f in 53877 [\\/$]*) false;; 53878 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 53879 esac || 53880 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 53881 esac 53882 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 53883 as_fn_append ac_file_inputs " '$ac_f'" 53884 done 53885 53886 # Let's still pretend it is `configure' which instantiates (i.e., don't 53887 # use $as_me), people would be surprised to read: 53888 # /* config.h. Generated by config.status. */ 53889 configure_input='Generated from '` 53890 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 53891 `' by configure.' 53892 if test x"$ac_file" != x-; then 53893 configure_input="$ac_file. $configure_input" 53894 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 53895 $as_echo "$as_me: creating $ac_file" >&6;} 53896 fi 53897 # Neutralize special characters interpreted by sed in replacement strings. 53898 case $configure_input in #( 53899 *\&* | *\|* | *\\* ) 53900 ac_sed_conf_input=`$as_echo "$configure_input" | 53901 sed 's/[\\\\&|]/\\\\&/g'`;; #( 53902 *) ac_sed_conf_input=$configure_input;; 53903 esac 53904 53905 case $ac_tag in 53906 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 53907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 53908 esac 53909 ;; 53910 esac 53911 53912 ac_dir=`$as_dirname -- "$ac_file" || 53913 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53914 X"$ac_file" : 'X\(//\)[^/]' \| \ 53915 X"$ac_file" : 'X\(//\)$' \| \ 53916 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 53917 $as_echo X"$ac_file" | 53918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 53919 s//\1/ 53920 q 53921 } 53922 /^X\(\/\/\)[^/].*/{ 53923 s//\1/ 53924 q 53925 } 53926 /^X\(\/\/\)$/{ 53927 s//\1/ 53928 q 53929 } 53930 /^X\(\/\).*/{ 53931 s//\1/ 53932 q 53933 } 53934 s/.*/./; q'` 53935 as_dir="$ac_dir"; as_fn_mkdir_p 53936 ac_builddir=. 53937 53938 case "$ac_dir" in 53939 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 53940 *) 53941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 53942 # A ".." for each directory in $ac_dir_suffix. 53943 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 53944 case $ac_top_builddir_sub in 53945 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 53946 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 53947 esac ;; 53948 esac 53949 ac_abs_top_builddir=$ac_pwd 53950 ac_abs_builddir=$ac_pwd$ac_dir_suffix 53951 # for backward compatibility: 53952 ac_top_builddir=$ac_top_build_prefix 53953 53954 case $srcdir in 53955 .) # We are building in place. 53956 ac_srcdir=. 53957 ac_top_srcdir=$ac_top_builddir_sub 53958 ac_abs_top_srcdir=$ac_pwd ;; 53959 [\\/]* | ?:[\\/]* ) # Absolute name. 53960 ac_srcdir=$srcdir$ac_dir_suffix; 53961 ac_top_srcdir=$srcdir 53962 ac_abs_top_srcdir=$srcdir ;; 53963 *) # Relative name. 53964 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 53965 ac_top_srcdir=$ac_top_build_prefix$srcdir 53966 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 53967 esac 53968 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 53969 53970 53971 case $ac_mode in 53972 :F) 53973 # 53974 # CONFIG_FILE 53975 # 53976 53977 _ACEOF 53978 53979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53980 # If the template does not know about datarootdir, expand it. 53981 # FIXME: This hack should be removed a few years after 2.60. 53982 ac_datarootdir_hack=; ac_datarootdir_seen= 53983 ac_sed_dataroot=' 53984 /datarootdir/ { 53985 p 53986 q 53987 } 53988 /@datadir@/p 53989 /@docdir@/p 53990 /@infodir@/p 53991 /@localedir@/p 53992 /@mandir@/p' 53993 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 53994 *datarootdir*) ac_datarootdir_seen=yes;; 53995 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 53996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 53997 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 53998 _ACEOF 53999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54000 ac_datarootdir_hack=' 54001 s&@datadir@&$datadir&g 54002 s&@docdir@&$docdir&g 54003 s&@infodir@&$infodir&g 54004 s&@localedir@&$localedir&g 54005 s&@mandir@&$mandir&g 54006 s&\\\${datarootdir}&$datarootdir&g' ;; 54007 esac 54008 _ACEOF 54009 54010 # Neutralize VPATH when `$srcdir' = `.'. 54011 # Shell code in configure.ac might set extrasub. 54012 # FIXME: do we really want to maintain this feature? 54013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54014 ac_sed_extra="$ac_vpsub 54015 $extrasub 54016 _ACEOF 54017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54018 :t 54019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 54020 s|@configure_input@|$ac_sed_conf_input|;t t 54021 s&@top_builddir@&$ac_top_builddir_sub&;t t 54022 s&@top_build_prefix@&$ac_top_build_prefix&;t t 54023 s&@srcdir@&$ac_srcdir&;t t 54024 s&@abs_srcdir@&$ac_abs_srcdir&;t t 54025 s&@top_srcdir@&$ac_top_srcdir&;t t 54026 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 54027 s&@builddir@&$ac_builddir&;t t 54028 s&@abs_builddir@&$ac_abs_builddir&;t t 54029 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 54030 $ac_datarootdir_hack 54031 " 54032 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 54033 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54034 54035 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 54036 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 54037 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 54038 "$ac_tmp/out"`; test -z "$ac_out"; } && 54039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54040 which seems to be undefined. Please make sure it is defined" >&5 54041 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54042 which seems to be undefined. Please make sure it is defined" >&2;} 54043 54044 rm -f "$ac_tmp/stdin" 54045 case $ac_file in 54046 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 54047 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 54048 esac \ 54049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54050 ;; 54051 :H) 54052 # 54053 # CONFIG_HEADER 54054 # 54055 if test x"$ac_file" != x-; then 54056 { 54057 $as_echo "/* $configure_input */" \ 54058 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 54059 } >"$ac_tmp/config.h" \ 54060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54061 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 54062 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 54063 $as_echo "$as_me: $ac_file is unchanged" >&6;} 54064 else 54065 rm -f "$ac_file" 54066 mv "$ac_tmp/config.h" "$ac_file" \ 54067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54068 fi 54069 else 54070 $as_echo "/* $configure_input */" \ 54071 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 54072 || as_fn_error $? "could not create -" "$LINENO" 5 54073 fi 54074 ;; 54075 54076 54077 esac 54078 54079 done # for ac_tag 54080 54081 54082 as_fn_exit 0 54083 _ACEOF 54084 ac_clean_files=$ac_clean_files_save 54085 54086 test $ac_write_fail = 0 || 54087 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 54088 54089 54090 # configure is writing to config.log, and then calls config.status. 54091 # config.status does its own redirection, appending to config.log. 54092 # Unfortunately, on DOS this fails, as config.log is still kept open 54093 # by configure, so config.status won't be able to write to it; its 54094 # output is simply discarded. So we exec the FD to /dev/null, 54095 # effectively closing config.log, so it can be properly (re)opened and 54096 # appended to by config.status. When coming back to configure, we 54097 # need to make the FD available again. 54098 if test "$no_create" != yes; then 54099 ac_cs_success=: 54100 ac_config_status_args= 54101 test "$silent" = yes && 54102 ac_config_status_args="$ac_config_status_args --quiet" 54103 exec 5>/dev/null 54104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 54105 exec 5>>config.log 54106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 54107 # would make configure fail if this is the last instruction. 54108 $ac_cs_success || as_fn_exit 1 54109 fi 54110 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 54111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 54112 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 54113 fi 54114 54115 54116 # After AC_OUTPUT, we need to do final work 54117 54118 54119 # Rotate our log file (configure.log) 54120 if test -e "$OUTPUT_ROOT/configure.log.old"; then 54121 $RM -f "$OUTPUT_ROOT/configure.log.old" 54122 fi 54123 if test -e "$OUTPUT_ROOT/configure.log"; then 54124 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 54125 fi 54126 54127 # Move configure.log from current directory to the build output root 54128 if test -e ./configure.log; then 54129 echo found it 54130 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 54131 fi 54132 54133 # Make the compare script executable 54134 $CHMOD +x $OUTPUT_ROOT/compare.sh 54135 54136 54137 # Make the compare script executable 54138 $CHMOD +x $OUTPUT_ROOT/compare.sh 54139 54140 # Finally output some useful information to the user 54141 54142 # Finally output some useful information to the user 54143 54144 printf "\n" 54145 printf "====================================================\n" 54146 printf "A new configuration has been successfully created in\n" 54147 printf "$OUTPUT_ROOT\n" 54148 if test "x$CONFIGURE_COMMAND_LINE" != x; then 54149 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 54150 else 54151 printf "using default settings.\n" 54152 fi 54153 54154 printf "\n" 54155 printf "Configuration summary:\n" 54156 printf "* Debug level: $DEBUG_LEVEL\n" 54157 printf "* JDK variant: $JDK_VARIANT\n" 54158 printf "* JVM variants: $with_jvm_variants\n" 54159 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 54160 54161 printf "\n" 54162 printf "Tools summary:\n" 54163 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 54164 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 54165 fi 54166 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 54167 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 54168 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 54169 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 54170 54171 printf "\n" 54172 printf "Build performance summary:\n" 54173 printf "* Cores to use: $JOBS\n" 54174 printf "* Memory limit: $MEMORY_SIZE MB\n" 54175 if test "x$CCACHE_STATUS" != "x"; then 54176 printf "* ccache status: $CCACHE_STATUS\n" 54177 fi 54178 printf "\n" 54179 54180 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 54181 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 54182 printf "will result in longer build times.\n" 54183 printf "\n" 54184 fi 54185 54186 if test "x$FOUND_ALT_VARIABLES" != "x"; then 54187 printf "WARNING: You have old-style ALT_ environment variables set.\n" 54188 printf "These are not respected, and will be ignored. It is recommended\n" 54189 printf "that you clean your environment. The following variables are set:\n" 54190 printf "$FOUND_ALT_VARIABLES\n" 54191 printf "\n" 54192 fi 54193 54194 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 54195 printf "WARNING: Your build output directory is not on a local disk.\n" 54196 printf "This will severely degrade build performance!\n" 54197 printf "It is recommended that you create an output directory on a local disk,\n" 54198 printf "and run the configure script again from that directory.\n" 54199 printf "\n" 54200 fi 54201 54202 if test "x$IS_RECONFIGURE" = "xyes"; then 54203 printf "WARNING: The result of this configuration has overridden an older\n" 54204 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 54205 printf "proper build. Failure to do so might result in strange build problems.\n" 54206 printf "\n" 54207 fi 54208 54209 if test "x$UNSUPPORTED_TOOLCHAIN_VERSION" = "xyes"; then 54210 printf "WARNING: The toolchain version used is known to have issues. Please\n" 54211 printf "consider using a supported version unless you know what you are doing.\n" 54212 printf "\n" 54213 fi 54214 54215 54216 # Locate config.log. 54217 if test -e "./config.log"; then 54218 CONFIG_LOG_PATH="." 54219 fi 54220 54221 if test -e "$CONFIG_LOG_PATH/config.log"; then 54222 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 54223 if test $? -eq 0; then 54224 printf "The following warnings were produced. Repeated here for convenience:\n" 54225 # We must quote sed expression (using []) to stop m4 from eating the []. 54226 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 54227 printf "\n" 54228 fi 54229 fi 54230