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 # 3501 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3502 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3503 # 3504 # This code is free software; you can redistribute it and/or modify it 3505 # under the terms of the GNU General Public License version 2 only, as 3506 # published by the Free Software Foundation. Oracle designates this 3507 # particular file as subject to the "Classpath" exception as provided 3508 # by Oracle in the LICENSE file that accompanied this code. 3509 # 3510 # This code is distributed in the hope that it will be useful, but WITHOUT 3511 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3512 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3513 # version 2 for more details (a copy is included in the LICENSE file that 3514 # accompanied this code). 3515 # 3516 # You should have received a copy of the GNU General Public License version 3517 # 2 along with this work; if not, write to the Free Software Foundation, 3518 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3519 # 3520 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3521 # or visit www.oracle.com if you need additional information or have any 3522 # questions. 3523 # 3524 3525 3526 3527 3528 3529 # Helper function which possibly converts a path using DOS-style short mode. 3530 # If so, the updated path is stored in $new_path. 3531 # $1: The path to check 3532 3533 3534 # Helper function which possibly converts a path using DOS-style short mode. 3535 # If so, the updated path is stored in $new_path. 3536 # $1: The path to check 3537 3538 3539 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3540 # and could probably be heavily simplified. However, all changes in this 3541 # area tend to need lot of testing in different scenarios, and in lack of 3542 # proper unit testing, cleaning this up has not been deemed worth the effort 3543 # at the moment. 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3554 3555 3556 3557 3558 # 3559 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3560 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3561 # 3562 # This code is free software; you can redistribute it and/or modify it 3563 # under the terms of the GNU General Public License version 2 only, as 3564 # published by the Free Software Foundation. Oracle designates this 3565 # particular file as subject to the "Classpath" exception as provided 3566 # by Oracle in the LICENSE file that accompanied this code. 3567 # 3568 # This code is distributed in the hope that it will be useful, but WITHOUT 3569 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3570 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3571 # version 2 for more details (a copy is included in the LICENSE file that 3572 # accompanied this code). 3573 # 3574 # You should have received a copy of the GNU General Public License version 3575 # 2 along with this work; if not, write to the Free Software Foundation, 3576 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3577 # 3578 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3579 # or visit www.oracle.com if you need additional information or have any 3580 # questions. 3581 # 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 # ... then the rest 3594 # 3595 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3596 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3597 # 3598 # This code is free software; you can redistribute it and/or modify it 3599 # under the terms of the GNU General Public License version 2 only, as 3600 # published by the Free Software Foundation. Oracle designates this 3601 # particular file as subject to the "Classpath" exception as provided 3602 # by Oracle in the LICENSE file that accompanied this code. 3603 # 3604 # This code is distributed in the hope that it will be useful, but WITHOUT 3605 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3606 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3607 # version 2 for more details (a copy is included in the LICENSE file that 3608 # accompanied this code). 3609 # 3610 # You should have received a copy of the GNU General Public License version 3611 # 2 along with this work; if not, write to the Free Software Foundation, 3612 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3613 # 3614 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3615 # or visit www.oracle.com if you need additional information or have any 3616 # questions. 3617 # 3618 3619 # Execute the check given as argument, and verify the result 3620 # If the Boot JDK was previously found, do nothing 3621 # $1 A command line (typically autoconf macro) to execute 3622 3623 3624 # Test: Is bootjdk explicitely set by command line arguments? 3625 3626 3627 # Test: Is bootjdk available from builddeps? 3628 3629 3630 # Test: Is $JAVA_HOME set? 3631 3632 3633 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3634 3635 3636 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3637 3638 3639 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3640 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3641 # $1 = Path to directory containing jdk installations. 3642 # $2 = String to append to the found JDK directory to get the proper JDK home 3643 3644 3645 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3646 # environmental variable as base for where to look. 3647 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3648 3649 3650 # Test: Is there a JDK installed in default, well-known locations? 3651 3652 3653 # Check that a command-line tool in the Boot JDK is correct 3654 # $1 = name of variable to assign 3655 # $2 = name of binary 3656 3657 3658 ############################################################################### 3659 # 3660 # We need a Boot JDK to bootstrap the build. 3661 # 3662 3663 3664 3665 3666 3667 # 3668 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. 3669 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3670 # 3671 # This code is free software; you can redistribute it and/or modify it 3672 # under the terms of the GNU General Public License version 2 only, as 3673 # published by the Free Software Foundation. Oracle designates this 3674 # particular file as subject to the "Classpath" exception as provided 3675 # by Oracle in the LICENSE file that accompanied this code. 3676 # 3677 # This code is distributed in the hope that it will be useful, but WITHOUT 3678 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3679 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3680 # version 2 for more details (a copy is included in the LICENSE file that 3681 # accompanied this code). 3682 # 3683 # You should have received a copy of the GNU General Public License version 3684 # 2 along with this work; if not, write to the Free Software Foundation, 3685 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3686 # 3687 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3688 # or visit www.oracle.com if you need additional information or have any 3689 # questions. 3690 # 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 # 3712 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3713 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3714 # 3715 # This code is free software; you can redistribute it and/or modify it 3716 # under the terms of the GNU General Public License version 2 only, as 3717 # published by the Free Software Foundation. Oracle designates this 3718 # particular file as subject to the "Classpath" exception as provided 3719 # by Oracle in the LICENSE file that accompanied this code. 3720 # 3721 # This code is distributed in the hope that it will be useful, but WITHOUT 3722 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3723 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3724 # version 2 for more details (a copy is included in the LICENSE file that 3725 # accompanied this code). 3726 # 3727 # You should have received a copy of the GNU General Public License version 3728 # 2 along with this work; if not, write to the Free Software Foundation, 3729 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3730 # 3731 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3732 # or visit www.oracle.com if you need additional information or have any 3733 # questions. 3734 # 3735 3736 3737 3738 3739 3740 # Documentation on common flags used for solstudio in HIGHEST. 3741 # 3742 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3743 # done with care, there are some assumptions below that need to 3744 # be understood about the use of pointers, and IEEE behavior. 3745 # 3746 # -fns: Use non-standard floating point mode (not IEEE 754) 3747 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3748 # -fsingle: Use single precision floating point with 'float' 3749 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3750 # (Source with excessing pointer casting and data access with mixed 3751 # pointer types are not recommended) 3752 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3753 # (If you expect perfect errno behavior, do not use this) 3754 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3755 # -xrestrict: Pointer parameters to functions do not overlap 3756 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3757 # If you pass in multiple pointers to the same data, do not use this) 3758 # -xlibmil: Inline some library routines 3759 # (If you expect perfect errno behavior, do not use this) 3760 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3761 # (If you expect perfect errno behavior, do not use this) 3762 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3763 3764 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3765 # Bug? 3766 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3767 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3768 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3769 #fi 3770 3771 3772 3773 3774 3775 3776 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3777 # [RUN-IF-FALSE]) 3778 # ------------------------------------------------------------ 3779 # Check that the C compiler supports an argument 3780 3781 3782 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3783 # [RUN-IF-FALSE]) 3784 # ------------------------------------------------------------ 3785 # Check that the C++ compiler supports an argument 3786 3787 3788 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3789 # [RUN-IF-FALSE]) 3790 # ------------------------------------------------------------ 3791 # Check that the C and C++ compilers support an argument 3792 3793 3794 3795 3796 3797 3798 3799 # 3800 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3801 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3802 # 3803 # This code is free software; you can redistribute it and/or modify it 3804 # under the terms of the GNU General Public License version 2 only, as 3805 # published by the Free Software Foundation. Oracle designates this 3806 # particular file as subject to the "Classpath" exception as provided 3807 # by Oracle in the LICENSE file that accompanied this code. 3808 # 3809 # This code is distributed in the hope that it will be useful, but WITHOUT 3810 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3811 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3812 # version 2 for more details (a copy is included in the LICENSE file that 3813 # accompanied this code). 3814 # 3815 # You should have received a copy of the GNU General Public License version 3816 # 2 along with this work; if not, write to the Free Software Foundation, 3817 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3818 # 3819 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3820 # or visit www.oracle.com if you need additional information or have any 3821 # questions. 3822 # 3823 3824 3825 3826 3827 3828 cygwin_help() { 3829 case $1 in 3830 unzip) 3831 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3832 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3833 ;; 3834 zip) 3835 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3836 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3837 ;; 3838 make) 3839 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3840 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3841 ;; 3842 freetype) 3843 HELP_MSG=" 3844 The freetype library can now be build during the configure process. 3845 Download the freetype sources and unpack them into an arbitrary directory: 3846 3847 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3848 tar -xzf freetype-2.5.3.tar.gz 3849 3850 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3851 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3852 builds or into '<freetype_src>/lib32' for 32-bit builds. 3853 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3854 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3855 ;; 3856 esac 3857 } 3858 3859 msys_help() { 3860 PKGHANDLER_COMMAND="" 3861 } 3862 3863 apt_help() { 3864 case $1 in 3865 devkit) 3866 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3867 openjdk) 3868 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3869 alsa) 3870 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3871 cups) 3872 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3873 fontconfig) 3874 PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;; 3875 freetype) 3876 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3877 pulse) 3878 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3879 x11) 3880 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3881 ccache) 3882 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3883 esac 3884 } 3885 3886 yum_help() { 3887 case $1 in 3888 devkit) 3889 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3890 openjdk) 3891 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3892 alsa) 3893 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3894 cups) 3895 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3896 fontconfig) 3897 PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;; 3898 freetype) 3899 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3900 pulse) 3901 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3902 x11) 3903 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3904 ccache) 3905 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3906 esac 3907 } 3908 3909 port_help() { 3910 PKGHANDLER_COMMAND="" 3911 } 3912 3913 pkgutil_help() { 3914 PKGHANDLER_COMMAND="" 3915 } 3916 3917 pkgadd_help() { 3918 PKGHANDLER_COMMAND="" 3919 } 3920 3921 # This function will check if we're called from the "configure" wrapper while 3922 # printing --help. If so, we will print out additional information that can 3923 # only be extracted within the autoconf script, and then exit. This must be 3924 # called at the very beginning in configure.ac. 3925 3926 3927 3928 3929 3930 3931 # 3932 # Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved. 3933 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3934 # 3935 # This code is free software; you can redistribute it and/or modify it 3936 # under the terms of the GNU General Public License version 2 only, as 3937 # published by the Free Software Foundation. Oracle designates this 3938 # particular file as subject to the "Classpath" exception as provided 3939 # by Oracle in the LICENSE file that accompanied this code. 3940 # 3941 # This code is distributed in the hope that it will be useful, but WITHOUT 3942 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3943 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3944 # version 2 for more details (a copy is included in the LICENSE file that 3945 # accompanied this code). 3946 # 3947 # You should have received a copy of the GNU General Public License version 3948 # 2 along with this work; if not, write to the Free Software Foundation, 3949 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3950 # 3951 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3952 # or visit www.oracle.com if you need additional information or have any 3953 # questions. 3954 # 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 ############################################################################### 3966 # 3967 # Should we build only OpenJDK even if closed sources are present? 3968 # 3969 3970 3971 3972 3973 ############################################################################### 3974 # 3975 # Setup version numbers 3976 # 3977 3978 3979 3980 3981 3982 3983 # Support for customization of the build process. Some build files 3984 # will include counterparts from this location, if they exist. This allows 3985 # for a degree of customization of the build targets and the rules/recipes 3986 # to create them 3987 3988 # Check whether --with-custom-make-dir was given. 3989 if test "${with_custom_make_dir+set}" = set; then : 3990 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir 3991 fi 3992 3993 3994 3995 # 3996 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3997 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3998 # 3999 # This code is free software; you can redistribute it and/or modify it 4000 # under the terms of the GNU General Public License version 2 only, as 4001 # published by the Free Software Foundation. Oracle designates this 4002 # particular file as subject to the "Classpath" exception as provided 4003 # by Oracle in the LICENSE file that accompanied this code. 4004 # 4005 # This code is distributed in the hope that it will be useful, but WITHOUT 4006 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4007 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4008 # version 2 for more details (a copy is included in the LICENSE file that 4009 # accompanied this code). 4010 # 4011 # You should have received a copy of the GNU General Public License version 4012 # 2 along with this work; if not, write to the Free Software Foundation, 4013 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4014 # 4015 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4016 # or visit www.oracle.com if you need additional information or have any 4017 # questions. 4018 # 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 ################################################################################ 4035 # Setup fontconfig 4036 ################################################################################ 4037 4038 4039 4040 4041 4042 4043 4044 4045 # 4046 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4047 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4048 # 4049 # This code is free software; you can redistribute it and/or modify it 4050 # under the terms of the GNU General Public License version 2 only, as 4051 # published by the Free Software Foundation. Oracle designates this 4052 # particular file as subject to the "Classpath" exception as provided 4053 # by Oracle in the LICENSE file that accompanied this code. 4054 # 4055 # This code is distributed in the hope that it will be useful, but WITHOUT 4056 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4057 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4058 # version 2 for more details (a copy is included in the LICENSE file that 4059 # accompanied this code). 4060 # 4061 # You should have received a copy of the GNU General Public License version 4062 # 2 along with this work; if not, write to the Free Software Foundation, 4063 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4064 # 4065 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4066 # or visit www.oracle.com if you need additional information or have any 4067 # questions. 4068 # 4069 4070 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4071 # Converts autoconf style CPU name to OpenJDK style, into 4072 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4073 4074 4075 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4076 # Converts autoconf style OS name to OpenJDK style, into 4077 # VAR_OS and VAR_OS_API. 4078 4079 4080 # Expects $host_os $host_cpu $build_os and $build_cpu 4081 # and $with_target_bits to have been setup! 4082 # 4083 # Translate the standard triplet(quadruplet) definition 4084 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4085 # OPENJDK_BUILD_OS, etc. 4086 4087 4088 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4089 # accordingly. Must be done after setting up build and target system, but before 4090 # doing anything else with these values. 4091 4092 4093 # Setup the legacy variables, for controlling the old makefiles. 4094 # 4095 4096 4097 4098 4099 #%%% Build and target systems %%% 4100 4101 4102 4103 4104 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4105 # Add -mX to various FLAGS variables. 4106 4107 4108 4109 4110 4111 4112 # 4113 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4114 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4115 # 4116 # This code is free software; you can redistribute it and/or modify it 4117 # under the terms of the GNU General Public License version 2 only, as 4118 # published by the Free Software Foundation. Oracle designates this 4119 # particular file as subject to the "Classpath" exception as provided 4120 # by Oracle in the LICENSE file that accompanied this code. 4121 # 4122 # This code is distributed in the hope that it will be useful, but WITHOUT 4123 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4124 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4125 # version 2 for more details (a copy is included in the LICENSE file that 4126 # accompanied this code). 4127 # 4128 # You should have received a copy of the GNU General Public License version 4129 # 2 along with this work; if not, write to the Free Software Foundation, 4130 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4131 # 4132 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4133 # or visit www.oracle.com if you need additional information or have any 4134 # questions. 4135 # 4136 4137 4138 4139 4140 4141 4142 4143 4144 # 4145 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4146 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4147 # 4148 # This code is free software; you can redistribute it and/or modify it 4149 # under the terms of the GNU General Public License version 2 only, as 4150 # published by the Free Software Foundation. Oracle designates this 4151 # particular file as subject to the "Classpath" exception as provided 4152 # by Oracle in the LICENSE file that accompanied this code. 4153 # 4154 # This code is distributed in the hope that it will be useful, but WITHOUT 4155 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4156 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4157 # version 2 for more details (a copy is included in the LICENSE file that 4158 # accompanied this code). 4159 # 4160 # You should have received a copy of the GNU General Public License version 4161 # 2 along with this work; if not, write to the Free Software Foundation, 4162 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4163 # 4164 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4165 # or visit www.oracle.com if you need additional information or have any 4166 # questions. 4167 # 4168 4169 ######################################################################## 4170 # This file is responsible for detecting, verifying and setting up the 4171 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4172 # proper paths to the binaries, but it will not setup any flags. 4173 # 4174 # The binaries used is determined by the toolchain type, which is the family of 4175 # compilers and related tools that are used. 4176 ######################################################################## 4177 4178 4179 # All valid toolchains, regardless of platform (used by help.m4) 4180 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4181 4182 # These toolchains are valid on different platforms 4183 VALID_TOOLCHAINS_linux="gcc clang" 4184 VALID_TOOLCHAINS_solaris="solstudio" 4185 VALID_TOOLCHAINS_macosx="gcc clang" 4186 VALID_TOOLCHAINS_aix="xlc" 4187 VALID_TOOLCHAINS_windows="microsoft" 4188 4189 # Toolchain descriptions 4190 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4191 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4192 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4193 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4194 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4195 4196 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4197 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4198 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4199 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4200 4201 4202 # Check if the configured compiler (C and C++) is of a specific version or 4203 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4204 # 4205 # Arguments: 4206 # $1: The version string to check against the found version 4207 # $2: block to run if the compiler is at least this version (>=) 4208 # $3: block to run if the compiler is older than this version (<) 4209 4210 4211 4212 # Setup a number of variables describing how native output files are 4213 # named on this platform/toolchain. 4214 4215 4216 # Determine which toolchain type to use, and make sure it is valid for this 4217 # platform. Setup various information about the selected toolchain. 4218 4219 4220 # Before we start detecting the toolchain executables, we might need some 4221 # special setup, e.g. additional paths etc. 4222 4223 4224 # Restore path, etc 4225 4226 4227 # Check if a compiler is of the toolchain type we expect, and save the version 4228 # information from it. If the compiler does not match the expected type, 4229 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4230 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4231 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4232 # 4233 # $1 = compiler to test (CC or CXX) 4234 # $2 = human readable name of compiler (C or C++) 4235 4236 4237 4238 # Try to locate the given C or C++ compiler in the path, or otherwise. 4239 # 4240 # $1 = compiler to test (CC or CXX) 4241 # $2 = human readable name of compiler (C or C++) 4242 # $3 = list of compiler names to search for 4243 4244 4245 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4246 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4247 # archiver (AR). Verify that the compilers are correct according to the 4248 # toolchain type. 4249 4250 4251 # Setup additional tools that is considered a part of the toolchain, but not the 4252 # core part. Many of these are highly platform-specific and do not exist, 4253 # and/or are not needed on all platforms. 4254 4255 4256 # Setup the build tools (i.e, the compiler and linker used to build programs 4257 # that should be run on the build platform, not the target platform, as a build 4258 # helper). Since the non-cross-compile case uses the normal, target compilers 4259 # for this, we can only do this after these have been setup. 4260 4261 4262 # Setup legacy variables that are still needed as alternative ways to refer to 4263 # parts of the toolchain. 4264 4265 4266 # Do some additional checks on the detected tools. 4267 4268 4269 # Setup the JTReg Regression Test Harness. 4270 4271 4272 4273 # 4274 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4275 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4276 # 4277 # This code is free software; you can redistribute it and/or modify it 4278 # under the terms of the GNU General Public License version 2 only, as 4279 # published by the Free Software Foundation. Oracle designates this 4280 # particular file as subject to the "Classpath" exception as provided 4281 # by Oracle in the LICENSE file that accompanied this code. 4282 # 4283 # This code is distributed in the hope that it will be useful, but WITHOUT 4284 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4285 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4286 # version 2 for more details (a copy is included in the LICENSE file that 4287 # accompanied this code). 4288 # 4289 # You should have received a copy of the GNU General Public License version 4290 # 2 along with this work; if not, write to the Free Software Foundation, 4291 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4292 # 4293 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4294 # or visit www.oracle.com if you need additional information or have any 4295 # questions. 4296 # 4297 4298 ################################################################################ 4299 # The order of these defines the priority by which we try to find them. 4300 VALID_VS_VERSIONS="2010 2012 2013 2015 2017" 4301 4302 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4303 VS_VERSION_INTERNAL_2010=100 4304 VS_MSVCR_2010=msvcr100.dll 4305 # We don't use msvcp on Visual Studio 2010 4306 #VS_MSVCP_2010=msvcp100.dll 4307 VS_ENVVAR_2010="VS100COMNTOOLS" 4308 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4309 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4310 VS_VS_PLATFORM_NAME_2010="v100" 4311 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4312 4313 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4314 VS_VERSION_INTERNAL_2012=110 4315 VS_MSVCR_2012=msvcr110.dll 4316 VS_MSVCP_2012=msvcp110.dll 4317 VS_ENVVAR_2012="VS110COMNTOOLS" 4318 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4319 VS_SDK_INSTALLDIR_2012= 4320 VS_VS_PLATFORM_NAME_2012="v110" 4321 VS_SDK_PLATFORM_NAME_2012= 4322 4323 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4324 VS_VERSION_INTERNAL_2013=120 4325 VS_MSVCR_2013=msvcr120.dll 4326 VS_MSVCP_2013=msvcp120.dll 4327 VS_ENVVAR_2013="VS120COMNTOOLS" 4328 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4329 VS_SDK_INSTALLDIR_2013= 4330 VS_VS_PLATFORM_NAME_2013="v120" 4331 VS_SDK_PLATFORM_NAME_2013= 4332 4333 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING" 4334 VS_VERSION_INTERNAL_2015=140 4335 VS_MSVCR_2015=vcruntime140.dll 4336 VS_MSVCP_2015=msvcp140.dll 4337 VS_ENVVAR_2015="VS140COMNTOOLS" 4338 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0" 4339 VS_SDK_INSTALLDIR_2015= 4340 VS_VS_PLATFORM_NAME_2015="v140" 4341 VS_SDK_PLATFORM_NAME_2015= 4342 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by 4343 # explicitly specifying Windows Kit 8.1 to be used. 4344 VS_ENV_ARGS_2015="8.1" 4345 4346 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING" 4347 VS_VERSION_INTERNAL_2017=141 4348 VS_MSVCR_2017=vcruntime140.dll 4349 VS_MSVCP_2017=msvcp140.dll 4350 VS_ENVVAR_2017="VS150COMNTOOLS" 4351 VS_USE_UCRT_2017="true" 4352 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017" 4353 VS_EDITIONS_2017="Community Professional Enterprise" 4354 VS_SDK_INSTALLDIR_2017= 4355 VS_VS_PLATFORM_NAME_2017="v141" 4356 VS_SDK_PLATFORM_NAME_2017= 4357 4358 ################################################################################ 4359 4360 4361 4362 ################################################################################ 4363 4364 4365 4366 ################################################################################ 4367 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4368 # build environment and assigns it to VS_ENV_CMD 4369 4370 4371 ################################################################################ 4372 4373 4374 4375 ################################################################################ 4376 # Check if the VS env variables were setup prior to running configure. 4377 # If not, then find vcvarsall.bat and run it automatically, and integrate 4378 # the set env variables into the spec file. 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 # This line needs to be here, verbatim, after all includes and the dummy hook 4394 # definitions. It is replaced with custom functionality when building 4395 # custom sources. 4396 #CUSTOM_AUTOCONF_INCLUDE 4397 4398 # Do not change or remove the following line, it is needed for consistency checks: 4399 DATE_WHEN_GENERATED=1619439528 4400 4401 ############################################################################### 4402 # 4403 # Initialization / Boot-strapping 4404 # 4405 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4406 # thus it jumps back and forth, each time gaining something needed later on. 4407 # 4408 ############################################################################### 4409 4410 # If we are requested to print additional help, do that and then exit. 4411 # This must be the very first call. 4412 4413 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4414 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4415 $PRINTF "Which are valid to use depends on the build platform.\n" 4416 for toolchain in $VALID_TOOLCHAINS_all; do 4417 # Use indirect variable referencing 4418 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4419 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4420 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4421 done 4422 4423 # And now exit directly 4424 exit 0 4425 fi 4426 4427 4428 # Basic initialization that must happen first of all in the normal process. 4429 4430 # Save the original command line. This is passed to us by the wrapper configure script. 4431 4432 DATE_WHEN_CONFIGURED=`LANG=C date` 4433 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4435 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4436 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4437 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4438 4439 4440 # Start with tools that do not need have cross compilation support 4441 # and can be expected to be found in the default PATH. These tools are 4442 # used by configure. Nor are these tools expected to be found in the 4443 # devkit from the builddeps server either, since they are 4444 # needed to download the devkit. 4445 4446 # First are all the simple required tools. 4447 4448 4449 4450 # Publish this variable in the help. 4451 4452 4453 if test "x$BASENAME" = x; then 4454 # The variable is not set by user, try to locate tool using the code snippet 4455 for ac_prog in basename 4456 do 4457 # Extract the first word of "$ac_prog", so it can be a program name with args. 4458 set dummy $ac_prog; ac_word=$2 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4460 $as_echo_n "checking for $ac_word... " >&6; } 4461 if ${ac_cv_path_BASENAME+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463 else 4464 case $BASENAME in 4465 [\\/]* | ?:[\\/]*) 4466 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4467 ;; 4468 *) 4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4470 for as_dir in $PATH 4471 do 4472 IFS=$as_save_IFS 4473 test -z "$as_dir" && as_dir=. 4474 for ac_exec_ext in '' $ac_executable_extensions; do 4475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4476 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4478 break 2 4479 fi 4480 done 4481 done 4482 IFS=$as_save_IFS 4483 4484 ;; 4485 esac 4486 fi 4487 BASENAME=$ac_cv_path_BASENAME 4488 if test -n "$BASENAME"; then 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4490 $as_echo "$BASENAME" >&6; } 4491 else 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4493 $as_echo "no" >&6; } 4494 fi 4495 4496 4497 test -n "$BASENAME" && break 4498 done 4499 4500 else 4501 # The variable is set, but is it from the command line or the environment? 4502 4503 # Try to remove the string !BASENAME! from our list. 4504 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4505 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4506 # If it failed, the variable was not from the command line. Ignore it, 4507 # but warn the user (except for BASH, which is always set by the calling BASH). 4508 if test "xBASENAME" != xBASH; then 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4510 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4511 fi 4512 # Try to locate tool using the code snippet 4513 for ac_prog in basename 4514 do 4515 # Extract the first word of "$ac_prog", so it can be a program name with args. 4516 set dummy $ac_prog; ac_word=$2 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4518 $as_echo_n "checking for $ac_word... " >&6; } 4519 if ${ac_cv_path_BASENAME+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521 else 4522 case $BASENAME in 4523 [\\/]* | ?:[\\/]*) 4524 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4525 ;; 4526 *) 4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4528 for as_dir in $PATH 4529 do 4530 IFS=$as_save_IFS 4531 test -z "$as_dir" && as_dir=. 4532 for ac_exec_ext in '' $ac_executable_extensions; do 4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4534 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4536 break 2 4537 fi 4538 done 4539 done 4540 IFS=$as_save_IFS 4541 4542 ;; 4543 esac 4544 fi 4545 BASENAME=$ac_cv_path_BASENAME 4546 if test -n "$BASENAME"; then 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4548 $as_echo "$BASENAME" >&6; } 4549 else 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4551 $as_echo "no" >&6; } 4552 fi 4553 4554 4555 test -n "$BASENAME" && break 4556 done 4557 4558 else 4559 # If it succeeded, then it was overridden by the user. We will use it 4560 # for the tool. 4561 4562 # First remove it from the list of overridden variables, so we can test 4563 # for unknown variables in the end. 4564 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4565 4566 # Check if the provided tool contains a complete path. 4567 tool_specified="$BASENAME" 4568 tool_basename="${tool_specified##*/}" 4569 if test "x$tool_basename" = "x$tool_specified"; then 4570 # A command without a complete path is provided, search $PATH. 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4572 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4573 # Extract the first word of "$tool_basename", so it can be a program name with args. 4574 set dummy $tool_basename; ac_word=$2 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4576 $as_echo_n "checking for $ac_word... " >&6; } 4577 if ${ac_cv_path_BASENAME+:} false; then : 4578 $as_echo_n "(cached) " >&6 4579 else 4580 case $BASENAME in 4581 [\\/]* | ?:[\\/]*) 4582 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4583 ;; 4584 *) 4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4586 for as_dir in $PATH 4587 do 4588 IFS=$as_save_IFS 4589 test -z "$as_dir" && as_dir=. 4590 for ac_exec_ext in '' $ac_executable_extensions; do 4591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4592 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4594 break 2 4595 fi 4596 done 4597 done 4598 IFS=$as_save_IFS 4599 4600 ;; 4601 esac 4602 fi 4603 BASENAME=$ac_cv_path_BASENAME 4604 if test -n "$BASENAME"; then 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4606 $as_echo "$BASENAME" >&6; } 4607 else 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4609 $as_echo "no" >&6; } 4610 fi 4611 4612 4613 if test "x$BASENAME" = x; then 4614 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4615 fi 4616 else 4617 # Otherwise we believe it is a complete path. Use it as it is. 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4619 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4621 $as_echo_n "checking for BASENAME... " >&6; } 4622 if test ! -x "$tool_specified"; then 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4624 $as_echo "not found" >&6; } 4625 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4626 fi 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4628 $as_echo "$tool_specified" >&6; } 4629 fi 4630 fi 4631 fi 4632 4633 4634 4635 if test "x$BASENAME" = x; then 4636 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4637 fi 4638 4639 4640 4641 4642 4643 # Publish this variable in the help. 4644 4645 4646 if test "x$BASH" = x; then 4647 # The variable is not set by user, try to locate tool using the code snippet 4648 for ac_prog in bash 4649 do 4650 # Extract the first word of "$ac_prog", so it can be a program name with args. 4651 set dummy $ac_prog; ac_word=$2 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4653 $as_echo_n "checking for $ac_word... " >&6; } 4654 if ${ac_cv_path_BASH+:} false; then : 4655 $as_echo_n "(cached) " >&6 4656 else 4657 case $BASH in 4658 [\\/]* | ?:[\\/]*) 4659 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4660 ;; 4661 *) 4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4663 for as_dir in $PATH 4664 do 4665 IFS=$as_save_IFS 4666 test -z "$as_dir" && as_dir=. 4667 for ac_exec_ext in '' $ac_executable_extensions; do 4668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4669 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4671 break 2 4672 fi 4673 done 4674 done 4675 IFS=$as_save_IFS 4676 4677 ;; 4678 esac 4679 fi 4680 BASH=$ac_cv_path_BASH 4681 if test -n "$BASH"; then 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4683 $as_echo "$BASH" >&6; } 4684 else 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4686 $as_echo "no" >&6; } 4687 fi 4688 4689 4690 test -n "$BASH" && break 4691 done 4692 4693 else 4694 # The variable is set, but is it from the command line or the environment? 4695 4696 # Try to remove the string !BASH! from our list. 4697 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4698 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4699 # If it failed, the variable was not from the command line. Ignore it, 4700 # but warn the user (except for BASH, which is always set by the calling BASH). 4701 if test "xBASH" != xBASH; then 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4703 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4704 fi 4705 # Try to locate tool using the code snippet 4706 for ac_prog in bash 4707 do 4708 # Extract the first word of "$ac_prog", so it can be a program name with args. 4709 set dummy $ac_prog; ac_word=$2 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4711 $as_echo_n "checking for $ac_word... " >&6; } 4712 if ${ac_cv_path_BASH+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714 else 4715 case $BASH in 4716 [\\/]* | ?:[\\/]*) 4717 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4718 ;; 4719 *) 4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4721 for as_dir in $PATH 4722 do 4723 IFS=$as_save_IFS 4724 test -z "$as_dir" && as_dir=. 4725 for ac_exec_ext in '' $ac_executable_extensions; do 4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4727 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4729 break 2 4730 fi 4731 done 4732 done 4733 IFS=$as_save_IFS 4734 4735 ;; 4736 esac 4737 fi 4738 BASH=$ac_cv_path_BASH 4739 if test -n "$BASH"; then 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4741 $as_echo "$BASH" >&6; } 4742 else 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4744 $as_echo "no" >&6; } 4745 fi 4746 4747 4748 test -n "$BASH" && break 4749 done 4750 4751 else 4752 # If it succeeded, then it was overridden by the user. We will use it 4753 # for the tool. 4754 4755 # First remove it from the list of overridden variables, so we can test 4756 # for unknown variables in the end. 4757 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4758 4759 # Check if the provided tool contains a complete path. 4760 tool_specified="$BASH" 4761 tool_basename="${tool_specified##*/}" 4762 if test "x$tool_basename" = "x$tool_specified"; then 4763 # A command without a complete path is provided, search $PATH. 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4765 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4766 # Extract the first word of "$tool_basename", so it can be a program name with args. 4767 set dummy $tool_basename; ac_word=$2 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4769 $as_echo_n "checking for $ac_word... " >&6; } 4770 if ${ac_cv_path_BASH+:} false; then : 4771 $as_echo_n "(cached) " >&6 4772 else 4773 case $BASH in 4774 [\\/]* | ?:[\\/]*) 4775 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4776 ;; 4777 *) 4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4779 for as_dir in $PATH 4780 do 4781 IFS=$as_save_IFS 4782 test -z "$as_dir" && as_dir=. 4783 for ac_exec_ext in '' $ac_executable_extensions; do 4784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4785 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4787 break 2 4788 fi 4789 done 4790 done 4791 IFS=$as_save_IFS 4792 4793 ;; 4794 esac 4795 fi 4796 BASH=$ac_cv_path_BASH 4797 if test -n "$BASH"; then 4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4799 $as_echo "$BASH" >&6; } 4800 else 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4802 $as_echo "no" >&6; } 4803 fi 4804 4805 4806 if test "x$BASH" = x; then 4807 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4808 fi 4809 else 4810 # Otherwise we believe it is a complete path. Use it as it is. 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4812 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4814 $as_echo_n "checking for BASH... " >&6; } 4815 if test ! -x "$tool_specified"; then 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4817 $as_echo "not found" >&6; } 4818 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4819 fi 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4821 $as_echo "$tool_specified" >&6; } 4822 fi 4823 fi 4824 fi 4825 4826 4827 4828 if test "x$BASH" = x; then 4829 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4830 fi 4831 4832 4833 4834 4835 4836 # Publish this variable in the help. 4837 4838 4839 if test "x$CAT" = x; then 4840 # The variable is not set by user, try to locate tool using the code snippet 4841 for ac_prog in cat 4842 do 4843 # Extract the first word of "$ac_prog", so it can be a program name with args. 4844 set dummy $ac_prog; ac_word=$2 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4846 $as_echo_n "checking for $ac_word... " >&6; } 4847 if ${ac_cv_path_CAT+:} false; then : 4848 $as_echo_n "(cached) " >&6 4849 else 4850 case $CAT in 4851 [\\/]* | ?:[\\/]*) 4852 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4853 ;; 4854 *) 4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4856 for as_dir in $PATH 4857 do 4858 IFS=$as_save_IFS 4859 test -z "$as_dir" && as_dir=. 4860 for ac_exec_ext in '' $ac_executable_extensions; do 4861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4862 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4864 break 2 4865 fi 4866 done 4867 done 4868 IFS=$as_save_IFS 4869 4870 ;; 4871 esac 4872 fi 4873 CAT=$ac_cv_path_CAT 4874 if test -n "$CAT"; then 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4876 $as_echo "$CAT" >&6; } 4877 else 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4879 $as_echo "no" >&6; } 4880 fi 4881 4882 4883 test -n "$CAT" && break 4884 done 4885 4886 else 4887 # The variable is set, but is it from the command line or the environment? 4888 4889 # Try to remove the string !CAT! from our list. 4890 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4891 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4892 # If it failed, the variable was not from the command line. Ignore it, 4893 # but warn the user (except for BASH, which is always set by the calling BASH). 4894 if test "xCAT" != xBASH; then 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4896 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4897 fi 4898 # Try to locate tool using the code snippet 4899 for ac_prog in cat 4900 do 4901 # Extract the first word of "$ac_prog", so it can be a program name with args. 4902 set dummy $ac_prog; ac_word=$2 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4904 $as_echo_n "checking for $ac_word... " >&6; } 4905 if ${ac_cv_path_CAT+:} false; then : 4906 $as_echo_n "(cached) " >&6 4907 else 4908 case $CAT in 4909 [\\/]* | ?:[\\/]*) 4910 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4911 ;; 4912 *) 4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4914 for as_dir in $PATH 4915 do 4916 IFS=$as_save_IFS 4917 test -z "$as_dir" && as_dir=. 4918 for ac_exec_ext in '' $ac_executable_extensions; do 4919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4920 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4922 break 2 4923 fi 4924 done 4925 done 4926 IFS=$as_save_IFS 4927 4928 ;; 4929 esac 4930 fi 4931 CAT=$ac_cv_path_CAT 4932 if test -n "$CAT"; then 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4934 $as_echo "$CAT" >&6; } 4935 else 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4937 $as_echo "no" >&6; } 4938 fi 4939 4940 4941 test -n "$CAT" && break 4942 done 4943 4944 else 4945 # If it succeeded, then it was overridden by the user. We will use it 4946 # for the tool. 4947 4948 # First remove it from the list of overridden variables, so we can test 4949 # for unknown variables in the end. 4950 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4951 4952 # Check if the provided tool contains a complete path. 4953 tool_specified="$CAT" 4954 tool_basename="${tool_specified##*/}" 4955 if test "x$tool_basename" = "x$tool_specified"; then 4956 # A command without a complete path is provided, search $PATH. 4957 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4958 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4959 # Extract the first word of "$tool_basename", so it can be a program name with args. 4960 set dummy $tool_basename; ac_word=$2 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4962 $as_echo_n "checking for $ac_word... " >&6; } 4963 if ${ac_cv_path_CAT+:} false; then : 4964 $as_echo_n "(cached) " >&6 4965 else 4966 case $CAT in 4967 [\\/]* | ?:[\\/]*) 4968 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4969 ;; 4970 *) 4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4972 for as_dir in $PATH 4973 do 4974 IFS=$as_save_IFS 4975 test -z "$as_dir" && as_dir=. 4976 for ac_exec_ext in '' $ac_executable_extensions; do 4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4978 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4980 break 2 4981 fi 4982 done 4983 done 4984 IFS=$as_save_IFS 4985 4986 ;; 4987 esac 4988 fi 4989 CAT=$ac_cv_path_CAT 4990 if test -n "$CAT"; then 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4992 $as_echo "$CAT" >&6; } 4993 else 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4995 $as_echo "no" >&6; } 4996 fi 4997 4998 4999 if test "x$CAT" = x; then 5000 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5001 fi 5002 else 5003 # Otherwise we believe it is a complete path. Use it as it is. 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5005 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5007 $as_echo_n "checking for CAT... " >&6; } 5008 if test ! -x "$tool_specified"; then 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5010 $as_echo "not found" >&6; } 5011 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5012 fi 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5014 $as_echo "$tool_specified" >&6; } 5015 fi 5016 fi 5017 fi 5018 5019 5020 5021 if test "x$CAT" = x; then 5022 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5023 fi 5024 5025 5026 5027 5028 5029 # Publish this variable in the help. 5030 5031 5032 if test "x$CHMOD" = x; then 5033 # The variable is not set by user, try to locate tool using the code snippet 5034 for ac_prog in chmod 5035 do 5036 # Extract the first word of "$ac_prog", so it can be a program name with args. 5037 set dummy $ac_prog; ac_word=$2 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5039 $as_echo_n "checking for $ac_word... " >&6; } 5040 if ${ac_cv_path_CHMOD+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042 else 5043 case $CHMOD in 5044 [\\/]* | ?:[\\/]*) 5045 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5046 ;; 5047 *) 5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5049 for as_dir in $PATH 5050 do 5051 IFS=$as_save_IFS 5052 test -z "$as_dir" && as_dir=. 5053 for ac_exec_ext in '' $ac_executable_extensions; do 5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5055 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5057 break 2 5058 fi 5059 done 5060 done 5061 IFS=$as_save_IFS 5062 5063 ;; 5064 esac 5065 fi 5066 CHMOD=$ac_cv_path_CHMOD 5067 if test -n "$CHMOD"; then 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5069 $as_echo "$CHMOD" >&6; } 5070 else 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5072 $as_echo "no" >&6; } 5073 fi 5074 5075 5076 test -n "$CHMOD" && break 5077 done 5078 5079 else 5080 # The variable is set, but is it from the command line or the environment? 5081 5082 # Try to remove the string !CHMOD! from our list. 5083 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5084 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5085 # If it failed, the variable was not from the command line. Ignore it, 5086 # but warn the user (except for BASH, which is always set by the calling BASH). 5087 if test "xCHMOD" != xBASH; then 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5089 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5090 fi 5091 # Try to locate tool using the code snippet 5092 for ac_prog in chmod 5093 do 5094 # Extract the first word of "$ac_prog", so it can be a program name with args. 5095 set dummy $ac_prog; ac_word=$2 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5097 $as_echo_n "checking for $ac_word... " >&6; } 5098 if ${ac_cv_path_CHMOD+:} false; then : 5099 $as_echo_n "(cached) " >&6 5100 else 5101 case $CHMOD in 5102 [\\/]* | ?:[\\/]*) 5103 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5104 ;; 5105 *) 5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5107 for as_dir in $PATH 5108 do 5109 IFS=$as_save_IFS 5110 test -z "$as_dir" && as_dir=. 5111 for ac_exec_ext in '' $ac_executable_extensions; do 5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5113 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5115 break 2 5116 fi 5117 done 5118 done 5119 IFS=$as_save_IFS 5120 5121 ;; 5122 esac 5123 fi 5124 CHMOD=$ac_cv_path_CHMOD 5125 if test -n "$CHMOD"; then 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5127 $as_echo "$CHMOD" >&6; } 5128 else 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5130 $as_echo "no" >&6; } 5131 fi 5132 5133 5134 test -n "$CHMOD" && break 5135 done 5136 5137 else 5138 # If it succeeded, then it was overridden by the user. We will use it 5139 # for the tool. 5140 5141 # First remove it from the list of overridden variables, so we can test 5142 # for unknown variables in the end. 5143 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5144 5145 # Check if the provided tool contains a complete path. 5146 tool_specified="$CHMOD" 5147 tool_basename="${tool_specified##*/}" 5148 if test "x$tool_basename" = "x$tool_specified"; then 5149 # A command without a complete path is provided, search $PATH. 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5151 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5152 # Extract the first word of "$tool_basename", so it can be a program name with args. 5153 set dummy $tool_basename; ac_word=$2 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5155 $as_echo_n "checking for $ac_word... " >&6; } 5156 if ${ac_cv_path_CHMOD+:} false; then : 5157 $as_echo_n "(cached) " >&6 5158 else 5159 case $CHMOD in 5160 [\\/]* | ?:[\\/]*) 5161 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5162 ;; 5163 *) 5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5165 for as_dir in $PATH 5166 do 5167 IFS=$as_save_IFS 5168 test -z "$as_dir" && as_dir=. 5169 for ac_exec_ext in '' $ac_executable_extensions; do 5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5171 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5173 break 2 5174 fi 5175 done 5176 done 5177 IFS=$as_save_IFS 5178 5179 ;; 5180 esac 5181 fi 5182 CHMOD=$ac_cv_path_CHMOD 5183 if test -n "$CHMOD"; then 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5185 $as_echo "$CHMOD" >&6; } 5186 else 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5188 $as_echo "no" >&6; } 5189 fi 5190 5191 5192 if test "x$CHMOD" = x; then 5193 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5194 fi 5195 else 5196 # Otherwise we believe it is a complete path. Use it as it is. 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5198 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5200 $as_echo_n "checking for CHMOD... " >&6; } 5201 if test ! -x "$tool_specified"; then 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5203 $as_echo "not found" >&6; } 5204 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5205 fi 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5207 $as_echo "$tool_specified" >&6; } 5208 fi 5209 fi 5210 fi 5211 5212 5213 5214 if test "x$CHMOD" = x; then 5215 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5216 fi 5217 5218 5219 5220 5221 5222 # Publish this variable in the help. 5223 5224 5225 if test "x$CMP" = x; then 5226 # The variable is not set by user, try to locate tool using the code snippet 5227 for ac_prog in cmp 5228 do 5229 # Extract the first word of "$ac_prog", so it can be a program name with args. 5230 set dummy $ac_prog; ac_word=$2 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5232 $as_echo_n "checking for $ac_word... " >&6; } 5233 if ${ac_cv_path_CMP+:} false; then : 5234 $as_echo_n "(cached) " >&6 5235 else 5236 case $CMP in 5237 [\\/]* | ?:[\\/]*) 5238 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5239 ;; 5240 *) 5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5242 for as_dir in $PATH 5243 do 5244 IFS=$as_save_IFS 5245 test -z "$as_dir" && as_dir=. 5246 for ac_exec_ext in '' $ac_executable_extensions; do 5247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5248 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5250 break 2 5251 fi 5252 done 5253 done 5254 IFS=$as_save_IFS 5255 5256 ;; 5257 esac 5258 fi 5259 CMP=$ac_cv_path_CMP 5260 if test -n "$CMP"; then 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5262 $as_echo "$CMP" >&6; } 5263 else 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5265 $as_echo "no" >&6; } 5266 fi 5267 5268 5269 test -n "$CMP" && break 5270 done 5271 5272 else 5273 # The variable is set, but is it from the command line or the environment? 5274 5275 # Try to remove the string !CMP! from our list. 5276 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5277 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5278 # If it failed, the variable was not from the command line. Ignore it, 5279 # but warn the user (except for BASH, which is always set by the calling BASH). 5280 if test "xCMP" != xBASH; then 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5282 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5283 fi 5284 # Try to locate tool using the code snippet 5285 for ac_prog in cmp 5286 do 5287 # Extract the first word of "$ac_prog", so it can be a program name with args. 5288 set dummy $ac_prog; ac_word=$2 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5290 $as_echo_n "checking for $ac_word... " >&6; } 5291 if ${ac_cv_path_CMP+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293 else 5294 case $CMP in 5295 [\\/]* | ?:[\\/]*) 5296 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5297 ;; 5298 *) 5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5300 for as_dir in $PATH 5301 do 5302 IFS=$as_save_IFS 5303 test -z "$as_dir" && as_dir=. 5304 for ac_exec_ext in '' $ac_executable_extensions; do 5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5306 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5308 break 2 5309 fi 5310 done 5311 done 5312 IFS=$as_save_IFS 5313 5314 ;; 5315 esac 5316 fi 5317 CMP=$ac_cv_path_CMP 5318 if test -n "$CMP"; then 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5320 $as_echo "$CMP" >&6; } 5321 else 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5323 $as_echo "no" >&6; } 5324 fi 5325 5326 5327 test -n "$CMP" && break 5328 done 5329 5330 else 5331 # If it succeeded, then it was overridden by the user. We will use it 5332 # for the tool. 5333 5334 # First remove it from the list of overridden variables, so we can test 5335 # for unknown variables in the end. 5336 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5337 5338 # Check if the provided tool contains a complete path. 5339 tool_specified="$CMP" 5340 tool_basename="${tool_specified##*/}" 5341 if test "x$tool_basename" = "x$tool_specified"; then 5342 # A command without a complete path is provided, search $PATH. 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5344 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5345 # Extract the first word of "$tool_basename", so it can be a program name with args. 5346 set dummy $tool_basename; ac_word=$2 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5348 $as_echo_n "checking for $ac_word... " >&6; } 5349 if ${ac_cv_path_CMP+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351 else 5352 case $CMP in 5353 [\\/]* | ?:[\\/]*) 5354 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5355 ;; 5356 *) 5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5358 for as_dir in $PATH 5359 do 5360 IFS=$as_save_IFS 5361 test -z "$as_dir" && as_dir=. 5362 for ac_exec_ext in '' $ac_executable_extensions; do 5363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5364 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5366 break 2 5367 fi 5368 done 5369 done 5370 IFS=$as_save_IFS 5371 5372 ;; 5373 esac 5374 fi 5375 CMP=$ac_cv_path_CMP 5376 if test -n "$CMP"; then 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5378 $as_echo "$CMP" >&6; } 5379 else 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5381 $as_echo "no" >&6; } 5382 fi 5383 5384 5385 if test "x$CMP" = x; then 5386 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5387 fi 5388 else 5389 # Otherwise we believe it is a complete path. Use it as it is. 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5391 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5393 $as_echo_n "checking for CMP... " >&6; } 5394 if test ! -x "$tool_specified"; then 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5396 $as_echo "not found" >&6; } 5397 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5398 fi 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5400 $as_echo "$tool_specified" >&6; } 5401 fi 5402 fi 5403 fi 5404 5405 5406 5407 if test "x$CMP" = x; then 5408 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5409 fi 5410 5411 5412 5413 5414 5415 # Publish this variable in the help. 5416 5417 5418 if test "x$COMM" = x; then 5419 # The variable is not set by user, try to locate tool using the code snippet 5420 for ac_prog in comm 5421 do 5422 # Extract the first word of "$ac_prog", so it can be a program name with args. 5423 set dummy $ac_prog; ac_word=$2 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5425 $as_echo_n "checking for $ac_word... " >&6; } 5426 if ${ac_cv_path_COMM+:} false; then : 5427 $as_echo_n "(cached) " >&6 5428 else 5429 case $COMM in 5430 [\\/]* | ?:[\\/]*) 5431 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5432 ;; 5433 *) 5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5435 for as_dir in $PATH 5436 do 5437 IFS=$as_save_IFS 5438 test -z "$as_dir" && as_dir=. 5439 for ac_exec_ext in '' $ac_executable_extensions; do 5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5441 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5443 break 2 5444 fi 5445 done 5446 done 5447 IFS=$as_save_IFS 5448 5449 ;; 5450 esac 5451 fi 5452 COMM=$ac_cv_path_COMM 5453 if test -n "$COMM"; then 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5455 $as_echo "$COMM" >&6; } 5456 else 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5458 $as_echo "no" >&6; } 5459 fi 5460 5461 5462 test -n "$COMM" && break 5463 done 5464 5465 else 5466 # The variable is set, but is it from the command line or the environment? 5467 5468 # Try to remove the string !COMM! from our list. 5469 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5470 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5471 # If it failed, the variable was not from the command line. Ignore it, 5472 # but warn the user (except for BASH, which is always set by the calling BASH). 5473 if test "xCOMM" != xBASH; then 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5475 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5476 fi 5477 # Try to locate tool using the code snippet 5478 for ac_prog in comm 5479 do 5480 # Extract the first word of "$ac_prog", so it can be a program name with args. 5481 set dummy $ac_prog; ac_word=$2 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5483 $as_echo_n "checking for $ac_word... " >&6; } 5484 if ${ac_cv_path_COMM+:} false; then : 5485 $as_echo_n "(cached) " >&6 5486 else 5487 case $COMM in 5488 [\\/]* | ?:[\\/]*) 5489 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5490 ;; 5491 *) 5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5493 for as_dir in $PATH 5494 do 5495 IFS=$as_save_IFS 5496 test -z "$as_dir" && as_dir=. 5497 for ac_exec_ext in '' $ac_executable_extensions; do 5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5499 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5501 break 2 5502 fi 5503 done 5504 done 5505 IFS=$as_save_IFS 5506 5507 ;; 5508 esac 5509 fi 5510 COMM=$ac_cv_path_COMM 5511 if test -n "$COMM"; then 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5513 $as_echo "$COMM" >&6; } 5514 else 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5516 $as_echo "no" >&6; } 5517 fi 5518 5519 5520 test -n "$COMM" && break 5521 done 5522 5523 else 5524 # If it succeeded, then it was overridden by the user. We will use it 5525 # for the tool. 5526 5527 # First remove it from the list of overridden variables, so we can test 5528 # for unknown variables in the end. 5529 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5530 5531 # Check if the provided tool contains a complete path. 5532 tool_specified="$COMM" 5533 tool_basename="${tool_specified##*/}" 5534 if test "x$tool_basename" = "x$tool_specified"; then 5535 # A command without a complete path is provided, search $PATH. 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5537 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5538 # Extract the first word of "$tool_basename", so it can be a program name with args. 5539 set dummy $tool_basename; ac_word=$2 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5541 $as_echo_n "checking for $ac_word... " >&6; } 5542 if ${ac_cv_path_COMM+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544 else 5545 case $COMM in 5546 [\\/]* | ?:[\\/]*) 5547 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5548 ;; 5549 *) 5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5551 for as_dir in $PATH 5552 do 5553 IFS=$as_save_IFS 5554 test -z "$as_dir" && as_dir=. 5555 for ac_exec_ext in '' $ac_executable_extensions; do 5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5557 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5559 break 2 5560 fi 5561 done 5562 done 5563 IFS=$as_save_IFS 5564 5565 ;; 5566 esac 5567 fi 5568 COMM=$ac_cv_path_COMM 5569 if test -n "$COMM"; then 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5571 $as_echo "$COMM" >&6; } 5572 else 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5574 $as_echo "no" >&6; } 5575 fi 5576 5577 5578 if test "x$COMM" = x; then 5579 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5580 fi 5581 else 5582 # Otherwise we believe it is a complete path. Use it as it is. 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5584 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5586 $as_echo_n "checking for COMM... " >&6; } 5587 if test ! -x "$tool_specified"; then 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5589 $as_echo "not found" >&6; } 5590 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5591 fi 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5593 $as_echo "$tool_specified" >&6; } 5594 fi 5595 fi 5596 fi 5597 5598 5599 5600 if test "x$COMM" = x; then 5601 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5602 fi 5603 5604 5605 5606 5607 5608 # Publish this variable in the help. 5609 5610 5611 if test "x$CP" = x; then 5612 # The variable is not set by user, try to locate tool using the code snippet 5613 for ac_prog in cp 5614 do 5615 # Extract the first word of "$ac_prog", so it can be a program name with args. 5616 set dummy $ac_prog; ac_word=$2 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5618 $as_echo_n "checking for $ac_word... " >&6; } 5619 if ${ac_cv_path_CP+:} false; then : 5620 $as_echo_n "(cached) " >&6 5621 else 5622 case $CP in 5623 [\\/]* | ?:[\\/]*) 5624 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5625 ;; 5626 *) 5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5628 for as_dir in $PATH 5629 do 5630 IFS=$as_save_IFS 5631 test -z "$as_dir" && as_dir=. 5632 for ac_exec_ext in '' $ac_executable_extensions; do 5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5634 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5636 break 2 5637 fi 5638 done 5639 done 5640 IFS=$as_save_IFS 5641 5642 ;; 5643 esac 5644 fi 5645 CP=$ac_cv_path_CP 5646 if test -n "$CP"; then 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5648 $as_echo "$CP" >&6; } 5649 else 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5651 $as_echo "no" >&6; } 5652 fi 5653 5654 5655 test -n "$CP" && break 5656 done 5657 5658 else 5659 # The variable is set, but is it from the command line or the environment? 5660 5661 # Try to remove the string !CP! from our list. 5662 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5663 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5664 # If it failed, the variable was not from the command line. Ignore it, 5665 # but warn the user (except for BASH, which is always set by the calling BASH). 5666 if test "xCP" != xBASH; then 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5668 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5669 fi 5670 # Try to locate tool using the code snippet 5671 for ac_prog in cp 5672 do 5673 # Extract the first word of "$ac_prog", so it can be a program name with args. 5674 set dummy $ac_prog; ac_word=$2 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5676 $as_echo_n "checking for $ac_word... " >&6; } 5677 if ${ac_cv_path_CP+:} false; then : 5678 $as_echo_n "(cached) " >&6 5679 else 5680 case $CP in 5681 [\\/]* | ?:[\\/]*) 5682 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5683 ;; 5684 *) 5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5686 for as_dir in $PATH 5687 do 5688 IFS=$as_save_IFS 5689 test -z "$as_dir" && as_dir=. 5690 for ac_exec_ext in '' $ac_executable_extensions; do 5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5692 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5694 break 2 5695 fi 5696 done 5697 done 5698 IFS=$as_save_IFS 5699 5700 ;; 5701 esac 5702 fi 5703 CP=$ac_cv_path_CP 5704 if test -n "$CP"; then 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5706 $as_echo "$CP" >&6; } 5707 else 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5709 $as_echo "no" >&6; } 5710 fi 5711 5712 5713 test -n "$CP" && break 5714 done 5715 5716 else 5717 # If it succeeded, then it was overridden by the user. We will use it 5718 # for the tool. 5719 5720 # First remove it from the list of overridden variables, so we can test 5721 # for unknown variables in the end. 5722 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5723 5724 # Check if the provided tool contains a complete path. 5725 tool_specified="$CP" 5726 tool_basename="${tool_specified##*/}" 5727 if test "x$tool_basename" = "x$tool_specified"; then 5728 # A command without a complete path is provided, search $PATH. 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5730 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5731 # Extract the first word of "$tool_basename", so it can be a program name with args. 5732 set dummy $tool_basename; ac_word=$2 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5734 $as_echo_n "checking for $ac_word... " >&6; } 5735 if ${ac_cv_path_CP+:} false; then : 5736 $as_echo_n "(cached) " >&6 5737 else 5738 case $CP in 5739 [\\/]* | ?:[\\/]*) 5740 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5741 ;; 5742 *) 5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5744 for as_dir in $PATH 5745 do 5746 IFS=$as_save_IFS 5747 test -z "$as_dir" && as_dir=. 5748 for ac_exec_ext in '' $ac_executable_extensions; do 5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5750 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5752 break 2 5753 fi 5754 done 5755 done 5756 IFS=$as_save_IFS 5757 5758 ;; 5759 esac 5760 fi 5761 CP=$ac_cv_path_CP 5762 if test -n "$CP"; then 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5764 $as_echo "$CP" >&6; } 5765 else 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5767 $as_echo "no" >&6; } 5768 fi 5769 5770 5771 if test "x$CP" = x; then 5772 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5773 fi 5774 else 5775 # Otherwise we believe it is a complete path. Use it as it is. 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5777 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5779 $as_echo_n "checking for CP... " >&6; } 5780 if test ! -x "$tool_specified"; then 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5782 $as_echo "not found" >&6; } 5783 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5784 fi 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5786 $as_echo "$tool_specified" >&6; } 5787 fi 5788 fi 5789 fi 5790 5791 5792 5793 if test "x$CP" = x; then 5794 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5795 fi 5796 5797 5798 5799 5800 5801 # Publish this variable in the help. 5802 5803 5804 if test "x$CUT" = x; then 5805 # The variable is not set by user, try to locate tool using the code snippet 5806 for ac_prog in cut 5807 do 5808 # Extract the first word of "$ac_prog", so it can be a program name with args. 5809 set dummy $ac_prog; ac_word=$2 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5811 $as_echo_n "checking for $ac_word... " >&6; } 5812 if ${ac_cv_path_CUT+:} false; then : 5813 $as_echo_n "(cached) " >&6 5814 else 5815 case $CUT in 5816 [\\/]* | ?:[\\/]*) 5817 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5818 ;; 5819 *) 5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5821 for as_dir in $PATH 5822 do 5823 IFS=$as_save_IFS 5824 test -z "$as_dir" && as_dir=. 5825 for ac_exec_ext in '' $ac_executable_extensions; do 5826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5827 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5829 break 2 5830 fi 5831 done 5832 done 5833 IFS=$as_save_IFS 5834 5835 ;; 5836 esac 5837 fi 5838 CUT=$ac_cv_path_CUT 5839 if test -n "$CUT"; then 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5841 $as_echo "$CUT" >&6; } 5842 else 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5844 $as_echo "no" >&6; } 5845 fi 5846 5847 5848 test -n "$CUT" && break 5849 done 5850 5851 else 5852 # The variable is set, but is it from the command line or the environment? 5853 5854 # Try to remove the string !CUT! from our list. 5855 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5856 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5857 # If it failed, the variable was not from the command line. Ignore it, 5858 # but warn the user (except for BASH, which is always set by the calling BASH). 5859 if test "xCUT" != xBASH; then 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5861 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5862 fi 5863 # Try to locate tool using the code snippet 5864 for ac_prog in cut 5865 do 5866 # Extract the first word of "$ac_prog", so it can be a program name with args. 5867 set dummy $ac_prog; ac_word=$2 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5869 $as_echo_n "checking for $ac_word... " >&6; } 5870 if ${ac_cv_path_CUT+:} false; then : 5871 $as_echo_n "(cached) " >&6 5872 else 5873 case $CUT in 5874 [\\/]* | ?:[\\/]*) 5875 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5876 ;; 5877 *) 5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5879 for as_dir in $PATH 5880 do 5881 IFS=$as_save_IFS 5882 test -z "$as_dir" && as_dir=. 5883 for ac_exec_ext in '' $ac_executable_extensions; do 5884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5885 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5887 break 2 5888 fi 5889 done 5890 done 5891 IFS=$as_save_IFS 5892 5893 ;; 5894 esac 5895 fi 5896 CUT=$ac_cv_path_CUT 5897 if test -n "$CUT"; then 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5899 $as_echo "$CUT" >&6; } 5900 else 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5902 $as_echo "no" >&6; } 5903 fi 5904 5905 5906 test -n "$CUT" && break 5907 done 5908 5909 else 5910 # If it succeeded, then it was overridden by the user. We will use it 5911 # for the tool. 5912 5913 # First remove it from the list of overridden variables, so we can test 5914 # for unknown variables in the end. 5915 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5916 5917 # Check if the provided tool contains a complete path. 5918 tool_specified="$CUT" 5919 tool_basename="${tool_specified##*/}" 5920 if test "x$tool_basename" = "x$tool_specified"; then 5921 # A command without a complete path is provided, search $PATH. 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5923 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5924 # Extract the first word of "$tool_basename", so it can be a program name with args. 5925 set dummy $tool_basename; ac_word=$2 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5927 $as_echo_n "checking for $ac_word... " >&6; } 5928 if ${ac_cv_path_CUT+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930 else 5931 case $CUT in 5932 [\\/]* | ?:[\\/]*) 5933 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5934 ;; 5935 *) 5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5937 for as_dir in $PATH 5938 do 5939 IFS=$as_save_IFS 5940 test -z "$as_dir" && as_dir=. 5941 for ac_exec_ext in '' $ac_executable_extensions; do 5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5943 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5945 break 2 5946 fi 5947 done 5948 done 5949 IFS=$as_save_IFS 5950 5951 ;; 5952 esac 5953 fi 5954 CUT=$ac_cv_path_CUT 5955 if test -n "$CUT"; then 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5957 $as_echo "$CUT" >&6; } 5958 else 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5960 $as_echo "no" >&6; } 5961 fi 5962 5963 5964 if test "x$CUT" = x; then 5965 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5966 fi 5967 else 5968 # Otherwise we believe it is a complete path. Use it as it is. 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5970 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5972 $as_echo_n "checking for CUT... " >&6; } 5973 if test ! -x "$tool_specified"; then 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5975 $as_echo "not found" >&6; } 5976 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5977 fi 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5979 $as_echo "$tool_specified" >&6; } 5980 fi 5981 fi 5982 fi 5983 5984 5985 5986 if test "x$CUT" = x; then 5987 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5988 fi 5989 5990 5991 5992 5993 5994 # Publish this variable in the help. 5995 5996 5997 if test "x$DATE" = x; then 5998 # The variable is not set by user, try to locate tool using the code snippet 5999 for ac_prog in date 6000 do 6001 # Extract the first word of "$ac_prog", so it can be a program name with args. 6002 set dummy $ac_prog; ac_word=$2 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6004 $as_echo_n "checking for $ac_word... " >&6; } 6005 if ${ac_cv_path_DATE+:} false; then : 6006 $as_echo_n "(cached) " >&6 6007 else 6008 case $DATE in 6009 [\\/]* | ?:[\\/]*) 6010 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6011 ;; 6012 *) 6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6014 for as_dir in $PATH 6015 do 6016 IFS=$as_save_IFS 6017 test -z "$as_dir" && as_dir=. 6018 for ac_exec_ext in '' $ac_executable_extensions; do 6019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6020 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6022 break 2 6023 fi 6024 done 6025 done 6026 IFS=$as_save_IFS 6027 6028 ;; 6029 esac 6030 fi 6031 DATE=$ac_cv_path_DATE 6032 if test -n "$DATE"; then 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6034 $as_echo "$DATE" >&6; } 6035 else 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6037 $as_echo "no" >&6; } 6038 fi 6039 6040 6041 test -n "$DATE" && break 6042 done 6043 6044 else 6045 # The variable is set, but is it from the command line or the environment? 6046 6047 # Try to remove the string !DATE! from our list. 6048 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6049 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6050 # If it failed, the variable was not from the command line. Ignore it, 6051 # but warn the user (except for BASH, which is always set by the calling BASH). 6052 if test "xDATE" != xBASH; then 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6054 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6055 fi 6056 # Try to locate tool using the code snippet 6057 for ac_prog in date 6058 do 6059 # Extract the first word of "$ac_prog", so it can be a program name with args. 6060 set dummy $ac_prog; ac_word=$2 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6062 $as_echo_n "checking for $ac_word... " >&6; } 6063 if ${ac_cv_path_DATE+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065 else 6066 case $DATE in 6067 [\\/]* | ?:[\\/]*) 6068 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6069 ;; 6070 *) 6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6072 for as_dir in $PATH 6073 do 6074 IFS=$as_save_IFS 6075 test -z "$as_dir" && as_dir=. 6076 for ac_exec_ext in '' $ac_executable_extensions; do 6077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6078 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6080 break 2 6081 fi 6082 done 6083 done 6084 IFS=$as_save_IFS 6085 6086 ;; 6087 esac 6088 fi 6089 DATE=$ac_cv_path_DATE 6090 if test -n "$DATE"; then 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6092 $as_echo "$DATE" >&6; } 6093 else 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6095 $as_echo "no" >&6; } 6096 fi 6097 6098 6099 test -n "$DATE" && break 6100 done 6101 6102 else 6103 # If it succeeded, then it was overridden by the user. We will use it 6104 # for the tool. 6105 6106 # First remove it from the list of overridden variables, so we can test 6107 # for unknown variables in the end. 6108 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6109 6110 # Check if the provided tool contains a complete path. 6111 tool_specified="$DATE" 6112 tool_basename="${tool_specified##*/}" 6113 if test "x$tool_basename" = "x$tool_specified"; then 6114 # A command without a complete path is provided, search $PATH. 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6116 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6117 # Extract the first word of "$tool_basename", so it can be a program name with args. 6118 set dummy $tool_basename; ac_word=$2 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6120 $as_echo_n "checking for $ac_word... " >&6; } 6121 if ${ac_cv_path_DATE+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123 else 6124 case $DATE in 6125 [\\/]* | ?:[\\/]*) 6126 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6127 ;; 6128 *) 6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6130 for as_dir in $PATH 6131 do 6132 IFS=$as_save_IFS 6133 test -z "$as_dir" && as_dir=. 6134 for ac_exec_ext in '' $ac_executable_extensions; do 6135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6136 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6138 break 2 6139 fi 6140 done 6141 done 6142 IFS=$as_save_IFS 6143 6144 ;; 6145 esac 6146 fi 6147 DATE=$ac_cv_path_DATE 6148 if test -n "$DATE"; then 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6150 $as_echo "$DATE" >&6; } 6151 else 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6153 $as_echo "no" >&6; } 6154 fi 6155 6156 6157 if test "x$DATE" = x; then 6158 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6159 fi 6160 else 6161 # Otherwise we believe it is a complete path. Use it as it is. 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6163 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6165 $as_echo_n "checking for DATE... " >&6; } 6166 if test ! -x "$tool_specified"; then 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6168 $as_echo "not found" >&6; } 6169 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6170 fi 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6172 $as_echo "$tool_specified" >&6; } 6173 fi 6174 fi 6175 fi 6176 6177 6178 6179 if test "x$DATE" = x; then 6180 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6181 fi 6182 6183 6184 6185 6186 6187 # Publish this variable in the help. 6188 6189 6190 if test "x$DIFF" = x; then 6191 # The variable is not set by user, try to locate tool using the code snippet 6192 for ac_prog in gdiff diff 6193 do 6194 # Extract the first word of "$ac_prog", so it can be a program name with args. 6195 set dummy $ac_prog; ac_word=$2 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6197 $as_echo_n "checking for $ac_word... " >&6; } 6198 if ${ac_cv_path_DIFF+:} false; then : 6199 $as_echo_n "(cached) " >&6 6200 else 6201 case $DIFF in 6202 [\\/]* | ?:[\\/]*) 6203 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6204 ;; 6205 *) 6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6207 for as_dir in $PATH 6208 do 6209 IFS=$as_save_IFS 6210 test -z "$as_dir" && as_dir=. 6211 for ac_exec_ext in '' $ac_executable_extensions; do 6212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6213 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6215 break 2 6216 fi 6217 done 6218 done 6219 IFS=$as_save_IFS 6220 6221 ;; 6222 esac 6223 fi 6224 DIFF=$ac_cv_path_DIFF 6225 if test -n "$DIFF"; then 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6227 $as_echo "$DIFF" >&6; } 6228 else 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6230 $as_echo "no" >&6; } 6231 fi 6232 6233 6234 test -n "$DIFF" && break 6235 done 6236 6237 else 6238 # The variable is set, but is it from the command line or the environment? 6239 6240 # Try to remove the string !DIFF! from our list. 6241 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6242 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6243 # If it failed, the variable was not from the command line. Ignore it, 6244 # but warn the user (except for BASH, which is always set by the calling BASH). 6245 if test "xDIFF" != xBASH; then 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6247 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6248 fi 6249 # Try to locate tool using the code snippet 6250 for ac_prog in gdiff diff 6251 do 6252 # Extract the first word of "$ac_prog", so it can be a program name with args. 6253 set dummy $ac_prog; ac_word=$2 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6255 $as_echo_n "checking for $ac_word... " >&6; } 6256 if ${ac_cv_path_DIFF+:} false; then : 6257 $as_echo_n "(cached) " >&6 6258 else 6259 case $DIFF in 6260 [\\/]* | ?:[\\/]*) 6261 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6262 ;; 6263 *) 6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6265 for as_dir in $PATH 6266 do 6267 IFS=$as_save_IFS 6268 test -z "$as_dir" && as_dir=. 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6271 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6273 break 2 6274 fi 6275 done 6276 done 6277 IFS=$as_save_IFS 6278 6279 ;; 6280 esac 6281 fi 6282 DIFF=$ac_cv_path_DIFF 6283 if test -n "$DIFF"; then 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6285 $as_echo "$DIFF" >&6; } 6286 else 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6288 $as_echo "no" >&6; } 6289 fi 6290 6291 6292 test -n "$DIFF" && break 6293 done 6294 6295 else 6296 # If it succeeded, then it was overridden by the user. We will use it 6297 # for the tool. 6298 6299 # First remove it from the list of overridden variables, so we can test 6300 # for unknown variables in the end. 6301 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6302 6303 # Check if the provided tool contains a complete path. 6304 tool_specified="$DIFF" 6305 tool_basename="${tool_specified##*/}" 6306 if test "x$tool_basename" = "x$tool_specified"; then 6307 # A command without a complete path is provided, search $PATH. 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6309 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6310 # Extract the first word of "$tool_basename", so it can be a program name with args. 6311 set dummy $tool_basename; ac_word=$2 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6313 $as_echo_n "checking for $ac_word... " >&6; } 6314 if ${ac_cv_path_DIFF+:} false; then : 6315 $as_echo_n "(cached) " >&6 6316 else 6317 case $DIFF in 6318 [\\/]* | ?:[\\/]*) 6319 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6320 ;; 6321 *) 6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6323 for as_dir in $PATH 6324 do 6325 IFS=$as_save_IFS 6326 test -z "$as_dir" && as_dir=. 6327 for ac_exec_ext in '' $ac_executable_extensions; do 6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6329 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6331 break 2 6332 fi 6333 done 6334 done 6335 IFS=$as_save_IFS 6336 6337 ;; 6338 esac 6339 fi 6340 DIFF=$ac_cv_path_DIFF 6341 if test -n "$DIFF"; then 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6343 $as_echo "$DIFF" >&6; } 6344 else 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6346 $as_echo "no" >&6; } 6347 fi 6348 6349 6350 if test "x$DIFF" = x; then 6351 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6352 fi 6353 else 6354 # Otherwise we believe it is a complete path. Use it as it is. 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6356 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6358 $as_echo_n "checking for DIFF... " >&6; } 6359 if test ! -x "$tool_specified"; then 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6361 $as_echo "not found" >&6; } 6362 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6363 fi 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6365 $as_echo "$tool_specified" >&6; } 6366 fi 6367 fi 6368 fi 6369 6370 6371 6372 if test "x$DIFF" = x; then 6373 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6374 fi 6375 6376 6377 6378 6379 6380 # Publish this variable in the help. 6381 6382 6383 if test "x$DIRNAME" = x; then 6384 # The variable is not set by user, try to locate tool using the code snippet 6385 for ac_prog in dirname 6386 do 6387 # Extract the first word of "$ac_prog", so it can be a program name with args. 6388 set dummy $ac_prog; ac_word=$2 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6390 $as_echo_n "checking for $ac_word... " >&6; } 6391 if ${ac_cv_path_DIRNAME+:} false; then : 6392 $as_echo_n "(cached) " >&6 6393 else 6394 case $DIRNAME in 6395 [\\/]* | ?:[\\/]*) 6396 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6397 ;; 6398 *) 6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6400 for as_dir in $PATH 6401 do 6402 IFS=$as_save_IFS 6403 test -z "$as_dir" && as_dir=. 6404 for ac_exec_ext in '' $ac_executable_extensions; do 6405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6406 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6408 break 2 6409 fi 6410 done 6411 done 6412 IFS=$as_save_IFS 6413 6414 ;; 6415 esac 6416 fi 6417 DIRNAME=$ac_cv_path_DIRNAME 6418 if test -n "$DIRNAME"; then 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6420 $as_echo "$DIRNAME" >&6; } 6421 else 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6423 $as_echo "no" >&6; } 6424 fi 6425 6426 6427 test -n "$DIRNAME" && break 6428 done 6429 6430 else 6431 # The variable is set, but is it from the command line or the environment? 6432 6433 # Try to remove the string !DIRNAME! from our list. 6434 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6435 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6436 # If it failed, the variable was not from the command line. Ignore it, 6437 # but warn the user (except for BASH, which is always set by the calling BASH). 6438 if test "xDIRNAME" != xBASH; then 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6440 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6441 fi 6442 # Try to locate tool using the code snippet 6443 for ac_prog in dirname 6444 do 6445 # Extract the first word of "$ac_prog", so it can be a program name with args. 6446 set dummy $ac_prog; ac_word=$2 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6448 $as_echo_n "checking for $ac_word... " >&6; } 6449 if ${ac_cv_path_DIRNAME+:} false; then : 6450 $as_echo_n "(cached) " >&6 6451 else 6452 case $DIRNAME in 6453 [\\/]* | ?:[\\/]*) 6454 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6455 ;; 6456 *) 6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6458 for as_dir in $PATH 6459 do 6460 IFS=$as_save_IFS 6461 test -z "$as_dir" && as_dir=. 6462 for ac_exec_ext in '' $ac_executable_extensions; do 6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6464 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6466 break 2 6467 fi 6468 done 6469 done 6470 IFS=$as_save_IFS 6471 6472 ;; 6473 esac 6474 fi 6475 DIRNAME=$ac_cv_path_DIRNAME 6476 if test -n "$DIRNAME"; then 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6478 $as_echo "$DIRNAME" >&6; } 6479 else 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6481 $as_echo "no" >&6; } 6482 fi 6483 6484 6485 test -n "$DIRNAME" && break 6486 done 6487 6488 else 6489 # If it succeeded, then it was overridden by the user. We will use it 6490 # for the tool. 6491 6492 # First remove it from the list of overridden variables, so we can test 6493 # for unknown variables in the end. 6494 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6495 6496 # Check if the provided tool contains a complete path. 6497 tool_specified="$DIRNAME" 6498 tool_basename="${tool_specified##*/}" 6499 if test "x$tool_basename" = "x$tool_specified"; then 6500 # A command without a complete path is provided, search $PATH. 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6502 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6503 # Extract the first word of "$tool_basename", so it can be a program name with args. 6504 set dummy $tool_basename; ac_word=$2 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6506 $as_echo_n "checking for $ac_word... " >&6; } 6507 if ${ac_cv_path_DIRNAME+:} false; then : 6508 $as_echo_n "(cached) " >&6 6509 else 6510 case $DIRNAME in 6511 [\\/]* | ?:[\\/]*) 6512 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6513 ;; 6514 *) 6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6516 for as_dir in $PATH 6517 do 6518 IFS=$as_save_IFS 6519 test -z "$as_dir" && as_dir=. 6520 for ac_exec_ext in '' $ac_executable_extensions; do 6521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6522 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6524 break 2 6525 fi 6526 done 6527 done 6528 IFS=$as_save_IFS 6529 6530 ;; 6531 esac 6532 fi 6533 DIRNAME=$ac_cv_path_DIRNAME 6534 if test -n "$DIRNAME"; then 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6536 $as_echo "$DIRNAME" >&6; } 6537 else 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6539 $as_echo "no" >&6; } 6540 fi 6541 6542 6543 if test "x$DIRNAME" = x; then 6544 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6545 fi 6546 else 6547 # Otherwise we believe it is a complete path. Use it as it is. 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6549 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6551 $as_echo_n "checking for DIRNAME... " >&6; } 6552 if test ! -x "$tool_specified"; then 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6554 $as_echo "not found" >&6; } 6555 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6556 fi 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6558 $as_echo "$tool_specified" >&6; } 6559 fi 6560 fi 6561 fi 6562 6563 6564 6565 if test "x$DIRNAME" = x; then 6566 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6567 fi 6568 6569 6570 6571 6572 6573 # Publish this variable in the help. 6574 6575 6576 if test "x$ECHO" = x; then 6577 # The variable is not set by user, try to locate tool using the code snippet 6578 for ac_prog in echo 6579 do 6580 # Extract the first word of "$ac_prog", so it can be a program name with args. 6581 set dummy $ac_prog; ac_word=$2 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6583 $as_echo_n "checking for $ac_word... " >&6; } 6584 if ${ac_cv_path_ECHO+:} false; then : 6585 $as_echo_n "(cached) " >&6 6586 else 6587 case $ECHO in 6588 [\\/]* | ?:[\\/]*) 6589 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6590 ;; 6591 *) 6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6593 for as_dir in $PATH 6594 do 6595 IFS=$as_save_IFS 6596 test -z "$as_dir" && as_dir=. 6597 for ac_exec_ext in '' $ac_executable_extensions; do 6598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6599 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6601 break 2 6602 fi 6603 done 6604 done 6605 IFS=$as_save_IFS 6606 6607 ;; 6608 esac 6609 fi 6610 ECHO=$ac_cv_path_ECHO 6611 if test -n "$ECHO"; then 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6613 $as_echo "$ECHO" >&6; } 6614 else 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6616 $as_echo "no" >&6; } 6617 fi 6618 6619 6620 test -n "$ECHO" && break 6621 done 6622 6623 else 6624 # The variable is set, but is it from the command line or the environment? 6625 6626 # Try to remove the string !ECHO! from our list. 6627 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6628 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6629 # If it failed, the variable was not from the command line. Ignore it, 6630 # but warn the user (except for BASH, which is always set by the calling BASH). 6631 if test "xECHO" != xBASH; then 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6633 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6634 fi 6635 # Try to locate tool using the code snippet 6636 for ac_prog in echo 6637 do 6638 # Extract the first word of "$ac_prog", so it can be a program name with args. 6639 set dummy $ac_prog; ac_word=$2 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6641 $as_echo_n "checking for $ac_word... " >&6; } 6642 if ${ac_cv_path_ECHO+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644 else 6645 case $ECHO in 6646 [\\/]* | ?:[\\/]*) 6647 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6648 ;; 6649 *) 6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6651 for as_dir in $PATH 6652 do 6653 IFS=$as_save_IFS 6654 test -z "$as_dir" && as_dir=. 6655 for ac_exec_ext in '' $ac_executable_extensions; do 6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6657 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6659 break 2 6660 fi 6661 done 6662 done 6663 IFS=$as_save_IFS 6664 6665 ;; 6666 esac 6667 fi 6668 ECHO=$ac_cv_path_ECHO 6669 if test -n "$ECHO"; then 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6671 $as_echo "$ECHO" >&6; } 6672 else 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6674 $as_echo "no" >&6; } 6675 fi 6676 6677 6678 test -n "$ECHO" && break 6679 done 6680 6681 else 6682 # If it succeeded, then it was overridden by the user. We will use it 6683 # for the tool. 6684 6685 # First remove it from the list of overridden variables, so we can test 6686 # for unknown variables in the end. 6687 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6688 6689 # Check if the provided tool contains a complete path. 6690 tool_specified="$ECHO" 6691 tool_basename="${tool_specified##*/}" 6692 if test "x$tool_basename" = "x$tool_specified"; then 6693 # A command without a complete path is provided, search $PATH. 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6695 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6696 # Extract the first word of "$tool_basename", so it can be a program name with args. 6697 set dummy $tool_basename; ac_word=$2 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6699 $as_echo_n "checking for $ac_word... " >&6; } 6700 if ${ac_cv_path_ECHO+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702 else 6703 case $ECHO in 6704 [\\/]* | ?:[\\/]*) 6705 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6706 ;; 6707 *) 6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6709 for as_dir in $PATH 6710 do 6711 IFS=$as_save_IFS 6712 test -z "$as_dir" && as_dir=. 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6715 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719 done 6720 done 6721 IFS=$as_save_IFS 6722 6723 ;; 6724 esac 6725 fi 6726 ECHO=$ac_cv_path_ECHO 6727 if test -n "$ECHO"; then 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6729 $as_echo "$ECHO" >&6; } 6730 else 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6732 $as_echo "no" >&6; } 6733 fi 6734 6735 6736 if test "x$ECHO" = x; then 6737 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6738 fi 6739 else 6740 # Otherwise we believe it is a complete path. Use it as it is. 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6742 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6744 $as_echo_n "checking for ECHO... " >&6; } 6745 if test ! -x "$tool_specified"; then 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6747 $as_echo "not found" >&6; } 6748 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6749 fi 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6751 $as_echo "$tool_specified" >&6; } 6752 fi 6753 fi 6754 fi 6755 6756 6757 6758 if test "x$ECHO" = x; then 6759 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6760 fi 6761 6762 6763 6764 6765 6766 # Publish this variable in the help. 6767 6768 6769 if test "x$EXPR" = x; then 6770 # The variable is not set by user, try to locate tool using the code snippet 6771 for ac_prog in expr 6772 do 6773 # Extract the first word of "$ac_prog", so it can be a program name with args. 6774 set dummy $ac_prog; ac_word=$2 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6776 $as_echo_n "checking for $ac_word... " >&6; } 6777 if ${ac_cv_path_EXPR+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779 else 6780 case $EXPR in 6781 [\\/]* | ?:[\\/]*) 6782 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6783 ;; 6784 *) 6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786 for as_dir in $PATH 6787 do 6788 IFS=$as_save_IFS 6789 test -z "$as_dir" && as_dir=. 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6792 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796 done 6797 done 6798 IFS=$as_save_IFS 6799 6800 ;; 6801 esac 6802 fi 6803 EXPR=$ac_cv_path_EXPR 6804 if test -n "$EXPR"; then 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6806 $as_echo "$EXPR" >&6; } 6807 else 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6809 $as_echo "no" >&6; } 6810 fi 6811 6812 6813 test -n "$EXPR" && break 6814 done 6815 6816 else 6817 # The variable is set, but is it from the command line or the environment? 6818 6819 # Try to remove the string !EXPR! from our list. 6820 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6821 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6822 # If it failed, the variable was not from the command line. Ignore it, 6823 # but warn the user (except for BASH, which is always set by the calling BASH). 6824 if test "xEXPR" != xBASH; then 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6826 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6827 fi 6828 # Try to locate tool using the code snippet 6829 for ac_prog in expr 6830 do 6831 # Extract the first word of "$ac_prog", so it can be a program name with args. 6832 set dummy $ac_prog; ac_word=$2 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6834 $as_echo_n "checking for $ac_word... " >&6; } 6835 if ${ac_cv_path_EXPR+:} false; then : 6836 $as_echo_n "(cached) " >&6 6837 else 6838 case $EXPR in 6839 [\\/]* | ?:[\\/]*) 6840 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6841 ;; 6842 *) 6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6844 for as_dir in $PATH 6845 do 6846 IFS=$as_save_IFS 6847 test -z "$as_dir" && as_dir=. 6848 for ac_exec_ext in '' $ac_executable_extensions; do 6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6850 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6852 break 2 6853 fi 6854 done 6855 done 6856 IFS=$as_save_IFS 6857 6858 ;; 6859 esac 6860 fi 6861 EXPR=$ac_cv_path_EXPR 6862 if test -n "$EXPR"; then 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6864 $as_echo "$EXPR" >&6; } 6865 else 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6867 $as_echo "no" >&6; } 6868 fi 6869 6870 6871 test -n "$EXPR" && break 6872 done 6873 6874 else 6875 # If it succeeded, then it was overridden by the user. We will use it 6876 # for the tool. 6877 6878 # First remove it from the list of overridden variables, so we can test 6879 # for unknown variables in the end. 6880 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6881 6882 # Check if the provided tool contains a complete path. 6883 tool_specified="$EXPR" 6884 tool_basename="${tool_specified##*/}" 6885 if test "x$tool_basename" = "x$tool_specified"; then 6886 # A command without a complete path is provided, search $PATH. 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6888 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6889 # Extract the first word of "$tool_basename", so it can be a program name with args. 6890 set dummy $tool_basename; ac_word=$2 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6892 $as_echo_n "checking for $ac_word... " >&6; } 6893 if ${ac_cv_path_EXPR+:} false; then : 6894 $as_echo_n "(cached) " >&6 6895 else 6896 case $EXPR in 6897 [\\/]* | ?:[\\/]*) 6898 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6899 ;; 6900 *) 6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6902 for as_dir in $PATH 6903 do 6904 IFS=$as_save_IFS 6905 test -z "$as_dir" && as_dir=. 6906 for ac_exec_ext in '' $ac_executable_extensions; do 6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6908 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6910 break 2 6911 fi 6912 done 6913 done 6914 IFS=$as_save_IFS 6915 6916 ;; 6917 esac 6918 fi 6919 EXPR=$ac_cv_path_EXPR 6920 if test -n "$EXPR"; then 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6922 $as_echo "$EXPR" >&6; } 6923 else 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6925 $as_echo "no" >&6; } 6926 fi 6927 6928 6929 if test "x$EXPR" = x; then 6930 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6931 fi 6932 else 6933 # Otherwise we believe it is a complete path. Use it as it is. 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6935 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6937 $as_echo_n "checking for EXPR... " >&6; } 6938 if test ! -x "$tool_specified"; then 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6940 $as_echo "not found" >&6; } 6941 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6942 fi 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6944 $as_echo "$tool_specified" >&6; } 6945 fi 6946 fi 6947 fi 6948 6949 6950 6951 if test "x$EXPR" = x; then 6952 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6953 fi 6954 6955 6956 6957 6958 6959 # Publish this variable in the help. 6960 6961 6962 if test "x$FILE" = x; then 6963 # The variable is not set by user, try to locate tool using the code snippet 6964 for ac_prog in file 6965 do 6966 # Extract the first word of "$ac_prog", so it can be a program name with args. 6967 set dummy $ac_prog; ac_word=$2 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6969 $as_echo_n "checking for $ac_word... " >&6; } 6970 if ${ac_cv_path_FILE+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972 else 6973 case $FILE in 6974 [\\/]* | ?:[\\/]*) 6975 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6976 ;; 6977 *) 6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6979 for as_dir in $PATH 6980 do 6981 IFS=$as_save_IFS 6982 test -z "$as_dir" && as_dir=. 6983 for ac_exec_ext in '' $ac_executable_extensions; do 6984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6985 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6987 break 2 6988 fi 6989 done 6990 done 6991 IFS=$as_save_IFS 6992 6993 ;; 6994 esac 6995 fi 6996 FILE=$ac_cv_path_FILE 6997 if test -n "$FILE"; then 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6999 $as_echo "$FILE" >&6; } 7000 else 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7002 $as_echo "no" >&6; } 7003 fi 7004 7005 7006 test -n "$FILE" && break 7007 done 7008 7009 else 7010 # The variable is set, but is it from the command line or the environment? 7011 7012 # Try to remove the string !FILE! from our list. 7013 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7014 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7015 # If it failed, the variable was not from the command line. Ignore it, 7016 # but warn the user (except for BASH, which is always set by the calling BASH). 7017 if test "xFILE" != xBASH; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7019 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7020 fi 7021 # Try to locate tool using the code snippet 7022 for ac_prog in file 7023 do 7024 # Extract the first word of "$ac_prog", so it can be a program name with args. 7025 set dummy $ac_prog; ac_word=$2 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7027 $as_echo_n "checking for $ac_word... " >&6; } 7028 if ${ac_cv_path_FILE+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030 else 7031 case $FILE in 7032 [\\/]* | ?:[\\/]*) 7033 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7034 ;; 7035 *) 7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037 for as_dir in $PATH 7038 do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7043 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047 done 7048 done 7049 IFS=$as_save_IFS 7050 7051 ;; 7052 esac 7053 fi 7054 FILE=$ac_cv_path_FILE 7055 if test -n "$FILE"; then 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7057 $as_echo "$FILE" >&6; } 7058 else 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7060 $as_echo "no" >&6; } 7061 fi 7062 7063 7064 test -n "$FILE" && break 7065 done 7066 7067 else 7068 # If it succeeded, then it was overridden by the user. We will use it 7069 # for the tool. 7070 7071 # First remove it from the list of overridden variables, so we can test 7072 # for unknown variables in the end. 7073 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7074 7075 # Check if the provided tool contains a complete path. 7076 tool_specified="$FILE" 7077 tool_basename="${tool_specified##*/}" 7078 if test "x$tool_basename" = "x$tool_specified"; then 7079 # A command without a complete path is provided, search $PATH. 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7081 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7082 # Extract the first word of "$tool_basename", so it can be a program name with args. 7083 set dummy $tool_basename; ac_word=$2 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7085 $as_echo_n "checking for $ac_word... " >&6; } 7086 if ${ac_cv_path_FILE+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088 else 7089 case $FILE in 7090 [\\/]* | ?:[\\/]*) 7091 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7092 ;; 7093 *) 7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7095 for as_dir in $PATH 7096 do 7097 IFS=$as_save_IFS 7098 test -z "$as_dir" && as_dir=. 7099 for ac_exec_ext in '' $ac_executable_extensions; do 7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7101 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7103 break 2 7104 fi 7105 done 7106 done 7107 IFS=$as_save_IFS 7108 7109 ;; 7110 esac 7111 fi 7112 FILE=$ac_cv_path_FILE 7113 if test -n "$FILE"; then 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7115 $as_echo "$FILE" >&6; } 7116 else 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7118 $as_echo "no" >&6; } 7119 fi 7120 7121 7122 if test "x$FILE" = x; then 7123 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7124 fi 7125 else 7126 # Otherwise we believe it is a complete path. Use it as it is. 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7128 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7130 $as_echo_n "checking for FILE... " >&6; } 7131 if test ! -x "$tool_specified"; then 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7133 $as_echo "not found" >&6; } 7134 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7135 fi 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7137 $as_echo "$tool_specified" >&6; } 7138 fi 7139 fi 7140 fi 7141 7142 7143 7144 if test "x$FILE" = x; then 7145 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7146 fi 7147 7148 7149 7150 7151 7152 # Publish this variable in the help. 7153 7154 7155 if test "x$FIND" = x; then 7156 # The variable is not set by user, try to locate tool using the code snippet 7157 for ac_prog in find 7158 do 7159 # Extract the first word of "$ac_prog", so it can be a program name with args. 7160 set dummy $ac_prog; ac_word=$2 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7162 $as_echo_n "checking for $ac_word... " >&6; } 7163 if ${ac_cv_path_FIND+:} false; then : 7164 $as_echo_n "(cached) " >&6 7165 else 7166 case $FIND in 7167 [\\/]* | ?:[\\/]*) 7168 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7169 ;; 7170 *) 7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172 for as_dir in $PATH 7173 do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7178 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182 done 7183 done 7184 IFS=$as_save_IFS 7185 7186 ;; 7187 esac 7188 fi 7189 FIND=$ac_cv_path_FIND 7190 if test -n "$FIND"; then 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7192 $as_echo "$FIND" >&6; } 7193 else 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7195 $as_echo "no" >&6; } 7196 fi 7197 7198 7199 test -n "$FIND" && break 7200 done 7201 7202 else 7203 # The variable is set, but is it from the command line or the environment? 7204 7205 # Try to remove the string !FIND! from our list. 7206 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7207 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7208 # If it failed, the variable was not from the command line. Ignore it, 7209 # but warn the user (except for BASH, which is always set by the calling BASH). 7210 if test "xFIND" != xBASH; then 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7212 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7213 fi 7214 # Try to locate tool using the code snippet 7215 for ac_prog in find 7216 do 7217 # Extract the first word of "$ac_prog", so it can be a program name with args. 7218 set dummy $ac_prog; ac_word=$2 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7220 $as_echo_n "checking for $ac_word... " >&6; } 7221 if ${ac_cv_path_FIND+:} false; then : 7222 $as_echo_n "(cached) " >&6 7223 else 7224 case $FIND in 7225 [\\/]* | ?:[\\/]*) 7226 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7227 ;; 7228 *) 7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7230 for as_dir in $PATH 7231 do 7232 IFS=$as_save_IFS 7233 test -z "$as_dir" && as_dir=. 7234 for ac_exec_ext in '' $ac_executable_extensions; do 7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7236 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7238 break 2 7239 fi 7240 done 7241 done 7242 IFS=$as_save_IFS 7243 7244 ;; 7245 esac 7246 fi 7247 FIND=$ac_cv_path_FIND 7248 if test -n "$FIND"; then 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7250 $as_echo "$FIND" >&6; } 7251 else 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7253 $as_echo "no" >&6; } 7254 fi 7255 7256 7257 test -n "$FIND" && break 7258 done 7259 7260 else 7261 # If it succeeded, then it was overridden by the user. We will use it 7262 # for the tool. 7263 7264 # First remove it from the list of overridden variables, so we can test 7265 # for unknown variables in the end. 7266 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7267 7268 # Check if the provided tool contains a complete path. 7269 tool_specified="$FIND" 7270 tool_basename="${tool_specified##*/}" 7271 if test "x$tool_basename" = "x$tool_specified"; then 7272 # A command without a complete path is provided, search $PATH. 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7274 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7275 # Extract the first word of "$tool_basename", so it can be a program name with args. 7276 set dummy $tool_basename; ac_word=$2 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7278 $as_echo_n "checking for $ac_word... " >&6; } 7279 if ${ac_cv_path_FIND+:} false; then : 7280 $as_echo_n "(cached) " >&6 7281 else 7282 case $FIND in 7283 [\\/]* | ?:[\\/]*) 7284 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7285 ;; 7286 *) 7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7288 for as_dir in $PATH 7289 do 7290 IFS=$as_save_IFS 7291 test -z "$as_dir" && as_dir=. 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7294 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7296 break 2 7297 fi 7298 done 7299 done 7300 IFS=$as_save_IFS 7301 7302 ;; 7303 esac 7304 fi 7305 FIND=$ac_cv_path_FIND 7306 if test -n "$FIND"; then 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7308 $as_echo "$FIND" >&6; } 7309 else 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7311 $as_echo "no" >&6; } 7312 fi 7313 7314 7315 if test "x$FIND" = x; then 7316 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7317 fi 7318 else 7319 # Otherwise we believe it is a complete path. Use it as it is. 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7321 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7323 $as_echo_n "checking for FIND... " >&6; } 7324 if test ! -x "$tool_specified"; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7326 $as_echo "not found" >&6; } 7327 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7328 fi 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7330 $as_echo "$tool_specified" >&6; } 7331 fi 7332 fi 7333 fi 7334 7335 7336 7337 if test "x$FIND" = x; then 7338 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7339 fi 7340 7341 7342 7343 7344 7345 # Publish this variable in the help. 7346 7347 7348 if test "x$HEAD" = x; then 7349 # The variable is not set by user, try to locate tool using the code snippet 7350 for ac_prog in head 7351 do 7352 # Extract the first word of "$ac_prog", so it can be a program name with args. 7353 set dummy $ac_prog; ac_word=$2 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7355 $as_echo_n "checking for $ac_word... " >&6; } 7356 if ${ac_cv_path_HEAD+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358 else 7359 case $HEAD in 7360 [\\/]* | ?:[\\/]*) 7361 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7362 ;; 7363 *) 7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7365 for as_dir in $PATH 7366 do 7367 IFS=$as_save_IFS 7368 test -z "$as_dir" && as_dir=. 7369 for ac_exec_ext in '' $ac_executable_extensions; do 7370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7371 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7373 break 2 7374 fi 7375 done 7376 done 7377 IFS=$as_save_IFS 7378 7379 ;; 7380 esac 7381 fi 7382 HEAD=$ac_cv_path_HEAD 7383 if test -n "$HEAD"; then 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7385 $as_echo "$HEAD" >&6; } 7386 else 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7388 $as_echo "no" >&6; } 7389 fi 7390 7391 7392 test -n "$HEAD" && break 7393 done 7394 7395 else 7396 # The variable is set, but is it from the command line or the environment? 7397 7398 # Try to remove the string !HEAD! from our list. 7399 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7400 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7401 # If it failed, the variable was not from the command line. Ignore it, 7402 # but warn the user (except for BASH, which is always set by the calling BASH). 7403 if test "xHEAD" != xBASH; then 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7405 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7406 fi 7407 # Try to locate tool using the code snippet 7408 for ac_prog in head 7409 do 7410 # Extract the first word of "$ac_prog", so it can be a program name with args. 7411 set dummy $ac_prog; ac_word=$2 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7413 $as_echo_n "checking for $ac_word... " >&6; } 7414 if ${ac_cv_path_HEAD+:} false; then : 7415 $as_echo_n "(cached) " >&6 7416 else 7417 case $HEAD in 7418 [\\/]* | ?:[\\/]*) 7419 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7420 ;; 7421 *) 7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7423 for as_dir in $PATH 7424 do 7425 IFS=$as_save_IFS 7426 test -z "$as_dir" && as_dir=. 7427 for ac_exec_ext in '' $ac_executable_extensions; do 7428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7429 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7431 break 2 7432 fi 7433 done 7434 done 7435 IFS=$as_save_IFS 7436 7437 ;; 7438 esac 7439 fi 7440 HEAD=$ac_cv_path_HEAD 7441 if test -n "$HEAD"; then 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7443 $as_echo "$HEAD" >&6; } 7444 else 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7446 $as_echo "no" >&6; } 7447 fi 7448 7449 7450 test -n "$HEAD" && break 7451 done 7452 7453 else 7454 # If it succeeded, then it was overridden by the user. We will use it 7455 # for the tool. 7456 7457 # First remove it from the list of overridden variables, so we can test 7458 # for unknown variables in the end. 7459 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7460 7461 # Check if the provided tool contains a complete path. 7462 tool_specified="$HEAD" 7463 tool_basename="${tool_specified##*/}" 7464 if test "x$tool_basename" = "x$tool_specified"; then 7465 # A command without a complete path is provided, search $PATH. 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7467 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7468 # Extract the first word of "$tool_basename", so it can be a program name with args. 7469 set dummy $tool_basename; ac_word=$2 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7471 $as_echo_n "checking for $ac_word... " >&6; } 7472 if ${ac_cv_path_HEAD+:} false; then : 7473 $as_echo_n "(cached) " >&6 7474 else 7475 case $HEAD in 7476 [\\/]* | ?:[\\/]*) 7477 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7478 ;; 7479 *) 7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7481 for as_dir in $PATH 7482 do 7483 IFS=$as_save_IFS 7484 test -z "$as_dir" && as_dir=. 7485 for ac_exec_ext in '' $ac_executable_extensions; do 7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7487 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7489 break 2 7490 fi 7491 done 7492 done 7493 IFS=$as_save_IFS 7494 7495 ;; 7496 esac 7497 fi 7498 HEAD=$ac_cv_path_HEAD 7499 if test -n "$HEAD"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7501 $as_echo "$HEAD" >&6; } 7502 else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504 $as_echo "no" >&6; } 7505 fi 7506 7507 7508 if test "x$HEAD" = x; then 7509 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7510 fi 7511 else 7512 # Otherwise we believe it is a complete path. Use it as it is. 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7514 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7516 $as_echo_n "checking for HEAD... " >&6; } 7517 if test ! -x "$tool_specified"; then 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7519 $as_echo "not found" >&6; } 7520 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7521 fi 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7523 $as_echo "$tool_specified" >&6; } 7524 fi 7525 fi 7526 fi 7527 7528 7529 7530 if test "x$HEAD" = x; then 7531 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7532 fi 7533 7534 7535 7536 7537 7538 # Publish this variable in the help. 7539 7540 7541 if test "x$LN" = x; then 7542 # The variable is not set by user, try to locate tool using the code snippet 7543 for ac_prog in ln 7544 do 7545 # Extract the first word of "$ac_prog", so it can be a program name with args. 7546 set dummy $ac_prog; ac_word=$2 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7548 $as_echo_n "checking for $ac_word... " >&6; } 7549 if ${ac_cv_path_LN+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551 else 7552 case $LN in 7553 [\\/]* | ?:[\\/]*) 7554 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7555 ;; 7556 *) 7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558 for as_dir in $PATH 7559 do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7564 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568 done 7569 done 7570 IFS=$as_save_IFS 7571 7572 ;; 7573 esac 7574 fi 7575 LN=$ac_cv_path_LN 7576 if test -n "$LN"; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7578 $as_echo "$LN" >&6; } 7579 else 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7581 $as_echo "no" >&6; } 7582 fi 7583 7584 7585 test -n "$LN" && break 7586 done 7587 7588 else 7589 # The variable is set, but is it from the command line or the environment? 7590 7591 # Try to remove the string !LN! from our list. 7592 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7593 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7594 # If it failed, the variable was not from the command line. Ignore it, 7595 # but warn the user (except for BASH, which is always set by the calling BASH). 7596 if test "xLN" != xBASH; then 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7598 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7599 fi 7600 # Try to locate tool using the code snippet 7601 for ac_prog in ln 7602 do 7603 # Extract the first word of "$ac_prog", so it can be a program name with args. 7604 set dummy $ac_prog; ac_word=$2 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7606 $as_echo_n "checking for $ac_word... " >&6; } 7607 if ${ac_cv_path_LN+:} false; then : 7608 $as_echo_n "(cached) " >&6 7609 else 7610 case $LN in 7611 [\\/]* | ?:[\\/]*) 7612 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7613 ;; 7614 *) 7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7616 for as_dir in $PATH 7617 do 7618 IFS=$as_save_IFS 7619 test -z "$as_dir" && as_dir=. 7620 for ac_exec_ext in '' $ac_executable_extensions; do 7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7622 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7624 break 2 7625 fi 7626 done 7627 done 7628 IFS=$as_save_IFS 7629 7630 ;; 7631 esac 7632 fi 7633 LN=$ac_cv_path_LN 7634 if test -n "$LN"; then 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7636 $as_echo "$LN" >&6; } 7637 else 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7639 $as_echo "no" >&6; } 7640 fi 7641 7642 7643 test -n "$LN" && break 7644 done 7645 7646 else 7647 # If it succeeded, then it was overridden by the user. We will use it 7648 # for the tool. 7649 7650 # First remove it from the list of overridden variables, so we can test 7651 # for unknown variables in the end. 7652 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7653 7654 # Check if the provided tool contains a complete path. 7655 tool_specified="$LN" 7656 tool_basename="${tool_specified##*/}" 7657 if test "x$tool_basename" = "x$tool_specified"; then 7658 # A command without a complete path is provided, search $PATH. 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7660 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7661 # Extract the first word of "$tool_basename", so it can be a program name with args. 7662 set dummy $tool_basename; ac_word=$2 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7664 $as_echo_n "checking for $ac_word... " >&6; } 7665 if ${ac_cv_path_LN+:} false; then : 7666 $as_echo_n "(cached) " >&6 7667 else 7668 case $LN in 7669 [\\/]* | ?:[\\/]*) 7670 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7671 ;; 7672 *) 7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7674 for as_dir in $PATH 7675 do 7676 IFS=$as_save_IFS 7677 test -z "$as_dir" && as_dir=. 7678 for ac_exec_ext in '' $ac_executable_extensions; do 7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7680 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7682 break 2 7683 fi 7684 done 7685 done 7686 IFS=$as_save_IFS 7687 7688 ;; 7689 esac 7690 fi 7691 LN=$ac_cv_path_LN 7692 if test -n "$LN"; then 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7694 $as_echo "$LN" >&6; } 7695 else 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7697 $as_echo "no" >&6; } 7698 fi 7699 7700 7701 if test "x$LN" = x; then 7702 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7703 fi 7704 else 7705 # Otherwise we believe it is a complete path. Use it as it is. 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7707 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7709 $as_echo_n "checking for LN... " >&6; } 7710 if test ! -x "$tool_specified"; then 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7712 $as_echo "not found" >&6; } 7713 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7714 fi 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7716 $as_echo "$tool_specified" >&6; } 7717 fi 7718 fi 7719 fi 7720 7721 7722 7723 if test "x$LN" = x; then 7724 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7725 fi 7726 7727 7728 7729 7730 7731 # Publish this variable in the help. 7732 7733 7734 if test "x$LS" = x; then 7735 # The variable is not set by user, try to locate tool using the code snippet 7736 for ac_prog in ls 7737 do 7738 # Extract the first word of "$ac_prog", so it can be a program name with args. 7739 set dummy $ac_prog; ac_word=$2 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7741 $as_echo_n "checking for $ac_word... " >&6; } 7742 if ${ac_cv_path_LS+:} false; then : 7743 $as_echo_n "(cached) " >&6 7744 else 7745 case $LS in 7746 [\\/]* | ?:[\\/]*) 7747 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7748 ;; 7749 *) 7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7751 for as_dir in $PATH 7752 do 7753 IFS=$as_save_IFS 7754 test -z "$as_dir" && as_dir=. 7755 for ac_exec_ext in '' $ac_executable_extensions; do 7756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7757 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7759 break 2 7760 fi 7761 done 7762 done 7763 IFS=$as_save_IFS 7764 7765 ;; 7766 esac 7767 fi 7768 LS=$ac_cv_path_LS 7769 if test -n "$LS"; then 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7771 $as_echo "$LS" >&6; } 7772 else 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7774 $as_echo "no" >&6; } 7775 fi 7776 7777 7778 test -n "$LS" && break 7779 done 7780 7781 else 7782 # The variable is set, but is it from the command line or the environment? 7783 7784 # Try to remove the string !LS! from our list. 7785 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7786 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7787 # If it failed, the variable was not from the command line. Ignore it, 7788 # but warn the user (except for BASH, which is always set by the calling BASH). 7789 if test "xLS" != xBASH; then 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7791 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7792 fi 7793 # Try to locate tool using the code snippet 7794 for ac_prog in ls 7795 do 7796 # Extract the first word of "$ac_prog", so it can be a program name with args. 7797 set dummy $ac_prog; ac_word=$2 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7799 $as_echo_n "checking for $ac_word... " >&6; } 7800 if ${ac_cv_path_LS+:} false; then : 7801 $as_echo_n "(cached) " >&6 7802 else 7803 case $LS in 7804 [\\/]* | ?:[\\/]*) 7805 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7806 ;; 7807 *) 7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7809 for as_dir in $PATH 7810 do 7811 IFS=$as_save_IFS 7812 test -z "$as_dir" && as_dir=. 7813 for ac_exec_ext in '' $ac_executable_extensions; do 7814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7815 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7817 break 2 7818 fi 7819 done 7820 done 7821 IFS=$as_save_IFS 7822 7823 ;; 7824 esac 7825 fi 7826 LS=$ac_cv_path_LS 7827 if test -n "$LS"; then 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7829 $as_echo "$LS" >&6; } 7830 else 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7832 $as_echo "no" >&6; } 7833 fi 7834 7835 7836 test -n "$LS" && break 7837 done 7838 7839 else 7840 # If it succeeded, then it was overridden by the user. We will use it 7841 # for the tool. 7842 7843 # First remove it from the list of overridden variables, so we can test 7844 # for unknown variables in the end. 7845 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7846 7847 # Check if the provided tool contains a complete path. 7848 tool_specified="$LS" 7849 tool_basename="${tool_specified##*/}" 7850 if test "x$tool_basename" = "x$tool_specified"; then 7851 # A command without a complete path is provided, search $PATH. 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7853 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7854 # Extract the first word of "$tool_basename", so it can be a program name with args. 7855 set dummy $tool_basename; ac_word=$2 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7857 $as_echo_n "checking for $ac_word... " >&6; } 7858 if ${ac_cv_path_LS+:} false; then : 7859 $as_echo_n "(cached) " >&6 7860 else 7861 case $LS in 7862 [\\/]* | ?:[\\/]*) 7863 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7864 ;; 7865 *) 7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7867 for as_dir in $PATH 7868 do 7869 IFS=$as_save_IFS 7870 test -z "$as_dir" && as_dir=. 7871 for ac_exec_ext in '' $ac_executable_extensions; do 7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7873 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7875 break 2 7876 fi 7877 done 7878 done 7879 IFS=$as_save_IFS 7880 7881 ;; 7882 esac 7883 fi 7884 LS=$ac_cv_path_LS 7885 if test -n "$LS"; then 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7887 $as_echo "$LS" >&6; } 7888 else 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7890 $as_echo "no" >&6; } 7891 fi 7892 7893 7894 if test "x$LS" = x; then 7895 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7896 fi 7897 else 7898 # Otherwise we believe it is a complete path. Use it as it is. 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7900 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7902 $as_echo_n "checking for LS... " >&6; } 7903 if test ! -x "$tool_specified"; then 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7905 $as_echo "not found" >&6; } 7906 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7907 fi 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7909 $as_echo "$tool_specified" >&6; } 7910 fi 7911 fi 7912 fi 7913 7914 7915 7916 if test "x$LS" = x; then 7917 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7918 fi 7919 7920 7921 7922 7923 7924 # Publish this variable in the help. 7925 7926 7927 if test "x$MKDIR" = x; then 7928 # The variable is not set by user, try to locate tool using the code snippet 7929 for ac_prog in mkdir 7930 do 7931 # Extract the first word of "$ac_prog", so it can be a program name with args. 7932 set dummy $ac_prog; ac_word=$2 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7934 $as_echo_n "checking for $ac_word... " >&6; } 7935 if ${ac_cv_path_MKDIR+:} false; then : 7936 $as_echo_n "(cached) " >&6 7937 else 7938 case $MKDIR in 7939 [\\/]* | ?:[\\/]*) 7940 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7941 ;; 7942 *) 7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7944 for as_dir in $PATH 7945 do 7946 IFS=$as_save_IFS 7947 test -z "$as_dir" && as_dir=. 7948 for ac_exec_ext in '' $ac_executable_extensions; do 7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7950 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7952 break 2 7953 fi 7954 done 7955 done 7956 IFS=$as_save_IFS 7957 7958 ;; 7959 esac 7960 fi 7961 MKDIR=$ac_cv_path_MKDIR 7962 if test -n "$MKDIR"; then 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7964 $as_echo "$MKDIR" >&6; } 7965 else 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7967 $as_echo "no" >&6; } 7968 fi 7969 7970 7971 test -n "$MKDIR" && break 7972 done 7973 7974 else 7975 # The variable is set, but is it from the command line or the environment? 7976 7977 # Try to remove the string !MKDIR! from our list. 7978 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7979 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7980 # If it failed, the variable was not from the command line. Ignore it, 7981 # but warn the user (except for BASH, which is always set by the calling BASH). 7982 if test "xMKDIR" != xBASH; then 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7984 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7985 fi 7986 # Try to locate tool using the code snippet 7987 for ac_prog in mkdir 7988 do 7989 # Extract the first word of "$ac_prog", so it can be a program name with args. 7990 set dummy $ac_prog; ac_word=$2 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7992 $as_echo_n "checking for $ac_word... " >&6; } 7993 if ${ac_cv_path_MKDIR+:} false; then : 7994 $as_echo_n "(cached) " >&6 7995 else 7996 case $MKDIR in 7997 [\\/]* | ?:[\\/]*) 7998 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7999 ;; 8000 *) 8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8002 for as_dir in $PATH 8003 do 8004 IFS=$as_save_IFS 8005 test -z "$as_dir" && as_dir=. 8006 for ac_exec_ext in '' $ac_executable_extensions; do 8007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8008 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8010 break 2 8011 fi 8012 done 8013 done 8014 IFS=$as_save_IFS 8015 8016 ;; 8017 esac 8018 fi 8019 MKDIR=$ac_cv_path_MKDIR 8020 if test -n "$MKDIR"; then 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8022 $as_echo "$MKDIR" >&6; } 8023 else 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8025 $as_echo "no" >&6; } 8026 fi 8027 8028 8029 test -n "$MKDIR" && break 8030 done 8031 8032 else 8033 # If it succeeded, then it was overridden by the user. We will use it 8034 # for the tool. 8035 8036 # First remove it from the list of overridden variables, so we can test 8037 # for unknown variables in the end. 8038 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8039 8040 # Check if the provided tool contains a complete path. 8041 tool_specified="$MKDIR" 8042 tool_basename="${tool_specified##*/}" 8043 if test "x$tool_basename" = "x$tool_specified"; then 8044 # A command without a complete path is provided, search $PATH. 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8046 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8047 # Extract the first word of "$tool_basename", so it can be a program name with args. 8048 set dummy $tool_basename; ac_word=$2 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8050 $as_echo_n "checking for $ac_word... " >&6; } 8051 if ${ac_cv_path_MKDIR+:} false; then : 8052 $as_echo_n "(cached) " >&6 8053 else 8054 case $MKDIR in 8055 [\\/]* | ?:[\\/]*) 8056 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8057 ;; 8058 *) 8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8060 for as_dir in $PATH 8061 do 8062 IFS=$as_save_IFS 8063 test -z "$as_dir" && as_dir=. 8064 for ac_exec_ext in '' $ac_executable_extensions; do 8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8066 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8068 break 2 8069 fi 8070 done 8071 done 8072 IFS=$as_save_IFS 8073 8074 ;; 8075 esac 8076 fi 8077 MKDIR=$ac_cv_path_MKDIR 8078 if test -n "$MKDIR"; then 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8080 $as_echo "$MKDIR" >&6; } 8081 else 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8083 $as_echo "no" >&6; } 8084 fi 8085 8086 8087 if test "x$MKDIR" = x; then 8088 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8089 fi 8090 else 8091 # Otherwise we believe it is a complete path. Use it as it is. 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8093 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8095 $as_echo_n "checking for MKDIR... " >&6; } 8096 if test ! -x "$tool_specified"; then 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8098 $as_echo "not found" >&6; } 8099 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8100 fi 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8102 $as_echo "$tool_specified" >&6; } 8103 fi 8104 fi 8105 fi 8106 8107 8108 8109 if test "x$MKDIR" = x; then 8110 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8111 fi 8112 8113 8114 8115 8116 8117 # Publish this variable in the help. 8118 8119 8120 if test "x$MKTEMP" = x; then 8121 # The variable is not set by user, try to locate tool using the code snippet 8122 for ac_prog in mktemp 8123 do 8124 # Extract the first word of "$ac_prog", so it can be a program name with args. 8125 set dummy $ac_prog; ac_word=$2 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8127 $as_echo_n "checking for $ac_word... " >&6; } 8128 if ${ac_cv_path_MKTEMP+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130 else 8131 case $MKTEMP in 8132 [\\/]* | ?:[\\/]*) 8133 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8134 ;; 8135 *) 8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8137 for as_dir in $PATH 8138 do 8139 IFS=$as_save_IFS 8140 test -z "$as_dir" && as_dir=. 8141 for ac_exec_ext in '' $ac_executable_extensions; do 8142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8143 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8145 break 2 8146 fi 8147 done 8148 done 8149 IFS=$as_save_IFS 8150 8151 ;; 8152 esac 8153 fi 8154 MKTEMP=$ac_cv_path_MKTEMP 8155 if test -n "$MKTEMP"; then 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8157 $as_echo "$MKTEMP" >&6; } 8158 else 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8160 $as_echo "no" >&6; } 8161 fi 8162 8163 8164 test -n "$MKTEMP" && break 8165 done 8166 8167 else 8168 # The variable is set, but is it from the command line or the environment? 8169 8170 # Try to remove the string !MKTEMP! from our list. 8171 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8172 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8173 # If it failed, the variable was not from the command line. Ignore it, 8174 # but warn the user (except for BASH, which is always set by the calling BASH). 8175 if test "xMKTEMP" != xBASH; then 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8177 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8178 fi 8179 # Try to locate tool using the code snippet 8180 for ac_prog in mktemp 8181 do 8182 # Extract the first word of "$ac_prog", so it can be a program name with args. 8183 set dummy $ac_prog; ac_word=$2 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8185 $as_echo_n "checking for $ac_word... " >&6; } 8186 if ${ac_cv_path_MKTEMP+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188 else 8189 case $MKTEMP in 8190 [\\/]* | ?:[\\/]*) 8191 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8192 ;; 8193 *) 8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8195 for as_dir in $PATH 8196 do 8197 IFS=$as_save_IFS 8198 test -z "$as_dir" && as_dir=. 8199 for ac_exec_ext in '' $ac_executable_extensions; do 8200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8201 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8203 break 2 8204 fi 8205 done 8206 done 8207 IFS=$as_save_IFS 8208 8209 ;; 8210 esac 8211 fi 8212 MKTEMP=$ac_cv_path_MKTEMP 8213 if test -n "$MKTEMP"; then 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8215 $as_echo "$MKTEMP" >&6; } 8216 else 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8218 $as_echo "no" >&6; } 8219 fi 8220 8221 8222 test -n "$MKTEMP" && break 8223 done 8224 8225 else 8226 # If it succeeded, then it was overridden by the user. We will use it 8227 # for the tool. 8228 8229 # First remove it from the list of overridden variables, so we can test 8230 # for unknown variables in the end. 8231 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8232 8233 # Check if the provided tool contains a complete path. 8234 tool_specified="$MKTEMP" 8235 tool_basename="${tool_specified##*/}" 8236 if test "x$tool_basename" = "x$tool_specified"; then 8237 # A command without a complete path is provided, search $PATH. 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8239 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8240 # Extract the first word of "$tool_basename", so it can be a program name with args. 8241 set dummy $tool_basename; ac_word=$2 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8243 $as_echo_n "checking for $ac_word... " >&6; } 8244 if ${ac_cv_path_MKTEMP+:} false; then : 8245 $as_echo_n "(cached) " >&6 8246 else 8247 case $MKTEMP in 8248 [\\/]* | ?:[\\/]*) 8249 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8250 ;; 8251 *) 8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8253 for as_dir in $PATH 8254 do 8255 IFS=$as_save_IFS 8256 test -z "$as_dir" && as_dir=. 8257 for ac_exec_ext in '' $ac_executable_extensions; do 8258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8259 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8261 break 2 8262 fi 8263 done 8264 done 8265 IFS=$as_save_IFS 8266 8267 ;; 8268 esac 8269 fi 8270 MKTEMP=$ac_cv_path_MKTEMP 8271 if test -n "$MKTEMP"; then 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8273 $as_echo "$MKTEMP" >&6; } 8274 else 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8276 $as_echo "no" >&6; } 8277 fi 8278 8279 8280 if test "x$MKTEMP" = x; then 8281 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8282 fi 8283 else 8284 # Otherwise we believe it is a complete path. Use it as it is. 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8286 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8288 $as_echo_n "checking for MKTEMP... " >&6; } 8289 if test ! -x "$tool_specified"; then 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8291 $as_echo "not found" >&6; } 8292 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8293 fi 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8295 $as_echo "$tool_specified" >&6; } 8296 fi 8297 fi 8298 fi 8299 8300 8301 8302 if test "x$MKTEMP" = x; then 8303 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8304 fi 8305 8306 8307 8308 8309 8310 # Publish this variable in the help. 8311 8312 8313 if test "x$MV" = x; then 8314 # The variable is not set by user, try to locate tool using the code snippet 8315 for ac_prog in mv 8316 do 8317 # Extract the first word of "$ac_prog", so it can be a program name with args. 8318 set dummy $ac_prog; ac_word=$2 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8320 $as_echo_n "checking for $ac_word... " >&6; } 8321 if ${ac_cv_path_MV+:} false; then : 8322 $as_echo_n "(cached) " >&6 8323 else 8324 case $MV in 8325 [\\/]* | ?:[\\/]*) 8326 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8327 ;; 8328 *) 8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8330 for as_dir in $PATH 8331 do 8332 IFS=$as_save_IFS 8333 test -z "$as_dir" && as_dir=. 8334 for ac_exec_ext in '' $ac_executable_extensions; do 8335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8336 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8338 break 2 8339 fi 8340 done 8341 done 8342 IFS=$as_save_IFS 8343 8344 ;; 8345 esac 8346 fi 8347 MV=$ac_cv_path_MV 8348 if test -n "$MV"; then 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8350 $as_echo "$MV" >&6; } 8351 else 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8353 $as_echo "no" >&6; } 8354 fi 8355 8356 8357 test -n "$MV" && break 8358 done 8359 8360 else 8361 # The variable is set, but is it from the command line or the environment? 8362 8363 # Try to remove the string !MV! from our list. 8364 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8365 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8366 # If it failed, the variable was not from the command line. Ignore it, 8367 # but warn the user (except for BASH, which is always set by the calling BASH). 8368 if test "xMV" != xBASH; then 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8370 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8371 fi 8372 # Try to locate tool using the code snippet 8373 for ac_prog in mv 8374 do 8375 # Extract the first word of "$ac_prog", so it can be a program name with args. 8376 set dummy $ac_prog; ac_word=$2 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8378 $as_echo_n "checking for $ac_word... " >&6; } 8379 if ${ac_cv_path_MV+:} false; then : 8380 $as_echo_n "(cached) " >&6 8381 else 8382 case $MV in 8383 [\\/]* | ?:[\\/]*) 8384 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8385 ;; 8386 *) 8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8388 for as_dir in $PATH 8389 do 8390 IFS=$as_save_IFS 8391 test -z "$as_dir" && as_dir=. 8392 for ac_exec_ext in '' $ac_executable_extensions; do 8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8394 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8396 break 2 8397 fi 8398 done 8399 done 8400 IFS=$as_save_IFS 8401 8402 ;; 8403 esac 8404 fi 8405 MV=$ac_cv_path_MV 8406 if test -n "$MV"; then 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8408 $as_echo "$MV" >&6; } 8409 else 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8411 $as_echo "no" >&6; } 8412 fi 8413 8414 8415 test -n "$MV" && break 8416 done 8417 8418 else 8419 # If it succeeded, then it was overridden by the user. We will use it 8420 # for the tool. 8421 8422 # First remove it from the list of overridden variables, so we can test 8423 # for unknown variables in the end. 8424 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8425 8426 # Check if the provided tool contains a complete path. 8427 tool_specified="$MV" 8428 tool_basename="${tool_specified##*/}" 8429 if test "x$tool_basename" = "x$tool_specified"; then 8430 # A command without a complete path is provided, search $PATH. 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8432 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8433 # Extract the first word of "$tool_basename", so it can be a program name with args. 8434 set dummy $tool_basename; ac_word=$2 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8436 $as_echo_n "checking for $ac_word... " >&6; } 8437 if ${ac_cv_path_MV+:} false; then : 8438 $as_echo_n "(cached) " >&6 8439 else 8440 case $MV in 8441 [\\/]* | ?:[\\/]*) 8442 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8443 ;; 8444 *) 8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8446 for as_dir in $PATH 8447 do 8448 IFS=$as_save_IFS 8449 test -z "$as_dir" && as_dir=. 8450 for ac_exec_ext in '' $ac_executable_extensions; do 8451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8452 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8454 break 2 8455 fi 8456 done 8457 done 8458 IFS=$as_save_IFS 8459 8460 ;; 8461 esac 8462 fi 8463 MV=$ac_cv_path_MV 8464 if test -n "$MV"; then 8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8466 $as_echo "$MV" >&6; } 8467 else 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8469 $as_echo "no" >&6; } 8470 fi 8471 8472 8473 if test "x$MV" = x; then 8474 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8475 fi 8476 else 8477 # Otherwise we believe it is a complete path. Use it as it is. 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8479 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8481 $as_echo_n "checking for MV... " >&6; } 8482 if test ! -x "$tool_specified"; then 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8484 $as_echo "not found" >&6; } 8485 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8486 fi 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8488 $as_echo "$tool_specified" >&6; } 8489 fi 8490 fi 8491 fi 8492 8493 8494 8495 if test "x$MV" = x; then 8496 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8497 fi 8498 8499 8500 8501 8502 8503 # Publish this variable in the help. 8504 8505 8506 if test "x$NAWK" = x; then 8507 # The variable is not set by user, try to locate tool using the code snippet 8508 for ac_prog in nawk gawk awk 8509 do 8510 # Extract the first word of "$ac_prog", so it can be a program name with args. 8511 set dummy $ac_prog; ac_word=$2 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8513 $as_echo_n "checking for $ac_word... " >&6; } 8514 if ${ac_cv_path_NAWK+:} false; then : 8515 $as_echo_n "(cached) " >&6 8516 else 8517 case $NAWK in 8518 [\\/]* | ?:[\\/]*) 8519 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8520 ;; 8521 *) 8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8523 for as_dir in $PATH 8524 do 8525 IFS=$as_save_IFS 8526 test -z "$as_dir" && as_dir=. 8527 for ac_exec_ext in '' $ac_executable_extensions; do 8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8529 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8531 break 2 8532 fi 8533 done 8534 done 8535 IFS=$as_save_IFS 8536 8537 ;; 8538 esac 8539 fi 8540 NAWK=$ac_cv_path_NAWK 8541 if test -n "$NAWK"; then 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8543 $as_echo "$NAWK" >&6; } 8544 else 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8546 $as_echo "no" >&6; } 8547 fi 8548 8549 8550 test -n "$NAWK" && break 8551 done 8552 8553 else 8554 # The variable is set, but is it from the command line or the environment? 8555 8556 # Try to remove the string !NAWK! from our list. 8557 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8558 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8559 # If it failed, the variable was not from the command line. Ignore it, 8560 # but warn the user (except for BASH, which is always set by the calling BASH). 8561 if test "xNAWK" != xBASH; then 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8563 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8564 fi 8565 # Try to locate tool using the code snippet 8566 for ac_prog in nawk gawk awk 8567 do 8568 # Extract the first word of "$ac_prog", so it can be a program name with args. 8569 set dummy $ac_prog; ac_word=$2 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8571 $as_echo_n "checking for $ac_word... " >&6; } 8572 if ${ac_cv_path_NAWK+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574 else 8575 case $NAWK in 8576 [\\/]* | ?:[\\/]*) 8577 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8578 ;; 8579 *) 8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8581 for as_dir in $PATH 8582 do 8583 IFS=$as_save_IFS 8584 test -z "$as_dir" && as_dir=. 8585 for ac_exec_ext in '' $ac_executable_extensions; do 8586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8587 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8589 break 2 8590 fi 8591 done 8592 done 8593 IFS=$as_save_IFS 8594 8595 ;; 8596 esac 8597 fi 8598 NAWK=$ac_cv_path_NAWK 8599 if test -n "$NAWK"; then 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8601 $as_echo "$NAWK" >&6; } 8602 else 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8604 $as_echo "no" >&6; } 8605 fi 8606 8607 8608 test -n "$NAWK" && break 8609 done 8610 8611 else 8612 # If it succeeded, then it was overridden by the user. We will use it 8613 # for the tool. 8614 8615 # First remove it from the list of overridden variables, so we can test 8616 # for unknown variables in the end. 8617 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8618 8619 # Check if the provided tool contains a complete path. 8620 tool_specified="$NAWK" 8621 tool_basename="${tool_specified##*/}" 8622 if test "x$tool_basename" = "x$tool_specified"; then 8623 # A command without a complete path is provided, search $PATH. 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8625 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8626 # Extract the first word of "$tool_basename", so it can be a program name with args. 8627 set dummy $tool_basename; ac_word=$2 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8629 $as_echo_n "checking for $ac_word... " >&6; } 8630 if ${ac_cv_path_NAWK+:} false; then : 8631 $as_echo_n "(cached) " >&6 8632 else 8633 case $NAWK in 8634 [\\/]* | ?:[\\/]*) 8635 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8636 ;; 8637 *) 8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8639 for as_dir in $PATH 8640 do 8641 IFS=$as_save_IFS 8642 test -z "$as_dir" && as_dir=. 8643 for ac_exec_ext in '' $ac_executable_extensions; do 8644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8645 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8647 break 2 8648 fi 8649 done 8650 done 8651 IFS=$as_save_IFS 8652 8653 ;; 8654 esac 8655 fi 8656 NAWK=$ac_cv_path_NAWK 8657 if test -n "$NAWK"; then 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8659 $as_echo "$NAWK" >&6; } 8660 else 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8662 $as_echo "no" >&6; } 8663 fi 8664 8665 8666 if test "x$NAWK" = x; then 8667 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8668 fi 8669 else 8670 # Otherwise we believe it is a complete path. Use it as it is. 8671 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8672 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8674 $as_echo_n "checking for NAWK... " >&6; } 8675 if test ! -x "$tool_specified"; then 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8677 $as_echo "not found" >&6; } 8678 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8679 fi 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8681 $as_echo "$tool_specified" >&6; } 8682 fi 8683 fi 8684 fi 8685 8686 8687 8688 if test "x$NAWK" = x; then 8689 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8690 fi 8691 8692 8693 8694 8695 8696 # Publish this variable in the help. 8697 8698 8699 if test "x$PRINTF" = x; then 8700 # The variable is not set by user, try to locate tool using the code snippet 8701 for ac_prog in printf 8702 do 8703 # Extract the first word of "$ac_prog", so it can be a program name with args. 8704 set dummy $ac_prog; ac_word=$2 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8706 $as_echo_n "checking for $ac_word... " >&6; } 8707 if ${ac_cv_path_PRINTF+:} false; then : 8708 $as_echo_n "(cached) " >&6 8709 else 8710 case $PRINTF in 8711 [\\/]* | ?:[\\/]*) 8712 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8713 ;; 8714 *) 8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8716 for as_dir in $PATH 8717 do 8718 IFS=$as_save_IFS 8719 test -z "$as_dir" && as_dir=. 8720 for ac_exec_ext in '' $ac_executable_extensions; do 8721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8722 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8724 break 2 8725 fi 8726 done 8727 done 8728 IFS=$as_save_IFS 8729 8730 ;; 8731 esac 8732 fi 8733 PRINTF=$ac_cv_path_PRINTF 8734 if test -n "$PRINTF"; then 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8736 $as_echo "$PRINTF" >&6; } 8737 else 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8739 $as_echo "no" >&6; } 8740 fi 8741 8742 8743 test -n "$PRINTF" && break 8744 done 8745 8746 else 8747 # The variable is set, but is it from the command line or the environment? 8748 8749 # Try to remove the string !PRINTF! from our list. 8750 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8751 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8752 # If it failed, the variable was not from the command line. Ignore it, 8753 # but warn the user (except for BASH, which is always set by the calling BASH). 8754 if test "xPRINTF" != xBASH; then 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8756 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8757 fi 8758 # Try to locate tool using the code snippet 8759 for ac_prog in printf 8760 do 8761 # Extract the first word of "$ac_prog", so it can be a program name with args. 8762 set dummy $ac_prog; ac_word=$2 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8764 $as_echo_n "checking for $ac_word... " >&6; } 8765 if ${ac_cv_path_PRINTF+:} false; then : 8766 $as_echo_n "(cached) " >&6 8767 else 8768 case $PRINTF in 8769 [\\/]* | ?:[\\/]*) 8770 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8771 ;; 8772 *) 8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8774 for as_dir in $PATH 8775 do 8776 IFS=$as_save_IFS 8777 test -z "$as_dir" && as_dir=. 8778 for ac_exec_ext in '' $ac_executable_extensions; do 8779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8780 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8782 break 2 8783 fi 8784 done 8785 done 8786 IFS=$as_save_IFS 8787 8788 ;; 8789 esac 8790 fi 8791 PRINTF=$ac_cv_path_PRINTF 8792 if test -n "$PRINTF"; then 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8794 $as_echo "$PRINTF" >&6; } 8795 else 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8797 $as_echo "no" >&6; } 8798 fi 8799 8800 8801 test -n "$PRINTF" && break 8802 done 8803 8804 else 8805 # If it succeeded, then it was overridden by the user. We will use it 8806 # for the tool. 8807 8808 # First remove it from the list of overridden variables, so we can test 8809 # for unknown variables in the end. 8810 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8811 8812 # Check if the provided tool contains a complete path. 8813 tool_specified="$PRINTF" 8814 tool_basename="${tool_specified##*/}" 8815 if test "x$tool_basename" = "x$tool_specified"; then 8816 # A command without a complete path is provided, search $PATH. 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8818 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8819 # Extract the first word of "$tool_basename", so it can be a program name with args. 8820 set dummy $tool_basename; ac_word=$2 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8822 $as_echo_n "checking for $ac_word... " >&6; } 8823 if ${ac_cv_path_PRINTF+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825 else 8826 case $PRINTF in 8827 [\\/]* | ?:[\\/]*) 8828 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8829 ;; 8830 *) 8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8832 for as_dir in $PATH 8833 do 8834 IFS=$as_save_IFS 8835 test -z "$as_dir" && as_dir=. 8836 for ac_exec_ext in '' $ac_executable_extensions; do 8837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8838 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8840 break 2 8841 fi 8842 done 8843 done 8844 IFS=$as_save_IFS 8845 8846 ;; 8847 esac 8848 fi 8849 PRINTF=$ac_cv_path_PRINTF 8850 if test -n "$PRINTF"; then 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8852 $as_echo "$PRINTF" >&6; } 8853 else 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8855 $as_echo "no" >&6; } 8856 fi 8857 8858 8859 if test "x$PRINTF" = x; then 8860 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8861 fi 8862 else 8863 # Otherwise we believe it is a complete path. Use it as it is. 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8865 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8867 $as_echo_n "checking for PRINTF... " >&6; } 8868 if test ! -x "$tool_specified"; then 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8870 $as_echo "not found" >&6; } 8871 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8872 fi 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8874 $as_echo "$tool_specified" >&6; } 8875 fi 8876 fi 8877 fi 8878 8879 8880 8881 if test "x$PRINTF" = x; then 8882 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8883 fi 8884 8885 8886 8887 8888 8889 # Publish this variable in the help. 8890 8891 8892 if test "x$RM" = x; then 8893 # The variable is not set by user, try to locate tool using the code snippet 8894 for ac_prog in rm 8895 do 8896 # Extract the first word of "$ac_prog", so it can be a program name with args. 8897 set dummy $ac_prog; ac_word=$2 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8899 $as_echo_n "checking for $ac_word... " >&6; } 8900 if ${ac_cv_path_RM+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902 else 8903 case $RM in 8904 [\\/]* | ?:[\\/]*) 8905 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8906 ;; 8907 *) 8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8909 for as_dir in $PATH 8910 do 8911 IFS=$as_save_IFS 8912 test -z "$as_dir" && as_dir=. 8913 for ac_exec_ext in '' $ac_executable_extensions; do 8914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8915 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8917 break 2 8918 fi 8919 done 8920 done 8921 IFS=$as_save_IFS 8922 8923 ;; 8924 esac 8925 fi 8926 RM=$ac_cv_path_RM 8927 if test -n "$RM"; then 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8929 $as_echo "$RM" >&6; } 8930 else 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8932 $as_echo "no" >&6; } 8933 fi 8934 8935 8936 test -n "$RM" && break 8937 done 8938 8939 else 8940 # The variable is set, but is it from the command line or the environment? 8941 8942 # Try to remove the string !RM! from our list. 8943 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8944 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8945 # If it failed, the variable was not from the command line. Ignore it, 8946 # but warn the user (except for BASH, which is always set by the calling BASH). 8947 if test "xRM" != xBASH; then 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8949 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8950 fi 8951 # Try to locate tool using the code snippet 8952 for ac_prog in rm 8953 do 8954 # Extract the first word of "$ac_prog", so it can be a program name with args. 8955 set dummy $ac_prog; ac_word=$2 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8957 $as_echo_n "checking for $ac_word... " >&6; } 8958 if ${ac_cv_path_RM+:} false; then : 8959 $as_echo_n "(cached) " >&6 8960 else 8961 case $RM in 8962 [\\/]* | ?:[\\/]*) 8963 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8964 ;; 8965 *) 8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8967 for as_dir in $PATH 8968 do 8969 IFS=$as_save_IFS 8970 test -z "$as_dir" && as_dir=. 8971 for ac_exec_ext in '' $ac_executable_extensions; do 8972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8973 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8975 break 2 8976 fi 8977 done 8978 done 8979 IFS=$as_save_IFS 8980 8981 ;; 8982 esac 8983 fi 8984 RM=$ac_cv_path_RM 8985 if test -n "$RM"; then 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8987 $as_echo "$RM" >&6; } 8988 else 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8990 $as_echo "no" >&6; } 8991 fi 8992 8993 8994 test -n "$RM" && break 8995 done 8996 8997 else 8998 # If it succeeded, then it was overridden by the user. We will use it 8999 # for the tool. 9000 9001 # First remove it from the list of overridden variables, so we can test 9002 # for unknown variables in the end. 9003 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9004 9005 # Check if the provided tool contains a complete path. 9006 tool_specified="$RM" 9007 tool_basename="${tool_specified##*/}" 9008 if test "x$tool_basename" = "x$tool_specified"; then 9009 # A command without a complete path is provided, search $PATH. 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9011 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9012 # Extract the first word of "$tool_basename", so it can be a program name with args. 9013 set dummy $tool_basename; ac_word=$2 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9015 $as_echo_n "checking for $ac_word... " >&6; } 9016 if ${ac_cv_path_RM+:} false; then : 9017 $as_echo_n "(cached) " >&6 9018 else 9019 case $RM in 9020 [\\/]* | ?:[\\/]*) 9021 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9022 ;; 9023 *) 9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9025 for as_dir in $PATH 9026 do 9027 IFS=$as_save_IFS 9028 test -z "$as_dir" && as_dir=. 9029 for ac_exec_ext in '' $ac_executable_extensions; do 9030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9031 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9033 break 2 9034 fi 9035 done 9036 done 9037 IFS=$as_save_IFS 9038 9039 ;; 9040 esac 9041 fi 9042 RM=$ac_cv_path_RM 9043 if test -n "$RM"; then 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9045 $as_echo "$RM" >&6; } 9046 else 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9048 $as_echo "no" >&6; } 9049 fi 9050 9051 9052 if test "x$RM" = x; then 9053 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9054 fi 9055 else 9056 # Otherwise we believe it is a complete path. Use it as it is. 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9058 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9060 $as_echo_n "checking for RM... " >&6; } 9061 if test ! -x "$tool_specified"; then 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9063 $as_echo "not found" >&6; } 9064 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9065 fi 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9067 $as_echo "$tool_specified" >&6; } 9068 fi 9069 fi 9070 fi 9071 9072 9073 9074 if test "x$RM" = x; then 9075 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9076 fi 9077 9078 9079 9080 9081 9082 # Publish this variable in the help. 9083 9084 9085 if test "x$SH" = x; then 9086 # The variable is not set by user, try to locate tool using the code snippet 9087 for ac_prog in sh 9088 do 9089 # Extract the first word of "$ac_prog", so it can be a program name with args. 9090 set dummy $ac_prog; ac_word=$2 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9092 $as_echo_n "checking for $ac_word... " >&6; } 9093 if ${ac_cv_path_SH+:} false; then : 9094 $as_echo_n "(cached) " >&6 9095 else 9096 case $SH in 9097 [\\/]* | ?:[\\/]*) 9098 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9099 ;; 9100 *) 9101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9102 for as_dir in $PATH 9103 do 9104 IFS=$as_save_IFS 9105 test -z "$as_dir" && as_dir=. 9106 for ac_exec_ext in '' $ac_executable_extensions; do 9107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9108 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9110 break 2 9111 fi 9112 done 9113 done 9114 IFS=$as_save_IFS 9115 9116 ;; 9117 esac 9118 fi 9119 SH=$ac_cv_path_SH 9120 if test -n "$SH"; then 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9122 $as_echo "$SH" >&6; } 9123 else 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9125 $as_echo "no" >&6; } 9126 fi 9127 9128 9129 test -n "$SH" && break 9130 done 9131 9132 else 9133 # The variable is set, but is it from the command line or the environment? 9134 9135 # Try to remove the string !SH! from our list. 9136 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9137 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9138 # If it failed, the variable was not from the command line. Ignore it, 9139 # but warn the user (except for BASH, which is always set by the calling BASH). 9140 if test "xSH" != xBASH; then 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9142 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9143 fi 9144 # Try to locate tool using the code snippet 9145 for ac_prog in sh 9146 do 9147 # Extract the first word of "$ac_prog", so it can be a program name with args. 9148 set dummy $ac_prog; ac_word=$2 9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9150 $as_echo_n "checking for $ac_word... " >&6; } 9151 if ${ac_cv_path_SH+:} false; then : 9152 $as_echo_n "(cached) " >&6 9153 else 9154 case $SH in 9155 [\\/]* | ?:[\\/]*) 9156 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9157 ;; 9158 *) 9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9160 for as_dir in $PATH 9161 do 9162 IFS=$as_save_IFS 9163 test -z "$as_dir" && as_dir=. 9164 for ac_exec_ext in '' $ac_executable_extensions; do 9165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9166 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9168 break 2 9169 fi 9170 done 9171 done 9172 IFS=$as_save_IFS 9173 9174 ;; 9175 esac 9176 fi 9177 SH=$ac_cv_path_SH 9178 if test -n "$SH"; then 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9180 $as_echo "$SH" >&6; } 9181 else 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9183 $as_echo "no" >&6; } 9184 fi 9185 9186 9187 test -n "$SH" && break 9188 done 9189 9190 else 9191 # If it succeeded, then it was overridden by the user. We will use it 9192 # for the tool. 9193 9194 # First remove it from the list of overridden variables, so we can test 9195 # for unknown variables in the end. 9196 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9197 9198 # Check if the provided tool contains a complete path. 9199 tool_specified="$SH" 9200 tool_basename="${tool_specified##*/}" 9201 if test "x$tool_basename" = "x$tool_specified"; then 9202 # A command without a complete path is provided, search $PATH. 9203 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9204 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9205 # Extract the first word of "$tool_basename", so it can be a program name with args. 9206 set dummy $tool_basename; ac_word=$2 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9208 $as_echo_n "checking for $ac_word... " >&6; } 9209 if ${ac_cv_path_SH+:} false; then : 9210 $as_echo_n "(cached) " >&6 9211 else 9212 case $SH in 9213 [\\/]* | ?:[\\/]*) 9214 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9215 ;; 9216 *) 9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9218 for as_dir in $PATH 9219 do 9220 IFS=$as_save_IFS 9221 test -z "$as_dir" && as_dir=. 9222 for ac_exec_ext in '' $ac_executable_extensions; do 9223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9224 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9226 break 2 9227 fi 9228 done 9229 done 9230 IFS=$as_save_IFS 9231 9232 ;; 9233 esac 9234 fi 9235 SH=$ac_cv_path_SH 9236 if test -n "$SH"; then 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9238 $as_echo "$SH" >&6; } 9239 else 9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9241 $as_echo "no" >&6; } 9242 fi 9243 9244 9245 if test "x$SH" = x; then 9246 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9247 fi 9248 else 9249 # Otherwise we believe it is a complete path. Use it as it is. 9250 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9251 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9253 $as_echo_n "checking for SH... " >&6; } 9254 if test ! -x "$tool_specified"; then 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9256 $as_echo "not found" >&6; } 9257 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9258 fi 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9260 $as_echo "$tool_specified" >&6; } 9261 fi 9262 fi 9263 fi 9264 9265 9266 9267 if test "x$SH" = x; then 9268 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9269 fi 9270 9271 9272 9273 9274 9275 # Publish this variable in the help. 9276 9277 9278 if test "x$SORT" = x; then 9279 # The variable is not set by user, try to locate tool using the code snippet 9280 for ac_prog in sort 9281 do 9282 # Extract the first word of "$ac_prog", so it can be a program name with args. 9283 set dummy $ac_prog; ac_word=$2 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9285 $as_echo_n "checking for $ac_word... " >&6; } 9286 if ${ac_cv_path_SORT+:} false; then : 9287 $as_echo_n "(cached) " >&6 9288 else 9289 case $SORT in 9290 [\\/]* | ?:[\\/]*) 9291 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9292 ;; 9293 *) 9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9295 for as_dir in $PATH 9296 do 9297 IFS=$as_save_IFS 9298 test -z "$as_dir" && as_dir=. 9299 for ac_exec_ext in '' $ac_executable_extensions; do 9300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9301 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9303 break 2 9304 fi 9305 done 9306 done 9307 IFS=$as_save_IFS 9308 9309 ;; 9310 esac 9311 fi 9312 SORT=$ac_cv_path_SORT 9313 if test -n "$SORT"; then 9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9315 $as_echo "$SORT" >&6; } 9316 else 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9318 $as_echo "no" >&6; } 9319 fi 9320 9321 9322 test -n "$SORT" && break 9323 done 9324 9325 else 9326 # The variable is set, but is it from the command line or the environment? 9327 9328 # Try to remove the string !SORT! from our list. 9329 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9330 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9331 # If it failed, the variable was not from the command line. Ignore it, 9332 # but warn the user (except for BASH, which is always set by the calling BASH). 9333 if test "xSORT" != xBASH; then 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9335 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9336 fi 9337 # Try to locate tool using the code snippet 9338 for ac_prog in sort 9339 do 9340 # Extract the first word of "$ac_prog", so it can be a program name with args. 9341 set dummy $ac_prog; ac_word=$2 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9343 $as_echo_n "checking for $ac_word... " >&6; } 9344 if ${ac_cv_path_SORT+:} false; then : 9345 $as_echo_n "(cached) " >&6 9346 else 9347 case $SORT in 9348 [\\/]* | ?:[\\/]*) 9349 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9350 ;; 9351 *) 9352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9353 for as_dir in $PATH 9354 do 9355 IFS=$as_save_IFS 9356 test -z "$as_dir" && as_dir=. 9357 for ac_exec_ext in '' $ac_executable_extensions; do 9358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9359 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9361 break 2 9362 fi 9363 done 9364 done 9365 IFS=$as_save_IFS 9366 9367 ;; 9368 esac 9369 fi 9370 SORT=$ac_cv_path_SORT 9371 if test -n "$SORT"; then 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9373 $as_echo "$SORT" >&6; } 9374 else 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9376 $as_echo "no" >&6; } 9377 fi 9378 9379 9380 test -n "$SORT" && break 9381 done 9382 9383 else 9384 # If it succeeded, then it was overridden by the user. We will use it 9385 # for the tool. 9386 9387 # First remove it from the list of overridden variables, so we can test 9388 # for unknown variables in the end. 9389 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9390 9391 # Check if the provided tool contains a complete path. 9392 tool_specified="$SORT" 9393 tool_basename="${tool_specified##*/}" 9394 if test "x$tool_basename" = "x$tool_specified"; then 9395 # A command without a complete path is provided, search $PATH. 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9397 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9398 # Extract the first word of "$tool_basename", so it can be a program name with args. 9399 set dummy $tool_basename; ac_word=$2 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9401 $as_echo_n "checking for $ac_word... " >&6; } 9402 if ${ac_cv_path_SORT+:} false; then : 9403 $as_echo_n "(cached) " >&6 9404 else 9405 case $SORT in 9406 [\\/]* | ?:[\\/]*) 9407 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9408 ;; 9409 *) 9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9411 for as_dir in $PATH 9412 do 9413 IFS=$as_save_IFS 9414 test -z "$as_dir" && as_dir=. 9415 for ac_exec_ext in '' $ac_executable_extensions; do 9416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9417 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9419 break 2 9420 fi 9421 done 9422 done 9423 IFS=$as_save_IFS 9424 9425 ;; 9426 esac 9427 fi 9428 SORT=$ac_cv_path_SORT 9429 if test -n "$SORT"; then 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9431 $as_echo "$SORT" >&6; } 9432 else 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9434 $as_echo "no" >&6; } 9435 fi 9436 9437 9438 if test "x$SORT" = x; then 9439 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9440 fi 9441 else 9442 # Otherwise we believe it is a complete path. Use it as it is. 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9444 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9446 $as_echo_n "checking for SORT... " >&6; } 9447 if test ! -x "$tool_specified"; then 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9449 $as_echo "not found" >&6; } 9450 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9451 fi 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9453 $as_echo "$tool_specified" >&6; } 9454 fi 9455 fi 9456 fi 9457 9458 9459 9460 if test "x$SORT" = x; then 9461 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9462 fi 9463 9464 9465 9466 9467 9468 # Publish this variable in the help. 9469 9470 9471 if test "x$TAIL" = x; then 9472 # The variable is not set by user, try to locate tool using the code snippet 9473 for ac_prog in tail 9474 do 9475 # Extract the first word of "$ac_prog", so it can be a program name with args. 9476 set dummy $ac_prog; ac_word=$2 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9478 $as_echo_n "checking for $ac_word... " >&6; } 9479 if ${ac_cv_path_TAIL+:} false; then : 9480 $as_echo_n "(cached) " >&6 9481 else 9482 case $TAIL in 9483 [\\/]* | ?:[\\/]*) 9484 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9485 ;; 9486 *) 9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9488 for as_dir in $PATH 9489 do 9490 IFS=$as_save_IFS 9491 test -z "$as_dir" && as_dir=. 9492 for ac_exec_ext in '' $ac_executable_extensions; do 9493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9494 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9496 break 2 9497 fi 9498 done 9499 done 9500 IFS=$as_save_IFS 9501 9502 ;; 9503 esac 9504 fi 9505 TAIL=$ac_cv_path_TAIL 9506 if test -n "$TAIL"; then 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9508 $as_echo "$TAIL" >&6; } 9509 else 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9511 $as_echo "no" >&6; } 9512 fi 9513 9514 9515 test -n "$TAIL" && break 9516 done 9517 9518 else 9519 # The variable is set, but is it from the command line or the environment? 9520 9521 # Try to remove the string !TAIL! from our list. 9522 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9523 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9524 # If it failed, the variable was not from the command line. Ignore it, 9525 # but warn the user (except for BASH, which is always set by the calling BASH). 9526 if test "xTAIL" != xBASH; then 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9528 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9529 fi 9530 # Try to locate tool using the code snippet 9531 for ac_prog in tail 9532 do 9533 # Extract the first word of "$ac_prog", so it can be a program name with args. 9534 set dummy $ac_prog; ac_word=$2 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9536 $as_echo_n "checking for $ac_word... " >&6; } 9537 if ${ac_cv_path_TAIL+:} false; then : 9538 $as_echo_n "(cached) " >&6 9539 else 9540 case $TAIL in 9541 [\\/]* | ?:[\\/]*) 9542 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9543 ;; 9544 *) 9545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9546 for as_dir in $PATH 9547 do 9548 IFS=$as_save_IFS 9549 test -z "$as_dir" && as_dir=. 9550 for ac_exec_ext in '' $ac_executable_extensions; do 9551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9552 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9554 break 2 9555 fi 9556 done 9557 done 9558 IFS=$as_save_IFS 9559 9560 ;; 9561 esac 9562 fi 9563 TAIL=$ac_cv_path_TAIL 9564 if test -n "$TAIL"; then 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9566 $as_echo "$TAIL" >&6; } 9567 else 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9569 $as_echo "no" >&6; } 9570 fi 9571 9572 9573 test -n "$TAIL" && break 9574 done 9575 9576 else 9577 # If it succeeded, then it was overridden by the user. We will use it 9578 # for the tool. 9579 9580 # First remove it from the list of overridden variables, so we can test 9581 # for unknown variables in the end. 9582 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9583 9584 # Check if the provided tool contains a complete path. 9585 tool_specified="$TAIL" 9586 tool_basename="${tool_specified##*/}" 9587 if test "x$tool_basename" = "x$tool_specified"; then 9588 # A command without a complete path is provided, search $PATH. 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9590 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9591 # Extract the first word of "$tool_basename", so it can be a program name with args. 9592 set dummy $tool_basename; ac_word=$2 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9594 $as_echo_n "checking for $ac_word... " >&6; } 9595 if ${ac_cv_path_TAIL+:} false; then : 9596 $as_echo_n "(cached) " >&6 9597 else 9598 case $TAIL in 9599 [\\/]* | ?:[\\/]*) 9600 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9601 ;; 9602 *) 9603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9604 for as_dir in $PATH 9605 do 9606 IFS=$as_save_IFS 9607 test -z "$as_dir" && as_dir=. 9608 for ac_exec_ext in '' $ac_executable_extensions; do 9609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9610 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9612 break 2 9613 fi 9614 done 9615 done 9616 IFS=$as_save_IFS 9617 9618 ;; 9619 esac 9620 fi 9621 TAIL=$ac_cv_path_TAIL 9622 if test -n "$TAIL"; then 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9624 $as_echo "$TAIL" >&6; } 9625 else 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9627 $as_echo "no" >&6; } 9628 fi 9629 9630 9631 if test "x$TAIL" = x; then 9632 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9633 fi 9634 else 9635 # Otherwise we believe it is a complete path. Use it as it is. 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9637 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9639 $as_echo_n "checking for TAIL... " >&6; } 9640 if test ! -x "$tool_specified"; then 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9642 $as_echo "not found" >&6; } 9643 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9644 fi 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9646 $as_echo "$tool_specified" >&6; } 9647 fi 9648 fi 9649 fi 9650 9651 9652 9653 if test "x$TAIL" = x; then 9654 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9655 fi 9656 9657 9658 9659 9660 9661 # Publish this variable in the help. 9662 9663 9664 if test "x$TAR" = x; then 9665 # The variable is not set by user, try to locate tool using the code snippet 9666 for ac_prog in tar 9667 do 9668 # Extract the first word of "$ac_prog", so it can be a program name with args. 9669 set dummy $ac_prog; ac_word=$2 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9671 $as_echo_n "checking for $ac_word... " >&6; } 9672 if ${ac_cv_path_TAR+:} false; then : 9673 $as_echo_n "(cached) " >&6 9674 else 9675 case $TAR in 9676 [\\/]* | ?:[\\/]*) 9677 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9678 ;; 9679 *) 9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9681 for as_dir in $PATH 9682 do 9683 IFS=$as_save_IFS 9684 test -z "$as_dir" && as_dir=. 9685 for ac_exec_ext in '' $ac_executable_extensions; do 9686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9687 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9689 break 2 9690 fi 9691 done 9692 done 9693 IFS=$as_save_IFS 9694 9695 ;; 9696 esac 9697 fi 9698 TAR=$ac_cv_path_TAR 9699 if test -n "$TAR"; then 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9701 $as_echo "$TAR" >&6; } 9702 else 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9704 $as_echo "no" >&6; } 9705 fi 9706 9707 9708 test -n "$TAR" && break 9709 done 9710 9711 else 9712 # The variable is set, but is it from the command line or the environment? 9713 9714 # Try to remove the string !TAR! from our list. 9715 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9716 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9717 # If it failed, the variable was not from the command line. Ignore it, 9718 # but warn the user (except for BASH, which is always set by the calling BASH). 9719 if test "xTAR" != xBASH; then 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9721 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9722 fi 9723 # Try to locate tool using the code snippet 9724 for ac_prog in tar 9725 do 9726 # Extract the first word of "$ac_prog", so it can be a program name with args. 9727 set dummy $ac_prog; ac_word=$2 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9729 $as_echo_n "checking for $ac_word... " >&6; } 9730 if ${ac_cv_path_TAR+:} false; then : 9731 $as_echo_n "(cached) " >&6 9732 else 9733 case $TAR in 9734 [\\/]* | ?:[\\/]*) 9735 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9736 ;; 9737 *) 9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9739 for as_dir in $PATH 9740 do 9741 IFS=$as_save_IFS 9742 test -z "$as_dir" && as_dir=. 9743 for ac_exec_ext in '' $ac_executable_extensions; do 9744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9745 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9747 break 2 9748 fi 9749 done 9750 done 9751 IFS=$as_save_IFS 9752 9753 ;; 9754 esac 9755 fi 9756 TAR=$ac_cv_path_TAR 9757 if test -n "$TAR"; then 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9759 $as_echo "$TAR" >&6; } 9760 else 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9762 $as_echo "no" >&6; } 9763 fi 9764 9765 9766 test -n "$TAR" && break 9767 done 9768 9769 else 9770 # If it succeeded, then it was overridden by the user. We will use it 9771 # for the tool. 9772 9773 # First remove it from the list of overridden variables, so we can test 9774 # for unknown variables in the end. 9775 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9776 9777 # Check if the provided tool contains a complete path. 9778 tool_specified="$TAR" 9779 tool_basename="${tool_specified##*/}" 9780 if test "x$tool_basename" = "x$tool_specified"; then 9781 # A command without a complete path is provided, search $PATH. 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9783 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9784 # Extract the first word of "$tool_basename", so it can be a program name with args. 9785 set dummy $tool_basename; ac_word=$2 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9787 $as_echo_n "checking for $ac_word... " >&6; } 9788 if ${ac_cv_path_TAR+:} false; then : 9789 $as_echo_n "(cached) " >&6 9790 else 9791 case $TAR in 9792 [\\/]* | ?:[\\/]*) 9793 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9794 ;; 9795 *) 9796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9797 for as_dir in $PATH 9798 do 9799 IFS=$as_save_IFS 9800 test -z "$as_dir" && as_dir=. 9801 for ac_exec_ext in '' $ac_executable_extensions; do 9802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9803 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9805 break 2 9806 fi 9807 done 9808 done 9809 IFS=$as_save_IFS 9810 9811 ;; 9812 esac 9813 fi 9814 TAR=$ac_cv_path_TAR 9815 if test -n "$TAR"; then 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9817 $as_echo "$TAR" >&6; } 9818 else 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9820 $as_echo "no" >&6; } 9821 fi 9822 9823 9824 if test "x$TAR" = x; then 9825 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9826 fi 9827 else 9828 # Otherwise we believe it is a complete path. Use it as it is. 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9830 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9832 $as_echo_n "checking for TAR... " >&6; } 9833 if test ! -x "$tool_specified"; then 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9835 $as_echo "not found" >&6; } 9836 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9837 fi 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9839 $as_echo "$tool_specified" >&6; } 9840 fi 9841 fi 9842 fi 9843 9844 9845 9846 if test "x$TAR" = x; then 9847 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9848 fi 9849 9850 9851 9852 9853 9854 # Publish this variable in the help. 9855 9856 9857 if test "x$TEE" = x; then 9858 # The variable is not set by user, try to locate tool using the code snippet 9859 for ac_prog in tee 9860 do 9861 # Extract the first word of "$ac_prog", so it can be a program name with args. 9862 set dummy $ac_prog; ac_word=$2 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9864 $as_echo_n "checking for $ac_word... " >&6; } 9865 if ${ac_cv_path_TEE+:} false; then : 9866 $as_echo_n "(cached) " >&6 9867 else 9868 case $TEE in 9869 [\\/]* | ?:[\\/]*) 9870 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9871 ;; 9872 *) 9873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9874 for as_dir in $PATH 9875 do 9876 IFS=$as_save_IFS 9877 test -z "$as_dir" && as_dir=. 9878 for ac_exec_ext in '' $ac_executable_extensions; do 9879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9880 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9882 break 2 9883 fi 9884 done 9885 done 9886 IFS=$as_save_IFS 9887 9888 ;; 9889 esac 9890 fi 9891 TEE=$ac_cv_path_TEE 9892 if test -n "$TEE"; then 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9894 $as_echo "$TEE" >&6; } 9895 else 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9897 $as_echo "no" >&6; } 9898 fi 9899 9900 9901 test -n "$TEE" && break 9902 done 9903 9904 else 9905 # The variable is set, but is it from the command line or the environment? 9906 9907 # Try to remove the string !TEE! from our list. 9908 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9909 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9910 # If it failed, the variable was not from the command line. Ignore it, 9911 # but warn the user (except for BASH, which is always set by the calling BASH). 9912 if test "xTEE" != xBASH; then 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9914 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9915 fi 9916 # Try to locate tool using the code snippet 9917 for ac_prog in tee 9918 do 9919 # Extract the first word of "$ac_prog", so it can be a program name with args. 9920 set dummy $ac_prog; ac_word=$2 9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9922 $as_echo_n "checking for $ac_word... " >&6; } 9923 if ${ac_cv_path_TEE+:} false; then : 9924 $as_echo_n "(cached) " >&6 9925 else 9926 case $TEE in 9927 [\\/]* | ?:[\\/]*) 9928 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9929 ;; 9930 *) 9931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9932 for as_dir in $PATH 9933 do 9934 IFS=$as_save_IFS 9935 test -z "$as_dir" && as_dir=. 9936 for ac_exec_ext in '' $ac_executable_extensions; do 9937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9938 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9940 break 2 9941 fi 9942 done 9943 done 9944 IFS=$as_save_IFS 9945 9946 ;; 9947 esac 9948 fi 9949 TEE=$ac_cv_path_TEE 9950 if test -n "$TEE"; then 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9952 $as_echo "$TEE" >&6; } 9953 else 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9955 $as_echo "no" >&6; } 9956 fi 9957 9958 9959 test -n "$TEE" && break 9960 done 9961 9962 else 9963 # If it succeeded, then it was overridden by the user. We will use it 9964 # for the tool. 9965 9966 # First remove it from the list of overridden variables, so we can test 9967 # for unknown variables in the end. 9968 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9969 9970 # Check if the provided tool contains a complete path. 9971 tool_specified="$TEE" 9972 tool_basename="${tool_specified##*/}" 9973 if test "x$tool_basename" = "x$tool_specified"; then 9974 # A command without a complete path is provided, search $PATH. 9975 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9976 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9977 # Extract the first word of "$tool_basename", so it can be a program name with args. 9978 set dummy $tool_basename; ac_word=$2 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9980 $as_echo_n "checking for $ac_word... " >&6; } 9981 if ${ac_cv_path_TEE+:} false; then : 9982 $as_echo_n "(cached) " >&6 9983 else 9984 case $TEE in 9985 [\\/]* | ?:[\\/]*) 9986 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9987 ;; 9988 *) 9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9990 for as_dir in $PATH 9991 do 9992 IFS=$as_save_IFS 9993 test -z "$as_dir" && as_dir=. 9994 for ac_exec_ext in '' $ac_executable_extensions; do 9995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9996 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9998 break 2 9999 fi 10000 done 10001 done 10002 IFS=$as_save_IFS 10003 10004 ;; 10005 esac 10006 fi 10007 TEE=$ac_cv_path_TEE 10008 if test -n "$TEE"; then 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10010 $as_echo "$TEE" >&6; } 10011 else 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10013 $as_echo "no" >&6; } 10014 fi 10015 10016 10017 if test "x$TEE" = x; then 10018 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10019 fi 10020 else 10021 # Otherwise we believe it is a complete path. Use it as it is. 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10023 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10025 $as_echo_n "checking for TEE... " >&6; } 10026 if test ! -x "$tool_specified"; then 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10028 $as_echo "not found" >&6; } 10029 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10030 fi 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10032 $as_echo "$tool_specified" >&6; } 10033 fi 10034 fi 10035 fi 10036 10037 10038 10039 if test "x$TEE" = x; then 10040 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10041 fi 10042 10043 10044 10045 10046 10047 # Publish this variable in the help. 10048 10049 10050 if test "x$TOUCH" = x; then 10051 # The variable is not set by user, try to locate tool using the code snippet 10052 for ac_prog in touch 10053 do 10054 # Extract the first word of "$ac_prog", so it can be a program name with args. 10055 set dummy $ac_prog; ac_word=$2 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10057 $as_echo_n "checking for $ac_word... " >&6; } 10058 if ${ac_cv_path_TOUCH+:} false; then : 10059 $as_echo_n "(cached) " >&6 10060 else 10061 case $TOUCH in 10062 [\\/]* | ?:[\\/]*) 10063 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10064 ;; 10065 *) 10066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10067 for as_dir in $PATH 10068 do 10069 IFS=$as_save_IFS 10070 test -z "$as_dir" && as_dir=. 10071 for ac_exec_ext in '' $ac_executable_extensions; do 10072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10073 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10075 break 2 10076 fi 10077 done 10078 done 10079 IFS=$as_save_IFS 10080 10081 ;; 10082 esac 10083 fi 10084 TOUCH=$ac_cv_path_TOUCH 10085 if test -n "$TOUCH"; then 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10087 $as_echo "$TOUCH" >&6; } 10088 else 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10090 $as_echo "no" >&6; } 10091 fi 10092 10093 10094 test -n "$TOUCH" && break 10095 done 10096 10097 else 10098 # The variable is set, but is it from the command line or the environment? 10099 10100 # Try to remove the string !TOUCH! from our list. 10101 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10102 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10103 # If it failed, the variable was not from the command line. Ignore it, 10104 # but warn the user (except for BASH, which is always set by the calling BASH). 10105 if test "xTOUCH" != xBASH; then 10106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10107 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10108 fi 10109 # Try to locate tool using the code snippet 10110 for ac_prog in touch 10111 do 10112 # Extract the first word of "$ac_prog", so it can be a program name with args. 10113 set dummy $ac_prog; ac_word=$2 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10115 $as_echo_n "checking for $ac_word... " >&6; } 10116 if ${ac_cv_path_TOUCH+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118 else 10119 case $TOUCH in 10120 [\\/]* | ?:[\\/]*) 10121 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10122 ;; 10123 *) 10124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10125 for as_dir in $PATH 10126 do 10127 IFS=$as_save_IFS 10128 test -z "$as_dir" && as_dir=. 10129 for ac_exec_ext in '' $ac_executable_extensions; do 10130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10131 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10133 break 2 10134 fi 10135 done 10136 done 10137 IFS=$as_save_IFS 10138 10139 ;; 10140 esac 10141 fi 10142 TOUCH=$ac_cv_path_TOUCH 10143 if test -n "$TOUCH"; then 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10145 $as_echo "$TOUCH" >&6; } 10146 else 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10148 $as_echo "no" >&6; } 10149 fi 10150 10151 10152 test -n "$TOUCH" && break 10153 done 10154 10155 else 10156 # If it succeeded, then it was overridden by the user. We will use it 10157 # for the tool. 10158 10159 # First remove it from the list of overridden variables, so we can test 10160 # for unknown variables in the end. 10161 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10162 10163 # Check if the provided tool contains a complete path. 10164 tool_specified="$TOUCH" 10165 tool_basename="${tool_specified##*/}" 10166 if test "x$tool_basename" = "x$tool_specified"; then 10167 # A command without a complete path is provided, search $PATH. 10168 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10169 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10170 # Extract the first word of "$tool_basename", so it can be a program name with args. 10171 set dummy $tool_basename; ac_word=$2 10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10173 $as_echo_n "checking for $ac_word... " >&6; } 10174 if ${ac_cv_path_TOUCH+:} false; then : 10175 $as_echo_n "(cached) " >&6 10176 else 10177 case $TOUCH in 10178 [\\/]* | ?:[\\/]*) 10179 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10180 ;; 10181 *) 10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10183 for as_dir in $PATH 10184 do 10185 IFS=$as_save_IFS 10186 test -z "$as_dir" && as_dir=. 10187 for ac_exec_ext in '' $ac_executable_extensions; do 10188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10189 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10191 break 2 10192 fi 10193 done 10194 done 10195 IFS=$as_save_IFS 10196 10197 ;; 10198 esac 10199 fi 10200 TOUCH=$ac_cv_path_TOUCH 10201 if test -n "$TOUCH"; then 10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10203 $as_echo "$TOUCH" >&6; } 10204 else 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10206 $as_echo "no" >&6; } 10207 fi 10208 10209 10210 if test "x$TOUCH" = x; then 10211 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10212 fi 10213 else 10214 # Otherwise we believe it is a complete path. Use it as it is. 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10216 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10218 $as_echo_n "checking for TOUCH... " >&6; } 10219 if test ! -x "$tool_specified"; then 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10221 $as_echo "not found" >&6; } 10222 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10223 fi 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10225 $as_echo "$tool_specified" >&6; } 10226 fi 10227 fi 10228 fi 10229 10230 10231 10232 if test "x$TOUCH" = x; then 10233 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10234 fi 10235 10236 10237 10238 10239 10240 # Publish this variable in the help. 10241 10242 10243 if test "x$TR" = x; then 10244 # The variable is not set by user, try to locate tool using the code snippet 10245 for ac_prog in tr 10246 do 10247 # Extract the first word of "$ac_prog", so it can be a program name with args. 10248 set dummy $ac_prog; ac_word=$2 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10250 $as_echo_n "checking for $ac_word... " >&6; } 10251 if ${ac_cv_path_TR+:} false; then : 10252 $as_echo_n "(cached) " >&6 10253 else 10254 case $TR in 10255 [\\/]* | ?:[\\/]*) 10256 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10257 ;; 10258 *) 10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10260 for as_dir in $PATH 10261 do 10262 IFS=$as_save_IFS 10263 test -z "$as_dir" && as_dir=. 10264 for ac_exec_ext in '' $ac_executable_extensions; do 10265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10266 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10268 break 2 10269 fi 10270 done 10271 done 10272 IFS=$as_save_IFS 10273 10274 ;; 10275 esac 10276 fi 10277 TR=$ac_cv_path_TR 10278 if test -n "$TR"; then 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10280 $as_echo "$TR" >&6; } 10281 else 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10283 $as_echo "no" >&6; } 10284 fi 10285 10286 10287 test -n "$TR" && break 10288 done 10289 10290 else 10291 # The variable is set, but is it from the command line or the environment? 10292 10293 # Try to remove the string !TR! from our list. 10294 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10295 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10296 # If it failed, the variable was not from the command line. Ignore it, 10297 # but warn the user (except for BASH, which is always set by the calling BASH). 10298 if test "xTR" != xBASH; then 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10300 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10301 fi 10302 # Try to locate tool using the code snippet 10303 for ac_prog in tr 10304 do 10305 # Extract the first word of "$ac_prog", so it can be a program name with args. 10306 set dummy $ac_prog; ac_word=$2 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10308 $as_echo_n "checking for $ac_word... " >&6; } 10309 if ${ac_cv_path_TR+:} false; then : 10310 $as_echo_n "(cached) " >&6 10311 else 10312 case $TR in 10313 [\\/]* | ?:[\\/]*) 10314 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10315 ;; 10316 *) 10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10318 for as_dir in $PATH 10319 do 10320 IFS=$as_save_IFS 10321 test -z "$as_dir" && as_dir=. 10322 for ac_exec_ext in '' $ac_executable_extensions; do 10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10324 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10326 break 2 10327 fi 10328 done 10329 done 10330 IFS=$as_save_IFS 10331 10332 ;; 10333 esac 10334 fi 10335 TR=$ac_cv_path_TR 10336 if test -n "$TR"; then 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10338 $as_echo "$TR" >&6; } 10339 else 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10341 $as_echo "no" >&6; } 10342 fi 10343 10344 10345 test -n "$TR" && break 10346 done 10347 10348 else 10349 # If it succeeded, then it was overridden by the user. We will use it 10350 # for the tool. 10351 10352 # First remove it from the list of overridden variables, so we can test 10353 # for unknown variables in the end. 10354 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10355 10356 # Check if the provided tool contains a complete path. 10357 tool_specified="$TR" 10358 tool_basename="${tool_specified##*/}" 10359 if test "x$tool_basename" = "x$tool_specified"; then 10360 # A command without a complete path is provided, search $PATH. 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10362 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10363 # Extract the first word of "$tool_basename", so it can be a program name with args. 10364 set dummy $tool_basename; ac_word=$2 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10366 $as_echo_n "checking for $ac_word... " >&6; } 10367 if ${ac_cv_path_TR+:} false; then : 10368 $as_echo_n "(cached) " >&6 10369 else 10370 case $TR in 10371 [\\/]* | ?:[\\/]*) 10372 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10373 ;; 10374 *) 10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10376 for as_dir in $PATH 10377 do 10378 IFS=$as_save_IFS 10379 test -z "$as_dir" && as_dir=. 10380 for ac_exec_ext in '' $ac_executable_extensions; do 10381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10382 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10384 break 2 10385 fi 10386 done 10387 done 10388 IFS=$as_save_IFS 10389 10390 ;; 10391 esac 10392 fi 10393 TR=$ac_cv_path_TR 10394 if test -n "$TR"; then 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10396 $as_echo "$TR" >&6; } 10397 else 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10399 $as_echo "no" >&6; } 10400 fi 10401 10402 10403 if test "x$TR" = x; then 10404 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10405 fi 10406 else 10407 # Otherwise we believe it is a complete path. Use it as it is. 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10409 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10411 $as_echo_n "checking for TR... " >&6; } 10412 if test ! -x "$tool_specified"; then 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10414 $as_echo "not found" >&6; } 10415 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10416 fi 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10418 $as_echo "$tool_specified" >&6; } 10419 fi 10420 fi 10421 fi 10422 10423 10424 10425 if test "x$TR" = x; then 10426 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10427 fi 10428 10429 10430 10431 10432 10433 # Publish this variable in the help. 10434 10435 10436 if test "x$UNAME" = x; then 10437 # The variable is not set by user, try to locate tool using the code snippet 10438 for ac_prog in uname 10439 do 10440 # Extract the first word of "$ac_prog", so it can be a program name with args. 10441 set dummy $ac_prog; ac_word=$2 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10443 $as_echo_n "checking for $ac_word... " >&6; } 10444 if ${ac_cv_path_UNAME+:} false; then : 10445 $as_echo_n "(cached) " >&6 10446 else 10447 case $UNAME in 10448 [\\/]* | ?:[\\/]*) 10449 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10450 ;; 10451 *) 10452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10453 for as_dir in $PATH 10454 do 10455 IFS=$as_save_IFS 10456 test -z "$as_dir" && as_dir=. 10457 for ac_exec_ext in '' $ac_executable_extensions; do 10458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10459 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10461 break 2 10462 fi 10463 done 10464 done 10465 IFS=$as_save_IFS 10466 10467 ;; 10468 esac 10469 fi 10470 UNAME=$ac_cv_path_UNAME 10471 if test -n "$UNAME"; then 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10473 $as_echo "$UNAME" >&6; } 10474 else 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10476 $as_echo "no" >&6; } 10477 fi 10478 10479 10480 test -n "$UNAME" && break 10481 done 10482 10483 else 10484 # The variable is set, but is it from the command line or the environment? 10485 10486 # Try to remove the string !UNAME! from our list. 10487 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10488 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10489 # If it failed, the variable was not from the command line. Ignore it, 10490 # but warn the user (except for BASH, which is always set by the calling BASH). 10491 if test "xUNAME" != xBASH; then 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10493 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10494 fi 10495 # Try to locate tool using the code snippet 10496 for ac_prog in uname 10497 do 10498 # Extract the first word of "$ac_prog", so it can be a program name with args. 10499 set dummy $ac_prog; ac_word=$2 10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10501 $as_echo_n "checking for $ac_word... " >&6; } 10502 if ${ac_cv_path_UNAME+:} false; then : 10503 $as_echo_n "(cached) " >&6 10504 else 10505 case $UNAME in 10506 [\\/]* | ?:[\\/]*) 10507 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10508 ;; 10509 *) 10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10511 for as_dir in $PATH 10512 do 10513 IFS=$as_save_IFS 10514 test -z "$as_dir" && as_dir=. 10515 for ac_exec_ext in '' $ac_executable_extensions; do 10516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10517 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10519 break 2 10520 fi 10521 done 10522 done 10523 IFS=$as_save_IFS 10524 10525 ;; 10526 esac 10527 fi 10528 UNAME=$ac_cv_path_UNAME 10529 if test -n "$UNAME"; then 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10531 $as_echo "$UNAME" >&6; } 10532 else 10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10534 $as_echo "no" >&6; } 10535 fi 10536 10537 10538 test -n "$UNAME" && break 10539 done 10540 10541 else 10542 # If it succeeded, then it was overridden by the user. We will use it 10543 # for the tool. 10544 10545 # First remove it from the list of overridden variables, so we can test 10546 # for unknown variables in the end. 10547 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10548 10549 # Check if the provided tool contains a complete path. 10550 tool_specified="$UNAME" 10551 tool_basename="${tool_specified##*/}" 10552 if test "x$tool_basename" = "x$tool_specified"; then 10553 # A command without a complete path is provided, search $PATH. 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10555 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10556 # Extract the first word of "$tool_basename", so it can be a program name with args. 10557 set dummy $tool_basename; ac_word=$2 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10559 $as_echo_n "checking for $ac_word... " >&6; } 10560 if ${ac_cv_path_UNAME+:} false; then : 10561 $as_echo_n "(cached) " >&6 10562 else 10563 case $UNAME in 10564 [\\/]* | ?:[\\/]*) 10565 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10566 ;; 10567 *) 10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10569 for as_dir in $PATH 10570 do 10571 IFS=$as_save_IFS 10572 test -z "$as_dir" && as_dir=. 10573 for ac_exec_ext in '' $ac_executable_extensions; do 10574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10575 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10577 break 2 10578 fi 10579 done 10580 done 10581 IFS=$as_save_IFS 10582 10583 ;; 10584 esac 10585 fi 10586 UNAME=$ac_cv_path_UNAME 10587 if test -n "$UNAME"; then 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10589 $as_echo "$UNAME" >&6; } 10590 else 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10592 $as_echo "no" >&6; } 10593 fi 10594 10595 10596 if test "x$UNAME" = x; then 10597 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10598 fi 10599 else 10600 # Otherwise we believe it is a complete path. Use it as it is. 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10602 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10604 $as_echo_n "checking for UNAME... " >&6; } 10605 if test ! -x "$tool_specified"; then 10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10607 $as_echo "not found" >&6; } 10608 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10609 fi 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10611 $as_echo "$tool_specified" >&6; } 10612 fi 10613 fi 10614 fi 10615 10616 10617 10618 if test "x$UNAME" = x; then 10619 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10620 fi 10621 10622 10623 10624 10625 10626 # Publish this variable in the help. 10627 10628 10629 if test "x$UNIQ" = x; then 10630 # The variable is not set by user, try to locate tool using the code snippet 10631 for ac_prog in uniq 10632 do 10633 # Extract the first word of "$ac_prog", so it can be a program name with args. 10634 set dummy $ac_prog; ac_word=$2 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10636 $as_echo_n "checking for $ac_word... " >&6; } 10637 if ${ac_cv_path_UNIQ+:} false; then : 10638 $as_echo_n "(cached) " >&6 10639 else 10640 case $UNIQ in 10641 [\\/]* | ?:[\\/]*) 10642 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10643 ;; 10644 *) 10645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10646 for as_dir in $PATH 10647 do 10648 IFS=$as_save_IFS 10649 test -z "$as_dir" && as_dir=. 10650 for ac_exec_ext in '' $ac_executable_extensions; do 10651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10652 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10654 break 2 10655 fi 10656 done 10657 done 10658 IFS=$as_save_IFS 10659 10660 ;; 10661 esac 10662 fi 10663 UNIQ=$ac_cv_path_UNIQ 10664 if test -n "$UNIQ"; then 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10666 $as_echo "$UNIQ" >&6; } 10667 else 10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10669 $as_echo "no" >&6; } 10670 fi 10671 10672 10673 test -n "$UNIQ" && break 10674 done 10675 10676 else 10677 # The variable is set, but is it from the command line or the environment? 10678 10679 # Try to remove the string !UNIQ! from our list. 10680 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10681 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10682 # If it failed, the variable was not from the command line. Ignore it, 10683 # but warn the user (except for BASH, which is always set by the calling BASH). 10684 if test "xUNIQ" != xBASH; then 10685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10686 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10687 fi 10688 # Try to locate tool using the code snippet 10689 for ac_prog in uniq 10690 do 10691 # Extract the first word of "$ac_prog", so it can be a program name with args. 10692 set dummy $ac_prog; ac_word=$2 10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10694 $as_echo_n "checking for $ac_word... " >&6; } 10695 if ${ac_cv_path_UNIQ+:} false; then : 10696 $as_echo_n "(cached) " >&6 10697 else 10698 case $UNIQ in 10699 [\\/]* | ?:[\\/]*) 10700 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10701 ;; 10702 *) 10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10704 for as_dir in $PATH 10705 do 10706 IFS=$as_save_IFS 10707 test -z "$as_dir" && as_dir=. 10708 for ac_exec_ext in '' $ac_executable_extensions; do 10709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10710 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10712 break 2 10713 fi 10714 done 10715 done 10716 IFS=$as_save_IFS 10717 10718 ;; 10719 esac 10720 fi 10721 UNIQ=$ac_cv_path_UNIQ 10722 if test -n "$UNIQ"; then 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10724 $as_echo "$UNIQ" >&6; } 10725 else 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10727 $as_echo "no" >&6; } 10728 fi 10729 10730 10731 test -n "$UNIQ" && break 10732 done 10733 10734 else 10735 # If it succeeded, then it was overridden by the user. We will use it 10736 # for the tool. 10737 10738 # First remove it from the list of overridden variables, so we can test 10739 # for unknown variables in the end. 10740 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10741 10742 # Check if the provided tool contains a complete path. 10743 tool_specified="$UNIQ" 10744 tool_basename="${tool_specified##*/}" 10745 if test "x$tool_basename" = "x$tool_specified"; then 10746 # A command without a complete path is provided, search $PATH. 10747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10748 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10749 # Extract the first word of "$tool_basename", so it can be a program name with args. 10750 set dummy $tool_basename; ac_word=$2 10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10752 $as_echo_n "checking for $ac_word... " >&6; } 10753 if ${ac_cv_path_UNIQ+:} false; then : 10754 $as_echo_n "(cached) " >&6 10755 else 10756 case $UNIQ in 10757 [\\/]* | ?:[\\/]*) 10758 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10759 ;; 10760 *) 10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10762 for as_dir in $PATH 10763 do 10764 IFS=$as_save_IFS 10765 test -z "$as_dir" && as_dir=. 10766 for ac_exec_ext in '' $ac_executable_extensions; do 10767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10768 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10770 break 2 10771 fi 10772 done 10773 done 10774 IFS=$as_save_IFS 10775 10776 ;; 10777 esac 10778 fi 10779 UNIQ=$ac_cv_path_UNIQ 10780 if test -n "$UNIQ"; then 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10782 $as_echo "$UNIQ" >&6; } 10783 else 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10785 $as_echo "no" >&6; } 10786 fi 10787 10788 10789 if test "x$UNIQ" = x; then 10790 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10791 fi 10792 else 10793 # Otherwise we believe it is a complete path. Use it as it is. 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10795 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10797 $as_echo_n "checking for UNIQ... " >&6; } 10798 if test ! -x "$tool_specified"; then 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10800 $as_echo "not found" >&6; } 10801 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10802 fi 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10804 $as_echo "$tool_specified" >&6; } 10805 fi 10806 fi 10807 fi 10808 10809 10810 10811 if test "x$UNIQ" = x; then 10812 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10813 fi 10814 10815 10816 10817 10818 10819 # Publish this variable in the help. 10820 10821 10822 if test "x$WC" = x; then 10823 # The variable is not set by user, try to locate tool using the code snippet 10824 for ac_prog in wc 10825 do 10826 # Extract the first word of "$ac_prog", so it can be a program name with args. 10827 set dummy $ac_prog; ac_word=$2 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10829 $as_echo_n "checking for $ac_word... " >&6; } 10830 if ${ac_cv_path_WC+:} false; then : 10831 $as_echo_n "(cached) " >&6 10832 else 10833 case $WC in 10834 [\\/]* | ?:[\\/]*) 10835 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10836 ;; 10837 *) 10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10839 for as_dir in $PATH 10840 do 10841 IFS=$as_save_IFS 10842 test -z "$as_dir" && as_dir=. 10843 for ac_exec_ext in '' $ac_executable_extensions; do 10844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10845 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10847 break 2 10848 fi 10849 done 10850 done 10851 IFS=$as_save_IFS 10852 10853 ;; 10854 esac 10855 fi 10856 WC=$ac_cv_path_WC 10857 if test -n "$WC"; then 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10859 $as_echo "$WC" >&6; } 10860 else 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10862 $as_echo "no" >&6; } 10863 fi 10864 10865 10866 test -n "$WC" && break 10867 done 10868 10869 else 10870 # The variable is set, but is it from the command line or the environment? 10871 10872 # Try to remove the string !WC! from our list. 10873 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10874 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10875 # If it failed, the variable was not from the command line. Ignore it, 10876 # but warn the user (except for BASH, which is always set by the calling BASH). 10877 if test "xWC" != xBASH; then 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10879 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10880 fi 10881 # Try to locate tool using the code snippet 10882 for ac_prog in wc 10883 do 10884 # Extract the first word of "$ac_prog", so it can be a program name with args. 10885 set dummy $ac_prog; ac_word=$2 10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10887 $as_echo_n "checking for $ac_word... " >&6; } 10888 if ${ac_cv_path_WC+:} false; then : 10889 $as_echo_n "(cached) " >&6 10890 else 10891 case $WC in 10892 [\\/]* | ?:[\\/]*) 10893 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10894 ;; 10895 *) 10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10897 for as_dir in $PATH 10898 do 10899 IFS=$as_save_IFS 10900 test -z "$as_dir" && as_dir=. 10901 for ac_exec_ext in '' $ac_executable_extensions; do 10902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10903 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10905 break 2 10906 fi 10907 done 10908 done 10909 IFS=$as_save_IFS 10910 10911 ;; 10912 esac 10913 fi 10914 WC=$ac_cv_path_WC 10915 if test -n "$WC"; then 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10917 $as_echo "$WC" >&6; } 10918 else 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10920 $as_echo "no" >&6; } 10921 fi 10922 10923 10924 test -n "$WC" && break 10925 done 10926 10927 else 10928 # If it succeeded, then it was overridden by the user. We will use it 10929 # for the tool. 10930 10931 # First remove it from the list of overridden variables, so we can test 10932 # for unknown variables in the end. 10933 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10934 10935 # Check if the provided tool contains a complete path. 10936 tool_specified="$WC" 10937 tool_basename="${tool_specified##*/}" 10938 if test "x$tool_basename" = "x$tool_specified"; then 10939 # A command without a complete path is provided, search $PATH. 10940 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10941 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10942 # Extract the first word of "$tool_basename", so it can be a program name with args. 10943 set dummy $tool_basename; ac_word=$2 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10945 $as_echo_n "checking for $ac_word... " >&6; } 10946 if ${ac_cv_path_WC+:} false; then : 10947 $as_echo_n "(cached) " >&6 10948 else 10949 case $WC in 10950 [\\/]* | ?:[\\/]*) 10951 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10952 ;; 10953 *) 10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10955 for as_dir in $PATH 10956 do 10957 IFS=$as_save_IFS 10958 test -z "$as_dir" && as_dir=. 10959 for ac_exec_ext in '' $ac_executable_extensions; do 10960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10961 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10963 break 2 10964 fi 10965 done 10966 done 10967 IFS=$as_save_IFS 10968 10969 ;; 10970 esac 10971 fi 10972 WC=$ac_cv_path_WC 10973 if test -n "$WC"; then 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10975 $as_echo "$WC" >&6; } 10976 else 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10978 $as_echo "no" >&6; } 10979 fi 10980 10981 10982 if test "x$WC" = x; then 10983 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10984 fi 10985 else 10986 # Otherwise we believe it is a complete path. Use it as it is. 10987 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10988 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10990 $as_echo_n "checking for WC... " >&6; } 10991 if test ! -x "$tool_specified"; then 10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10993 $as_echo "not found" >&6; } 10994 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10995 fi 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10997 $as_echo "$tool_specified" >&6; } 10998 fi 10999 fi 11000 fi 11001 11002 11003 11004 if test "x$WC" = x; then 11005 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11006 fi 11007 11008 11009 11010 11011 11012 # Publish this variable in the help. 11013 11014 11015 if test "x$WHICH" = x; then 11016 # The variable is not set by user, try to locate tool using the code snippet 11017 for ac_prog in which 11018 do 11019 # Extract the first word of "$ac_prog", so it can be a program name with args. 11020 set dummy $ac_prog; ac_word=$2 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11022 $as_echo_n "checking for $ac_word... " >&6; } 11023 if ${ac_cv_path_WHICH+:} false; then : 11024 $as_echo_n "(cached) " >&6 11025 else 11026 case $WHICH in 11027 [\\/]* | ?:[\\/]*) 11028 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11029 ;; 11030 *) 11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11032 for as_dir in $PATH 11033 do 11034 IFS=$as_save_IFS 11035 test -z "$as_dir" && as_dir=. 11036 for ac_exec_ext in '' $ac_executable_extensions; do 11037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11038 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11040 break 2 11041 fi 11042 done 11043 done 11044 IFS=$as_save_IFS 11045 11046 ;; 11047 esac 11048 fi 11049 WHICH=$ac_cv_path_WHICH 11050 if test -n "$WHICH"; then 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11052 $as_echo "$WHICH" >&6; } 11053 else 11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11055 $as_echo "no" >&6; } 11056 fi 11057 11058 11059 test -n "$WHICH" && break 11060 done 11061 11062 else 11063 # The variable is set, but is it from the command line or the environment? 11064 11065 # Try to remove the string !WHICH! from our list. 11066 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11067 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11068 # If it failed, the variable was not from the command line. Ignore it, 11069 # but warn the user (except for BASH, which is always set by the calling BASH). 11070 if test "xWHICH" != xBASH; then 11071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11072 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11073 fi 11074 # Try to locate tool using the code snippet 11075 for ac_prog in which 11076 do 11077 # Extract the first word of "$ac_prog", so it can be a program name with args. 11078 set dummy $ac_prog; ac_word=$2 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11080 $as_echo_n "checking for $ac_word... " >&6; } 11081 if ${ac_cv_path_WHICH+:} false; then : 11082 $as_echo_n "(cached) " >&6 11083 else 11084 case $WHICH in 11085 [\\/]* | ?:[\\/]*) 11086 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11087 ;; 11088 *) 11089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11090 for as_dir in $PATH 11091 do 11092 IFS=$as_save_IFS 11093 test -z "$as_dir" && as_dir=. 11094 for ac_exec_ext in '' $ac_executable_extensions; do 11095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11096 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11098 break 2 11099 fi 11100 done 11101 done 11102 IFS=$as_save_IFS 11103 11104 ;; 11105 esac 11106 fi 11107 WHICH=$ac_cv_path_WHICH 11108 if test -n "$WHICH"; then 11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11110 $as_echo "$WHICH" >&6; } 11111 else 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11113 $as_echo "no" >&6; } 11114 fi 11115 11116 11117 test -n "$WHICH" && break 11118 done 11119 11120 else 11121 # If it succeeded, then it was overridden by the user. We will use it 11122 # for the tool. 11123 11124 # First remove it from the list of overridden variables, so we can test 11125 # for unknown variables in the end. 11126 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11127 11128 # Check if the provided tool contains a complete path. 11129 tool_specified="$WHICH" 11130 tool_basename="${tool_specified##*/}" 11131 if test "x$tool_basename" = "x$tool_specified"; then 11132 # A command without a complete path is provided, search $PATH. 11133 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11134 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11135 # Extract the first word of "$tool_basename", so it can be a program name with args. 11136 set dummy $tool_basename; ac_word=$2 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11138 $as_echo_n "checking for $ac_word... " >&6; } 11139 if ${ac_cv_path_WHICH+:} false; then : 11140 $as_echo_n "(cached) " >&6 11141 else 11142 case $WHICH in 11143 [\\/]* | ?:[\\/]*) 11144 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11145 ;; 11146 *) 11147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11148 for as_dir in $PATH 11149 do 11150 IFS=$as_save_IFS 11151 test -z "$as_dir" && as_dir=. 11152 for ac_exec_ext in '' $ac_executable_extensions; do 11153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11154 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11156 break 2 11157 fi 11158 done 11159 done 11160 IFS=$as_save_IFS 11161 11162 ;; 11163 esac 11164 fi 11165 WHICH=$ac_cv_path_WHICH 11166 if test -n "$WHICH"; then 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11168 $as_echo "$WHICH" >&6; } 11169 else 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11171 $as_echo "no" >&6; } 11172 fi 11173 11174 11175 if test "x$WHICH" = x; then 11176 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11177 fi 11178 else 11179 # Otherwise we believe it is a complete path. Use it as it is. 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11181 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11183 $as_echo_n "checking for WHICH... " >&6; } 11184 if test ! -x "$tool_specified"; then 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11186 $as_echo "not found" >&6; } 11187 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11188 fi 11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11190 $as_echo "$tool_specified" >&6; } 11191 fi 11192 fi 11193 fi 11194 11195 11196 11197 if test "x$WHICH" = x; then 11198 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11199 fi 11200 11201 11202 11203 11204 11205 # Publish this variable in the help. 11206 11207 11208 if test "x$XARGS" = x; then 11209 # The variable is not set by user, try to locate tool using the code snippet 11210 for ac_prog in xargs 11211 do 11212 # Extract the first word of "$ac_prog", so it can be a program name with args. 11213 set dummy $ac_prog; ac_word=$2 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11215 $as_echo_n "checking for $ac_word... " >&6; } 11216 if ${ac_cv_path_XARGS+:} false; then : 11217 $as_echo_n "(cached) " >&6 11218 else 11219 case $XARGS in 11220 [\\/]* | ?:[\\/]*) 11221 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11222 ;; 11223 *) 11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11225 for as_dir in $PATH 11226 do 11227 IFS=$as_save_IFS 11228 test -z "$as_dir" && as_dir=. 11229 for ac_exec_ext in '' $ac_executable_extensions; do 11230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11231 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11233 break 2 11234 fi 11235 done 11236 done 11237 IFS=$as_save_IFS 11238 11239 ;; 11240 esac 11241 fi 11242 XARGS=$ac_cv_path_XARGS 11243 if test -n "$XARGS"; then 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11245 $as_echo "$XARGS" >&6; } 11246 else 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11248 $as_echo "no" >&6; } 11249 fi 11250 11251 11252 test -n "$XARGS" && break 11253 done 11254 11255 else 11256 # The variable is set, but is it from the command line or the environment? 11257 11258 # Try to remove the string !XARGS! from our list. 11259 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11260 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11261 # If it failed, the variable was not from the command line. Ignore it, 11262 # but warn the user (except for BASH, which is always set by the calling BASH). 11263 if test "xXARGS" != xBASH; then 11264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11265 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11266 fi 11267 # Try to locate tool using the code snippet 11268 for ac_prog in xargs 11269 do 11270 # Extract the first word of "$ac_prog", so it can be a program name with args. 11271 set dummy $ac_prog; ac_word=$2 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11273 $as_echo_n "checking for $ac_word... " >&6; } 11274 if ${ac_cv_path_XARGS+:} false; then : 11275 $as_echo_n "(cached) " >&6 11276 else 11277 case $XARGS in 11278 [\\/]* | ?:[\\/]*) 11279 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11280 ;; 11281 *) 11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11283 for as_dir in $PATH 11284 do 11285 IFS=$as_save_IFS 11286 test -z "$as_dir" && as_dir=. 11287 for ac_exec_ext in '' $ac_executable_extensions; do 11288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11289 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11291 break 2 11292 fi 11293 done 11294 done 11295 IFS=$as_save_IFS 11296 11297 ;; 11298 esac 11299 fi 11300 XARGS=$ac_cv_path_XARGS 11301 if test -n "$XARGS"; then 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11303 $as_echo "$XARGS" >&6; } 11304 else 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11306 $as_echo "no" >&6; } 11307 fi 11308 11309 11310 test -n "$XARGS" && break 11311 done 11312 11313 else 11314 # If it succeeded, then it was overridden by the user. We will use it 11315 # for the tool. 11316 11317 # First remove it from the list of overridden variables, so we can test 11318 # for unknown variables in the end. 11319 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11320 11321 # Check if the provided tool contains a complete path. 11322 tool_specified="$XARGS" 11323 tool_basename="${tool_specified##*/}" 11324 if test "x$tool_basename" = "x$tool_specified"; then 11325 # A command without a complete path is provided, search $PATH. 11326 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11327 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11328 # Extract the first word of "$tool_basename", so it can be a program name with args. 11329 set dummy $tool_basename; ac_word=$2 11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11331 $as_echo_n "checking for $ac_word... " >&6; } 11332 if ${ac_cv_path_XARGS+:} false; then : 11333 $as_echo_n "(cached) " >&6 11334 else 11335 case $XARGS in 11336 [\\/]* | ?:[\\/]*) 11337 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11338 ;; 11339 *) 11340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11341 for as_dir in $PATH 11342 do 11343 IFS=$as_save_IFS 11344 test -z "$as_dir" && as_dir=. 11345 for ac_exec_ext in '' $ac_executable_extensions; do 11346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11347 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11349 break 2 11350 fi 11351 done 11352 done 11353 IFS=$as_save_IFS 11354 11355 ;; 11356 esac 11357 fi 11358 XARGS=$ac_cv_path_XARGS 11359 if test -n "$XARGS"; then 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11361 $as_echo "$XARGS" >&6; } 11362 else 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11364 $as_echo "no" >&6; } 11365 fi 11366 11367 11368 if test "x$XARGS" = x; then 11369 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11370 fi 11371 else 11372 # Otherwise we believe it is a complete path. Use it as it is. 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11374 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11376 $as_echo_n "checking for XARGS... " >&6; } 11377 if test ! -x "$tool_specified"; then 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11379 $as_echo "not found" >&6; } 11380 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11381 fi 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11383 $as_echo "$tool_specified" >&6; } 11384 fi 11385 fi 11386 fi 11387 11388 11389 11390 if test "x$XARGS" = x; then 11391 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11392 fi 11393 11394 11395 11396 # Then required tools that require some special treatment. 11397 11398 11399 # Publish this variable in the help. 11400 11401 11402 if test "x$AWK" = x; then 11403 # The variable is not set by user, try to locate tool using the code snippet 11404 for ac_prog in gawk mawk nawk awk 11405 do 11406 # Extract the first word of "$ac_prog", so it can be a program name with args. 11407 set dummy $ac_prog; ac_word=$2 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11409 $as_echo_n "checking for $ac_word... " >&6; } 11410 if ${ac_cv_prog_AWK+:} false; then : 11411 $as_echo_n "(cached) " >&6 11412 else 11413 if test -n "$AWK"; then 11414 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11415 else 11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11417 for as_dir in $PATH 11418 do 11419 IFS=$as_save_IFS 11420 test -z "$as_dir" && as_dir=. 11421 for ac_exec_ext in '' $ac_executable_extensions; do 11422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11423 ac_cv_prog_AWK="$ac_prog" 11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11425 break 2 11426 fi 11427 done 11428 done 11429 IFS=$as_save_IFS 11430 11431 fi 11432 fi 11433 AWK=$ac_cv_prog_AWK 11434 if test -n "$AWK"; then 11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11436 $as_echo "$AWK" >&6; } 11437 else 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11439 $as_echo "no" >&6; } 11440 fi 11441 11442 11443 test -n "$AWK" && break 11444 done 11445 11446 else 11447 # The variable is set, but is it from the command line or the environment? 11448 11449 # Try to remove the string !AWK! from our list. 11450 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11451 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11452 # If it failed, the variable was not from the command line. Ignore it, 11453 # but warn the user (except for BASH, which is always set by the calling BASH). 11454 if test "xAWK" != xBASH; then 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11456 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11457 fi 11458 # Try to locate tool using the code snippet 11459 for ac_prog in gawk mawk nawk awk 11460 do 11461 # Extract the first word of "$ac_prog", so it can be a program name with args. 11462 set dummy $ac_prog; ac_word=$2 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11464 $as_echo_n "checking for $ac_word... " >&6; } 11465 if ${ac_cv_prog_AWK+:} false; then : 11466 $as_echo_n "(cached) " >&6 11467 else 11468 if test -n "$AWK"; then 11469 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11470 else 11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11472 for as_dir in $PATH 11473 do 11474 IFS=$as_save_IFS 11475 test -z "$as_dir" && as_dir=. 11476 for ac_exec_ext in '' $ac_executable_extensions; do 11477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11478 ac_cv_prog_AWK="$ac_prog" 11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11480 break 2 11481 fi 11482 done 11483 done 11484 IFS=$as_save_IFS 11485 11486 fi 11487 fi 11488 AWK=$ac_cv_prog_AWK 11489 if test -n "$AWK"; then 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11491 $as_echo "$AWK" >&6; } 11492 else 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11494 $as_echo "no" >&6; } 11495 fi 11496 11497 11498 test -n "$AWK" && break 11499 done 11500 11501 else 11502 # If it succeeded, then it was overridden by the user. We will use it 11503 # for the tool. 11504 11505 # First remove it from the list of overridden variables, so we can test 11506 # for unknown variables in the end. 11507 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11508 11509 # Check if the provided tool contains a complete path. 11510 tool_specified="$AWK" 11511 tool_basename="${tool_specified##*/}" 11512 if test "x$tool_basename" = "x$tool_specified"; then 11513 # A command without a complete path is provided, search $PATH. 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11515 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11516 # Extract the first word of "$tool_basename", so it can be a program name with args. 11517 set dummy $tool_basename; ac_word=$2 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11519 $as_echo_n "checking for $ac_word... " >&6; } 11520 if ${ac_cv_path_AWK+:} false; then : 11521 $as_echo_n "(cached) " >&6 11522 else 11523 case $AWK in 11524 [\\/]* | ?:[\\/]*) 11525 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11526 ;; 11527 *) 11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11529 for as_dir in $PATH 11530 do 11531 IFS=$as_save_IFS 11532 test -z "$as_dir" && as_dir=. 11533 for ac_exec_ext in '' $ac_executable_extensions; do 11534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11535 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11537 break 2 11538 fi 11539 done 11540 done 11541 IFS=$as_save_IFS 11542 11543 ;; 11544 esac 11545 fi 11546 AWK=$ac_cv_path_AWK 11547 if test -n "$AWK"; then 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11549 $as_echo "$AWK" >&6; } 11550 else 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11552 $as_echo "no" >&6; } 11553 fi 11554 11555 11556 if test "x$AWK" = x; then 11557 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11558 fi 11559 else 11560 # Otherwise we believe it is a complete path. Use it as it is. 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11562 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11564 $as_echo_n "checking for AWK... " >&6; } 11565 if test ! -x "$tool_specified"; then 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11567 $as_echo "not found" >&6; } 11568 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11569 fi 11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11571 $as_echo "$tool_specified" >&6; } 11572 fi 11573 fi 11574 fi 11575 11576 11577 if test "x$AWK" = x; then 11578 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11579 fi 11580 11581 11582 11583 11584 # Publish this variable in the help. 11585 11586 11587 if test "x$GREP" = x; then 11588 # The variable is not set by user, try to locate tool using the code snippet 11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11590 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11591 if ${ac_cv_path_GREP+:} false; then : 11592 $as_echo_n "(cached) " >&6 11593 else 11594 if test -z "$GREP"; then 11595 ac_path_GREP_found=false 11596 # Loop through the user's path and test for each of PROGNAME-LIST 11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11599 do 11600 IFS=$as_save_IFS 11601 test -z "$as_dir" && as_dir=. 11602 for ac_prog in grep ggrep; do 11603 for ac_exec_ext in '' $ac_executable_extensions; do 11604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11605 as_fn_executable_p "$ac_path_GREP" || continue 11606 # Check for GNU ac_path_GREP and select it if it is found. 11607 # Check for GNU $ac_path_GREP 11608 case `"$ac_path_GREP" --version 2>&1` in 11609 *GNU*) 11610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11611 *) 11612 ac_count=0 11613 $as_echo_n 0123456789 >"conftest.in" 11614 while : 11615 do 11616 cat "conftest.in" "conftest.in" >"conftest.tmp" 11617 mv "conftest.tmp" "conftest.in" 11618 cp "conftest.in" "conftest.nl" 11619 $as_echo 'GREP' >> "conftest.nl" 11620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11622 as_fn_arith $ac_count + 1 && ac_count=$as_val 11623 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11624 # Best one so far, save it but keep looking for a better one 11625 ac_cv_path_GREP="$ac_path_GREP" 11626 ac_path_GREP_max=$ac_count 11627 fi 11628 # 10*(2^10) chars as input seems more than enough 11629 test $ac_count -gt 10 && break 11630 done 11631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11632 esac 11633 11634 $ac_path_GREP_found && break 3 11635 done 11636 done 11637 done 11638 IFS=$as_save_IFS 11639 if test -z "$ac_cv_path_GREP"; then 11640 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11641 fi 11642 else 11643 ac_cv_path_GREP=$GREP 11644 fi 11645 11646 fi 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11648 $as_echo "$ac_cv_path_GREP" >&6; } 11649 GREP="$ac_cv_path_GREP" 11650 11651 11652 else 11653 # The variable is set, but is it from the command line or the environment? 11654 11655 # Try to remove the string !GREP! from our list. 11656 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11657 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11658 # If it failed, the variable was not from the command line. Ignore it, 11659 # but warn the user (except for BASH, which is always set by the calling BASH). 11660 if test "xGREP" != xBASH; then 11661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11662 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11663 fi 11664 # Try to locate tool using the code snippet 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11666 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11667 if ${ac_cv_path_GREP+:} false; then : 11668 $as_echo_n "(cached) " >&6 11669 else 11670 if test -z "$GREP"; then 11671 ac_path_GREP_found=false 11672 # Loop through the user's path and test for each of PROGNAME-LIST 11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11675 do 11676 IFS=$as_save_IFS 11677 test -z "$as_dir" && as_dir=. 11678 for ac_prog in grep ggrep; do 11679 for ac_exec_ext in '' $ac_executable_extensions; do 11680 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11681 as_fn_executable_p "$ac_path_GREP" || continue 11682 # Check for GNU ac_path_GREP and select it if it is found. 11683 # Check for GNU $ac_path_GREP 11684 case `"$ac_path_GREP" --version 2>&1` in 11685 *GNU*) 11686 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11687 *) 11688 ac_count=0 11689 $as_echo_n 0123456789 >"conftest.in" 11690 while : 11691 do 11692 cat "conftest.in" "conftest.in" >"conftest.tmp" 11693 mv "conftest.tmp" "conftest.in" 11694 cp "conftest.in" "conftest.nl" 11695 $as_echo 'GREP' >> "conftest.nl" 11696 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11698 as_fn_arith $ac_count + 1 && ac_count=$as_val 11699 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11700 # Best one so far, save it but keep looking for a better one 11701 ac_cv_path_GREP="$ac_path_GREP" 11702 ac_path_GREP_max=$ac_count 11703 fi 11704 # 10*(2^10) chars as input seems more than enough 11705 test $ac_count -gt 10 && break 11706 done 11707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11708 esac 11709 11710 $ac_path_GREP_found && break 3 11711 done 11712 done 11713 done 11714 IFS=$as_save_IFS 11715 if test -z "$ac_cv_path_GREP"; then 11716 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11717 fi 11718 else 11719 ac_cv_path_GREP=$GREP 11720 fi 11721 11722 fi 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11724 $as_echo "$ac_cv_path_GREP" >&6; } 11725 GREP="$ac_cv_path_GREP" 11726 11727 11728 else 11729 # If it succeeded, then it was overridden by the user. We will use it 11730 # for the tool. 11731 11732 # First remove it from the list of overridden variables, so we can test 11733 # for unknown variables in the end. 11734 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11735 11736 # Check if the provided tool contains a complete path. 11737 tool_specified="$GREP" 11738 tool_basename="${tool_specified##*/}" 11739 if test "x$tool_basename" = "x$tool_specified"; then 11740 # A command without a complete path is provided, search $PATH. 11741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11742 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11743 # Extract the first word of "$tool_basename", so it can be a program name with args. 11744 set dummy $tool_basename; ac_word=$2 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11746 $as_echo_n "checking for $ac_word... " >&6; } 11747 if ${ac_cv_path_GREP+:} false; then : 11748 $as_echo_n "(cached) " >&6 11749 else 11750 case $GREP in 11751 [\\/]* | ?:[\\/]*) 11752 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11753 ;; 11754 *) 11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11756 for as_dir in $PATH 11757 do 11758 IFS=$as_save_IFS 11759 test -z "$as_dir" && as_dir=. 11760 for ac_exec_ext in '' $ac_executable_extensions; do 11761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11762 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11764 break 2 11765 fi 11766 done 11767 done 11768 IFS=$as_save_IFS 11769 11770 ;; 11771 esac 11772 fi 11773 GREP=$ac_cv_path_GREP 11774 if test -n "$GREP"; then 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11776 $as_echo "$GREP" >&6; } 11777 else 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11779 $as_echo "no" >&6; } 11780 fi 11781 11782 11783 if test "x$GREP" = x; then 11784 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11785 fi 11786 else 11787 # Otherwise we believe it is a complete path. Use it as it is. 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11789 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11791 $as_echo_n "checking for GREP... " >&6; } 11792 if test ! -x "$tool_specified"; then 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11794 $as_echo "not found" >&6; } 11795 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11796 fi 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11798 $as_echo "$tool_specified" >&6; } 11799 fi 11800 fi 11801 fi 11802 11803 11804 if test "x$GREP" = x; then 11805 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11806 fi 11807 11808 11809 11810 11811 # Publish this variable in the help. 11812 11813 11814 if test "x$EGREP" = x; then 11815 # The variable is not set by user, try to locate tool using the code snippet 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11817 $as_echo_n "checking for egrep... " >&6; } 11818 if ${ac_cv_path_EGREP+:} false; then : 11819 $as_echo_n "(cached) " >&6 11820 else 11821 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11822 then ac_cv_path_EGREP="$GREP -E" 11823 else 11824 if test -z "$EGREP"; then 11825 ac_path_EGREP_found=false 11826 # Loop through the user's path and test for each of PROGNAME-LIST 11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11828 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11829 do 11830 IFS=$as_save_IFS 11831 test -z "$as_dir" && as_dir=. 11832 for ac_prog in egrep; do 11833 for ac_exec_ext in '' $ac_executable_extensions; do 11834 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11835 as_fn_executable_p "$ac_path_EGREP" || continue 11836 # Check for GNU ac_path_EGREP and select it if it is found. 11837 # Check for GNU $ac_path_EGREP 11838 case `"$ac_path_EGREP" --version 2>&1` in 11839 *GNU*) 11840 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11841 *) 11842 ac_count=0 11843 $as_echo_n 0123456789 >"conftest.in" 11844 while : 11845 do 11846 cat "conftest.in" "conftest.in" >"conftest.tmp" 11847 mv "conftest.tmp" "conftest.in" 11848 cp "conftest.in" "conftest.nl" 11849 $as_echo 'EGREP' >> "conftest.nl" 11850 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11852 as_fn_arith $ac_count + 1 && ac_count=$as_val 11853 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11854 # Best one so far, save it but keep looking for a better one 11855 ac_cv_path_EGREP="$ac_path_EGREP" 11856 ac_path_EGREP_max=$ac_count 11857 fi 11858 # 10*(2^10) chars as input seems more than enough 11859 test $ac_count -gt 10 && break 11860 done 11861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11862 esac 11863 11864 $ac_path_EGREP_found && break 3 11865 done 11866 done 11867 done 11868 IFS=$as_save_IFS 11869 if test -z "$ac_cv_path_EGREP"; then 11870 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11871 fi 11872 else 11873 ac_cv_path_EGREP=$EGREP 11874 fi 11875 11876 fi 11877 fi 11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11879 $as_echo "$ac_cv_path_EGREP" >&6; } 11880 EGREP="$ac_cv_path_EGREP" 11881 11882 11883 else 11884 # The variable is set, but is it from the command line or the environment? 11885 11886 # Try to remove the string !EGREP! from our list. 11887 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11888 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11889 # If it failed, the variable was not from the command line. Ignore it, 11890 # but warn the user (except for BASH, which is always set by the calling BASH). 11891 if test "xEGREP" != xBASH; then 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11893 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11894 fi 11895 # Try to locate tool using the code snippet 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11897 $as_echo_n "checking for egrep... " >&6; } 11898 if ${ac_cv_path_EGREP+:} false; then : 11899 $as_echo_n "(cached) " >&6 11900 else 11901 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11902 then ac_cv_path_EGREP="$GREP -E" 11903 else 11904 if test -z "$EGREP"; then 11905 ac_path_EGREP_found=false 11906 # Loop through the user's path and test for each of PROGNAME-LIST 11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11909 do 11910 IFS=$as_save_IFS 11911 test -z "$as_dir" && as_dir=. 11912 for ac_prog in egrep; do 11913 for ac_exec_ext in '' $ac_executable_extensions; do 11914 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11915 as_fn_executable_p "$ac_path_EGREP" || continue 11916 # Check for GNU ac_path_EGREP and select it if it is found. 11917 # Check for GNU $ac_path_EGREP 11918 case `"$ac_path_EGREP" --version 2>&1` in 11919 *GNU*) 11920 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11921 *) 11922 ac_count=0 11923 $as_echo_n 0123456789 >"conftest.in" 11924 while : 11925 do 11926 cat "conftest.in" "conftest.in" >"conftest.tmp" 11927 mv "conftest.tmp" "conftest.in" 11928 cp "conftest.in" "conftest.nl" 11929 $as_echo 'EGREP' >> "conftest.nl" 11930 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11932 as_fn_arith $ac_count + 1 && ac_count=$as_val 11933 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11934 # Best one so far, save it but keep looking for a better one 11935 ac_cv_path_EGREP="$ac_path_EGREP" 11936 ac_path_EGREP_max=$ac_count 11937 fi 11938 # 10*(2^10) chars as input seems more than enough 11939 test $ac_count -gt 10 && break 11940 done 11941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11942 esac 11943 11944 $ac_path_EGREP_found && break 3 11945 done 11946 done 11947 done 11948 IFS=$as_save_IFS 11949 if test -z "$ac_cv_path_EGREP"; then 11950 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11951 fi 11952 else 11953 ac_cv_path_EGREP=$EGREP 11954 fi 11955 11956 fi 11957 fi 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11959 $as_echo "$ac_cv_path_EGREP" >&6; } 11960 EGREP="$ac_cv_path_EGREP" 11961 11962 11963 else 11964 # If it succeeded, then it was overridden by the user. We will use it 11965 # for the tool. 11966 11967 # First remove it from the list of overridden variables, so we can test 11968 # for unknown variables in the end. 11969 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11970 11971 # Check if the provided tool contains a complete path. 11972 tool_specified="$EGREP" 11973 tool_basename="${tool_specified##*/}" 11974 if test "x$tool_basename" = "x$tool_specified"; then 11975 # A command without a complete path is provided, search $PATH. 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11977 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11978 # Extract the first word of "$tool_basename", so it can be a program name with args. 11979 set dummy $tool_basename; ac_word=$2 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11981 $as_echo_n "checking for $ac_word... " >&6; } 11982 if ${ac_cv_path_EGREP+:} false; then : 11983 $as_echo_n "(cached) " >&6 11984 else 11985 case $EGREP in 11986 [\\/]* | ?:[\\/]*) 11987 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11988 ;; 11989 *) 11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11991 for as_dir in $PATH 11992 do 11993 IFS=$as_save_IFS 11994 test -z "$as_dir" && as_dir=. 11995 for ac_exec_ext in '' $ac_executable_extensions; do 11996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11997 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11999 break 2 12000 fi 12001 done 12002 done 12003 IFS=$as_save_IFS 12004 12005 ;; 12006 esac 12007 fi 12008 EGREP=$ac_cv_path_EGREP 12009 if test -n "$EGREP"; then 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12011 $as_echo "$EGREP" >&6; } 12012 else 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12014 $as_echo "no" >&6; } 12015 fi 12016 12017 12018 if test "x$EGREP" = x; then 12019 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12020 fi 12021 else 12022 # Otherwise we believe it is a complete path. Use it as it is. 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12024 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12026 $as_echo_n "checking for EGREP... " >&6; } 12027 if test ! -x "$tool_specified"; then 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12029 $as_echo "not found" >&6; } 12030 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12031 fi 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12033 $as_echo "$tool_specified" >&6; } 12034 fi 12035 fi 12036 fi 12037 12038 12039 if test "x$EGREP" = x; then 12040 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12041 fi 12042 12043 12044 12045 12046 # Publish this variable in the help. 12047 12048 12049 if test "x$FGREP" = x; then 12050 # The variable is not set by user, try to locate tool using the code snippet 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12052 $as_echo_n "checking for fgrep... " >&6; } 12053 if ${ac_cv_path_FGREP+:} false; then : 12054 $as_echo_n "(cached) " >&6 12055 else 12056 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12057 then ac_cv_path_FGREP="$GREP -F" 12058 else 12059 if test -z "$FGREP"; then 12060 ac_path_FGREP_found=false 12061 # Loop through the user's path and test for each of PROGNAME-LIST 12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12064 do 12065 IFS=$as_save_IFS 12066 test -z "$as_dir" && as_dir=. 12067 for ac_prog in fgrep; do 12068 for ac_exec_ext in '' $ac_executable_extensions; do 12069 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12070 as_fn_executable_p "$ac_path_FGREP" || continue 12071 # Check for GNU ac_path_FGREP and select it if it is found. 12072 # Check for GNU $ac_path_FGREP 12073 case `"$ac_path_FGREP" --version 2>&1` in 12074 *GNU*) 12075 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12076 *) 12077 ac_count=0 12078 $as_echo_n 0123456789 >"conftest.in" 12079 while : 12080 do 12081 cat "conftest.in" "conftest.in" >"conftest.tmp" 12082 mv "conftest.tmp" "conftest.in" 12083 cp "conftest.in" "conftest.nl" 12084 $as_echo 'FGREP' >> "conftest.nl" 12085 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12087 as_fn_arith $ac_count + 1 && ac_count=$as_val 12088 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12089 # Best one so far, save it but keep looking for a better one 12090 ac_cv_path_FGREP="$ac_path_FGREP" 12091 ac_path_FGREP_max=$ac_count 12092 fi 12093 # 10*(2^10) chars as input seems more than enough 12094 test $ac_count -gt 10 && break 12095 done 12096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12097 esac 12098 12099 $ac_path_FGREP_found && break 3 12100 done 12101 done 12102 done 12103 IFS=$as_save_IFS 12104 if test -z "$ac_cv_path_FGREP"; then 12105 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12106 fi 12107 else 12108 ac_cv_path_FGREP=$FGREP 12109 fi 12110 12111 fi 12112 fi 12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12114 $as_echo "$ac_cv_path_FGREP" >&6; } 12115 FGREP="$ac_cv_path_FGREP" 12116 12117 12118 else 12119 # The variable is set, but is it from the command line or the environment? 12120 12121 # Try to remove the string !FGREP! from our list. 12122 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12123 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12124 # If it failed, the variable was not from the command line. Ignore it, 12125 # but warn the user (except for BASH, which is always set by the calling BASH). 12126 if test "xFGREP" != xBASH; then 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12128 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12129 fi 12130 # Try to locate tool using the code snippet 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12132 $as_echo_n "checking for fgrep... " >&6; } 12133 if ${ac_cv_path_FGREP+:} false; then : 12134 $as_echo_n "(cached) " >&6 12135 else 12136 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12137 then ac_cv_path_FGREP="$GREP -F" 12138 else 12139 if test -z "$FGREP"; then 12140 ac_path_FGREP_found=false 12141 # Loop through the user's path and test for each of PROGNAME-LIST 12142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12144 do 12145 IFS=$as_save_IFS 12146 test -z "$as_dir" && as_dir=. 12147 for ac_prog in fgrep; do 12148 for ac_exec_ext in '' $ac_executable_extensions; do 12149 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12150 as_fn_executable_p "$ac_path_FGREP" || continue 12151 # Check for GNU ac_path_FGREP and select it if it is found. 12152 # Check for GNU $ac_path_FGREP 12153 case `"$ac_path_FGREP" --version 2>&1` in 12154 *GNU*) 12155 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12156 *) 12157 ac_count=0 12158 $as_echo_n 0123456789 >"conftest.in" 12159 while : 12160 do 12161 cat "conftest.in" "conftest.in" >"conftest.tmp" 12162 mv "conftest.tmp" "conftest.in" 12163 cp "conftest.in" "conftest.nl" 12164 $as_echo 'FGREP' >> "conftest.nl" 12165 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12167 as_fn_arith $ac_count + 1 && ac_count=$as_val 12168 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12169 # Best one so far, save it but keep looking for a better one 12170 ac_cv_path_FGREP="$ac_path_FGREP" 12171 ac_path_FGREP_max=$ac_count 12172 fi 12173 # 10*(2^10) chars as input seems more than enough 12174 test $ac_count -gt 10 && break 12175 done 12176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12177 esac 12178 12179 $ac_path_FGREP_found && break 3 12180 done 12181 done 12182 done 12183 IFS=$as_save_IFS 12184 if test -z "$ac_cv_path_FGREP"; then 12185 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12186 fi 12187 else 12188 ac_cv_path_FGREP=$FGREP 12189 fi 12190 12191 fi 12192 fi 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12194 $as_echo "$ac_cv_path_FGREP" >&6; } 12195 FGREP="$ac_cv_path_FGREP" 12196 12197 12198 else 12199 # If it succeeded, then it was overridden by the user. We will use it 12200 # for the tool. 12201 12202 # First remove it from the list of overridden variables, so we can test 12203 # for unknown variables in the end. 12204 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12205 12206 # Check if the provided tool contains a complete path. 12207 tool_specified="$FGREP" 12208 tool_basename="${tool_specified##*/}" 12209 if test "x$tool_basename" = "x$tool_specified"; then 12210 # A command without a complete path is provided, search $PATH. 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12212 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12213 # Extract the first word of "$tool_basename", so it can be a program name with args. 12214 set dummy $tool_basename; ac_word=$2 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12216 $as_echo_n "checking for $ac_word... " >&6; } 12217 if ${ac_cv_path_FGREP+:} false; then : 12218 $as_echo_n "(cached) " >&6 12219 else 12220 case $FGREP in 12221 [\\/]* | ?:[\\/]*) 12222 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12223 ;; 12224 *) 12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12226 for as_dir in $PATH 12227 do 12228 IFS=$as_save_IFS 12229 test -z "$as_dir" && as_dir=. 12230 for ac_exec_ext in '' $ac_executable_extensions; do 12231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12232 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12234 break 2 12235 fi 12236 done 12237 done 12238 IFS=$as_save_IFS 12239 12240 ;; 12241 esac 12242 fi 12243 FGREP=$ac_cv_path_FGREP 12244 if test -n "$FGREP"; then 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12246 $as_echo "$FGREP" >&6; } 12247 else 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12249 $as_echo "no" >&6; } 12250 fi 12251 12252 12253 if test "x$FGREP" = x; then 12254 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12255 fi 12256 else 12257 # Otherwise we believe it is a complete path. Use it as it is. 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12259 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12261 $as_echo_n "checking for FGREP... " >&6; } 12262 if test ! -x "$tool_specified"; then 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12264 $as_echo "not found" >&6; } 12265 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12266 fi 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12268 $as_echo "$tool_specified" >&6; } 12269 fi 12270 fi 12271 fi 12272 12273 12274 if test "x$FGREP" = x; then 12275 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12276 fi 12277 12278 12279 12280 12281 # Publish this variable in the help. 12282 12283 12284 if test "x$SED" = x; then 12285 # The variable is not set by user, try to locate tool using the code snippet 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12287 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12288 if ${ac_cv_path_SED+:} false; then : 12289 $as_echo_n "(cached) " >&6 12290 else 12291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12292 for ac_i in 1 2 3 4 5 6 7; do 12293 ac_script="$ac_script$as_nl$ac_script" 12294 done 12295 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12296 { ac_script=; unset ac_script;} 12297 if test -z "$SED"; then 12298 ac_path_SED_found=false 12299 # Loop through the user's path and test for each of PROGNAME-LIST 12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12301 for as_dir in $PATH 12302 do 12303 IFS=$as_save_IFS 12304 test -z "$as_dir" && as_dir=. 12305 for ac_prog in sed gsed; do 12306 for ac_exec_ext in '' $ac_executable_extensions; do 12307 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12308 as_fn_executable_p "$ac_path_SED" || continue 12309 # Check for GNU ac_path_SED and select it if it is found. 12310 # Check for GNU $ac_path_SED 12311 case `"$ac_path_SED" --version 2>&1` in 12312 *GNU*) 12313 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12314 *) 12315 ac_count=0 12316 $as_echo_n 0123456789 >"conftest.in" 12317 while : 12318 do 12319 cat "conftest.in" "conftest.in" >"conftest.tmp" 12320 mv "conftest.tmp" "conftest.in" 12321 cp "conftest.in" "conftest.nl" 12322 $as_echo '' >> "conftest.nl" 12323 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12325 as_fn_arith $ac_count + 1 && ac_count=$as_val 12326 if test $ac_count -gt ${ac_path_SED_max-0}; then 12327 # Best one so far, save it but keep looking for a better one 12328 ac_cv_path_SED="$ac_path_SED" 12329 ac_path_SED_max=$ac_count 12330 fi 12331 # 10*(2^10) chars as input seems more than enough 12332 test $ac_count -gt 10 && break 12333 done 12334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12335 esac 12336 12337 $ac_path_SED_found && break 3 12338 done 12339 done 12340 done 12341 IFS=$as_save_IFS 12342 if test -z "$ac_cv_path_SED"; then 12343 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12344 fi 12345 else 12346 ac_cv_path_SED=$SED 12347 fi 12348 12349 fi 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12351 $as_echo "$ac_cv_path_SED" >&6; } 12352 SED="$ac_cv_path_SED" 12353 rm -f conftest.sed 12354 12355 else 12356 # The variable is set, but is it from the command line or the environment? 12357 12358 # Try to remove the string !SED! from our list. 12359 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12360 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12361 # If it failed, the variable was not from the command line. Ignore it, 12362 # but warn the user (except for BASH, which is always set by the calling BASH). 12363 if test "xSED" != xBASH; then 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12365 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12366 fi 12367 # Try to locate tool using the code snippet 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12369 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12370 if ${ac_cv_path_SED+:} false; then : 12371 $as_echo_n "(cached) " >&6 12372 else 12373 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12374 for ac_i in 1 2 3 4 5 6 7; do 12375 ac_script="$ac_script$as_nl$ac_script" 12376 done 12377 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12378 { ac_script=; unset ac_script;} 12379 if test -z "$SED"; then 12380 ac_path_SED_found=false 12381 # Loop through the user's path and test for each of PROGNAME-LIST 12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12383 for as_dir in $PATH 12384 do 12385 IFS=$as_save_IFS 12386 test -z "$as_dir" && as_dir=. 12387 for ac_prog in sed gsed; do 12388 for ac_exec_ext in '' $ac_executable_extensions; do 12389 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12390 as_fn_executable_p "$ac_path_SED" || continue 12391 # Check for GNU ac_path_SED and select it if it is found. 12392 # Check for GNU $ac_path_SED 12393 case `"$ac_path_SED" --version 2>&1` in 12394 *GNU*) 12395 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12396 *) 12397 ac_count=0 12398 $as_echo_n 0123456789 >"conftest.in" 12399 while : 12400 do 12401 cat "conftest.in" "conftest.in" >"conftest.tmp" 12402 mv "conftest.tmp" "conftest.in" 12403 cp "conftest.in" "conftest.nl" 12404 $as_echo '' >> "conftest.nl" 12405 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12407 as_fn_arith $ac_count + 1 && ac_count=$as_val 12408 if test $ac_count -gt ${ac_path_SED_max-0}; then 12409 # Best one so far, save it but keep looking for a better one 12410 ac_cv_path_SED="$ac_path_SED" 12411 ac_path_SED_max=$ac_count 12412 fi 12413 # 10*(2^10) chars as input seems more than enough 12414 test $ac_count -gt 10 && break 12415 done 12416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12417 esac 12418 12419 $ac_path_SED_found && break 3 12420 done 12421 done 12422 done 12423 IFS=$as_save_IFS 12424 if test -z "$ac_cv_path_SED"; then 12425 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12426 fi 12427 else 12428 ac_cv_path_SED=$SED 12429 fi 12430 12431 fi 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12433 $as_echo "$ac_cv_path_SED" >&6; } 12434 SED="$ac_cv_path_SED" 12435 rm -f conftest.sed 12436 12437 else 12438 # If it succeeded, then it was overridden by the user. We will use it 12439 # for the tool. 12440 12441 # First remove it from the list of overridden variables, so we can test 12442 # for unknown variables in the end. 12443 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12444 12445 # Check if the provided tool contains a complete path. 12446 tool_specified="$SED" 12447 tool_basename="${tool_specified##*/}" 12448 if test "x$tool_basename" = "x$tool_specified"; then 12449 # A command without a complete path is provided, search $PATH. 12450 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12451 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12452 # Extract the first word of "$tool_basename", so it can be a program name with args. 12453 set dummy $tool_basename; ac_word=$2 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12455 $as_echo_n "checking for $ac_word... " >&6; } 12456 if ${ac_cv_path_SED+:} false; then : 12457 $as_echo_n "(cached) " >&6 12458 else 12459 case $SED in 12460 [\\/]* | ?:[\\/]*) 12461 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12462 ;; 12463 *) 12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12465 for as_dir in $PATH 12466 do 12467 IFS=$as_save_IFS 12468 test -z "$as_dir" && as_dir=. 12469 for ac_exec_ext in '' $ac_executable_extensions; do 12470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12471 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12473 break 2 12474 fi 12475 done 12476 done 12477 IFS=$as_save_IFS 12478 12479 ;; 12480 esac 12481 fi 12482 SED=$ac_cv_path_SED 12483 if test -n "$SED"; then 12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12485 $as_echo "$SED" >&6; } 12486 else 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12488 $as_echo "no" >&6; } 12489 fi 12490 12491 12492 if test "x$SED" = x; then 12493 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12494 fi 12495 else 12496 # Otherwise we believe it is a complete path. Use it as it is. 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12498 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12500 $as_echo_n "checking for SED... " >&6; } 12501 if test ! -x "$tool_specified"; then 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12503 $as_echo "not found" >&6; } 12504 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12505 fi 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12507 $as_echo "$tool_specified" >&6; } 12508 fi 12509 fi 12510 fi 12511 12512 12513 if test "x$SED" = x; then 12514 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12515 fi 12516 12517 12518 12519 # Always force rm. 12520 RM="$RM -f" 12521 12522 # pwd behaves differently on various platforms and some don't support the -L flag. 12523 # Always use the bash builtin pwd to get uniform behavior. 12524 THEPWDCMD=pwd 12525 12526 # These are not required on all platforms 12527 12528 12529 # Publish this variable in the help. 12530 12531 12532 if test "x$CYGPATH" = x; then 12533 # The variable is not set by user, try to locate tool using the code snippet 12534 for ac_prog in cygpath 12535 do 12536 # Extract the first word of "$ac_prog", so it can be a program name with args. 12537 set dummy $ac_prog; ac_word=$2 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12539 $as_echo_n "checking for $ac_word... " >&6; } 12540 if ${ac_cv_path_CYGPATH+:} false; then : 12541 $as_echo_n "(cached) " >&6 12542 else 12543 case $CYGPATH in 12544 [\\/]* | ?:[\\/]*) 12545 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12546 ;; 12547 *) 12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12549 for as_dir in $PATH 12550 do 12551 IFS=$as_save_IFS 12552 test -z "$as_dir" && as_dir=. 12553 for ac_exec_ext in '' $ac_executable_extensions; do 12554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12555 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12557 break 2 12558 fi 12559 done 12560 done 12561 IFS=$as_save_IFS 12562 12563 ;; 12564 esac 12565 fi 12566 CYGPATH=$ac_cv_path_CYGPATH 12567 if test -n "$CYGPATH"; then 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12569 $as_echo "$CYGPATH" >&6; } 12570 else 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12572 $as_echo "no" >&6; } 12573 fi 12574 12575 12576 test -n "$CYGPATH" && break 12577 done 12578 12579 else 12580 # The variable is set, but is it from the command line or the environment? 12581 12582 # Try to remove the string !CYGPATH! from our list. 12583 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12584 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12585 # If it failed, the variable was not from the command line. Ignore it, 12586 # but warn the user (except for BASH, which is always set by the calling BASH). 12587 if test "xCYGPATH" != xBASH; then 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12589 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12590 fi 12591 # Try to locate tool using the code snippet 12592 for ac_prog in cygpath 12593 do 12594 # Extract the first word of "$ac_prog", so it can be a program name with args. 12595 set dummy $ac_prog; ac_word=$2 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12597 $as_echo_n "checking for $ac_word... " >&6; } 12598 if ${ac_cv_path_CYGPATH+:} false; then : 12599 $as_echo_n "(cached) " >&6 12600 else 12601 case $CYGPATH in 12602 [\\/]* | ?:[\\/]*) 12603 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12604 ;; 12605 *) 12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12607 for as_dir in $PATH 12608 do 12609 IFS=$as_save_IFS 12610 test -z "$as_dir" && as_dir=. 12611 for ac_exec_ext in '' $ac_executable_extensions; do 12612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12613 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12615 break 2 12616 fi 12617 done 12618 done 12619 IFS=$as_save_IFS 12620 12621 ;; 12622 esac 12623 fi 12624 CYGPATH=$ac_cv_path_CYGPATH 12625 if test -n "$CYGPATH"; then 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12627 $as_echo "$CYGPATH" >&6; } 12628 else 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12630 $as_echo "no" >&6; } 12631 fi 12632 12633 12634 test -n "$CYGPATH" && break 12635 done 12636 12637 else 12638 # If it succeeded, then it was overridden by the user. We will use it 12639 # for the tool. 12640 12641 # First remove it from the list of overridden variables, so we can test 12642 # for unknown variables in the end. 12643 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12644 12645 # Check if the provided tool contains a complete path. 12646 tool_specified="$CYGPATH" 12647 tool_basename="${tool_specified##*/}" 12648 if test "x$tool_basename" = "x$tool_specified"; then 12649 # A command without a complete path is provided, search $PATH. 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12651 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12652 # Extract the first word of "$tool_basename", so it can be a program name with args. 12653 set dummy $tool_basename; ac_word=$2 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12655 $as_echo_n "checking for $ac_word... " >&6; } 12656 if ${ac_cv_path_CYGPATH+:} false; then : 12657 $as_echo_n "(cached) " >&6 12658 else 12659 case $CYGPATH in 12660 [\\/]* | ?:[\\/]*) 12661 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12662 ;; 12663 *) 12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12665 for as_dir in $PATH 12666 do 12667 IFS=$as_save_IFS 12668 test -z "$as_dir" && as_dir=. 12669 for ac_exec_ext in '' $ac_executable_extensions; do 12670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12671 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12673 break 2 12674 fi 12675 done 12676 done 12677 IFS=$as_save_IFS 12678 12679 ;; 12680 esac 12681 fi 12682 CYGPATH=$ac_cv_path_CYGPATH 12683 if test -n "$CYGPATH"; then 12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12685 $as_echo "$CYGPATH" >&6; } 12686 else 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12688 $as_echo "no" >&6; } 12689 fi 12690 12691 12692 if test "x$CYGPATH" = x; then 12693 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12694 fi 12695 else 12696 # Otherwise we believe it is a complete path. Use it as it is. 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12698 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12700 $as_echo_n "checking for CYGPATH... " >&6; } 12701 if test ! -x "$tool_specified"; then 12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12703 $as_echo "not found" >&6; } 12704 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12705 fi 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12707 $as_echo "$tool_specified" >&6; } 12708 fi 12709 fi 12710 fi 12711 12712 12713 12714 12715 # Publish this variable in the help. 12716 12717 12718 if test "x$READLINK" = x; then 12719 # The variable is not set by user, try to locate tool using the code snippet 12720 for ac_prog in greadlink readlink 12721 do 12722 # Extract the first word of "$ac_prog", so it can be a program name with args. 12723 set dummy $ac_prog; ac_word=$2 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12725 $as_echo_n "checking for $ac_word... " >&6; } 12726 if ${ac_cv_path_READLINK+:} false; then : 12727 $as_echo_n "(cached) " >&6 12728 else 12729 case $READLINK in 12730 [\\/]* | ?:[\\/]*) 12731 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12732 ;; 12733 *) 12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12735 for as_dir in $PATH 12736 do 12737 IFS=$as_save_IFS 12738 test -z "$as_dir" && as_dir=. 12739 for ac_exec_ext in '' $ac_executable_extensions; do 12740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12741 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12743 break 2 12744 fi 12745 done 12746 done 12747 IFS=$as_save_IFS 12748 12749 ;; 12750 esac 12751 fi 12752 READLINK=$ac_cv_path_READLINK 12753 if test -n "$READLINK"; then 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12755 $as_echo "$READLINK" >&6; } 12756 else 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12758 $as_echo "no" >&6; } 12759 fi 12760 12761 12762 test -n "$READLINK" && break 12763 done 12764 12765 else 12766 # The variable is set, but is it from the command line or the environment? 12767 12768 # Try to remove the string !READLINK! from our list. 12769 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12770 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12771 # If it failed, the variable was not from the command line. Ignore it, 12772 # but warn the user (except for BASH, which is always set by the calling BASH). 12773 if test "xREADLINK" != xBASH; then 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12775 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12776 fi 12777 # Try to locate tool using the code snippet 12778 for ac_prog in greadlink readlink 12779 do 12780 # Extract the first word of "$ac_prog", so it can be a program name with args. 12781 set dummy $ac_prog; ac_word=$2 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12783 $as_echo_n "checking for $ac_word... " >&6; } 12784 if ${ac_cv_path_READLINK+:} false; then : 12785 $as_echo_n "(cached) " >&6 12786 else 12787 case $READLINK in 12788 [\\/]* | ?:[\\/]*) 12789 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12790 ;; 12791 *) 12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12793 for as_dir in $PATH 12794 do 12795 IFS=$as_save_IFS 12796 test -z "$as_dir" && as_dir=. 12797 for ac_exec_ext in '' $ac_executable_extensions; do 12798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12799 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12801 break 2 12802 fi 12803 done 12804 done 12805 IFS=$as_save_IFS 12806 12807 ;; 12808 esac 12809 fi 12810 READLINK=$ac_cv_path_READLINK 12811 if test -n "$READLINK"; then 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12813 $as_echo "$READLINK" >&6; } 12814 else 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12816 $as_echo "no" >&6; } 12817 fi 12818 12819 12820 test -n "$READLINK" && break 12821 done 12822 12823 else 12824 # If it succeeded, then it was overridden by the user. We will use it 12825 # for the tool. 12826 12827 # First remove it from the list of overridden variables, so we can test 12828 # for unknown variables in the end. 12829 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12830 12831 # Check if the provided tool contains a complete path. 12832 tool_specified="$READLINK" 12833 tool_basename="${tool_specified##*/}" 12834 if test "x$tool_basename" = "x$tool_specified"; then 12835 # A command without a complete path is provided, search $PATH. 12836 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12837 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12838 # Extract the first word of "$tool_basename", so it can be a program name with args. 12839 set dummy $tool_basename; ac_word=$2 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12841 $as_echo_n "checking for $ac_word... " >&6; } 12842 if ${ac_cv_path_READLINK+:} false; then : 12843 $as_echo_n "(cached) " >&6 12844 else 12845 case $READLINK in 12846 [\\/]* | ?:[\\/]*) 12847 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12848 ;; 12849 *) 12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12851 for as_dir in $PATH 12852 do 12853 IFS=$as_save_IFS 12854 test -z "$as_dir" && as_dir=. 12855 for ac_exec_ext in '' $ac_executable_extensions; do 12856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12857 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12859 break 2 12860 fi 12861 done 12862 done 12863 IFS=$as_save_IFS 12864 12865 ;; 12866 esac 12867 fi 12868 READLINK=$ac_cv_path_READLINK 12869 if test -n "$READLINK"; then 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12871 $as_echo "$READLINK" >&6; } 12872 else 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12874 $as_echo "no" >&6; } 12875 fi 12876 12877 12878 if test "x$READLINK" = x; then 12879 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12880 fi 12881 else 12882 # Otherwise we believe it is a complete path. Use it as it is. 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12884 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12886 $as_echo_n "checking for READLINK... " >&6; } 12887 if test ! -x "$tool_specified"; then 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12889 $as_echo "not found" >&6; } 12890 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12891 fi 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12893 $as_echo "$tool_specified" >&6; } 12894 fi 12895 fi 12896 fi 12897 12898 12899 12900 12901 # Publish this variable in the help. 12902 12903 12904 if test "x$DF" = x; then 12905 # The variable is not set by user, try to locate tool using the code snippet 12906 for ac_prog in df 12907 do 12908 # Extract the first word of "$ac_prog", so it can be a program name with args. 12909 set dummy $ac_prog; ac_word=$2 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12911 $as_echo_n "checking for $ac_word... " >&6; } 12912 if ${ac_cv_path_DF+:} false; then : 12913 $as_echo_n "(cached) " >&6 12914 else 12915 case $DF in 12916 [\\/]* | ?:[\\/]*) 12917 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12918 ;; 12919 *) 12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12921 for as_dir in $PATH 12922 do 12923 IFS=$as_save_IFS 12924 test -z "$as_dir" && as_dir=. 12925 for ac_exec_ext in '' $ac_executable_extensions; do 12926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12927 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12929 break 2 12930 fi 12931 done 12932 done 12933 IFS=$as_save_IFS 12934 12935 ;; 12936 esac 12937 fi 12938 DF=$ac_cv_path_DF 12939 if test -n "$DF"; then 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12941 $as_echo "$DF" >&6; } 12942 else 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12944 $as_echo "no" >&6; } 12945 fi 12946 12947 12948 test -n "$DF" && break 12949 done 12950 12951 else 12952 # The variable is set, but is it from the command line or the environment? 12953 12954 # Try to remove the string !DF! from our list. 12955 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12956 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12957 # If it failed, the variable was not from the command line. Ignore it, 12958 # but warn the user (except for BASH, which is always set by the calling BASH). 12959 if test "xDF" != xBASH; then 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12961 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12962 fi 12963 # Try to locate tool using the code snippet 12964 for ac_prog in df 12965 do 12966 # Extract the first word of "$ac_prog", so it can be a program name with args. 12967 set dummy $ac_prog; ac_word=$2 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12969 $as_echo_n "checking for $ac_word... " >&6; } 12970 if ${ac_cv_path_DF+:} false; then : 12971 $as_echo_n "(cached) " >&6 12972 else 12973 case $DF in 12974 [\\/]* | ?:[\\/]*) 12975 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12976 ;; 12977 *) 12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12979 for as_dir in $PATH 12980 do 12981 IFS=$as_save_IFS 12982 test -z "$as_dir" && as_dir=. 12983 for ac_exec_ext in '' $ac_executable_extensions; do 12984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12985 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12987 break 2 12988 fi 12989 done 12990 done 12991 IFS=$as_save_IFS 12992 12993 ;; 12994 esac 12995 fi 12996 DF=$ac_cv_path_DF 12997 if test -n "$DF"; then 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12999 $as_echo "$DF" >&6; } 13000 else 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13002 $as_echo "no" >&6; } 13003 fi 13004 13005 13006 test -n "$DF" && break 13007 done 13008 13009 else 13010 # If it succeeded, then it was overridden by the user. We will use it 13011 # for the tool. 13012 13013 # First remove it from the list of overridden variables, so we can test 13014 # for unknown variables in the end. 13015 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13016 13017 # Check if the provided tool contains a complete path. 13018 tool_specified="$DF" 13019 tool_basename="${tool_specified##*/}" 13020 if test "x$tool_basename" = "x$tool_specified"; then 13021 # A command without a complete path is provided, search $PATH. 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13023 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13024 # Extract the first word of "$tool_basename", so it can be a program name with args. 13025 set dummy $tool_basename; ac_word=$2 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13027 $as_echo_n "checking for $ac_word... " >&6; } 13028 if ${ac_cv_path_DF+:} false; then : 13029 $as_echo_n "(cached) " >&6 13030 else 13031 case $DF in 13032 [\\/]* | ?:[\\/]*) 13033 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13034 ;; 13035 *) 13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13037 for as_dir in $PATH 13038 do 13039 IFS=$as_save_IFS 13040 test -z "$as_dir" && as_dir=. 13041 for ac_exec_ext in '' $ac_executable_extensions; do 13042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13043 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13045 break 2 13046 fi 13047 done 13048 done 13049 IFS=$as_save_IFS 13050 13051 ;; 13052 esac 13053 fi 13054 DF=$ac_cv_path_DF 13055 if test -n "$DF"; then 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13057 $as_echo "$DF" >&6; } 13058 else 13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13060 $as_echo "no" >&6; } 13061 fi 13062 13063 13064 if test "x$DF" = x; then 13065 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13066 fi 13067 else 13068 # Otherwise we believe it is a complete path. Use it as it is. 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13070 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13072 $as_echo_n "checking for DF... " >&6; } 13073 if test ! -x "$tool_specified"; then 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13075 $as_echo "not found" >&6; } 13076 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13077 fi 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13079 $as_echo "$tool_specified" >&6; } 13080 fi 13081 fi 13082 fi 13083 13084 13085 13086 13087 # Publish this variable in the help. 13088 13089 13090 if test "x$SETFILE" = x; then 13091 # The variable is not set by user, try to locate tool using the code snippet 13092 for ac_prog in SetFile 13093 do 13094 # Extract the first word of "$ac_prog", so it can be a program name with args. 13095 set dummy $ac_prog; ac_word=$2 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13097 $as_echo_n "checking for $ac_word... " >&6; } 13098 if ${ac_cv_path_SETFILE+:} false; then : 13099 $as_echo_n "(cached) " >&6 13100 else 13101 case $SETFILE in 13102 [\\/]* | ?:[\\/]*) 13103 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13104 ;; 13105 *) 13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13107 for as_dir in $PATH 13108 do 13109 IFS=$as_save_IFS 13110 test -z "$as_dir" && as_dir=. 13111 for ac_exec_ext in '' $ac_executable_extensions; do 13112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13113 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13115 break 2 13116 fi 13117 done 13118 done 13119 IFS=$as_save_IFS 13120 13121 ;; 13122 esac 13123 fi 13124 SETFILE=$ac_cv_path_SETFILE 13125 if test -n "$SETFILE"; then 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13127 $as_echo "$SETFILE" >&6; } 13128 else 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13130 $as_echo "no" >&6; } 13131 fi 13132 13133 13134 test -n "$SETFILE" && break 13135 done 13136 13137 else 13138 # The variable is set, but is it from the command line or the environment? 13139 13140 # Try to remove the string !SETFILE! from our list. 13141 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13142 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13143 # If it failed, the variable was not from the command line. Ignore it, 13144 # but warn the user (except for BASH, which is always set by the calling BASH). 13145 if test "xSETFILE" != xBASH; then 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13147 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13148 fi 13149 # Try to locate tool using the code snippet 13150 for ac_prog in SetFile 13151 do 13152 # Extract the first word of "$ac_prog", so it can be a program name with args. 13153 set dummy $ac_prog; ac_word=$2 13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13155 $as_echo_n "checking for $ac_word... " >&6; } 13156 if ${ac_cv_path_SETFILE+:} false; then : 13157 $as_echo_n "(cached) " >&6 13158 else 13159 case $SETFILE in 13160 [\\/]* | ?:[\\/]*) 13161 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13162 ;; 13163 *) 13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13165 for as_dir in $PATH 13166 do 13167 IFS=$as_save_IFS 13168 test -z "$as_dir" && as_dir=. 13169 for ac_exec_ext in '' $ac_executable_extensions; do 13170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13171 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13173 break 2 13174 fi 13175 done 13176 done 13177 IFS=$as_save_IFS 13178 13179 ;; 13180 esac 13181 fi 13182 SETFILE=$ac_cv_path_SETFILE 13183 if test -n "$SETFILE"; then 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13185 $as_echo "$SETFILE" >&6; } 13186 else 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13188 $as_echo "no" >&6; } 13189 fi 13190 13191 13192 test -n "$SETFILE" && break 13193 done 13194 13195 else 13196 # If it succeeded, then it was overridden by the user. We will use it 13197 # for the tool. 13198 13199 # First remove it from the list of overridden variables, so we can test 13200 # for unknown variables in the end. 13201 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13202 13203 # Check if the provided tool contains a complete path. 13204 tool_specified="$SETFILE" 13205 tool_basename="${tool_specified##*/}" 13206 if test "x$tool_basename" = "x$tool_specified"; then 13207 # A command without a complete path is provided, search $PATH. 13208 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13209 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13210 # Extract the first word of "$tool_basename", so it can be a program name with args. 13211 set dummy $tool_basename; ac_word=$2 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13213 $as_echo_n "checking for $ac_word... " >&6; } 13214 if ${ac_cv_path_SETFILE+:} false; then : 13215 $as_echo_n "(cached) " >&6 13216 else 13217 case $SETFILE in 13218 [\\/]* | ?:[\\/]*) 13219 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13220 ;; 13221 *) 13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13223 for as_dir in $PATH 13224 do 13225 IFS=$as_save_IFS 13226 test -z "$as_dir" && as_dir=. 13227 for ac_exec_ext in '' $ac_executable_extensions; do 13228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13229 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13231 break 2 13232 fi 13233 done 13234 done 13235 IFS=$as_save_IFS 13236 13237 ;; 13238 esac 13239 fi 13240 SETFILE=$ac_cv_path_SETFILE 13241 if test -n "$SETFILE"; then 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13243 $as_echo "$SETFILE" >&6; } 13244 else 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13246 $as_echo "no" >&6; } 13247 fi 13248 13249 13250 if test "x$SETFILE" = x; then 13251 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13252 fi 13253 else 13254 # Otherwise we believe it is a complete path. Use it as it is. 13255 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13256 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13258 $as_echo_n "checking for SETFILE... " >&6; } 13259 if test ! -x "$tool_specified"; then 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13261 $as_echo "not found" >&6; } 13262 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13263 fi 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13265 $as_echo "$tool_specified" >&6; } 13266 fi 13267 fi 13268 fi 13269 13270 13271 13272 13273 # Publish this variable in the help. 13274 13275 13276 if test "x$CPIO" = x; then 13277 # The variable is not set by user, try to locate tool using the code snippet 13278 for ac_prog in cpio bsdcpio 13279 do 13280 # Extract the first word of "$ac_prog", so it can be a program name with args. 13281 set dummy $ac_prog; ac_word=$2 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13283 $as_echo_n "checking for $ac_word... " >&6; } 13284 if ${ac_cv_path_CPIO+:} false; then : 13285 $as_echo_n "(cached) " >&6 13286 else 13287 case $CPIO in 13288 [\\/]* | ?:[\\/]*) 13289 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13290 ;; 13291 *) 13292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13293 for as_dir in $PATH 13294 do 13295 IFS=$as_save_IFS 13296 test -z "$as_dir" && as_dir=. 13297 for ac_exec_ext in '' $ac_executable_extensions; do 13298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13299 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13301 break 2 13302 fi 13303 done 13304 done 13305 IFS=$as_save_IFS 13306 13307 ;; 13308 esac 13309 fi 13310 CPIO=$ac_cv_path_CPIO 13311 if test -n "$CPIO"; then 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13313 $as_echo "$CPIO" >&6; } 13314 else 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13316 $as_echo "no" >&6; } 13317 fi 13318 13319 13320 test -n "$CPIO" && break 13321 done 13322 13323 else 13324 # The variable is set, but is it from the command line or the environment? 13325 13326 # Try to remove the string !CPIO! from our list. 13327 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13328 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13329 # If it failed, the variable was not from the command line. Ignore it, 13330 # but warn the user (except for BASH, which is always set by the calling BASH). 13331 if test "xCPIO" != xBASH; then 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13333 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13334 fi 13335 # Try to locate tool using the code snippet 13336 for ac_prog in cpio bsdcpio 13337 do 13338 # Extract the first word of "$ac_prog", so it can be a program name with args. 13339 set dummy $ac_prog; ac_word=$2 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13341 $as_echo_n "checking for $ac_word... " >&6; } 13342 if ${ac_cv_path_CPIO+:} false; then : 13343 $as_echo_n "(cached) " >&6 13344 else 13345 case $CPIO in 13346 [\\/]* | ?:[\\/]*) 13347 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13348 ;; 13349 *) 13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13351 for as_dir in $PATH 13352 do 13353 IFS=$as_save_IFS 13354 test -z "$as_dir" && as_dir=. 13355 for ac_exec_ext in '' $ac_executable_extensions; do 13356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13357 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13359 break 2 13360 fi 13361 done 13362 done 13363 IFS=$as_save_IFS 13364 13365 ;; 13366 esac 13367 fi 13368 CPIO=$ac_cv_path_CPIO 13369 if test -n "$CPIO"; then 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13371 $as_echo "$CPIO" >&6; } 13372 else 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13374 $as_echo "no" >&6; } 13375 fi 13376 13377 13378 test -n "$CPIO" && break 13379 done 13380 13381 else 13382 # If it succeeded, then it was overridden by the user. We will use it 13383 # for the tool. 13384 13385 # First remove it from the list of overridden variables, so we can test 13386 # for unknown variables in the end. 13387 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13388 13389 # Check if the provided tool contains a complete path. 13390 tool_specified="$CPIO" 13391 tool_basename="${tool_specified##*/}" 13392 if test "x$tool_basename" = "x$tool_specified"; then 13393 # A command without a complete path is provided, search $PATH. 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13395 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13396 # Extract the first word of "$tool_basename", so it can be a program name with args. 13397 set dummy $tool_basename; ac_word=$2 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13399 $as_echo_n "checking for $ac_word... " >&6; } 13400 if ${ac_cv_path_CPIO+:} false; then : 13401 $as_echo_n "(cached) " >&6 13402 else 13403 case $CPIO in 13404 [\\/]* | ?:[\\/]*) 13405 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13406 ;; 13407 *) 13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13409 for as_dir in $PATH 13410 do 13411 IFS=$as_save_IFS 13412 test -z "$as_dir" && as_dir=. 13413 for ac_exec_ext in '' $ac_executable_extensions; do 13414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13415 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13417 break 2 13418 fi 13419 done 13420 done 13421 IFS=$as_save_IFS 13422 13423 ;; 13424 esac 13425 fi 13426 CPIO=$ac_cv_path_CPIO 13427 if test -n "$CPIO"; then 13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13429 $as_echo "$CPIO" >&6; } 13430 else 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13432 $as_echo "no" >&6; } 13433 fi 13434 13435 13436 if test "x$CPIO" = x; then 13437 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13438 fi 13439 else 13440 # Otherwise we believe it is a complete path. Use it as it is. 13441 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13442 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13444 $as_echo_n "checking for CPIO... " >&6; } 13445 if test ! -x "$tool_specified"; then 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13447 $as_echo "not found" >&6; } 13448 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13449 fi 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13451 $as_echo "$tool_specified" >&6; } 13452 fi 13453 fi 13454 fi 13455 13456 13457 13458 13459 # Now we can determine OpenJDK build and target platforms. This is required to 13460 # have early on. 13461 # Make sure we can run config.sub. 13462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13463 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13464 13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13466 $as_echo_n "checking build system type... " >&6; } 13467 if ${ac_cv_build+:} false; then : 13468 $as_echo_n "(cached) " >&6 13469 else 13470 ac_build_alias=$build_alias 13471 test "x$ac_build_alias" = x && 13472 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13473 test "x$ac_build_alias" = x && 13474 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13477 13478 fi 13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13480 $as_echo "$ac_cv_build" >&6; } 13481 case $ac_cv_build in 13482 *-*-*) ;; 13483 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13484 esac 13485 build=$ac_cv_build 13486 ac_save_IFS=$IFS; IFS='-' 13487 set x $ac_cv_build 13488 shift 13489 build_cpu=$1 13490 build_vendor=$2 13491 shift; shift 13492 # Remember, the first character of IFS is used to create $*, 13493 # except with old shells: 13494 build_os=$* 13495 IFS=$ac_save_IFS 13496 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13497 13498 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13500 $as_echo_n "checking host system type... " >&6; } 13501 if ${ac_cv_host+:} false; then : 13502 $as_echo_n "(cached) " >&6 13503 else 13504 if test "x$host_alias" = x; then 13505 ac_cv_host=$ac_cv_build 13506 else 13507 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13509 fi 13510 13511 fi 13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13513 $as_echo "$ac_cv_host" >&6; } 13514 case $ac_cv_host in 13515 *-*-*) ;; 13516 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13517 esac 13518 host=$ac_cv_host 13519 ac_save_IFS=$IFS; IFS='-' 13520 set x $ac_cv_host 13521 shift 13522 host_cpu=$1 13523 host_vendor=$2 13524 shift; shift 13525 # Remember, the first character of IFS is used to create $*, 13526 # except with old shells: 13527 host_os=$* 13528 IFS=$ac_save_IFS 13529 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13530 13531 13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13533 $as_echo_n "checking target system type... " >&6; } 13534 if ${ac_cv_target+:} false; then : 13535 $as_echo_n "(cached) " >&6 13536 else 13537 if test "x$target_alias" = x; then 13538 ac_cv_target=$ac_cv_host 13539 else 13540 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13542 fi 13543 13544 fi 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13546 $as_echo "$ac_cv_target" >&6; } 13547 case $ac_cv_target in 13548 *-*-*) ;; 13549 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13550 esac 13551 target=$ac_cv_target 13552 ac_save_IFS=$IFS; IFS='-' 13553 set x $ac_cv_target 13554 shift 13555 target_cpu=$1 13556 target_vendor=$2 13557 shift; shift 13558 # Remember, the first character of IFS is used to create $*, 13559 # except with old shells: 13560 target_os=$* 13561 IFS=$ac_save_IFS 13562 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13563 13564 13565 # The aliases save the names the user supplied, while $host etc. 13566 # will get canonicalized. 13567 test -n "$target_alias" && 13568 test "$program_prefix$program_suffix$program_transform_name" = \ 13569 NONENONEs,x,x, && 13570 program_prefix=${target_alias}- 13571 13572 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13573 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13574 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13575 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13576 # to use the configure naming style. 13577 13578 13579 13580 13581 13582 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13583 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13584 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13585 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13586 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13587 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13588 13589 13590 13591 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13592 13593 case "$build_os" in 13594 *linux*) 13595 VAR_OS=linux 13596 VAR_OS_API=posix 13597 VAR_OS_ENV=linux 13598 ;; 13599 *solaris*) 13600 VAR_OS=solaris 13601 VAR_OS_API=posix 13602 VAR_OS_ENV=solaris 13603 ;; 13604 *darwin*) 13605 VAR_OS=macosx 13606 VAR_OS_API=posix 13607 VAR_OS_ENV=macosx 13608 ;; 13609 *bsd*) 13610 VAR_OS=bsd 13611 VAR_OS_API=posix 13612 VAR_OS_ENV=bsd 13613 ;; 13614 *cygwin*) 13615 VAR_OS=windows 13616 VAR_OS_API=winapi 13617 VAR_OS_ENV=windows.cygwin 13618 ;; 13619 *mingw*) 13620 VAR_OS=windows 13621 VAR_OS_API=winapi 13622 VAR_OS_ENV=windows.msys 13623 ;; 13624 *aix*) 13625 VAR_OS=aix 13626 VAR_OS_API=posix 13627 VAR_OS_ENV=aix 13628 ;; 13629 *) 13630 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13631 ;; 13632 esac 13633 13634 13635 # First argument is the cpu name from the trip/quad 13636 case "$build_cpu" in 13637 x86_64) 13638 VAR_CPU=x86_64 13639 VAR_CPU_ARCH=x86 13640 VAR_CPU_BITS=64 13641 VAR_CPU_ENDIAN=little 13642 ;; 13643 i?86) 13644 VAR_CPU=x86 13645 VAR_CPU_ARCH=x86 13646 VAR_CPU_BITS=32 13647 VAR_CPU_ENDIAN=little 13648 ;; 13649 arm*) 13650 VAR_CPU=arm 13651 VAR_CPU_ARCH=arm 13652 VAR_CPU_BITS=32 13653 VAR_CPU_ENDIAN=little 13654 ;; 13655 aarch64) 13656 VAR_CPU=aarch64 13657 VAR_CPU_ARCH=aarch64 13658 VAR_CPU_BITS=64 13659 VAR_CPU_ENDIAN=little 13660 ;; 13661 powerpc) 13662 VAR_CPU=ppc 13663 VAR_CPU_ARCH=ppc 13664 VAR_CPU_BITS=32 13665 VAR_CPU_ENDIAN=big 13666 ;; 13667 powerpc64) 13668 VAR_CPU=ppc64 13669 VAR_CPU_ARCH=ppc 13670 VAR_CPU_BITS=64 13671 VAR_CPU_ENDIAN=big 13672 ;; 13673 powerpc64le) 13674 VAR_CPU=ppc64le 13675 VAR_CPU_ARCH=ppc 13676 VAR_CPU_BITS=64 13677 VAR_CPU_ENDIAN=little 13678 ;; 13679 s390) 13680 VAR_CPU=s390 13681 VAR_CPU_ARCH=s390 13682 VAR_CPU_BITS=32 13683 VAR_CPU_ENDIAN=big 13684 ;; 13685 s390x) 13686 VAR_CPU=s390x 13687 VAR_CPU_ARCH=s390 13688 VAR_CPU_BITS=64 13689 VAR_CPU_ENDIAN=big 13690 ;; 13691 sparc) 13692 VAR_CPU=sparc 13693 VAR_CPU_ARCH=sparc 13694 VAR_CPU_BITS=32 13695 VAR_CPU_ENDIAN=big 13696 ;; 13697 sparcv9|sparc64) 13698 VAR_CPU=sparcv9 13699 VAR_CPU_ARCH=sparc 13700 VAR_CPU_BITS=64 13701 VAR_CPU_ENDIAN=big 13702 ;; 13703 *) 13704 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13705 ;; 13706 esac 13707 13708 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13709 OPENJDK_BUILD_OS="$VAR_OS" 13710 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13711 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13712 OPENJDK_BUILD_CPU="$VAR_CPU" 13713 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13714 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13715 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13716 13717 13718 13719 13720 13721 13722 13723 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13725 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13727 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13728 13729 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13730 13731 case "$host_os" in 13732 *linux*) 13733 VAR_OS=linux 13734 VAR_OS_API=posix 13735 VAR_OS_ENV=linux 13736 ;; 13737 *solaris*) 13738 VAR_OS=solaris 13739 VAR_OS_API=posix 13740 VAR_OS_ENV=solaris 13741 ;; 13742 *darwin*) 13743 VAR_OS=macosx 13744 VAR_OS_API=posix 13745 VAR_OS_ENV=macosx 13746 ;; 13747 *bsd*) 13748 VAR_OS=bsd 13749 VAR_OS_API=posix 13750 VAR_OS_ENV=bsd 13751 ;; 13752 *cygwin*) 13753 VAR_OS=windows 13754 VAR_OS_API=winapi 13755 VAR_OS_ENV=windows.cygwin 13756 ;; 13757 *mingw*) 13758 VAR_OS=windows 13759 VAR_OS_API=winapi 13760 VAR_OS_ENV=windows.msys 13761 ;; 13762 *aix*) 13763 VAR_OS=aix 13764 VAR_OS_API=posix 13765 VAR_OS_ENV=aix 13766 ;; 13767 *) 13768 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13769 ;; 13770 esac 13771 13772 13773 # First argument is the cpu name from the trip/quad 13774 case "$host_cpu" in 13775 x86_64) 13776 VAR_CPU=x86_64 13777 VAR_CPU_ARCH=x86 13778 VAR_CPU_BITS=64 13779 VAR_CPU_ENDIAN=little 13780 ;; 13781 i?86) 13782 VAR_CPU=x86 13783 VAR_CPU_ARCH=x86 13784 VAR_CPU_BITS=32 13785 VAR_CPU_ENDIAN=little 13786 ;; 13787 arm*) 13788 VAR_CPU=arm 13789 VAR_CPU_ARCH=arm 13790 VAR_CPU_BITS=32 13791 VAR_CPU_ENDIAN=little 13792 ;; 13793 aarch64) 13794 VAR_CPU=aarch64 13795 VAR_CPU_ARCH=aarch64 13796 VAR_CPU_BITS=64 13797 VAR_CPU_ENDIAN=little 13798 ;; 13799 powerpc) 13800 VAR_CPU=ppc 13801 VAR_CPU_ARCH=ppc 13802 VAR_CPU_BITS=32 13803 VAR_CPU_ENDIAN=big 13804 ;; 13805 powerpc64) 13806 VAR_CPU=ppc64 13807 VAR_CPU_ARCH=ppc 13808 VAR_CPU_BITS=64 13809 VAR_CPU_ENDIAN=big 13810 ;; 13811 powerpc64le) 13812 VAR_CPU=ppc64le 13813 VAR_CPU_ARCH=ppc 13814 VAR_CPU_BITS=64 13815 VAR_CPU_ENDIAN=little 13816 ;; 13817 s390) 13818 VAR_CPU=s390 13819 VAR_CPU_ARCH=s390 13820 VAR_CPU_BITS=32 13821 VAR_CPU_ENDIAN=big 13822 ;; 13823 s390x) 13824 VAR_CPU=s390x 13825 VAR_CPU_ARCH=s390 13826 VAR_CPU_BITS=64 13827 VAR_CPU_ENDIAN=big 13828 ;; 13829 sparc) 13830 VAR_CPU=sparc 13831 VAR_CPU_ARCH=sparc 13832 VAR_CPU_BITS=32 13833 VAR_CPU_ENDIAN=big 13834 ;; 13835 sparcv9|sparc64) 13836 VAR_CPU=sparcv9 13837 VAR_CPU_ARCH=sparc 13838 VAR_CPU_BITS=64 13839 VAR_CPU_ENDIAN=big 13840 ;; 13841 *) 13842 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13843 ;; 13844 esac 13845 13846 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13847 OPENJDK_TARGET_OS="$VAR_OS" 13848 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13849 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13850 OPENJDK_TARGET_CPU="$VAR_CPU" 13851 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13852 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13853 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13854 13855 13856 13857 13858 13859 13860 13861 13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13863 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13865 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13866 13867 13868 13869 # Check whether --with-target-bits was given. 13870 if test "${with_target_bits+set}" = set; then : 13871 withval=$with_target_bits; 13872 fi 13873 13874 13875 # We have three types of compiles: 13876 # native == normal compilation, target system == build system 13877 # cross == traditional cross compilation, target system != build system; special toolchain needed 13878 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13879 # 13880 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13881 # We're doing a proper cross-compilation 13882 COMPILE_TYPE="cross" 13883 else 13884 COMPILE_TYPE="native" 13885 fi 13886 13887 if test "x$with_target_bits" != x; then 13888 if test "x$COMPILE_TYPE" = "xcross"; then 13889 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13890 fi 13891 13892 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13893 # A reduced build is requested 13894 COMPILE_TYPE="reduced" 13895 OPENJDK_TARGET_CPU_BITS=32 13896 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13897 OPENJDK_TARGET_CPU=x86 13898 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13899 OPENJDK_TARGET_CPU=sparc 13900 else 13901 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13902 fi 13903 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13904 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 13905 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13907 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13908 else 13909 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13910 fi 13911 fi 13912 13913 13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13915 $as_echo_n "checking compilation type... " >&6; } 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13917 $as_echo "$COMPILE_TYPE" >&6; } 13918 13919 13920 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13921 REQUIRED_OS_NAME=SunOS 13922 REQUIRED_OS_VERSION=5.10 13923 fi 13924 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13925 REQUIRED_OS_NAME=Linux 13926 REQUIRED_OS_VERSION=2.6 13927 fi 13928 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13929 REQUIRED_OS_NAME=Windows 13930 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13931 REQUIRED_OS_VERSION=5.2 13932 else 13933 REQUIRED_OS_VERSION=5.1 13934 fi 13935 fi 13936 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13937 REQUIRED_OS_NAME=Darwin 13938 REQUIRED_OS_VERSION=11.2 13939 fi 13940 13941 13942 13943 13944 13945 # Also store the legacy naming of the cpu. 13946 # Ie i586 and amd64 instead of x86 and x86_64 13947 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13948 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13949 OPENJDK_TARGET_CPU_LEGACY="i586" 13950 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13951 # On all platforms except MacOSX replace x86_64 with amd64. 13952 OPENJDK_TARGET_CPU_LEGACY="amd64" 13953 fi 13954 13955 13956 # And the second legacy naming of the cpu. 13957 # Ie i386 and amd64 instead of x86 and x86_64. 13958 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13959 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13960 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13961 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13962 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13963 fi 13964 13965 13966 # This is the name of the cpu (but using i386 and amd64 instead of 13967 # x86 and x86_64, respectively), preceeded by a /, to be used when 13968 # locating libraries. On macosx, it's empty, though. 13969 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13970 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13971 OPENJDK_TARGET_CPU_LIBDIR="" 13972 fi 13973 13974 13975 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13976 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13977 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13978 OPENJDK_TARGET_CPU_ISADIR="" 13979 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13980 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13981 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13982 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13983 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13984 fi 13985 fi 13986 13987 13988 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13989 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13990 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13991 # On linux only, we replace x86 with i386. 13992 OPENJDK_TARGET_CPU_OSARCH="i386" 13993 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13994 # On all platforms except macosx, we replace x86_64 with amd64. 13995 OPENJDK_TARGET_CPU_OSARCH="amd64" 13996 fi 13997 13998 13999 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 14000 if test "x$OPENJDK_TARGET_CPU" = xx86; then 14001 OPENJDK_TARGET_CPU_JLI="i386" 14002 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14003 # On all platforms except macosx, we replace x86_64 with amd64. 14004 OPENJDK_TARGET_CPU_JLI="amd64" 14005 fi 14006 # Now setup the -D flags for building libjli. 14007 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 14008 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 14009 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 14010 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 14011 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 14012 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 14013 fi 14014 fi 14015 14016 14017 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 14018 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 14019 OPENJDK_TARGET_OS_API_DIR="solaris" 14020 fi 14021 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 14022 OPENJDK_TARGET_OS_API_DIR="windows" 14023 fi 14024 14025 14026 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 14027 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 14028 else 14029 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 14030 fi 14031 14032 14033 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14034 A_LP64="LP64:=" 14035 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 14036 # unpack200.exe 14037 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 14038 ADD_LP64="-D_LP64=1" 14039 fi 14040 fi 14041 LP64=$A_LP64 14042 14043 14044 if test "x$COMPILE_TYPE" = "xcross"; then 14045 # FIXME: ... or should this include reduced builds..? 14046 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 14047 else 14048 DEFINE_CROSS_COMPILE_ARCH="" 14049 fi 14050 14051 14052 # ZERO_ARCHDEF is used to enable architecture-specific code 14053 case "${OPENJDK_TARGET_CPU}" in 14054 ppc) ZERO_ARCHDEF=PPC32 ;; 14055 ppc64) ZERO_ARCHDEF=PPC64 ;; 14056 s390*) ZERO_ARCHDEF=S390 ;; 14057 sparc*) ZERO_ARCHDEF=SPARC ;; 14058 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14059 x86) ZERO_ARCHDEF=IA32 ;; 14060 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14061 esac 14062 14063 14064 14065 14066 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14067 14068 # Save the current directory this script was started from 14069 CURDIR="$PWD" 14070 14071 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14072 PATH_SEP=";" 14073 14074 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14075 if test $SRC_ROOT_LENGTH -gt 100; then 14076 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14077 fi 14078 14079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14081 $as_echo_n "checking cygwin release... " >&6; } 14082 CYGWIN_VERSION=`$UNAME -r` 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14084 $as_echo "$CYGWIN_VERSION" >&6; } 14085 WINDOWS_ENV_VENDOR='cygwin' 14086 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14087 14088 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 14089 if test "x$CYGWIN_VERSION_OLD" != x; then 14090 { $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 14091 $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;} 14092 as_fn_error $? "Cannot continue" "$LINENO" 5 14093 fi 14094 if test "x$CYGPATH" = x; then 14095 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14096 fi 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14098 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14099 # The cmd output ends with Windows line endings (CR/LF) 14100 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 14101 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14102 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14104 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14105 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14106 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14107 if test "x$test_cygdrive_prefix" = x; then 14108 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14109 fi 14110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14112 $as_echo_n "checking msys release... " >&6; } 14113 MSYS_VERSION=`$UNAME -r` 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14115 $as_echo "$MSYS_VERSION" >&6; } 14116 14117 WINDOWS_ENV_VENDOR='msys' 14118 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14119 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14121 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14122 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14123 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14124 14125 windows_path="$MSYS_ROOT_PATH" 14126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14127 unix_path=`$CYGPATH -u "$windows_path"` 14128 MSYS_ROOT_PATH="$unix_path" 14129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14130 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14131 MSYS_ROOT_PATH="$unix_path" 14132 fi 14133 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14135 $as_echo "$MSYS_ROOT_PATH" >&6; } 14136 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14137 else 14138 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14139 fi 14140 14141 # Test if windows or unix (cygwin/msys) find is first in path. 14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14143 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14144 FIND_BINARY_OUTPUT=`find --version 2>&1` 14145 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14147 $as_echo "unix style" >&6; } 14148 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14150 $as_echo "Windows" >&6; } 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14152 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14153 { $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 14154 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14155 as_fn_error $? "Cannot continue" "$LINENO" 5 14156 else 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14158 $as_echo "unknown" >&6; } 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14160 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14161 fi 14162 14163 else 14164 PATH_SEP=":" 14165 fi 14166 14167 14168 # We get the top-level directory from the supporting wrappers. 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14170 $as_echo_n "checking for top-level directory... " >&6; } 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14172 $as_echo "$TOPDIR" >&6; } 14173 14174 14175 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14176 14177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14178 14179 # Input might be given as Windows format, start by converting to 14180 # unix format. 14181 path="$CURDIR" 14182 new_path=`$CYGPATH -u "$path"` 14183 14184 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14185 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14186 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14187 # "foo.exe" is OK but "foo" is an error. 14188 # 14189 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14190 # It is also a way to make sure we got the proper file name for the real test later on. 14191 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14192 if test "x$test_shortpath" = x; then 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14194 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14195 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14196 fi 14197 14198 # Call helper function which possibly converts this using DOS-style short mode. 14199 # If so, the updated path is stored in $new_path. 14200 14201 input_path="$new_path" 14202 # Check if we need to convert this using DOS-style short mode. If the path 14203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14204 # take no chances and rewrite it. 14205 # Note: m4 eats our [], so we need to use [ and ] instead. 14206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14207 if test "x$has_forbidden_chars" != x; then 14208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14209 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14210 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14211 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14212 # Going to short mode and back again did indeed matter. Since short mode is 14213 # case insensitive, let's make it lowercase to improve readability. 14214 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14215 # Now convert it back to Unix-style (cygpath) 14216 input_path=`$CYGPATH -u "$shortmode_path"` 14217 new_path="$input_path" 14218 fi 14219 fi 14220 14221 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14222 if test "x$test_cygdrive_prefix" = x; then 14223 # As a simple fix, exclude /usr/bin since it's not a real path. 14224 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14225 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14226 # a path prefixed by /cygdrive for fixpath to work. 14227 new_path="$CYGWIN_ROOT_PATH$input_path" 14228 fi 14229 fi 14230 14231 14232 if test "x$path" != "x$new_path"; then 14233 CURDIR="$new_path" 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14235 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14236 fi 14237 14238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14239 14240 path="$CURDIR" 14241 has_colon=`$ECHO $path | $GREP ^.:` 14242 new_path="$path" 14243 if test "x$has_colon" = x; then 14244 # Not in mixed or Windows style, start by that. 14245 new_path=`cmd //c echo $path` 14246 fi 14247 14248 14249 input_path="$new_path" 14250 # Check if we need to convert this using DOS-style short mode. If the path 14251 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14252 # take no chances and rewrite it. 14253 # Note: m4 eats our [], so we need to use [ and ] instead. 14254 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14255 if test "x$has_forbidden_chars" != x; then 14256 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14257 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14258 fi 14259 14260 14261 windows_path="$new_path" 14262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14263 unix_path=`$CYGPATH -u "$windows_path"` 14264 new_path="$unix_path" 14265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14266 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14267 new_path="$unix_path" 14268 fi 14269 14270 if test "x$path" != "x$new_path"; then 14271 CURDIR="$new_path" 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14273 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14274 fi 14275 14276 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14277 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14278 14279 else 14280 # We're on a posix platform. Hooray! :) 14281 path="$CURDIR" 14282 has_space=`$ECHO "$path" | $GREP " "` 14283 if test "x$has_space" != x; then 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14285 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14286 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14287 fi 14288 14289 # Use eval to expand a potential ~ 14290 eval path="$path" 14291 if test ! -f "$path" && test ! -d "$path"; then 14292 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14293 fi 14294 14295 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14296 fi 14297 14298 14299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14300 14301 # Input might be given as Windows format, start by converting to 14302 # unix format. 14303 path="$TOPDIR" 14304 new_path=`$CYGPATH -u "$path"` 14305 14306 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14307 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14308 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14309 # "foo.exe" is OK but "foo" is an error. 14310 # 14311 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14312 # It is also a way to make sure we got the proper file name for the real test later on. 14313 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14314 if test "x$test_shortpath" = x; then 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14316 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14317 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14318 fi 14319 14320 # Call helper function which possibly converts this using DOS-style short mode. 14321 # If so, the updated path is stored in $new_path. 14322 14323 input_path="$new_path" 14324 # Check if we need to convert this using DOS-style short mode. If the path 14325 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14326 # take no chances and rewrite it. 14327 # Note: m4 eats our [], so we need to use [ and ] instead. 14328 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14329 if test "x$has_forbidden_chars" != x; then 14330 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14331 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14332 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14333 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14334 # Going to short mode and back again did indeed matter. Since short mode is 14335 # case insensitive, let's make it lowercase to improve readability. 14336 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14337 # Now convert it back to Unix-style (cygpath) 14338 input_path=`$CYGPATH -u "$shortmode_path"` 14339 new_path="$input_path" 14340 fi 14341 fi 14342 14343 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14344 if test "x$test_cygdrive_prefix" = x; then 14345 # As a simple fix, exclude /usr/bin since it's not a real path. 14346 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14347 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14348 # a path prefixed by /cygdrive for fixpath to work. 14349 new_path="$CYGWIN_ROOT_PATH$input_path" 14350 fi 14351 fi 14352 14353 14354 if test "x$path" != "x$new_path"; then 14355 TOPDIR="$new_path" 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14357 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14358 fi 14359 14360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14361 14362 path="$TOPDIR" 14363 has_colon=`$ECHO $path | $GREP ^.:` 14364 new_path="$path" 14365 if test "x$has_colon" = x; then 14366 # Not in mixed or Windows style, start by that. 14367 new_path=`cmd //c echo $path` 14368 fi 14369 14370 14371 input_path="$new_path" 14372 # Check if we need to convert this using DOS-style short mode. If the path 14373 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14374 # take no chances and rewrite it. 14375 # Note: m4 eats our [], so we need to use [ and ] instead. 14376 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14377 if test "x$has_forbidden_chars" != x; then 14378 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14379 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14380 fi 14381 14382 14383 windows_path="$new_path" 14384 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14385 unix_path=`$CYGPATH -u "$windows_path"` 14386 new_path="$unix_path" 14387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14388 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14389 new_path="$unix_path" 14390 fi 14391 14392 if test "x$path" != "x$new_path"; then 14393 TOPDIR="$new_path" 14394 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14395 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14396 fi 14397 14398 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14399 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14400 14401 else 14402 # We're on a posix platform. Hooray! :) 14403 path="$TOPDIR" 14404 has_space=`$ECHO "$path" | $GREP " "` 14405 if test "x$has_space" != x; then 14406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14407 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14408 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14409 fi 14410 14411 # Use eval to expand a potential ~ 14412 eval path="$path" 14413 if test ! -f "$path" && test ! -d "$path"; then 14414 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14415 fi 14416 14417 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14418 fi 14419 14420 # SRC_ROOT is a traditional alias for TOPDIR. 14421 SRC_ROOT=$TOPDIR 14422 14423 # Locate the directory of this script. 14424 AUTOCONF_DIR=$TOPDIR/common/autoconf 14425 14426 14427 # Setup default logging of stdout and stderr to build.log in the output root. 14428 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14429 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14430 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14431 14432 14433 14434 14435 14436 # Check if it's a pure open build or if custom sources are to be used. 14437 14438 # Check whether --enable-openjdk-only was given. 14439 if test "${enable_openjdk_only+set}" = set; then : 14440 enableval=$enable_openjdk_only; 14441 else 14442 enable_openjdk_only="no" 14443 fi 14444 14445 14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14447 $as_echo_n "checking for presence of closed sources... " >&6; } 14448 if test -d "$SRC_ROOT/jdk/src/closed"; then 14449 CLOSED_SOURCE_PRESENT=yes 14450 else 14451 CLOSED_SOURCE_PRESENT=no 14452 fi 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14454 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14455 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14457 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14458 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14460 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14461 14462 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14463 OPENJDK=true 14464 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14466 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14467 fi 14468 else 14469 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14470 OPENJDK=true 14471 else 14472 OPENJDK=false 14473 fi 14474 fi 14475 14476 if test "x$OPENJDK" = "xtrue"; then 14477 SET_OPENJDK="OPENJDK=true" 14478 fi 14479 14480 14481 14482 14483 # These are needed to be able to create a configuration name (and thus the output directory) 14484 14485 ############################################################################### 14486 # 14487 # Check which variant of the JDK that we want to build. 14488 # Currently we have: 14489 # normal: standard edition 14490 # but the custom make system may add other variants 14491 # 14492 # Effectively the JDK variant gives a name to a specific set of 14493 # modules to compile into the JDK. In the future, these modules 14494 # might even be Jigsaw modules. 14495 # 14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14497 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14498 14499 # Check whether --with-jdk-variant was given. 14500 if test "${with_jdk_variant+set}" = set; then : 14501 withval=$with_jdk_variant; 14502 fi 14503 14504 14505 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14506 JDK_VARIANT="normal" 14507 else 14508 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14509 fi 14510 14511 14512 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14514 $as_echo "$JDK_VARIANT" >&6; } 14515 14516 14517 ############################################################################### 14518 # 14519 # Check which interpreter of the JVM we want to build. 14520 # Currently we have: 14521 # template: Template interpreter (the default) 14522 # cpp : C++ interpreter 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14524 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14525 14526 # Check whether --with-jvm-interpreter was given. 14527 if test "${with_jvm_interpreter+set}" = set; then : 14528 withval=$with_jvm_interpreter; 14529 fi 14530 14531 14532 if test "x$with_jvm_interpreter" = x; then 14533 with_jvm_interpreter="template" 14534 fi 14535 14536 JVM_INTERPRETER="$with_jvm_interpreter" 14537 14538 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14539 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14540 fi 14541 14542 14543 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14545 $as_echo "$with_jvm_interpreter" >&6; } 14546 14547 14548 14549 ############################################################################### 14550 # 14551 # Check which variants of the JVM that we want to build. 14552 # Currently we have: 14553 # server: normal interpreter and a tiered C1/C2 compiler 14554 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14555 # minimal1: reduced form of client with optional VM services and features stripped out 14556 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14557 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14558 # zero: no machine code interpreter, no compiler 14559 # zeroshark: zero interpreter and shark/llvm compiler backend 14560 # core: interpreter only, no compiler (only works on some platforms) 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14562 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14563 14564 # Check whether --with-jvm-variants was given. 14565 if test "${with_jvm_variants+set}" = set; then : 14566 withval=$with_jvm_variants; 14567 fi 14568 14569 14570 if test "x$with_jvm_variants" = x; then 14571 with_jvm_variants="server" 14572 fi 14573 14574 JVM_VARIANTS=",$with_jvm_variants," 14575 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,//'` 14576 14577 if test "x$TEST_VARIANTS" != "x,"; then 14578 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14579 fi 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14581 $as_echo "$with_jvm_variants" >&6; } 14582 14583 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14584 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14585 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14586 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14587 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14588 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14589 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14590 14591 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14592 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14593 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14594 fi 14595 fi 14596 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14597 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14598 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14599 fi 14600 fi 14601 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14602 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14603 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14604 fi 14605 fi 14606 14607 # Replace the commas with AND for use in the build directory name. 14608 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14609 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/'` 14610 if test "x$COUNT_VARIANTS" != "x,1"; then 14611 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14612 else 14613 BUILDING_MULTIPLE_JVM_VARIANTS=no 14614 fi 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 INCLUDE_SA=true 14626 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14627 INCLUDE_SA=false 14628 fi 14629 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14630 INCLUDE_SA=false 14631 fi 14632 if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then 14633 INCLUDE_SA=false 14634 fi 14635 14636 14637 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14638 MACOSX_UNIVERSAL="false" 14639 fi 14640 14641 14642 14643 14644 ############################################################################### 14645 # 14646 # Set the debug level 14647 # release: no debug information, all optimizations, no asserts. 14648 # fastdebug: debug information (-g), all optimizations, all asserts 14649 # slowdebug: debug information (-g), no optimizations, all asserts 14650 # 14651 DEBUG_LEVEL="release" 14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14653 $as_echo_n "checking which debug level to use... " >&6; } 14654 # Check whether --enable-debug was given. 14655 if test "${enable_debug+set}" = set; then : 14656 enableval=$enable_debug; 14657 ENABLE_DEBUG="${enableval}" 14658 DEBUG_LEVEL="fastdebug" 14659 14660 else 14661 ENABLE_DEBUG="no" 14662 fi 14663 14664 14665 14666 # Check whether --with-debug-level was given. 14667 if test "${with_debug_level+set}" = set; then : 14668 withval=$with_debug_level; 14669 DEBUG_LEVEL="${withval}" 14670 if test "x$ENABLE_DEBUG" = xyes; then 14671 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14672 fi 14673 14674 fi 14675 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14677 $as_echo "$DEBUG_LEVEL" >&6; } 14678 14679 if test "x$DEBUG_LEVEL" != xrelease && \ 14680 test "x$DEBUG_LEVEL" != xfastdebug && \ 14681 test "x$DEBUG_LEVEL" != xslowdebug; then 14682 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14683 fi 14684 14685 14686 ############################################################################### 14687 # 14688 # Setup legacy vars/targets and new vars to deal with different debug levels. 14689 # 14690 14691 case $DEBUG_LEVEL in 14692 release ) 14693 VARIANT="OPT" 14694 FASTDEBUG="false" 14695 DEBUG_CLASSFILES="false" 14696 BUILD_VARIANT_RELEASE="" 14697 HOTSPOT_DEBUG_LEVEL="product" 14698 HOTSPOT_EXPORT="product" 14699 ;; 14700 fastdebug ) 14701 VARIANT="DBG" 14702 FASTDEBUG="true" 14703 DEBUG_CLASSFILES="true" 14704 BUILD_VARIANT_RELEASE="-fastdebug" 14705 HOTSPOT_DEBUG_LEVEL="fastdebug" 14706 HOTSPOT_EXPORT="fastdebug" 14707 ;; 14708 slowdebug ) 14709 VARIANT="DBG" 14710 FASTDEBUG="false" 14711 DEBUG_CLASSFILES="true" 14712 BUILD_VARIANT_RELEASE="-debug" 14713 HOTSPOT_DEBUG_LEVEL="jvmg" 14714 HOTSPOT_EXPORT="debug" 14715 ;; 14716 esac 14717 14718 ##### 14719 # Generate the legacy makefile targets for hotspot. 14720 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14721 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14722 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14723 # But until then ... 14724 HOTSPOT_TARGET="" 14725 14726 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14727 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14728 fi 14729 14730 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14731 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14732 fi 14733 14734 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14735 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14736 fi 14737 14738 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14739 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14740 fi 14741 14742 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14743 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14744 fi 14745 14746 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14747 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14748 fi 14749 14750 if test "x$JVM_VARIANT_CORE" = xtrue; then 14751 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14752 fi 14753 14754 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14755 14756 # On Macosx universal binaries are produced, but they only contain 14757 # 64 bit intel. This invalidates control of which jvms are built 14758 # from configure, but only server is valid anyway. Fix this 14759 # when hotspot makefiles are rewritten. 14760 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14761 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14762 fi 14763 14764 ##### 14765 14766 14767 14768 14769 14770 14771 14772 14773 # With basic setup done, call the custom early hook. 14774 14775 14776 # Check if we have devkits, extra paths or sysroot set. 14777 14778 14779 # Check whether --with-devkit was given. 14780 if test "${with_devkit+set}" = set; then : 14781 withval=$with_devkit; 14782 fi 14783 14784 14785 if test "x$with_devkit" = xyes; then 14786 as_fn_error $? "--with-devkit must have a value" "$LINENO" 5 14787 elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then 14788 14789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14790 14791 # Input might be given as Windows format, start by converting to 14792 # unix format. 14793 path="$with_devkit" 14794 new_path=`$CYGPATH -u "$path"` 14795 14796 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14797 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14798 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14799 # "foo.exe" is OK but "foo" is an error. 14800 # 14801 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14802 # It is also a way to make sure we got the proper file name for the real test later on. 14803 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14804 if test "x$test_shortpath" = x; then 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14806 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14807 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14808 fi 14809 14810 # Call helper function which possibly converts this using DOS-style short mode. 14811 # If so, the updated path is stored in $new_path. 14812 14813 input_path="$new_path" 14814 # Check if we need to convert this using DOS-style short mode. If the path 14815 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14816 # take no chances and rewrite it. 14817 # Note: m4 eats our [], so we need to use [ and ] instead. 14818 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14819 if test "x$has_forbidden_chars" != x; then 14820 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14821 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14822 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14823 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14824 # Going to short mode and back again did indeed matter. Since short mode is 14825 # case insensitive, let's make it lowercase to improve readability. 14826 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14827 # Now convert it back to Unix-style (cygpath) 14828 input_path=`$CYGPATH -u "$shortmode_path"` 14829 new_path="$input_path" 14830 fi 14831 fi 14832 14833 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14834 if test "x$test_cygdrive_prefix" = x; then 14835 # As a simple fix, exclude /usr/bin since it's not a real path. 14836 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14837 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14838 # a path prefixed by /cygdrive for fixpath to work. 14839 new_path="$CYGWIN_ROOT_PATH$input_path" 14840 fi 14841 fi 14842 14843 14844 if test "x$path" != "x$new_path"; then 14845 with_devkit="$new_path" 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14847 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14848 fi 14849 14850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14851 14852 path="$with_devkit" 14853 has_colon=`$ECHO $path | $GREP ^.:` 14854 new_path="$path" 14855 if test "x$has_colon" = x; then 14856 # Not in mixed or Windows style, start by that. 14857 new_path=`cmd //c echo $path` 14858 fi 14859 14860 14861 input_path="$new_path" 14862 # Check if we need to convert this using DOS-style short mode. If the path 14863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14864 # take no chances and rewrite it. 14865 # Note: m4 eats our [], so we need to use [ and ] instead. 14866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14867 if test "x$has_forbidden_chars" != x; then 14868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14869 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14870 fi 14871 14872 14873 windows_path="$new_path" 14874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14875 unix_path=`$CYGPATH -u "$windows_path"` 14876 new_path="$unix_path" 14877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14879 new_path="$unix_path" 14880 fi 14881 14882 if test "x$path" != "x$new_path"; then 14883 with_devkit="$new_path" 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14885 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14886 fi 14887 14888 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14889 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14890 14891 else 14892 # We're on a posix platform. Hooray! :) 14893 path="$with_devkit" 14894 has_space=`$ECHO "$path" | $GREP " "` 14895 if test "x$has_space" != x; then 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14897 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14898 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14899 fi 14900 14901 # Use eval to expand a potential ~ 14902 eval path="$path" 14903 if test ! -f "$path" && test ! -d "$path"; then 14904 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14905 fi 14906 14907 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14908 fi 14909 14910 DEVKIT_ROOT="$with_devkit" 14911 # Check for a meta data info file in the root of the devkit 14912 if test -f "$DEVKIT_ROOT/devkit.info"; then 14913 . $DEVKIT_ROOT/devkit.info 14914 # This potentially sets the following: 14915 # A descriptive name of the devkit 14916 14917 if test "x$DEVKIT_NAME" = x; then 14918 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 14919 fi 14920 14921 # Corresponds to --with-extra-path 14922 14923 if test "x$DEVKIT_EXTRA_PATH" = x; then 14924 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 14925 fi 14926 14927 # Corresponds to --with-toolchain-path 14928 14929 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14930 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 14931 fi 14932 14933 # Corresponds to --with-sysroot 14934 14935 if test "x$DEVKIT_SYSROOT" = x; then 14936 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 14937 fi 14938 14939 14940 # Identifies the Visual Studio version in the devkit 14941 14942 if test "x$DEVKIT_VS_VERSION" = x; then 14943 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 14944 fi 14945 14946 # The Visual Studio include environment variable 14947 14948 if test "x$DEVKIT_VS_INCLUDE" = x; then 14949 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 14950 fi 14951 14952 # The Visual Studio lib environment variable 14953 14954 if test "x$DEVKIT_VS_LIB" = x; then 14955 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 14956 fi 14957 14958 # Corresponds to --with-msvcr-dll 14959 14960 if test "x$DEVKIT_MSVCR_DLL" = x; then 14961 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 14962 fi 14963 14964 # Corresponds to --with-msvcp-dll 14965 14966 if test "x$DEVKIT_MSVCP_DLL" = x; then 14967 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 14968 fi 14969 14970 # Corresponds to --with-ucrt-dll-dir 14971 14972 if test "x$DEVKIT_UCRT_DLL_DIR" = x; then 14973 eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}" 14974 fi 14975 14976 fi 14977 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14979 $as_echo_n "checking for devkit... " >&6; } 14980 if test "x$DEVKIT_NAME" != x; then 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14982 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14983 else 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14985 $as_echo "$DEVKIT_ROOT" >&6; } 14986 fi 14987 14988 14989 if test "x$DEVKIT_EXTRA_PATH" != x; then 14990 if test "x$EXTRA_PATH" = x; then 14991 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14992 else 14993 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14994 fi 14995 fi 14996 14997 14998 # Fallback default of just /bin if DEVKIT_PATH is not defined 14999 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15000 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 15001 fi 15002 15003 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 15004 if test "x$TOOLCHAIN_PATH" = x; then 15005 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 15006 else 15007 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 15008 fi 15009 fi 15010 15011 15012 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 15013 # places for backwards compatiblity. 15014 if test "x$DEVKIT_SYSROOT" != x; then 15015 SYSROOT="$DEVKIT_SYSROOT" 15016 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 15017 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 15018 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 15019 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 15020 fi 15021 15022 if test "x$DEVKIT_ROOT" != x; then 15023 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 15024 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15025 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 15026 fi 15027 15028 fi 15029 fi 15030 15031 # You can force the sysroot if the sysroot encoded into the compiler tools 15032 # is not correct. 15033 15034 # Check whether --with-sys-root was given. 15035 if test "${with_sys_root+set}" = set; then : 15036 withval=$with_sys_root; SYSROOT=$with_sys_root 15037 15038 fi 15039 15040 15041 15042 # Check whether --with-sysroot was given. 15043 if test "${with_sysroot+set}" = set; then : 15044 withval=$with_sysroot; SYSROOT=$with_sysroot 15045 15046 fi 15047 15048 15049 15050 # Check whether --with-tools-dir was given. 15051 if test "${with_tools_dir+set}" = set; then : 15052 withval=$with_tools_dir; 15053 if test "x$with_tools_dir" != x; then 15054 if test "x$TOOLCHAIN_PATH" = x; then 15055 TOOLCHAIN_PATH="$with_tools_dir" 15056 else 15057 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 15058 fi 15059 fi 15060 15061 15062 fi 15063 15064 15065 15066 # Check whether --with-toolchain-path was given. 15067 if test "${with_toolchain_path+set}" = set; then : 15068 withval=$with_toolchain_path; 15069 if test "x$with_toolchain_path" != x; then 15070 if test "x$TOOLCHAIN_PATH" = x; then 15071 TOOLCHAIN_PATH="$with_toolchain_path" 15072 else 15073 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15074 fi 15075 fi 15076 15077 15078 fi 15079 15080 15081 15082 # Check whether --with-extra-path was given. 15083 if test "${with_extra_path+set}" = set; then : 15084 withval=$with_extra_path; 15085 if test "x$with_extra_path" != x; then 15086 if test "x$EXTRA_PATH" = x; then 15087 EXTRA_PATH="$with_extra_path" 15088 else 15089 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15090 fi 15091 fi 15092 15093 15094 fi 15095 15096 15097 # Prepend the extra path to the global path 15098 15099 if test "x$EXTRA_PATH" != x; then 15100 if test "x$PATH" = x; then 15101 PATH="$EXTRA_PATH" 15102 else 15103 PATH="$EXTRA_PATH:$PATH" 15104 fi 15105 fi 15106 15107 15108 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15109 # Add extra search paths on solaris for utilities like ar and as etc... 15110 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15111 fi 15112 15113 # Xcode version will be validated later 15114 15115 # Check whether --with-xcode-path was given. 15116 if test "${with_xcode_path+set}" = set; then : 15117 withval=$with_xcode_path; XCODE_PATH=$with_xcode_path 15118 15119 fi 15120 15121 15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15123 $as_echo_n "checking for sysroot... " >&6; } 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15125 $as_echo "$SYSROOT" >&6; } 15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15127 $as_echo_n "checking for toolchain path... " >&6; } 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15129 $as_echo "$TOOLCHAIN_PATH" >&6; } 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15131 $as_echo_n "checking for extra path... " >&6; } 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15133 $as_echo "$EXTRA_PATH" >&6; } 15134 15135 15136 # To properly create a configuration name, we need to have the OpenJDK target 15137 # and options (variants and debug level) parsed. 15138 15139 15140 15141 # Check whether --with-conf-name was given. 15142 if test "${with_conf_name+set}" = set; then : 15143 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15144 fi 15145 15146 15147 # Test from where we are running configure, in or outside of src root. 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15149 $as_echo_n "checking where to store configuration... " >&6; } 15150 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15151 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15152 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15153 # We are running configure from the src root. 15154 # Create a default ./build/target-variant-debuglevel output root. 15155 if test "x${CONF_NAME}" = x; then 15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15157 $as_echo "in default location" >&6; } 15158 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15159 else 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15161 $as_echo "in build directory with custom name" >&6; } 15162 fi 15163 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15164 $MKDIR -p "$OUTPUT_ROOT" 15165 if test ! -d "$OUTPUT_ROOT"; then 15166 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15167 fi 15168 else 15169 # We are running configure from outside of the src dir. 15170 # Then use the current directory as output dir! 15171 # If configuration is situated in normal build directory, just use the build 15172 # directory name as configuration name, otherwise use the complete path. 15173 if test "x${CONF_NAME}" = x; then 15174 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15175 fi 15176 OUTPUT_ROOT="$CURDIR" 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15178 $as_echo "in current directory" >&6; } 15179 15180 # WARNING: This might be a bad thing to do. You need to be sure you want to 15181 # have a configuration in this directory. Do some sanity checks! 15182 15183 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15184 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15185 # other files 15186 files_present=`$LS $OUTPUT_ROOT` 15187 # Configure has already touched config.log and confdefs.h in the current dir when this check 15188 # is performed. 15189 filtered_files=`$ECHO "$files_present" \ 15190 | $SED -e 's/config.log//g' \ 15191 -e 's/confdefs.h//g' \ 15192 -e 's/fixpath.exe//g' \ 15193 -e 's/ //g' \ 15194 | $TR -d '\n'` 15195 if test "x$filtered_files" != x; then 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15197 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15199 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15200 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15201 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15203 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15205 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15207 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15209 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15210 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15211 fi 15212 fi 15213 fi 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15215 $as_echo_n "checking what configuration name to use... " >&6; } 15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15217 $as_echo "$CONF_NAME" >&6; } 15218 15219 15220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15221 15222 # Input might be given as Windows format, start by converting to 15223 # unix format. 15224 path="$OUTPUT_ROOT" 15225 new_path=`$CYGPATH -u "$path"` 15226 15227 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15228 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15229 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15230 # "foo.exe" is OK but "foo" is an error. 15231 # 15232 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15233 # It is also a way to make sure we got the proper file name for the real test later on. 15234 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15235 if test "x$test_shortpath" = x; then 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15237 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15238 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15239 fi 15240 15241 # Call helper function which possibly converts this using DOS-style short mode. 15242 # If so, the updated path is stored in $new_path. 15243 15244 input_path="$new_path" 15245 # Check if we need to convert this using DOS-style short mode. If the path 15246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15247 # take no chances and rewrite it. 15248 # Note: m4 eats our [], so we need to use [ and ] instead. 15249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15250 if test "x$has_forbidden_chars" != x; then 15251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15252 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15253 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15254 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15255 # Going to short mode and back again did indeed matter. Since short mode is 15256 # case insensitive, let's make it lowercase to improve readability. 15257 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15258 # Now convert it back to Unix-style (cygpath) 15259 input_path=`$CYGPATH -u "$shortmode_path"` 15260 new_path="$input_path" 15261 fi 15262 fi 15263 15264 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15265 if test "x$test_cygdrive_prefix" = x; then 15266 # As a simple fix, exclude /usr/bin since it's not a real path. 15267 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15268 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15269 # a path prefixed by /cygdrive for fixpath to work. 15270 new_path="$CYGWIN_ROOT_PATH$input_path" 15271 fi 15272 fi 15273 15274 15275 if test "x$path" != "x$new_path"; then 15276 OUTPUT_ROOT="$new_path" 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15278 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15279 fi 15280 15281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15282 15283 path="$OUTPUT_ROOT" 15284 has_colon=`$ECHO $path | $GREP ^.:` 15285 new_path="$path" 15286 if test "x$has_colon" = x; then 15287 # Not in mixed or Windows style, start by that. 15288 new_path=`cmd //c echo $path` 15289 fi 15290 15291 15292 input_path="$new_path" 15293 # Check if we need to convert this using DOS-style short mode. If the path 15294 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15295 # take no chances and rewrite it. 15296 # Note: m4 eats our [], so we need to use [ and ] instead. 15297 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15298 if test "x$has_forbidden_chars" != x; then 15299 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15300 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15301 fi 15302 15303 15304 windows_path="$new_path" 15305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15306 unix_path=`$CYGPATH -u "$windows_path"` 15307 new_path="$unix_path" 15308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15309 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15310 new_path="$unix_path" 15311 fi 15312 15313 if test "x$path" != "x$new_path"; then 15314 OUTPUT_ROOT="$new_path" 15315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15316 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15317 fi 15318 15319 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15320 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15321 15322 else 15323 # We're on a posix platform. Hooray! :) 15324 path="$OUTPUT_ROOT" 15325 has_space=`$ECHO "$path" | $GREP " "` 15326 if test "x$has_space" != x; then 15327 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15328 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15329 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15330 fi 15331 15332 # Use eval to expand a potential ~ 15333 eval path="$path" 15334 if test ! -f "$path" && test ! -d "$path"; then 15335 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15336 fi 15337 15338 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15339 fi 15340 15341 15342 SPEC=$OUTPUT_ROOT/spec.gmk 15343 15344 CONF_NAME=$CONF_NAME 15345 15346 OUTPUT_ROOT=$OUTPUT_ROOT 15347 15348 15349 # Most of the probed defines are put into config.h 15350 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15351 15352 # The spec.gmk file contains all variables for the make system. 15353 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15354 15355 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15356 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15357 15358 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15359 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15360 15361 # The compare.sh is used to compare the build output to other builds. 15362 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15363 15364 # Spec.sh is currently used by compare-objects.sh 15365 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15366 15367 # The generated Makefile knows where the spec.gmk is and where the source is. 15368 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15369 # which will look for generated configurations 15370 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15371 15372 15373 15374 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15375 15376 for ac_prog in apt-get yum port pkgutil pkgadd 15377 do 15378 # Extract the first word of "$ac_prog", so it can be a program name with args. 15379 set dummy $ac_prog; ac_word=$2 15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15381 $as_echo_n "checking for $ac_word... " >&6; } 15382 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15383 $as_echo_n "(cached) " >&6 15384 else 15385 if test -n "$PKGHANDLER"; then 15386 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15387 else 15388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15389 for as_dir in $PATH 15390 do 15391 IFS=$as_save_IFS 15392 test -z "$as_dir" && as_dir=. 15393 for ac_exec_ext in '' $ac_executable_extensions; do 15394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15395 ac_cv_prog_PKGHANDLER="$ac_prog" 15396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15397 break 2 15398 fi 15399 done 15400 done 15401 IFS=$as_save_IFS 15402 15403 fi 15404 fi 15405 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15406 if test -n "$PKGHANDLER"; then 15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15408 $as_echo "$PKGHANDLER" >&6; } 15409 else 15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15411 $as_echo "no" >&6; } 15412 fi 15413 15414 15415 test -n "$PKGHANDLER" && break 15416 done 15417 15418 15419 15420 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15421 15422 15423 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15424 if test "x$MAKE" != x; then 15425 # User has supplied a make, test it. 15426 if test ! -f "$MAKE"; then 15427 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15428 fi 15429 15430 MAKE_CANDIDATE=""$MAKE"" 15431 DESCRIPTION="user supplied MAKE=$MAKE" 15432 if test "x$MAKE_CANDIDATE" != x; then 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15434 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15435 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15436 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15437 if test "x$IS_GNU_MAKE" = x; then 15438 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15439 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15440 else 15441 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15442 if test "x$IS_MODERN_MAKE" = x; then 15443 { $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 15444 $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;} 15445 else 15446 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15448 MAKE_EXPECTED_ENV='cygwin' 15449 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15450 MAKE_EXPECTED_ENV='msys' 15451 else 15452 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15453 fi 15454 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15455 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15456 else 15457 # Not relevant for non-Windows 15458 IS_MAKE_CORRECT_ENV=true 15459 fi 15460 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15461 { $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 15462 $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;} 15463 else 15464 FOUND_MAKE=$MAKE_CANDIDATE 15465 15466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15467 15468 # First separate the path from the arguments. This will split at the first 15469 # space. 15470 complete="$FOUND_MAKE" 15471 path="${complete%% *}" 15472 tmp="$complete EOL" 15473 arguments="${tmp#* }" 15474 15475 # Input might be given as Windows format, start by converting to 15476 # unix format. 15477 new_path=`$CYGPATH -u "$path"` 15478 15479 # Now try to locate executable using which 15480 new_path=`$WHICH "$new_path" 2> /dev/null` 15481 # bat and cmd files are not always considered executable in cygwin causing which 15482 # to not find them 15483 if test "x$new_path" = x \ 15484 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15485 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15486 new_path=`$CYGPATH -u "$path"` 15487 fi 15488 if test "x$new_path" = x; then 15489 # Oops. Which didn't find the executable. 15490 # The splitting of arguments from the executable at a space might have been incorrect, 15491 # since paths with space are more likely in Windows. Give it another try with the whole 15492 # argument. 15493 path="$complete" 15494 arguments="EOL" 15495 new_path=`$CYGPATH -u "$path"` 15496 new_path=`$WHICH "$new_path" 2> /dev/null` 15497 # bat and cmd files are not always considered executable in cygwin causing which 15498 # to not find them 15499 if test "x$new_path" = x \ 15500 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15501 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15502 new_path=`$CYGPATH -u "$path"` 15503 fi 15504 if test "x$new_path" = x; then 15505 # It's still not found. Now this is an unrecoverable error. 15506 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15507 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15508 has_space=`$ECHO "$complete" | $GREP " "` 15509 if test "x$has_space" != x; then 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15511 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15512 fi 15513 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15514 fi 15515 fi 15516 15517 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15518 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15519 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15520 # "foo.exe" is OK but "foo" is an error. 15521 # 15522 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15523 # It is also a way to make sure we got the proper file name for the real test later on. 15524 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15525 if test "x$test_shortpath" = x; then 15526 # Short path failed, file does not exist as specified. 15527 # Try adding .exe or .cmd 15528 if test -f "${new_path}.exe"; then 15529 input_to_shortpath="${new_path}.exe" 15530 elif test -f "${new_path}.cmd"; then 15531 input_to_shortpath="${new_path}.cmd" 15532 else 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15534 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15535 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15536 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15537 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15538 fi 15539 else 15540 input_to_shortpath="$new_path" 15541 fi 15542 15543 # Call helper function which possibly converts this using DOS-style short mode. 15544 # If so, the updated path is stored in $new_path. 15545 new_path="$input_to_shortpath" 15546 15547 input_path="$input_to_shortpath" 15548 # Check if we need to convert this using DOS-style short mode. If the path 15549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15550 # take no chances and rewrite it. 15551 # Note: m4 eats our [], so we need to use [ and ] instead. 15552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15553 if test "x$has_forbidden_chars" != x; then 15554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15555 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15556 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15557 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15558 # Going to short mode and back again did indeed matter. Since short mode is 15559 # case insensitive, let's make it lowercase to improve readability. 15560 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15561 # Now convert it back to Unix-style (cygpath) 15562 input_path=`$CYGPATH -u "$shortmode_path"` 15563 new_path="$input_path" 15564 fi 15565 fi 15566 15567 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15568 if test "x$test_cygdrive_prefix" = x; then 15569 # As a simple fix, exclude /usr/bin since it's not a real path. 15570 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15571 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15572 # a path prefixed by /cygdrive for fixpath to work. 15573 new_path="$CYGWIN_ROOT_PATH$input_path" 15574 fi 15575 fi 15576 15577 # remove trailing .exe if any 15578 new_path="${new_path/%.exe/}" 15579 15580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15581 15582 # First separate the path from the arguments. This will split at the first 15583 # space. 15584 complete="$FOUND_MAKE" 15585 path="${complete%% *}" 15586 tmp="$complete EOL" 15587 arguments="${tmp#* }" 15588 15589 # Input might be given as Windows format, start by converting to 15590 # unix format. 15591 new_path="$path" 15592 15593 windows_path="$new_path" 15594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15595 unix_path=`$CYGPATH -u "$windows_path"` 15596 new_path="$unix_path" 15597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15598 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15599 new_path="$unix_path" 15600 fi 15601 15602 15603 # Now try to locate executable using which 15604 new_path=`$WHICH "$new_path" 2> /dev/null` 15605 15606 if test "x$new_path" = x; then 15607 # Oops. Which didn't find the executable. 15608 # The splitting of arguments from the executable at a space might have been incorrect, 15609 # since paths with space are more likely in Windows. Give it another try with the whole 15610 # argument. 15611 path="$complete" 15612 arguments="EOL" 15613 new_path="$path" 15614 15615 windows_path="$new_path" 15616 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15617 unix_path=`$CYGPATH -u "$windows_path"` 15618 new_path="$unix_path" 15619 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15620 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15621 new_path="$unix_path" 15622 fi 15623 15624 15625 new_path=`$WHICH "$new_path" 2> /dev/null` 15626 # bat and cmd files are not always considered executable in MSYS causing which 15627 # to not find them 15628 if test "x$new_path" = x \ 15629 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15630 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15631 new_path="$path" 15632 15633 windows_path="$new_path" 15634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15635 unix_path=`$CYGPATH -u "$windows_path"` 15636 new_path="$unix_path" 15637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15638 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15639 new_path="$unix_path" 15640 fi 15641 15642 fi 15643 15644 if test "x$new_path" = x; then 15645 # It's still not found. Now this is an unrecoverable error. 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15647 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15648 has_space=`$ECHO "$complete" | $GREP " "` 15649 if test "x$has_space" != x; then 15650 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15651 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15652 fi 15653 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15654 fi 15655 fi 15656 15657 # Now new_path has a complete unix path to the binary 15658 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15659 # Keep paths in /bin as-is, but remove trailing .exe if any 15660 new_path="${new_path/%.exe/}" 15661 # Do not save /bin paths to all_fixpath_prefixes! 15662 else 15663 # Not in mixed or Windows style, start by that. 15664 new_path=`cmd //c echo $new_path` 15665 15666 input_path="$new_path" 15667 # Check if we need to convert this using DOS-style short mode. If the path 15668 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15669 # take no chances and rewrite it. 15670 # Note: m4 eats our [], so we need to use [ and ] instead. 15671 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15672 if test "x$has_forbidden_chars" != x; then 15673 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15674 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15675 fi 15676 15677 # Output is in $new_path 15678 15679 windows_path="$new_path" 15680 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15681 unix_path=`$CYGPATH -u "$windows_path"` 15682 new_path="$unix_path" 15683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15684 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15685 new_path="$unix_path" 15686 fi 15687 15688 # remove trailing .exe if any 15689 new_path="${new_path/%.exe/}" 15690 15691 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15692 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15693 fi 15694 15695 else 15696 # We're on a posix platform. Hooray! :) 15697 # First separate the path from the arguments. This will split at the first 15698 # space. 15699 complete="$FOUND_MAKE" 15700 path="${complete%% *}" 15701 tmp="$complete EOL" 15702 arguments="${tmp#* }" 15703 15704 # Cannot rely on the command "which" here since it doesn't always work. 15705 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15706 if test -z "$is_absolute_path"; then 15707 # Path to executable is not absolute. Find it. 15708 IFS_save="$IFS" 15709 IFS=: 15710 for p in $PATH; do 15711 if test -f "$p/$path" && test -x "$p/$path"; then 15712 new_path="$p/$path" 15713 break 15714 fi 15715 done 15716 IFS="$IFS_save" 15717 else 15718 # This is an absolute path, we can use it without further modifications. 15719 new_path="$path" 15720 fi 15721 15722 if test "x$new_path" = x; then 15723 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15724 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15725 has_space=`$ECHO "$complete" | $GREP " "` 15726 if test "x$has_space" != x; then 15727 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15728 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15729 fi 15730 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15731 fi 15732 fi 15733 15734 # Now join together the path and the arguments once again 15735 if test "x$arguments" != xEOL; then 15736 new_complete="$new_path ${arguments% *}" 15737 else 15738 new_complete="$new_path" 15739 fi 15740 15741 if test "x$complete" != "x$new_complete"; then 15742 FOUND_MAKE="$new_complete" 15743 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15744 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15745 fi 15746 15747 fi 15748 fi 15749 fi 15750 fi 15751 15752 if test "x$FOUND_MAKE" = x; then 15753 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15754 fi 15755 else 15756 # Try our hardest to locate a correct version of GNU make 15757 for ac_prog in gmake 15758 do 15759 # Extract the first word of "$ac_prog", so it can be a program name with args. 15760 set dummy $ac_prog; ac_word=$2 15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15762 $as_echo_n "checking for $ac_word... " >&6; } 15763 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15764 $as_echo_n "(cached) " >&6 15765 else 15766 case $CHECK_GMAKE in 15767 [\\/]* | ?:[\\/]*) 15768 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15769 ;; 15770 *) 15771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15772 for as_dir in $PATH 15773 do 15774 IFS=$as_save_IFS 15775 test -z "$as_dir" && as_dir=. 15776 for ac_exec_ext in '' $ac_executable_extensions; do 15777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15778 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15780 break 2 15781 fi 15782 done 15783 done 15784 IFS=$as_save_IFS 15785 15786 ;; 15787 esac 15788 fi 15789 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15790 if test -n "$CHECK_GMAKE"; then 15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15792 $as_echo "$CHECK_GMAKE" >&6; } 15793 else 15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15795 $as_echo "no" >&6; } 15796 fi 15797 15798 15799 test -n "$CHECK_GMAKE" && break 15800 done 15801 15802 15803 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15804 DESCRIPTION="gmake in PATH" 15805 if test "x$MAKE_CANDIDATE" != x; then 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15807 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15808 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15809 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15810 if test "x$IS_GNU_MAKE" = x; then 15811 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15812 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15813 else 15814 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15815 if test "x$IS_MODERN_MAKE" = x; then 15816 { $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 15817 $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;} 15818 else 15819 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15821 MAKE_EXPECTED_ENV='cygwin' 15822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15823 MAKE_EXPECTED_ENV='msys' 15824 else 15825 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15826 fi 15827 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15828 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15829 else 15830 # Not relevant for non-Windows 15831 IS_MAKE_CORRECT_ENV=true 15832 fi 15833 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15834 { $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 15835 $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;} 15836 else 15837 FOUND_MAKE=$MAKE_CANDIDATE 15838 15839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15840 15841 # First separate the path from the arguments. This will split at the first 15842 # space. 15843 complete="$FOUND_MAKE" 15844 path="${complete%% *}" 15845 tmp="$complete EOL" 15846 arguments="${tmp#* }" 15847 15848 # Input might be given as Windows format, start by converting to 15849 # unix format. 15850 new_path=`$CYGPATH -u "$path"` 15851 15852 # Now try to locate executable using which 15853 new_path=`$WHICH "$new_path" 2> /dev/null` 15854 # bat and cmd files are not always considered executable in cygwin causing which 15855 # to not find them 15856 if test "x$new_path" = x \ 15857 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15858 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15859 new_path=`$CYGPATH -u "$path"` 15860 fi 15861 if test "x$new_path" = x; then 15862 # Oops. Which didn't find the executable. 15863 # The splitting of arguments from the executable at a space might have been incorrect, 15864 # since paths with space are more likely in Windows. Give it another try with the whole 15865 # argument. 15866 path="$complete" 15867 arguments="EOL" 15868 new_path=`$CYGPATH -u "$path"` 15869 new_path=`$WHICH "$new_path" 2> /dev/null` 15870 # bat and cmd files are not always considered executable in cygwin causing which 15871 # to not find them 15872 if test "x$new_path" = x \ 15873 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15874 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15875 new_path=`$CYGPATH -u "$path"` 15876 fi 15877 if test "x$new_path" = x; then 15878 # It's still not found. Now this is an unrecoverable error. 15879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15880 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15881 has_space=`$ECHO "$complete" | $GREP " "` 15882 if test "x$has_space" != x; then 15883 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15884 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15885 fi 15886 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15887 fi 15888 fi 15889 15890 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15891 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15892 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15893 # "foo.exe" is OK but "foo" is an error. 15894 # 15895 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15896 # It is also a way to make sure we got the proper file name for the real test later on. 15897 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15898 if test "x$test_shortpath" = x; then 15899 # Short path failed, file does not exist as specified. 15900 # Try adding .exe or .cmd 15901 if test -f "${new_path}.exe"; then 15902 input_to_shortpath="${new_path}.exe" 15903 elif test -f "${new_path}.cmd"; then 15904 input_to_shortpath="${new_path}.cmd" 15905 else 15906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15907 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15908 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15909 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15910 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15911 fi 15912 else 15913 input_to_shortpath="$new_path" 15914 fi 15915 15916 # Call helper function which possibly converts this using DOS-style short mode. 15917 # If so, the updated path is stored in $new_path. 15918 new_path="$input_to_shortpath" 15919 15920 input_path="$input_to_shortpath" 15921 # Check if we need to convert this using DOS-style short mode. If the path 15922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15923 # take no chances and rewrite it. 15924 # Note: m4 eats our [], so we need to use [ and ] instead. 15925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15926 if test "x$has_forbidden_chars" != x; then 15927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15928 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15929 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15930 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15931 # Going to short mode and back again did indeed matter. Since short mode is 15932 # case insensitive, let's make it lowercase to improve readability. 15933 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15934 # Now convert it back to Unix-style (cygpath) 15935 input_path=`$CYGPATH -u "$shortmode_path"` 15936 new_path="$input_path" 15937 fi 15938 fi 15939 15940 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15941 if test "x$test_cygdrive_prefix" = x; then 15942 # As a simple fix, exclude /usr/bin since it's not a real path. 15943 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15944 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15945 # a path prefixed by /cygdrive for fixpath to work. 15946 new_path="$CYGWIN_ROOT_PATH$input_path" 15947 fi 15948 fi 15949 15950 # remove trailing .exe if any 15951 new_path="${new_path/%.exe/}" 15952 15953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15954 15955 # First separate the path from the arguments. This will split at the first 15956 # space. 15957 complete="$FOUND_MAKE" 15958 path="${complete%% *}" 15959 tmp="$complete EOL" 15960 arguments="${tmp#* }" 15961 15962 # Input might be given as Windows format, start by converting to 15963 # unix format. 15964 new_path="$path" 15965 15966 windows_path="$new_path" 15967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15968 unix_path=`$CYGPATH -u "$windows_path"` 15969 new_path="$unix_path" 15970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15972 new_path="$unix_path" 15973 fi 15974 15975 15976 # Now try to locate executable using which 15977 new_path=`$WHICH "$new_path" 2> /dev/null` 15978 15979 if test "x$new_path" = x; then 15980 # Oops. Which didn't find the executable. 15981 # The splitting of arguments from the executable at a space might have been incorrect, 15982 # since paths with space are more likely in Windows. Give it another try with the whole 15983 # argument. 15984 path="$complete" 15985 arguments="EOL" 15986 new_path="$path" 15987 15988 windows_path="$new_path" 15989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15990 unix_path=`$CYGPATH -u "$windows_path"` 15991 new_path="$unix_path" 15992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15994 new_path="$unix_path" 15995 fi 15996 15997 15998 new_path=`$WHICH "$new_path" 2> /dev/null` 15999 # bat and cmd files are not always considered executable in MSYS causing which 16000 # to not find them 16001 if test "x$new_path" = x \ 16002 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16003 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16004 new_path="$path" 16005 16006 windows_path="$new_path" 16007 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16008 unix_path=`$CYGPATH -u "$windows_path"` 16009 new_path="$unix_path" 16010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16011 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16012 new_path="$unix_path" 16013 fi 16014 16015 fi 16016 16017 if test "x$new_path" = x; then 16018 # It's still not found. Now this is an unrecoverable error. 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16020 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16021 has_space=`$ECHO "$complete" | $GREP " "` 16022 if test "x$has_space" != x; then 16023 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16024 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16025 fi 16026 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16027 fi 16028 fi 16029 16030 # Now new_path has a complete unix path to the binary 16031 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16032 # Keep paths in /bin as-is, but remove trailing .exe if any 16033 new_path="${new_path/%.exe/}" 16034 # Do not save /bin paths to all_fixpath_prefixes! 16035 else 16036 # Not in mixed or Windows style, start by that. 16037 new_path=`cmd //c echo $new_path` 16038 16039 input_path="$new_path" 16040 # Check if we need to convert this using DOS-style short mode. If the path 16041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16042 # take no chances and rewrite it. 16043 # Note: m4 eats our [], so we need to use [ and ] instead. 16044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16045 if test "x$has_forbidden_chars" != x; then 16046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16047 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16048 fi 16049 16050 # Output is in $new_path 16051 16052 windows_path="$new_path" 16053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16054 unix_path=`$CYGPATH -u "$windows_path"` 16055 new_path="$unix_path" 16056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16057 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16058 new_path="$unix_path" 16059 fi 16060 16061 # remove trailing .exe if any 16062 new_path="${new_path/%.exe/}" 16063 16064 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16065 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16066 fi 16067 16068 else 16069 # We're on a posix platform. Hooray! :) 16070 # First separate the path from the arguments. This will split at the first 16071 # space. 16072 complete="$FOUND_MAKE" 16073 path="${complete%% *}" 16074 tmp="$complete EOL" 16075 arguments="${tmp#* }" 16076 16077 # Cannot rely on the command "which" here since it doesn't always work. 16078 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16079 if test -z "$is_absolute_path"; then 16080 # Path to executable is not absolute. Find it. 16081 IFS_save="$IFS" 16082 IFS=: 16083 for p in $PATH; do 16084 if test -f "$p/$path" && test -x "$p/$path"; then 16085 new_path="$p/$path" 16086 break 16087 fi 16088 done 16089 IFS="$IFS_save" 16090 else 16091 # This is an absolute path, we can use it without further modifications. 16092 new_path="$path" 16093 fi 16094 16095 if test "x$new_path" = x; then 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16097 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16098 has_space=`$ECHO "$complete" | $GREP " "` 16099 if test "x$has_space" != x; then 16100 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16101 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16102 fi 16103 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16104 fi 16105 fi 16106 16107 # Now join together the path and the arguments once again 16108 if test "x$arguments" != xEOL; then 16109 new_complete="$new_path ${arguments% *}" 16110 else 16111 new_complete="$new_path" 16112 fi 16113 16114 if test "x$complete" != "x$new_complete"; then 16115 FOUND_MAKE="$new_complete" 16116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16117 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16118 fi 16119 16120 fi 16121 fi 16122 fi 16123 fi 16124 16125 16126 if test "x$FOUND_MAKE" = x; then 16127 for ac_prog in make 16128 do 16129 # Extract the first word of "$ac_prog", so it can be a program name with args. 16130 set dummy $ac_prog; ac_word=$2 16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16132 $as_echo_n "checking for $ac_word... " >&6; } 16133 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16134 $as_echo_n "(cached) " >&6 16135 else 16136 case $CHECK_MAKE in 16137 [\\/]* | ?:[\\/]*) 16138 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16139 ;; 16140 *) 16141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16142 for as_dir in $PATH 16143 do 16144 IFS=$as_save_IFS 16145 test -z "$as_dir" && as_dir=. 16146 for ac_exec_ext in '' $ac_executable_extensions; do 16147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16148 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16150 break 2 16151 fi 16152 done 16153 done 16154 IFS=$as_save_IFS 16155 16156 ;; 16157 esac 16158 fi 16159 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16160 if test -n "$CHECK_MAKE"; then 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16162 $as_echo "$CHECK_MAKE" >&6; } 16163 else 16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16165 $as_echo "no" >&6; } 16166 fi 16167 16168 16169 test -n "$CHECK_MAKE" && break 16170 done 16171 16172 16173 MAKE_CANDIDATE=""$CHECK_MAKE"" 16174 DESCRIPTION="make in PATH" 16175 if test "x$MAKE_CANDIDATE" != x; then 16176 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16177 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16178 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16179 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16180 if test "x$IS_GNU_MAKE" = x; then 16181 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16182 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16183 else 16184 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16185 if test "x$IS_MODERN_MAKE" = x; then 16186 { $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 16187 $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;} 16188 else 16189 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16190 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16191 MAKE_EXPECTED_ENV='cygwin' 16192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16193 MAKE_EXPECTED_ENV='msys' 16194 else 16195 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16196 fi 16197 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16198 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16199 else 16200 # Not relevant for non-Windows 16201 IS_MAKE_CORRECT_ENV=true 16202 fi 16203 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16204 { $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 16205 $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;} 16206 else 16207 FOUND_MAKE=$MAKE_CANDIDATE 16208 16209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16210 16211 # First separate the path from the arguments. This will split at the first 16212 # space. 16213 complete="$FOUND_MAKE" 16214 path="${complete%% *}" 16215 tmp="$complete EOL" 16216 arguments="${tmp#* }" 16217 16218 # Input might be given as Windows format, start by converting to 16219 # unix format. 16220 new_path=`$CYGPATH -u "$path"` 16221 16222 # Now try to locate executable using which 16223 new_path=`$WHICH "$new_path" 2> /dev/null` 16224 # bat and cmd files are not always considered executable in cygwin causing which 16225 # to not find them 16226 if test "x$new_path" = x \ 16227 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16228 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16229 new_path=`$CYGPATH -u "$path"` 16230 fi 16231 if test "x$new_path" = x; then 16232 # Oops. Which didn't find the executable. 16233 # The splitting of arguments from the executable at a space might have been incorrect, 16234 # since paths with space are more likely in Windows. Give it another try with the whole 16235 # argument. 16236 path="$complete" 16237 arguments="EOL" 16238 new_path=`$CYGPATH -u "$path"` 16239 new_path=`$WHICH "$new_path" 2> /dev/null` 16240 # bat and cmd files are not always considered executable in cygwin causing which 16241 # to not find them 16242 if test "x$new_path" = x \ 16243 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16244 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16245 new_path=`$CYGPATH -u "$path"` 16246 fi 16247 if test "x$new_path" = x; then 16248 # It's still not found. Now this is an unrecoverable error. 16249 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16250 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16251 has_space=`$ECHO "$complete" | $GREP " "` 16252 if test "x$has_space" != x; then 16253 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16254 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16255 fi 16256 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16257 fi 16258 fi 16259 16260 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16261 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16262 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16263 # "foo.exe" is OK but "foo" is an error. 16264 # 16265 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16266 # It is also a way to make sure we got the proper file name for the real test later on. 16267 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16268 if test "x$test_shortpath" = x; then 16269 # Short path failed, file does not exist as specified. 16270 # Try adding .exe or .cmd 16271 if test -f "${new_path}.exe"; then 16272 input_to_shortpath="${new_path}.exe" 16273 elif test -f "${new_path}.cmd"; then 16274 input_to_shortpath="${new_path}.cmd" 16275 else 16276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16277 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16278 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16279 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16280 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16281 fi 16282 else 16283 input_to_shortpath="$new_path" 16284 fi 16285 16286 # Call helper function which possibly converts this using DOS-style short mode. 16287 # If so, the updated path is stored in $new_path. 16288 new_path="$input_to_shortpath" 16289 16290 input_path="$input_to_shortpath" 16291 # Check if we need to convert this using DOS-style short mode. If the path 16292 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16293 # take no chances and rewrite it. 16294 # Note: m4 eats our [], so we need to use [ and ] instead. 16295 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16296 if test "x$has_forbidden_chars" != x; then 16297 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16298 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16299 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16300 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16301 # Going to short mode and back again did indeed matter. Since short mode is 16302 # case insensitive, let's make it lowercase to improve readability. 16303 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16304 # Now convert it back to Unix-style (cygpath) 16305 input_path=`$CYGPATH -u "$shortmode_path"` 16306 new_path="$input_path" 16307 fi 16308 fi 16309 16310 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16311 if test "x$test_cygdrive_prefix" = x; then 16312 # As a simple fix, exclude /usr/bin since it's not a real path. 16313 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16314 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16315 # a path prefixed by /cygdrive for fixpath to work. 16316 new_path="$CYGWIN_ROOT_PATH$input_path" 16317 fi 16318 fi 16319 16320 # remove trailing .exe if any 16321 new_path="${new_path/%.exe/}" 16322 16323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16324 16325 # First separate the path from the arguments. This will split at the first 16326 # space. 16327 complete="$FOUND_MAKE" 16328 path="${complete%% *}" 16329 tmp="$complete EOL" 16330 arguments="${tmp#* }" 16331 16332 # Input might be given as Windows format, start by converting to 16333 # unix format. 16334 new_path="$path" 16335 16336 windows_path="$new_path" 16337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16338 unix_path=`$CYGPATH -u "$windows_path"` 16339 new_path="$unix_path" 16340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16341 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16342 new_path="$unix_path" 16343 fi 16344 16345 16346 # Now try to locate executable using which 16347 new_path=`$WHICH "$new_path" 2> /dev/null` 16348 16349 if test "x$new_path" = x; then 16350 # Oops. Which didn't find the executable. 16351 # The splitting of arguments from the executable at a space might have been incorrect, 16352 # since paths with space are more likely in Windows. Give it another try with the whole 16353 # argument. 16354 path="$complete" 16355 arguments="EOL" 16356 new_path="$path" 16357 16358 windows_path="$new_path" 16359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16360 unix_path=`$CYGPATH -u "$windows_path"` 16361 new_path="$unix_path" 16362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16363 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16364 new_path="$unix_path" 16365 fi 16366 16367 16368 new_path=`$WHICH "$new_path" 2> /dev/null` 16369 # bat and cmd files are not always considered executable in MSYS causing which 16370 # to not find them 16371 if test "x$new_path" = x \ 16372 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16373 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16374 new_path="$path" 16375 16376 windows_path="$new_path" 16377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16378 unix_path=`$CYGPATH -u "$windows_path"` 16379 new_path="$unix_path" 16380 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16381 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16382 new_path="$unix_path" 16383 fi 16384 16385 fi 16386 16387 if test "x$new_path" = x; then 16388 # It's still not found. Now this is an unrecoverable error. 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16390 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16391 has_space=`$ECHO "$complete" | $GREP " "` 16392 if test "x$has_space" != x; then 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16394 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16395 fi 16396 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16397 fi 16398 fi 16399 16400 # Now new_path has a complete unix path to the binary 16401 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16402 # Keep paths in /bin as-is, but remove trailing .exe if any 16403 new_path="${new_path/%.exe/}" 16404 # Do not save /bin paths to all_fixpath_prefixes! 16405 else 16406 # Not in mixed or Windows style, start by that. 16407 new_path=`cmd //c echo $new_path` 16408 16409 input_path="$new_path" 16410 # Check if we need to convert this using DOS-style short mode. If the path 16411 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16412 # take no chances and rewrite it. 16413 # Note: m4 eats our [], so we need to use [ and ] instead. 16414 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16415 if test "x$has_forbidden_chars" != x; then 16416 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16417 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16418 fi 16419 16420 # Output is in $new_path 16421 16422 windows_path="$new_path" 16423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16424 unix_path=`$CYGPATH -u "$windows_path"` 16425 new_path="$unix_path" 16426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16428 new_path="$unix_path" 16429 fi 16430 16431 # remove trailing .exe if any 16432 new_path="${new_path/%.exe/}" 16433 16434 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16435 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16436 fi 16437 16438 else 16439 # We're on a posix platform. Hooray! :) 16440 # First separate the path from the arguments. This will split at the first 16441 # space. 16442 complete="$FOUND_MAKE" 16443 path="${complete%% *}" 16444 tmp="$complete EOL" 16445 arguments="${tmp#* }" 16446 16447 # Cannot rely on the command "which" here since it doesn't always work. 16448 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16449 if test -z "$is_absolute_path"; then 16450 # Path to executable is not absolute. Find it. 16451 IFS_save="$IFS" 16452 IFS=: 16453 for p in $PATH; do 16454 if test -f "$p/$path" && test -x "$p/$path"; then 16455 new_path="$p/$path" 16456 break 16457 fi 16458 done 16459 IFS="$IFS_save" 16460 else 16461 # This is an absolute path, we can use it without further modifications. 16462 new_path="$path" 16463 fi 16464 16465 if test "x$new_path" = x; then 16466 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16467 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16468 has_space=`$ECHO "$complete" | $GREP " "` 16469 if test "x$has_space" != x; then 16470 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16471 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16472 fi 16473 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16474 fi 16475 fi 16476 16477 # Now join together the path and the arguments once again 16478 if test "x$arguments" != xEOL; then 16479 new_complete="$new_path ${arguments% *}" 16480 else 16481 new_complete="$new_path" 16482 fi 16483 16484 if test "x$complete" != "x$new_complete"; then 16485 FOUND_MAKE="$new_complete" 16486 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16487 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16488 fi 16489 16490 fi 16491 fi 16492 fi 16493 fi 16494 16495 fi 16496 16497 if test "x$FOUND_MAKE" = x; then 16498 if test "x$TOOLCHAIN_PATH" != x; then 16499 # We have a toolchain path, check that as well before giving up. 16500 OLD_PATH=$PATH 16501 PATH=$TOOLCHAIN_PATH:$PATH 16502 for ac_prog in gmake 16503 do 16504 # Extract the first word of "$ac_prog", so it can be a program name with args. 16505 set dummy $ac_prog; ac_word=$2 16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16507 $as_echo_n "checking for $ac_word... " >&6; } 16508 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16509 $as_echo_n "(cached) " >&6 16510 else 16511 case $CHECK_TOOLSDIR_GMAKE in 16512 [\\/]* | ?:[\\/]*) 16513 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16514 ;; 16515 *) 16516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16517 for as_dir in $PATH 16518 do 16519 IFS=$as_save_IFS 16520 test -z "$as_dir" && as_dir=. 16521 for ac_exec_ext in '' $ac_executable_extensions; do 16522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16523 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16525 break 2 16526 fi 16527 done 16528 done 16529 IFS=$as_save_IFS 16530 16531 ;; 16532 esac 16533 fi 16534 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16535 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16537 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16538 else 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16540 $as_echo "no" >&6; } 16541 fi 16542 16543 16544 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16545 done 16546 16547 16548 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16549 DESCRIPTION="gmake in tools-dir" 16550 if test "x$MAKE_CANDIDATE" != x; then 16551 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16552 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16553 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16554 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16555 if test "x$IS_GNU_MAKE" = x; then 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16557 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16558 else 16559 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16560 if test "x$IS_MODERN_MAKE" = x; then 16561 { $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 16562 $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;} 16563 else 16564 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16566 MAKE_EXPECTED_ENV='cygwin' 16567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16568 MAKE_EXPECTED_ENV='msys' 16569 else 16570 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16571 fi 16572 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16573 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16574 else 16575 # Not relevant for non-Windows 16576 IS_MAKE_CORRECT_ENV=true 16577 fi 16578 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16579 { $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 16580 $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;} 16581 else 16582 FOUND_MAKE=$MAKE_CANDIDATE 16583 16584 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16585 16586 # First separate the path from the arguments. This will split at the first 16587 # space. 16588 complete="$FOUND_MAKE" 16589 path="${complete%% *}" 16590 tmp="$complete EOL" 16591 arguments="${tmp#* }" 16592 16593 # Input might be given as Windows format, start by converting to 16594 # unix format. 16595 new_path=`$CYGPATH -u "$path"` 16596 16597 # Now try to locate executable using which 16598 new_path=`$WHICH "$new_path" 2> /dev/null` 16599 # bat and cmd files are not always considered executable in cygwin causing which 16600 # to not find them 16601 if test "x$new_path" = x \ 16602 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16603 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16604 new_path=`$CYGPATH -u "$path"` 16605 fi 16606 if test "x$new_path" = x; then 16607 # Oops. Which didn't find the executable. 16608 # The splitting of arguments from the executable at a space might have been incorrect, 16609 # since paths with space are more likely in Windows. Give it another try with the whole 16610 # argument. 16611 path="$complete" 16612 arguments="EOL" 16613 new_path=`$CYGPATH -u "$path"` 16614 new_path=`$WHICH "$new_path" 2> /dev/null` 16615 # bat and cmd files are not always considered executable in cygwin causing which 16616 # to not find them 16617 if test "x$new_path" = x \ 16618 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16619 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16620 new_path=`$CYGPATH -u "$path"` 16621 fi 16622 if test "x$new_path" = x; then 16623 # It's still not found. Now this is an unrecoverable error. 16624 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16625 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16626 has_space=`$ECHO "$complete" | $GREP " "` 16627 if test "x$has_space" != x; then 16628 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16629 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16630 fi 16631 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16632 fi 16633 fi 16634 16635 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16636 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16637 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16638 # "foo.exe" is OK but "foo" is an error. 16639 # 16640 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16641 # It is also a way to make sure we got the proper file name for the real test later on. 16642 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16643 if test "x$test_shortpath" = x; then 16644 # Short path failed, file does not exist as specified. 16645 # Try adding .exe or .cmd 16646 if test -f "${new_path}.exe"; then 16647 input_to_shortpath="${new_path}.exe" 16648 elif test -f "${new_path}.cmd"; then 16649 input_to_shortpath="${new_path}.cmd" 16650 else 16651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16652 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16653 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16654 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16655 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16656 fi 16657 else 16658 input_to_shortpath="$new_path" 16659 fi 16660 16661 # Call helper function which possibly converts this using DOS-style short mode. 16662 # If so, the updated path is stored in $new_path. 16663 new_path="$input_to_shortpath" 16664 16665 input_path="$input_to_shortpath" 16666 # Check if we need to convert this using DOS-style short mode. If the path 16667 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16668 # take no chances and rewrite it. 16669 # Note: m4 eats our [], so we need to use [ and ] instead. 16670 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16671 if test "x$has_forbidden_chars" != x; then 16672 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16673 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16674 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16675 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16676 # Going to short mode and back again did indeed matter. Since short mode is 16677 # case insensitive, let's make it lowercase to improve readability. 16678 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16679 # Now convert it back to Unix-style (cygpath) 16680 input_path=`$CYGPATH -u "$shortmode_path"` 16681 new_path="$input_path" 16682 fi 16683 fi 16684 16685 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16686 if test "x$test_cygdrive_prefix" = x; then 16687 # As a simple fix, exclude /usr/bin since it's not a real path. 16688 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16689 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16690 # a path prefixed by /cygdrive for fixpath to work. 16691 new_path="$CYGWIN_ROOT_PATH$input_path" 16692 fi 16693 fi 16694 16695 # remove trailing .exe if any 16696 new_path="${new_path/%.exe/}" 16697 16698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16699 16700 # First separate the path from the arguments. This will split at the first 16701 # space. 16702 complete="$FOUND_MAKE" 16703 path="${complete%% *}" 16704 tmp="$complete EOL" 16705 arguments="${tmp#* }" 16706 16707 # Input might be given as Windows format, start by converting to 16708 # unix format. 16709 new_path="$path" 16710 16711 windows_path="$new_path" 16712 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16713 unix_path=`$CYGPATH -u "$windows_path"` 16714 new_path="$unix_path" 16715 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16716 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16717 new_path="$unix_path" 16718 fi 16719 16720 16721 # Now try to locate executable using which 16722 new_path=`$WHICH "$new_path" 2> /dev/null` 16723 16724 if test "x$new_path" = x; then 16725 # Oops. Which didn't find the executable. 16726 # The splitting of arguments from the executable at a space might have been incorrect, 16727 # since paths with space are more likely in Windows. Give it another try with the whole 16728 # argument. 16729 path="$complete" 16730 arguments="EOL" 16731 new_path="$path" 16732 16733 windows_path="$new_path" 16734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16735 unix_path=`$CYGPATH -u "$windows_path"` 16736 new_path="$unix_path" 16737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16738 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16739 new_path="$unix_path" 16740 fi 16741 16742 16743 new_path=`$WHICH "$new_path" 2> /dev/null` 16744 # bat and cmd files are not always considered executable in MSYS causing which 16745 # to not find them 16746 if test "x$new_path" = x \ 16747 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16748 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16749 new_path="$path" 16750 16751 windows_path="$new_path" 16752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16753 unix_path=`$CYGPATH -u "$windows_path"` 16754 new_path="$unix_path" 16755 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16756 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16757 new_path="$unix_path" 16758 fi 16759 16760 fi 16761 16762 if test "x$new_path" = x; then 16763 # It's still not found. Now this is an unrecoverable error. 16764 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16765 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16766 has_space=`$ECHO "$complete" | $GREP " "` 16767 if test "x$has_space" != x; then 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16769 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16770 fi 16771 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16772 fi 16773 fi 16774 16775 # Now new_path has a complete unix path to the binary 16776 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16777 # Keep paths in /bin as-is, but remove trailing .exe if any 16778 new_path="${new_path/%.exe/}" 16779 # Do not save /bin paths to all_fixpath_prefixes! 16780 else 16781 # Not in mixed or Windows style, start by that. 16782 new_path=`cmd //c echo $new_path` 16783 16784 input_path="$new_path" 16785 # Check if we need to convert this using DOS-style short mode. If the path 16786 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16787 # take no chances and rewrite it. 16788 # Note: m4 eats our [], so we need to use [ and ] instead. 16789 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16790 if test "x$has_forbidden_chars" != x; then 16791 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16792 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16793 fi 16794 16795 # Output is in $new_path 16796 16797 windows_path="$new_path" 16798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16799 unix_path=`$CYGPATH -u "$windows_path"` 16800 new_path="$unix_path" 16801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16803 new_path="$unix_path" 16804 fi 16805 16806 # remove trailing .exe if any 16807 new_path="${new_path/%.exe/}" 16808 16809 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16810 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16811 fi 16812 16813 else 16814 # We're on a posix platform. Hooray! :) 16815 # First separate the path from the arguments. This will split at the first 16816 # space. 16817 complete="$FOUND_MAKE" 16818 path="${complete%% *}" 16819 tmp="$complete EOL" 16820 arguments="${tmp#* }" 16821 16822 # Cannot rely on the command "which" here since it doesn't always work. 16823 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16824 if test -z "$is_absolute_path"; then 16825 # Path to executable is not absolute. Find it. 16826 IFS_save="$IFS" 16827 IFS=: 16828 for p in $PATH; do 16829 if test -f "$p/$path" && test -x "$p/$path"; then 16830 new_path="$p/$path" 16831 break 16832 fi 16833 done 16834 IFS="$IFS_save" 16835 else 16836 # This is an absolute path, we can use it without further modifications. 16837 new_path="$path" 16838 fi 16839 16840 if test "x$new_path" = x; then 16841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16842 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16843 has_space=`$ECHO "$complete" | $GREP " "` 16844 if test "x$has_space" != x; then 16845 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16846 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16847 fi 16848 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16849 fi 16850 fi 16851 16852 # Now join together the path and the arguments once again 16853 if test "x$arguments" != xEOL; then 16854 new_complete="$new_path ${arguments% *}" 16855 else 16856 new_complete="$new_path" 16857 fi 16858 16859 if test "x$complete" != "x$new_complete"; then 16860 FOUND_MAKE="$new_complete" 16861 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16862 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16863 fi 16864 16865 fi 16866 fi 16867 fi 16868 fi 16869 16870 if test "x$FOUND_MAKE" = x; then 16871 for ac_prog in make 16872 do 16873 # Extract the first word of "$ac_prog", so it can be a program name with args. 16874 set dummy $ac_prog; ac_word=$2 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16876 $as_echo_n "checking for $ac_word... " >&6; } 16877 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16878 $as_echo_n "(cached) " >&6 16879 else 16880 case $CHECK_TOOLSDIR_MAKE in 16881 [\\/]* | ?:[\\/]*) 16882 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16883 ;; 16884 *) 16885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16886 for as_dir in $PATH 16887 do 16888 IFS=$as_save_IFS 16889 test -z "$as_dir" && as_dir=. 16890 for ac_exec_ext in '' $ac_executable_extensions; do 16891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16892 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16894 break 2 16895 fi 16896 done 16897 done 16898 IFS=$as_save_IFS 16899 16900 ;; 16901 esac 16902 fi 16903 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16904 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16906 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16907 else 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16909 $as_echo "no" >&6; } 16910 fi 16911 16912 16913 test -n "$CHECK_TOOLSDIR_MAKE" && break 16914 done 16915 16916 16917 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16918 DESCRIPTION="make in tools-dir" 16919 if test "x$MAKE_CANDIDATE" != x; then 16920 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16921 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16922 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16923 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16924 if test "x$IS_GNU_MAKE" = x; then 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16926 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16927 else 16928 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16929 if test "x$IS_MODERN_MAKE" = x; then 16930 { $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 16931 $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;} 16932 else 16933 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16935 MAKE_EXPECTED_ENV='cygwin' 16936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16937 MAKE_EXPECTED_ENV='msys' 16938 else 16939 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16940 fi 16941 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16942 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16943 else 16944 # Not relevant for non-Windows 16945 IS_MAKE_CORRECT_ENV=true 16946 fi 16947 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16948 { $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 16949 $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;} 16950 else 16951 FOUND_MAKE=$MAKE_CANDIDATE 16952 16953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16954 16955 # First separate the path from the arguments. This will split at the first 16956 # space. 16957 complete="$FOUND_MAKE" 16958 path="${complete%% *}" 16959 tmp="$complete EOL" 16960 arguments="${tmp#* }" 16961 16962 # Input might be given as Windows format, start by converting to 16963 # unix format. 16964 new_path=`$CYGPATH -u "$path"` 16965 16966 # Now try to locate executable using which 16967 new_path=`$WHICH "$new_path" 2> /dev/null` 16968 # bat and cmd files are not always considered executable in cygwin causing which 16969 # to not find them 16970 if test "x$new_path" = x \ 16971 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16972 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16973 new_path=`$CYGPATH -u "$path"` 16974 fi 16975 if test "x$new_path" = x; then 16976 # Oops. Which didn't find the executable. 16977 # The splitting of arguments from the executable at a space might have been incorrect, 16978 # since paths with space are more likely in Windows. Give it another try with the whole 16979 # argument. 16980 path="$complete" 16981 arguments="EOL" 16982 new_path=`$CYGPATH -u "$path"` 16983 new_path=`$WHICH "$new_path" 2> /dev/null` 16984 # bat and cmd files are not always considered executable in cygwin causing which 16985 # to not find them 16986 if test "x$new_path" = x \ 16987 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16988 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16989 new_path=`$CYGPATH -u "$path"` 16990 fi 16991 if test "x$new_path" = x; then 16992 # It's still not found. Now this is an unrecoverable error. 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16994 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16995 has_space=`$ECHO "$complete" | $GREP " "` 16996 if test "x$has_space" != x; then 16997 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16998 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16999 fi 17000 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17001 fi 17002 fi 17003 17004 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17005 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17006 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17007 # "foo.exe" is OK but "foo" is an error. 17008 # 17009 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17010 # It is also a way to make sure we got the proper file name for the real test later on. 17011 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17012 if test "x$test_shortpath" = x; then 17013 # Short path failed, file does not exist as specified. 17014 # Try adding .exe or .cmd 17015 if test -f "${new_path}.exe"; then 17016 input_to_shortpath="${new_path}.exe" 17017 elif test -f "${new_path}.cmd"; then 17018 input_to_shortpath="${new_path}.cmd" 17019 else 17020 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17021 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17022 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17023 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17024 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17025 fi 17026 else 17027 input_to_shortpath="$new_path" 17028 fi 17029 17030 # Call helper function which possibly converts this using DOS-style short mode. 17031 # If so, the updated path is stored in $new_path. 17032 new_path="$input_to_shortpath" 17033 17034 input_path="$input_to_shortpath" 17035 # Check if we need to convert this using DOS-style short mode. If the path 17036 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17037 # take no chances and rewrite it. 17038 # Note: m4 eats our [], so we need to use [ and ] instead. 17039 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17040 if test "x$has_forbidden_chars" != x; then 17041 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17042 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17043 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17044 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17045 # Going to short mode and back again did indeed matter. Since short mode is 17046 # case insensitive, let's make it lowercase to improve readability. 17047 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17048 # Now convert it back to Unix-style (cygpath) 17049 input_path=`$CYGPATH -u "$shortmode_path"` 17050 new_path="$input_path" 17051 fi 17052 fi 17053 17054 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17055 if test "x$test_cygdrive_prefix" = x; then 17056 # As a simple fix, exclude /usr/bin since it's not a real path. 17057 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17058 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17059 # a path prefixed by /cygdrive for fixpath to work. 17060 new_path="$CYGWIN_ROOT_PATH$input_path" 17061 fi 17062 fi 17063 17064 # remove trailing .exe if any 17065 new_path="${new_path/%.exe/}" 17066 17067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17068 17069 # First separate the path from the arguments. This will split at the first 17070 # space. 17071 complete="$FOUND_MAKE" 17072 path="${complete%% *}" 17073 tmp="$complete EOL" 17074 arguments="${tmp#* }" 17075 17076 # Input might be given as Windows format, start by converting to 17077 # unix format. 17078 new_path="$path" 17079 17080 windows_path="$new_path" 17081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17082 unix_path=`$CYGPATH -u "$windows_path"` 17083 new_path="$unix_path" 17084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17086 new_path="$unix_path" 17087 fi 17088 17089 17090 # Now try to locate executable using which 17091 new_path=`$WHICH "$new_path" 2> /dev/null` 17092 17093 if test "x$new_path" = x; then 17094 # Oops. Which didn't find the executable. 17095 # The splitting of arguments from the executable at a space might have been incorrect, 17096 # since paths with space are more likely in Windows. Give it another try with the whole 17097 # argument. 17098 path="$complete" 17099 arguments="EOL" 17100 new_path="$path" 17101 17102 windows_path="$new_path" 17103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17104 unix_path=`$CYGPATH -u "$windows_path"` 17105 new_path="$unix_path" 17106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17108 new_path="$unix_path" 17109 fi 17110 17111 17112 new_path=`$WHICH "$new_path" 2> /dev/null` 17113 # bat and cmd files are not always considered executable in MSYS causing which 17114 # to not find them 17115 if test "x$new_path" = x \ 17116 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17117 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17118 new_path="$path" 17119 17120 windows_path="$new_path" 17121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17122 unix_path=`$CYGPATH -u "$windows_path"` 17123 new_path="$unix_path" 17124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17126 new_path="$unix_path" 17127 fi 17128 17129 fi 17130 17131 if test "x$new_path" = x; then 17132 # It's still not found. Now this is an unrecoverable error. 17133 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17134 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17135 has_space=`$ECHO "$complete" | $GREP " "` 17136 if test "x$has_space" != x; then 17137 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17138 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17139 fi 17140 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17141 fi 17142 fi 17143 17144 # Now new_path has a complete unix path to the binary 17145 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17146 # Keep paths in /bin as-is, but remove trailing .exe if any 17147 new_path="${new_path/%.exe/}" 17148 # Do not save /bin paths to all_fixpath_prefixes! 17149 else 17150 # Not in mixed or Windows style, start by that. 17151 new_path=`cmd //c echo $new_path` 17152 17153 input_path="$new_path" 17154 # Check if we need to convert this using DOS-style short mode. If the path 17155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17156 # take no chances and rewrite it. 17157 # Note: m4 eats our [], so we need to use [ and ] instead. 17158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17159 if test "x$has_forbidden_chars" != x; then 17160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17161 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17162 fi 17163 17164 # Output is in $new_path 17165 17166 windows_path="$new_path" 17167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17168 unix_path=`$CYGPATH -u "$windows_path"` 17169 new_path="$unix_path" 17170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17172 new_path="$unix_path" 17173 fi 17174 17175 # remove trailing .exe if any 17176 new_path="${new_path/%.exe/}" 17177 17178 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17179 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17180 fi 17181 17182 else 17183 # We're on a posix platform. Hooray! :) 17184 # First separate the path from the arguments. This will split at the first 17185 # space. 17186 complete="$FOUND_MAKE" 17187 path="${complete%% *}" 17188 tmp="$complete EOL" 17189 arguments="${tmp#* }" 17190 17191 # Cannot rely on the command "which" here since it doesn't always work. 17192 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17193 if test -z "$is_absolute_path"; then 17194 # Path to executable is not absolute. Find it. 17195 IFS_save="$IFS" 17196 IFS=: 17197 for p in $PATH; do 17198 if test -f "$p/$path" && test -x "$p/$path"; then 17199 new_path="$p/$path" 17200 break 17201 fi 17202 done 17203 IFS="$IFS_save" 17204 else 17205 # This is an absolute path, we can use it without further modifications. 17206 new_path="$path" 17207 fi 17208 17209 if test "x$new_path" = x; then 17210 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17211 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17212 has_space=`$ECHO "$complete" | $GREP " "` 17213 if test "x$has_space" != x; then 17214 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17215 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17216 fi 17217 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17218 fi 17219 fi 17220 17221 # Now join together the path and the arguments once again 17222 if test "x$arguments" != xEOL; then 17223 new_complete="$new_path ${arguments% *}" 17224 else 17225 new_complete="$new_path" 17226 fi 17227 17228 if test "x$complete" != "x$new_complete"; then 17229 FOUND_MAKE="$new_complete" 17230 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17231 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17232 fi 17233 17234 fi 17235 fi 17236 fi 17237 fi 17238 17239 fi 17240 PATH=$OLD_PATH 17241 fi 17242 fi 17243 17244 if test "x$FOUND_MAKE" = x; then 17245 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 17246 fi 17247 fi 17248 17249 MAKE=$FOUND_MAKE 17250 17251 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17252 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17253 17254 17255 17256 # Test if find supports -delete 17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17258 $as_echo_n "checking if find supports -delete... " >&6; } 17259 FIND_DELETE="-delete" 17260 17261 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17262 17263 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17264 17265 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17266 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17267 # No, it does not. 17268 rm $DELETEDIR/TestIfFindSupportsDelete 17269 FIND_DELETE="-exec rm \{\} \+" 17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17271 $as_echo "no" >&6; } 17272 else 17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17274 $as_echo "yes" >&6; } 17275 fi 17276 rmdir $DELETEDIR 17277 17278 17279 17280 # These tools might not be installed by default, 17281 # need hint on how to install them. 17282 17283 17284 17285 # Publish this variable in the help. 17286 17287 17288 if test "x$UNZIP" = x; then 17289 # The variable is not set by user, try to locate tool using the code snippet 17290 for ac_prog in unzip 17291 do 17292 # Extract the first word of "$ac_prog", so it can be a program name with args. 17293 set dummy $ac_prog; ac_word=$2 17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17295 $as_echo_n "checking for $ac_word... " >&6; } 17296 if ${ac_cv_path_UNZIP+:} false; then : 17297 $as_echo_n "(cached) " >&6 17298 else 17299 case $UNZIP in 17300 [\\/]* | ?:[\\/]*) 17301 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17302 ;; 17303 *) 17304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17305 for as_dir in $PATH 17306 do 17307 IFS=$as_save_IFS 17308 test -z "$as_dir" && as_dir=. 17309 for ac_exec_ext in '' $ac_executable_extensions; do 17310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17311 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17313 break 2 17314 fi 17315 done 17316 done 17317 IFS=$as_save_IFS 17318 17319 ;; 17320 esac 17321 fi 17322 UNZIP=$ac_cv_path_UNZIP 17323 if test -n "$UNZIP"; then 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17325 $as_echo "$UNZIP" >&6; } 17326 else 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17328 $as_echo "no" >&6; } 17329 fi 17330 17331 17332 test -n "$UNZIP" && break 17333 done 17334 17335 else 17336 # The variable is set, but is it from the command line or the environment? 17337 17338 # Try to remove the string !UNZIP! from our list. 17339 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17340 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17341 # If it failed, the variable was not from the command line. Ignore it, 17342 # but warn the user (except for BASH, which is always set by the calling BASH). 17343 if test "xUNZIP" != xBASH; then 17344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17345 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17346 fi 17347 # Try to locate tool using the code snippet 17348 for ac_prog in unzip 17349 do 17350 # Extract the first word of "$ac_prog", so it can be a program name with args. 17351 set dummy $ac_prog; ac_word=$2 17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17353 $as_echo_n "checking for $ac_word... " >&6; } 17354 if ${ac_cv_path_UNZIP+:} false; then : 17355 $as_echo_n "(cached) " >&6 17356 else 17357 case $UNZIP in 17358 [\\/]* | ?:[\\/]*) 17359 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17360 ;; 17361 *) 17362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17363 for as_dir in $PATH 17364 do 17365 IFS=$as_save_IFS 17366 test -z "$as_dir" && as_dir=. 17367 for ac_exec_ext in '' $ac_executable_extensions; do 17368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17369 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17371 break 2 17372 fi 17373 done 17374 done 17375 IFS=$as_save_IFS 17376 17377 ;; 17378 esac 17379 fi 17380 UNZIP=$ac_cv_path_UNZIP 17381 if test -n "$UNZIP"; then 17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17383 $as_echo "$UNZIP" >&6; } 17384 else 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17386 $as_echo "no" >&6; } 17387 fi 17388 17389 17390 test -n "$UNZIP" && break 17391 done 17392 17393 else 17394 # If it succeeded, then it was overridden by the user. We will use it 17395 # for the tool. 17396 17397 # First remove it from the list of overridden variables, so we can test 17398 # for unknown variables in the end. 17399 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17400 17401 # Check if the provided tool contains a complete path. 17402 tool_specified="$UNZIP" 17403 tool_basename="${tool_specified##*/}" 17404 if test "x$tool_basename" = "x$tool_specified"; then 17405 # A command without a complete path is provided, search $PATH. 17406 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17407 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17408 # Extract the first word of "$tool_basename", so it can be a program name with args. 17409 set dummy $tool_basename; ac_word=$2 17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17411 $as_echo_n "checking for $ac_word... " >&6; } 17412 if ${ac_cv_path_UNZIP+:} false; then : 17413 $as_echo_n "(cached) " >&6 17414 else 17415 case $UNZIP in 17416 [\\/]* | ?:[\\/]*) 17417 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17418 ;; 17419 *) 17420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17421 for as_dir in $PATH 17422 do 17423 IFS=$as_save_IFS 17424 test -z "$as_dir" && as_dir=. 17425 for ac_exec_ext in '' $ac_executable_extensions; do 17426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17427 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17429 break 2 17430 fi 17431 done 17432 done 17433 IFS=$as_save_IFS 17434 17435 ;; 17436 esac 17437 fi 17438 UNZIP=$ac_cv_path_UNZIP 17439 if test -n "$UNZIP"; then 17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17441 $as_echo "$UNZIP" >&6; } 17442 else 17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17444 $as_echo "no" >&6; } 17445 fi 17446 17447 17448 if test "x$UNZIP" = x; then 17449 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17450 fi 17451 else 17452 # Otherwise we believe it is a complete path. Use it as it is. 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17454 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17456 $as_echo_n "checking for UNZIP... " >&6; } 17457 if test ! -x "$tool_specified"; then 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17459 $as_echo "not found" >&6; } 17460 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17461 fi 17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17463 $as_echo "$tool_specified" >&6; } 17464 fi 17465 fi 17466 fi 17467 17468 17469 17470 if test "x$UNZIP" = x; then 17471 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17472 fi 17473 17474 17475 17476 17477 17478 # Publish this variable in the help. 17479 17480 17481 if test "x$ZIP" = x; then 17482 # The variable is not set by user, try to locate tool using the code snippet 17483 for ac_prog in zip 17484 do 17485 # Extract the first word of "$ac_prog", so it can be a program name with args. 17486 set dummy $ac_prog; ac_word=$2 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17488 $as_echo_n "checking for $ac_word... " >&6; } 17489 if ${ac_cv_path_ZIP+:} false; then : 17490 $as_echo_n "(cached) " >&6 17491 else 17492 case $ZIP in 17493 [\\/]* | ?:[\\/]*) 17494 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17495 ;; 17496 *) 17497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17498 for as_dir in $PATH 17499 do 17500 IFS=$as_save_IFS 17501 test -z "$as_dir" && as_dir=. 17502 for ac_exec_ext in '' $ac_executable_extensions; do 17503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17504 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17506 break 2 17507 fi 17508 done 17509 done 17510 IFS=$as_save_IFS 17511 17512 ;; 17513 esac 17514 fi 17515 ZIP=$ac_cv_path_ZIP 17516 if test -n "$ZIP"; then 17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17518 $as_echo "$ZIP" >&6; } 17519 else 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17521 $as_echo "no" >&6; } 17522 fi 17523 17524 17525 test -n "$ZIP" && break 17526 done 17527 17528 else 17529 # The variable is set, but is it from the command line or the environment? 17530 17531 # Try to remove the string !ZIP! from our list. 17532 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17533 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17534 # If it failed, the variable was not from the command line. Ignore it, 17535 # but warn the user (except for BASH, which is always set by the calling BASH). 17536 if test "xZIP" != xBASH; then 17537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17538 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17539 fi 17540 # Try to locate tool using the code snippet 17541 for ac_prog in zip 17542 do 17543 # Extract the first word of "$ac_prog", so it can be a program name with args. 17544 set dummy $ac_prog; ac_word=$2 17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17546 $as_echo_n "checking for $ac_word... " >&6; } 17547 if ${ac_cv_path_ZIP+:} false; then : 17548 $as_echo_n "(cached) " >&6 17549 else 17550 case $ZIP in 17551 [\\/]* | ?:[\\/]*) 17552 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17553 ;; 17554 *) 17555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17556 for as_dir in $PATH 17557 do 17558 IFS=$as_save_IFS 17559 test -z "$as_dir" && as_dir=. 17560 for ac_exec_ext in '' $ac_executable_extensions; do 17561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17562 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17564 break 2 17565 fi 17566 done 17567 done 17568 IFS=$as_save_IFS 17569 17570 ;; 17571 esac 17572 fi 17573 ZIP=$ac_cv_path_ZIP 17574 if test -n "$ZIP"; then 17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17576 $as_echo "$ZIP" >&6; } 17577 else 17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17579 $as_echo "no" >&6; } 17580 fi 17581 17582 17583 test -n "$ZIP" && break 17584 done 17585 17586 else 17587 # If it succeeded, then it was overridden by the user. We will use it 17588 # for the tool. 17589 17590 # First remove it from the list of overridden variables, so we can test 17591 # for unknown variables in the end. 17592 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17593 17594 # Check if the provided tool contains a complete path. 17595 tool_specified="$ZIP" 17596 tool_basename="${tool_specified##*/}" 17597 if test "x$tool_basename" = "x$tool_specified"; then 17598 # A command without a complete path is provided, search $PATH. 17599 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17600 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17601 # Extract the first word of "$tool_basename", so it can be a program name with args. 17602 set dummy $tool_basename; ac_word=$2 17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17604 $as_echo_n "checking for $ac_word... " >&6; } 17605 if ${ac_cv_path_ZIP+:} false; then : 17606 $as_echo_n "(cached) " >&6 17607 else 17608 case $ZIP in 17609 [\\/]* | ?:[\\/]*) 17610 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17611 ;; 17612 *) 17613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17614 for as_dir in $PATH 17615 do 17616 IFS=$as_save_IFS 17617 test -z "$as_dir" && as_dir=. 17618 for ac_exec_ext in '' $ac_executable_extensions; do 17619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17620 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17622 break 2 17623 fi 17624 done 17625 done 17626 IFS=$as_save_IFS 17627 17628 ;; 17629 esac 17630 fi 17631 ZIP=$ac_cv_path_ZIP 17632 if test -n "$ZIP"; then 17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17634 $as_echo "$ZIP" >&6; } 17635 else 17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17637 $as_echo "no" >&6; } 17638 fi 17639 17640 17641 if test "x$ZIP" = x; then 17642 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17643 fi 17644 else 17645 # Otherwise we believe it is a complete path. Use it as it is. 17646 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17647 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17649 $as_echo_n "checking for ZIP... " >&6; } 17650 if test ! -x "$tool_specified"; then 17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17652 $as_echo "not found" >&6; } 17653 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17654 fi 17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17656 $as_echo "$tool_specified" >&6; } 17657 fi 17658 fi 17659 fi 17660 17661 17662 17663 if test "x$ZIP" = x; then 17664 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17665 fi 17666 17667 17668 17669 # Non-required basic tools 17670 17671 17672 17673 # Publish this variable in the help. 17674 17675 17676 if test "x$LDD" = x; then 17677 # The variable is not set by user, try to locate tool using the code snippet 17678 for ac_prog in ldd 17679 do 17680 # Extract the first word of "$ac_prog", so it can be a program name with args. 17681 set dummy $ac_prog; ac_word=$2 17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17683 $as_echo_n "checking for $ac_word... " >&6; } 17684 if ${ac_cv_path_LDD+:} false; then : 17685 $as_echo_n "(cached) " >&6 17686 else 17687 case $LDD in 17688 [\\/]* | ?:[\\/]*) 17689 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17690 ;; 17691 *) 17692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17693 for as_dir in $PATH 17694 do 17695 IFS=$as_save_IFS 17696 test -z "$as_dir" && as_dir=. 17697 for ac_exec_ext in '' $ac_executable_extensions; do 17698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17699 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17701 break 2 17702 fi 17703 done 17704 done 17705 IFS=$as_save_IFS 17706 17707 ;; 17708 esac 17709 fi 17710 LDD=$ac_cv_path_LDD 17711 if test -n "$LDD"; then 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17713 $as_echo "$LDD" >&6; } 17714 else 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17716 $as_echo "no" >&6; } 17717 fi 17718 17719 17720 test -n "$LDD" && break 17721 done 17722 17723 else 17724 # The variable is set, but is it from the command line or the environment? 17725 17726 # Try to remove the string !LDD! from our list. 17727 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17728 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17729 # If it failed, the variable was not from the command line. Ignore it, 17730 # but warn the user (except for BASH, which is always set by the calling BASH). 17731 if test "xLDD" != xBASH; then 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17733 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17734 fi 17735 # Try to locate tool using the code snippet 17736 for ac_prog in ldd 17737 do 17738 # Extract the first word of "$ac_prog", so it can be a program name with args. 17739 set dummy $ac_prog; ac_word=$2 17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17741 $as_echo_n "checking for $ac_word... " >&6; } 17742 if ${ac_cv_path_LDD+:} false; then : 17743 $as_echo_n "(cached) " >&6 17744 else 17745 case $LDD in 17746 [\\/]* | ?:[\\/]*) 17747 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17748 ;; 17749 *) 17750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17751 for as_dir in $PATH 17752 do 17753 IFS=$as_save_IFS 17754 test -z "$as_dir" && as_dir=. 17755 for ac_exec_ext in '' $ac_executable_extensions; do 17756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17757 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17759 break 2 17760 fi 17761 done 17762 done 17763 IFS=$as_save_IFS 17764 17765 ;; 17766 esac 17767 fi 17768 LDD=$ac_cv_path_LDD 17769 if test -n "$LDD"; then 17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17771 $as_echo "$LDD" >&6; } 17772 else 17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17774 $as_echo "no" >&6; } 17775 fi 17776 17777 17778 test -n "$LDD" && break 17779 done 17780 17781 else 17782 # If it succeeded, then it was overridden by the user. We will use it 17783 # for the tool. 17784 17785 # First remove it from the list of overridden variables, so we can test 17786 # for unknown variables in the end. 17787 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17788 17789 # Check if the provided tool contains a complete path. 17790 tool_specified="$LDD" 17791 tool_basename="${tool_specified##*/}" 17792 if test "x$tool_basename" = "x$tool_specified"; then 17793 # A command without a complete path is provided, search $PATH. 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17795 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17796 # Extract the first word of "$tool_basename", so it can be a program name with args. 17797 set dummy $tool_basename; ac_word=$2 17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17799 $as_echo_n "checking for $ac_word... " >&6; } 17800 if ${ac_cv_path_LDD+:} false; then : 17801 $as_echo_n "(cached) " >&6 17802 else 17803 case $LDD in 17804 [\\/]* | ?:[\\/]*) 17805 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17806 ;; 17807 *) 17808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17809 for as_dir in $PATH 17810 do 17811 IFS=$as_save_IFS 17812 test -z "$as_dir" && as_dir=. 17813 for ac_exec_ext in '' $ac_executable_extensions; do 17814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17815 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17817 break 2 17818 fi 17819 done 17820 done 17821 IFS=$as_save_IFS 17822 17823 ;; 17824 esac 17825 fi 17826 LDD=$ac_cv_path_LDD 17827 if test -n "$LDD"; then 17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17829 $as_echo "$LDD" >&6; } 17830 else 17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17832 $as_echo "no" >&6; } 17833 fi 17834 17835 17836 if test "x$LDD" = x; then 17837 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17838 fi 17839 else 17840 # Otherwise we believe it is a complete path. Use it as it is. 17841 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17842 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17844 $as_echo_n "checking for LDD... " >&6; } 17845 if test ! -x "$tool_specified"; then 17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17847 $as_echo "not found" >&6; } 17848 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17849 fi 17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17851 $as_echo "$tool_specified" >&6; } 17852 fi 17853 fi 17854 fi 17855 17856 17857 if test "x$LDD" = "x"; then 17858 # List shared lib dependencies is used for 17859 # debug output and checking for forbidden dependencies. 17860 # We can build without it. 17861 LDD="true" 17862 fi 17863 17864 17865 # Publish this variable in the help. 17866 17867 17868 if test "x$READELF" = x; then 17869 # The variable is not set by user, try to locate tool using the code snippet 17870 for ac_prog in readelf greadelf 17871 do 17872 # Extract the first word of "$ac_prog", so it can be a program name with args. 17873 set dummy $ac_prog; ac_word=$2 17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17875 $as_echo_n "checking for $ac_word... " >&6; } 17876 if ${ac_cv_path_READELF+:} false; then : 17877 $as_echo_n "(cached) " >&6 17878 else 17879 case $READELF in 17880 [\\/]* | ?:[\\/]*) 17881 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17882 ;; 17883 *) 17884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17885 for as_dir in $PATH 17886 do 17887 IFS=$as_save_IFS 17888 test -z "$as_dir" && as_dir=. 17889 for ac_exec_ext in '' $ac_executable_extensions; do 17890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17891 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17893 break 2 17894 fi 17895 done 17896 done 17897 IFS=$as_save_IFS 17898 17899 ;; 17900 esac 17901 fi 17902 READELF=$ac_cv_path_READELF 17903 if test -n "$READELF"; then 17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17905 $as_echo "$READELF" >&6; } 17906 else 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17908 $as_echo "no" >&6; } 17909 fi 17910 17911 17912 test -n "$READELF" && break 17913 done 17914 17915 else 17916 # The variable is set, but is it from the command line or the environment? 17917 17918 # Try to remove the string !READELF! from our list. 17919 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17920 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17921 # If it failed, the variable was not from the command line. Ignore it, 17922 # but warn the user (except for BASH, which is always set by the calling BASH). 17923 if test "xREADELF" != xBASH; then 17924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17925 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17926 fi 17927 # Try to locate tool using the code snippet 17928 for ac_prog in readelf greadelf 17929 do 17930 # Extract the first word of "$ac_prog", so it can be a program name with args. 17931 set dummy $ac_prog; ac_word=$2 17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17933 $as_echo_n "checking for $ac_word... " >&6; } 17934 if ${ac_cv_path_READELF+:} false; then : 17935 $as_echo_n "(cached) " >&6 17936 else 17937 case $READELF in 17938 [\\/]* | ?:[\\/]*) 17939 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17940 ;; 17941 *) 17942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17943 for as_dir in $PATH 17944 do 17945 IFS=$as_save_IFS 17946 test -z "$as_dir" && as_dir=. 17947 for ac_exec_ext in '' $ac_executable_extensions; do 17948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17949 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17951 break 2 17952 fi 17953 done 17954 done 17955 IFS=$as_save_IFS 17956 17957 ;; 17958 esac 17959 fi 17960 READELF=$ac_cv_path_READELF 17961 if test -n "$READELF"; then 17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17963 $as_echo "$READELF" >&6; } 17964 else 17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17966 $as_echo "no" >&6; } 17967 fi 17968 17969 17970 test -n "$READELF" && break 17971 done 17972 17973 else 17974 # If it succeeded, then it was overridden by the user. We will use it 17975 # for the tool. 17976 17977 # First remove it from the list of overridden variables, so we can test 17978 # for unknown variables in the end. 17979 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17980 17981 # Check if the provided tool contains a complete path. 17982 tool_specified="$READELF" 17983 tool_basename="${tool_specified##*/}" 17984 if test "x$tool_basename" = "x$tool_specified"; then 17985 # A command without a complete path is provided, search $PATH. 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17987 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17988 # Extract the first word of "$tool_basename", so it can be a program name with args. 17989 set dummy $tool_basename; ac_word=$2 17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17991 $as_echo_n "checking for $ac_word... " >&6; } 17992 if ${ac_cv_path_READELF+:} false; then : 17993 $as_echo_n "(cached) " >&6 17994 else 17995 case $READELF in 17996 [\\/]* | ?:[\\/]*) 17997 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17998 ;; 17999 *) 18000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18001 for as_dir in $PATH 18002 do 18003 IFS=$as_save_IFS 18004 test -z "$as_dir" && as_dir=. 18005 for ac_exec_ext in '' $ac_executable_extensions; do 18006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18007 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18009 break 2 18010 fi 18011 done 18012 done 18013 IFS=$as_save_IFS 18014 18015 ;; 18016 esac 18017 fi 18018 READELF=$ac_cv_path_READELF 18019 if test -n "$READELF"; then 18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18021 $as_echo "$READELF" >&6; } 18022 else 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18024 $as_echo "no" >&6; } 18025 fi 18026 18027 18028 if test "x$READELF" = x; then 18029 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18030 fi 18031 else 18032 # Otherwise we believe it is a complete path. Use it as it is. 18033 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18034 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18036 $as_echo_n "checking for READELF... " >&6; } 18037 if test ! -x "$tool_specified"; then 18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18039 $as_echo "not found" >&6; } 18040 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18041 fi 18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18043 $as_echo "$tool_specified" >&6; } 18044 fi 18045 fi 18046 fi 18047 18048 18049 18050 18051 # Publish this variable in the help. 18052 18053 18054 if test "x$HG" = x; then 18055 # The variable is not set by user, try to locate tool using the code snippet 18056 for ac_prog in hg 18057 do 18058 # Extract the first word of "$ac_prog", so it can be a program name with args. 18059 set dummy $ac_prog; ac_word=$2 18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18061 $as_echo_n "checking for $ac_word... " >&6; } 18062 if ${ac_cv_path_HG+:} false; then : 18063 $as_echo_n "(cached) " >&6 18064 else 18065 case $HG in 18066 [\\/]* | ?:[\\/]*) 18067 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18068 ;; 18069 *) 18070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18071 for as_dir in $PATH 18072 do 18073 IFS=$as_save_IFS 18074 test -z "$as_dir" && as_dir=. 18075 for ac_exec_ext in '' $ac_executable_extensions; do 18076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18077 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18079 break 2 18080 fi 18081 done 18082 done 18083 IFS=$as_save_IFS 18084 18085 ;; 18086 esac 18087 fi 18088 HG=$ac_cv_path_HG 18089 if test -n "$HG"; then 18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18091 $as_echo "$HG" >&6; } 18092 else 18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18094 $as_echo "no" >&6; } 18095 fi 18096 18097 18098 test -n "$HG" && break 18099 done 18100 18101 else 18102 # The variable is set, but is it from the command line or the environment? 18103 18104 # Try to remove the string !HG! from our list. 18105 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18106 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18107 # If it failed, the variable was not from the command line. Ignore it, 18108 # but warn the user (except for BASH, which is always set by the calling BASH). 18109 if test "xHG" != xBASH; then 18110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18111 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18112 fi 18113 # Try to locate tool using the code snippet 18114 for ac_prog in hg 18115 do 18116 # Extract the first word of "$ac_prog", so it can be a program name with args. 18117 set dummy $ac_prog; ac_word=$2 18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18119 $as_echo_n "checking for $ac_word... " >&6; } 18120 if ${ac_cv_path_HG+:} false; then : 18121 $as_echo_n "(cached) " >&6 18122 else 18123 case $HG in 18124 [\\/]* | ?:[\\/]*) 18125 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18126 ;; 18127 *) 18128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18129 for as_dir in $PATH 18130 do 18131 IFS=$as_save_IFS 18132 test -z "$as_dir" && as_dir=. 18133 for ac_exec_ext in '' $ac_executable_extensions; do 18134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18135 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18137 break 2 18138 fi 18139 done 18140 done 18141 IFS=$as_save_IFS 18142 18143 ;; 18144 esac 18145 fi 18146 HG=$ac_cv_path_HG 18147 if test -n "$HG"; then 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18149 $as_echo "$HG" >&6; } 18150 else 18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18152 $as_echo "no" >&6; } 18153 fi 18154 18155 18156 test -n "$HG" && break 18157 done 18158 18159 else 18160 # If it succeeded, then it was overridden by the user. We will use it 18161 # for the tool. 18162 18163 # First remove it from the list of overridden variables, so we can test 18164 # for unknown variables in the end. 18165 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18166 18167 # Check if the provided tool contains a complete path. 18168 tool_specified="$HG" 18169 tool_basename="${tool_specified##*/}" 18170 if test "x$tool_basename" = "x$tool_specified"; then 18171 # A command without a complete path is provided, search $PATH. 18172 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18173 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18174 # Extract the first word of "$tool_basename", so it can be a program name with args. 18175 set dummy $tool_basename; ac_word=$2 18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18177 $as_echo_n "checking for $ac_word... " >&6; } 18178 if ${ac_cv_path_HG+:} false; then : 18179 $as_echo_n "(cached) " >&6 18180 else 18181 case $HG in 18182 [\\/]* | ?:[\\/]*) 18183 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18184 ;; 18185 *) 18186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18187 for as_dir in $PATH 18188 do 18189 IFS=$as_save_IFS 18190 test -z "$as_dir" && as_dir=. 18191 for ac_exec_ext in '' $ac_executable_extensions; do 18192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18193 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18195 break 2 18196 fi 18197 done 18198 done 18199 IFS=$as_save_IFS 18200 18201 ;; 18202 esac 18203 fi 18204 HG=$ac_cv_path_HG 18205 if test -n "$HG"; then 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18207 $as_echo "$HG" >&6; } 18208 else 18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18210 $as_echo "no" >&6; } 18211 fi 18212 18213 18214 if test "x$HG" = x; then 18215 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18216 fi 18217 else 18218 # Otherwise we believe it is a complete path. Use it as it is. 18219 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18220 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18222 $as_echo_n "checking for HG... " >&6; } 18223 if test ! -x "$tool_specified"; then 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18225 $as_echo "not found" >&6; } 18226 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18227 fi 18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18229 $as_echo "$tool_specified" >&6; } 18230 fi 18231 fi 18232 fi 18233 18234 18235 18236 18237 # Publish this variable in the help. 18238 18239 18240 if test "x$STAT" = x; then 18241 # The variable is not set by user, try to locate tool using the code snippet 18242 for ac_prog in stat 18243 do 18244 # Extract the first word of "$ac_prog", so it can be a program name with args. 18245 set dummy $ac_prog; ac_word=$2 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18247 $as_echo_n "checking for $ac_word... " >&6; } 18248 if ${ac_cv_path_STAT+:} false; then : 18249 $as_echo_n "(cached) " >&6 18250 else 18251 case $STAT in 18252 [\\/]* | ?:[\\/]*) 18253 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18254 ;; 18255 *) 18256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18257 for as_dir in $PATH 18258 do 18259 IFS=$as_save_IFS 18260 test -z "$as_dir" && as_dir=. 18261 for ac_exec_ext in '' $ac_executable_extensions; do 18262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18263 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18265 break 2 18266 fi 18267 done 18268 done 18269 IFS=$as_save_IFS 18270 18271 ;; 18272 esac 18273 fi 18274 STAT=$ac_cv_path_STAT 18275 if test -n "$STAT"; then 18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18277 $as_echo "$STAT" >&6; } 18278 else 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18280 $as_echo "no" >&6; } 18281 fi 18282 18283 18284 test -n "$STAT" && break 18285 done 18286 18287 else 18288 # The variable is set, but is it from the command line or the environment? 18289 18290 # Try to remove the string !STAT! from our list. 18291 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18292 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18293 # If it failed, the variable was not from the command line. Ignore it, 18294 # but warn the user (except for BASH, which is always set by the calling BASH). 18295 if test "xSTAT" != xBASH; then 18296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18297 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18298 fi 18299 # Try to locate tool using the code snippet 18300 for ac_prog in stat 18301 do 18302 # Extract the first word of "$ac_prog", so it can be a program name with args. 18303 set dummy $ac_prog; ac_word=$2 18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18305 $as_echo_n "checking for $ac_word... " >&6; } 18306 if ${ac_cv_path_STAT+:} false; then : 18307 $as_echo_n "(cached) " >&6 18308 else 18309 case $STAT in 18310 [\\/]* | ?:[\\/]*) 18311 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18312 ;; 18313 *) 18314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18315 for as_dir in $PATH 18316 do 18317 IFS=$as_save_IFS 18318 test -z "$as_dir" && as_dir=. 18319 for ac_exec_ext in '' $ac_executable_extensions; do 18320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18321 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18323 break 2 18324 fi 18325 done 18326 done 18327 IFS=$as_save_IFS 18328 18329 ;; 18330 esac 18331 fi 18332 STAT=$ac_cv_path_STAT 18333 if test -n "$STAT"; then 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18335 $as_echo "$STAT" >&6; } 18336 else 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18338 $as_echo "no" >&6; } 18339 fi 18340 18341 18342 test -n "$STAT" && break 18343 done 18344 18345 else 18346 # If it succeeded, then it was overridden by the user. We will use it 18347 # for the tool. 18348 18349 # First remove it from the list of overridden variables, so we can test 18350 # for unknown variables in the end. 18351 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18352 18353 # Check if the provided tool contains a complete path. 18354 tool_specified="$STAT" 18355 tool_basename="${tool_specified##*/}" 18356 if test "x$tool_basename" = "x$tool_specified"; then 18357 # A command without a complete path is provided, search $PATH. 18358 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18359 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18360 # Extract the first word of "$tool_basename", so it can be a program name with args. 18361 set dummy $tool_basename; ac_word=$2 18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18363 $as_echo_n "checking for $ac_word... " >&6; } 18364 if ${ac_cv_path_STAT+:} false; then : 18365 $as_echo_n "(cached) " >&6 18366 else 18367 case $STAT in 18368 [\\/]* | ?:[\\/]*) 18369 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18370 ;; 18371 *) 18372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18373 for as_dir in $PATH 18374 do 18375 IFS=$as_save_IFS 18376 test -z "$as_dir" && as_dir=. 18377 for ac_exec_ext in '' $ac_executable_extensions; do 18378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18379 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18381 break 2 18382 fi 18383 done 18384 done 18385 IFS=$as_save_IFS 18386 18387 ;; 18388 esac 18389 fi 18390 STAT=$ac_cv_path_STAT 18391 if test -n "$STAT"; then 18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18393 $as_echo "$STAT" >&6; } 18394 else 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18396 $as_echo "no" >&6; } 18397 fi 18398 18399 18400 if test "x$STAT" = x; then 18401 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18402 fi 18403 else 18404 # Otherwise we believe it is a complete path. Use it as it is. 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18406 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18408 $as_echo_n "checking for STAT... " >&6; } 18409 if test ! -x "$tool_specified"; then 18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18411 $as_echo "not found" >&6; } 18412 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18413 fi 18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18415 $as_echo "$tool_specified" >&6; } 18416 fi 18417 fi 18418 fi 18419 18420 18421 18422 18423 # Publish this variable in the help. 18424 18425 18426 if test "x$TIME" = x; then 18427 # The variable is not set by user, try to locate tool using the code snippet 18428 for ac_prog in time 18429 do 18430 # Extract the first word of "$ac_prog", so it can be a program name with args. 18431 set dummy $ac_prog; ac_word=$2 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18433 $as_echo_n "checking for $ac_word... " >&6; } 18434 if ${ac_cv_path_TIME+:} false; then : 18435 $as_echo_n "(cached) " >&6 18436 else 18437 case $TIME in 18438 [\\/]* | ?:[\\/]*) 18439 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18440 ;; 18441 *) 18442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18443 for as_dir in $PATH 18444 do 18445 IFS=$as_save_IFS 18446 test -z "$as_dir" && as_dir=. 18447 for ac_exec_ext in '' $ac_executable_extensions; do 18448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18449 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18451 break 2 18452 fi 18453 done 18454 done 18455 IFS=$as_save_IFS 18456 18457 ;; 18458 esac 18459 fi 18460 TIME=$ac_cv_path_TIME 18461 if test -n "$TIME"; then 18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18463 $as_echo "$TIME" >&6; } 18464 else 18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18466 $as_echo "no" >&6; } 18467 fi 18468 18469 18470 test -n "$TIME" && break 18471 done 18472 18473 else 18474 # The variable is set, but is it from the command line or the environment? 18475 18476 # Try to remove the string !TIME! from our list. 18477 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18478 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18479 # If it failed, the variable was not from the command line. Ignore it, 18480 # but warn the user (except for BASH, which is always set by the calling BASH). 18481 if test "xTIME" != xBASH; then 18482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18483 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18484 fi 18485 # Try to locate tool using the code snippet 18486 for ac_prog in time 18487 do 18488 # Extract the first word of "$ac_prog", so it can be a program name with args. 18489 set dummy $ac_prog; ac_word=$2 18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18491 $as_echo_n "checking for $ac_word... " >&6; } 18492 if ${ac_cv_path_TIME+:} false; then : 18493 $as_echo_n "(cached) " >&6 18494 else 18495 case $TIME in 18496 [\\/]* | ?:[\\/]*) 18497 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18498 ;; 18499 *) 18500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18501 for as_dir in $PATH 18502 do 18503 IFS=$as_save_IFS 18504 test -z "$as_dir" && as_dir=. 18505 for ac_exec_ext in '' $ac_executable_extensions; do 18506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18507 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18509 break 2 18510 fi 18511 done 18512 done 18513 IFS=$as_save_IFS 18514 18515 ;; 18516 esac 18517 fi 18518 TIME=$ac_cv_path_TIME 18519 if test -n "$TIME"; then 18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18521 $as_echo "$TIME" >&6; } 18522 else 18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18524 $as_echo "no" >&6; } 18525 fi 18526 18527 18528 test -n "$TIME" && break 18529 done 18530 18531 else 18532 # If it succeeded, then it was overridden by the user. We will use it 18533 # for the tool. 18534 18535 # First remove it from the list of overridden variables, so we can test 18536 # for unknown variables in the end. 18537 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18538 18539 # Check if the provided tool contains a complete path. 18540 tool_specified="$TIME" 18541 tool_basename="${tool_specified##*/}" 18542 if test "x$tool_basename" = "x$tool_specified"; then 18543 # A command without a complete path is provided, search $PATH. 18544 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18545 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18546 # Extract the first word of "$tool_basename", so it can be a program name with args. 18547 set dummy $tool_basename; ac_word=$2 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18549 $as_echo_n "checking for $ac_word... " >&6; } 18550 if ${ac_cv_path_TIME+:} false; then : 18551 $as_echo_n "(cached) " >&6 18552 else 18553 case $TIME in 18554 [\\/]* | ?:[\\/]*) 18555 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18556 ;; 18557 *) 18558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18559 for as_dir in $PATH 18560 do 18561 IFS=$as_save_IFS 18562 test -z "$as_dir" && as_dir=. 18563 for ac_exec_ext in '' $ac_executable_extensions; do 18564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18565 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18567 break 2 18568 fi 18569 done 18570 done 18571 IFS=$as_save_IFS 18572 18573 ;; 18574 esac 18575 fi 18576 TIME=$ac_cv_path_TIME 18577 if test -n "$TIME"; then 18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18579 $as_echo "$TIME" >&6; } 18580 else 18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18582 $as_echo "no" >&6; } 18583 fi 18584 18585 18586 if test "x$TIME" = x; then 18587 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18588 fi 18589 else 18590 # Otherwise we believe it is a complete path. Use it as it is. 18591 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18592 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18594 $as_echo_n "checking for TIME... " >&6; } 18595 if test ! -x "$tool_specified"; then 18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18597 $as_echo "not found" >&6; } 18598 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18599 fi 18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18601 $as_echo "$tool_specified" >&6; } 18602 fi 18603 fi 18604 fi 18605 18606 18607 # Check if it's GNU time 18608 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18609 if test "x$IS_GNU_TIME" != x; then 18610 IS_GNU_TIME=yes 18611 else 18612 IS_GNU_TIME=no 18613 fi 18614 18615 18616 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18617 18618 18619 18620 # Publish this variable in the help. 18621 18622 18623 if test "x$COMM" = x; then 18624 # The variable is not set by user, try to locate tool using the code snippet 18625 for ac_prog in comm 18626 do 18627 # Extract the first word of "$ac_prog", so it can be a program name with args. 18628 set dummy $ac_prog; ac_word=$2 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18630 $as_echo_n "checking for $ac_word... " >&6; } 18631 if ${ac_cv_path_COMM+:} false; then : 18632 $as_echo_n "(cached) " >&6 18633 else 18634 case $COMM in 18635 [\\/]* | ?:[\\/]*) 18636 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18637 ;; 18638 *) 18639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18640 for as_dir in $PATH 18641 do 18642 IFS=$as_save_IFS 18643 test -z "$as_dir" && as_dir=. 18644 for ac_exec_ext in '' $ac_executable_extensions; do 18645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18646 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18648 break 2 18649 fi 18650 done 18651 done 18652 IFS=$as_save_IFS 18653 18654 ;; 18655 esac 18656 fi 18657 COMM=$ac_cv_path_COMM 18658 if test -n "$COMM"; then 18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18660 $as_echo "$COMM" >&6; } 18661 else 18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18663 $as_echo "no" >&6; } 18664 fi 18665 18666 18667 test -n "$COMM" && break 18668 done 18669 18670 else 18671 # The variable is set, but is it from the command line or the environment? 18672 18673 # Try to remove the string !COMM! from our list. 18674 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18675 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18676 # If it failed, the variable was not from the command line. Ignore it, 18677 # but warn the user (except for BASH, which is always set by the calling BASH). 18678 if test "xCOMM" != xBASH; then 18679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18680 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18681 fi 18682 # Try to locate tool using the code snippet 18683 for ac_prog in comm 18684 do 18685 # Extract the first word of "$ac_prog", so it can be a program name with args. 18686 set dummy $ac_prog; ac_word=$2 18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18688 $as_echo_n "checking for $ac_word... " >&6; } 18689 if ${ac_cv_path_COMM+:} false; then : 18690 $as_echo_n "(cached) " >&6 18691 else 18692 case $COMM in 18693 [\\/]* | ?:[\\/]*) 18694 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18695 ;; 18696 *) 18697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18698 for as_dir in $PATH 18699 do 18700 IFS=$as_save_IFS 18701 test -z "$as_dir" && as_dir=. 18702 for ac_exec_ext in '' $ac_executable_extensions; do 18703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18704 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18706 break 2 18707 fi 18708 done 18709 done 18710 IFS=$as_save_IFS 18711 18712 ;; 18713 esac 18714 fi 18715 COMM=$ac_cv_path_COMM 18716 if test -n "$COMM"; then 18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18718 $as_echo "$COMM" >&6; } 18719 else 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18721 $as_echo "no" >&6; } 18722 fi 18723 18724 18725 test -n "$COMM" && break 18726 done 18727 18728 else 18729 # If it succeeded, then it was overridden by the user. We will use it 18730 # for the tool. 18731 18732 # First remove it from the list of overridden variables, so we can test 18733 # for unknown variables in the end. 18734 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18735 18736 # Check if the provided tool contains a complete path. 18737 tool_specified="$COMM" 18738 tool_basename="${tool_specified##*/}" 18739 if test "x$tool_basename" = "x$tool_specified"; then 18740 # A command without a complete path is provided, search $PATH. 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18742 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18743 # Extract the first word of "$tool_basename", so it can be a program name with args. 18744 set dummy $tool_basename; ac_word=$2 18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18746 $as_echo_n "checking for $ac_word... " >&6; } 18747 if ${ac_cv_path_COMM+:} false; then : 18748 $as_echo_n "(cached) " >&6 18749 else 18750 case $COMM in 18751 [\\/]* | ?:[\\/]*) 18752 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18753 ;; 18754 *) 18755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18756 for as_dir in $PATH 18757 do 18758 IFS=$as_save_IFS 18759 test -z "$as_dir" && as_dir=. 18760 for ac_exec_ext in '' $ac_executable_extensions; do 18761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18762 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18764 break 2 18765 fi 18766 done 18767 done 18768 IFS=$as_save_IFS 18769 18770 ;; 18771 esac 18772 fi 18773 COMM=$ac_cv_path_COMM 18774 if test -n "$COMM"; then 18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18776 $as_echo "$COMM" >&6; } 18777 else 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18779 $as_echo "no" >&6; } 18780 fi 18781 18782 18783 if test "x$COMM" = x; then 18784 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18785 fi 18786 else 18787 # Otherwise we believe it is a complete path. Use it as it is. 18788 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18789 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18791 $as_echo_n "checking for COMM... " >&6; } 18792 if test ! -x "$tool_specified"; then 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18794 $as_echo "not found" >&6; } 18795 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18796 fi 18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18798 $as_echo "$tool_specified" >&6; } 18799 fi 18800 fi 18801 fi 18802 18803 18804 18805 if test "x$COMM" = x; then 18806 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18807 fi 18808 18809 18810 fi 18811 18812 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18813 18814 18815 18816 # Publish this variable in the help. 18817 18818 18819 if test "x$DSYMUTIL" = x; then 18820 # The variable is not set by user, try to locate tool using the code snippet 18821 for ac_prog in dsymutil 18822 do 18823 # Extract the first word of "$ac_prog", so it can be a program name with args. 18824 set dummy $ac_prog; ac_word=$2 18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18826 $as_echo_n "checking for $ac_word... " >&6; } 18827 if ${ac_cv_path_DSYMUTIL+:} false; then : 18828 $as_echo_n "(cached) " >&6 18829 else 18830 case $DSYMUTIL in 18831 [\\/]* | ?:[\\/]*) 18832 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18833 ;; 18834 *) 18835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18836 for as_dir in $PATH 18837 do 18838 IFS=$as_save_IFS 18839 test -z "$as_dir" && as_dir=. 18840 for ac_exec_ext in '' $ac_executable_extensions; do 18841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18842 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18844 break 2 18845 fi 18846 done 18847 done 18848 IFS=$as_save_IFS 18849 18850 ;; 18851 esac 18852 fi 18853 DSYMUTIL=$ac_cv_path_DSYMUTIL 18854 if test -n "$DSYMUTIL"; then 18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18856 $as_echo "$DSYMUTIL" >&6; } 18857 else 18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18859 $as_echo "no" >&6; } 18860 fi 18861 18862 18863 test -n "$DSYMUTIL" && break 18864 done 18865 18866 else 18867 # The variable is set, but is it from the command line or the environment? 18868 18869 # Try to remove the string !DSYMUTIL! from our list. 18870 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18871 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18872 # If it failed, the variable was not from the command line. Ignore it, 18873 # but warn the user (except for BASH, which is always set by the calling BASH). 18874 if test "xDSYMUTIL" != xBASH; then 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18876 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18877 fi 18878 # Try to locate tool using the code snippet 18879 for ac_prog in dsymutil 18880 do 18881 # Extract the first word of "$ac_prog", so it can be a program name with args. 18882 set dummy $ac_prog; ac_word=$2 18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18884 $as_echo_n "checking for $ac_word... " >&6; } 18885 if ${ac_cv_path_DSYMUTIL+:} false; then : 18886 $as_echo_n "(cached) " >&6 18887 else 18888 case $DSYMUTIL in 18889 [\\/]* | ?:[\\/]*) 18890 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18891 ;; 18892 *) 18893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18894 for as_dir in $PATH 18895 do 18896 IFS=$as_save_IFS 18897 test -z "$as_dir" && as_dir=. 18898 for ac_exec_ext in '' $ac_executable_extensions; do 18899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18900 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18902 break 2 18903 fi 18904 done 18905 done 18906 IFS=$as_save_IFS 18907 18908 ;; 18909 esac 18910 fi 18911 DSYMUTIL=$ac_cv_path_DSYMUTIL 18912 if test -n "$DSYMUTIL"; then 18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18914 $as_echo "$DSYMUTIL" >&6; } 18915 else 18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18917 $as_echo "no" >&6; } 18918 fi 18919 18920 18921 test -n "$DSYMUTIL" && break 18922 done 18923 18924 else 18925 # If it succeeded, then it was overridden by the user. We will use it 18926 # for the tool. 18927 18928 # First remove it from the list of overridden variables, so we can test 18929 # for unknown variables in the end. 18930 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18931 18932 # Check if the provided tool contains a complete path. 18933 tool_specified="$DSYMUTIL" 18934 tool_basename="${tool_specified##*/}" 18935 if test "x$tool_basename" = "x$tool_specified"; then 18936 # A command without a complete path is provided, search $PATH. 18937 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18938 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18939 # Extract the first word of "$tool_basename", so it can be a program name with args. 18940 set dummy $tool_basename; ac_word=$2 18941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18942 $as_echo_n "checking for $ac_word... " >&6; } 18943 if ${ac_cv_path_DSYMUTIL+:} false; then : 18944 $as_echo_n "(cached) " >&6 18945 else 18946 case $DSYMUTIL in 18947 [\\/]* | ?:[\\/]*) 18948 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18949 ;; 18950 *) 18951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18952 for as_dir in $PATH 18953 do 18954 IFS=$as_save_IFS 18955 test -z "$as_dir" && as_dir=. 18956 for ac_exec_ext in '' $ac_executable_extensions; do 18957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18958 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18960 break 2 18961 fi 18962 done 18963 done 18964 IFS=$as_save_IFS 18965 18966 ;; 18967 esac 18968 fi 18969 DSYMUTIL=$ac_cv_path_DSYMUTIL 18970 if test -n "$DSYMUTIL"; then 18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18972 $as_echo "$DSYMUTIL" >&6; } 18973 else 18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18975 $as_echo "no" >&6; } 18976 fi 18977 18978 18979 if test "x$DSYMUTIL" = x; then 18980 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18981 fi 18982 else 18983 # Otherwise we believe it is a complete path. Use it as it is. 18984 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18985 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18987 $as_echo_n "checking for DSYMUTIL... " >&6; } 18988 if test ! -x "$tool_specified"; then 18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18990 $as_echo "not found" >&6; } 18991 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18992 fi 18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18994 $as_echo "$tool_specified" >&6; } 18995 fi 18996 fi 18997 fi 18998 18999 19000 19001 if test "x$DSYMUTIL" = x; then 19002 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19003 fi 19004 19005 19006 19007 19008 19009 # Publish this variable in the help. 19010 19011 19012 if test "x$XATTR" = x; then 19013 # The variable is not set by user, try to locate tool using the code snippet 19014 for ac_prog in xattr 19015 do 19016 # Extract the first word of "$ac_prog", so it can be a program name with args. 19017 set dummy $ac_prog; ac_word=$2 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19019 $as_echo_n "checking for $ac_word... " >&6; } 19020 if ${ac_cv_path_XATTR+:} false; then : 19021 $as_echo_n "(cached) " >&6 19022 else 19023 case $XATTR in 19024 [\\/]* | ?:[\\/]*) 19025 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19026 ;; 19027 *) 19028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19029 for as_dir in $PATH 19030 do 19031 IFS=$as_save_IFS 19032 test -z "$as_dir" && as_dir=. 19033 for ac_exec_ext in '' $ac_executable_extensions; do 19034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19035 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19037 break 2 19038 fi 19039 done 19040 done 19041 IFS=$as_save_IFS 19042 19043 ;; 19044 esac 19045 fi 19046 XATTR=$ac_cv_path_XATTR 19047 if test -n "$XATTR"; then 19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19049 $as_echo "$XATTR" >&6; } 19050 else 19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19052 $as_echo "no" >&6; } 19053 fi 19054 19055 19056 test -n "$XATTR" && break 19057 done 19058 19059 else 19060 # The variable is set, but is it from the command line or the environment? 19061 19062 # Try to remove the string !XATTR! from our list. 19063 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19064 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19065 # If it failed, the variable was not from the command line. Ignore it, 19066 # but warn the user (except for BASH, which is always set by the calling BASH). 19067 if test "xXATTR" != xBASH; then 19068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19069 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19070 fi 19071 # Try to locate tool using the code snippet 19072 for ac_prog in xattr 19073 do 19074 # Extract the first word of "$ac_prog", so it can be a program name with args. 19075 set dummy $ac_prog; ac_word=$2 19076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19077 $as_echo_n "checking for $ac_word... " >&6; } 19078 if ${ac_cv_path_XATTR+:} false; then : 19079 $as_echo_n "(cached) " >&6 19080 else 19081 case $XATTR in 19082 [\\/]* | ?:[\\/]*) 19083 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19084 ;; 19085 *) 19086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19087 for as_dir in $PATH 19088 do 19089 IFS=$as_save_IFS 19090 test -z "$as_dir" && as_dir=. 19091 for ac_exec_ext in '' $ac_executable_extensions; do 19092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19093 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19095 break 2 19096 fi 19097 done 19098 done 19099 IFS=$as_save_IFS 19100 19101 ;; 19102 esac 19103 fi 19104 XATTR=$ac_cv_path_XATTR 19105 if test -n "$XATTR"; then 19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19107 $as_echo "$XATTR" >&6; } 19108 else 19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19110 $as_echo "no" >&6; } 19111 fi 19112 19113 19114 test -n "$XATTR" && break 19115 done 19116 19117 else 19118 # If it succeeded, then it was overridden by the user. We will use it 19119 # for the tool. 19120 19121 # First remove it from the list of overridden variables, so we can test 19122 # for unknown variables in the end. 19123 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19124 19125 # Check if the provided tool contains a complete path. 19126 tool_specified="$XATTR" 19127 tool_basename="${tool_specified##*/}" 19128 if test "x$tool_basename" = "x$tool_specified"; then 19129 # A command without a complete path is provided, search $PATH. 19130 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19131 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19132 # Extract the first word of "$tool_basename", so it can be a program name with args. 19133 set dummy $tool_basename; ac_word=$2 19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19135 $as_echo_n "checking for $ac_word... " >&6; } 19136 if ${ac_cv_path_XATTR+:} false; then : 19137 $as_echo_n "(cached) " >&6 19138 else 19139 case $XATTR in 19140 [\\/]* | ?:[\\/]*) 19141 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19142 ;; 19143 *) 19144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19145 for as_dir in $PATH 19146 do 19147 IFS=$as_save_IFS 19148 test -z "$as_dir" && as_dir=. 19149 for ac_exec_ext in '' $ac_executable_extensions; do 19150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19151 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19153 break 2 19154 fi 19155 done 19156 done 19157 IFS=$as_save_IFS 19158 19159 ;; 19160 esac 19161 fi 19162 XATTR=$ac_cv_path_XATTR 19163 if test -n "$XATTR"; then 19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19165 $as_echo "$XATTR" >&6; } 19166 else 19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19168 $as_echo "no" >&6; } 19169 fi 19170 19171 19172 if test "x$XATTR" = x; then 19173 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19174 fi 19175 else 19176 # Otherwise we believe it is a complete path. Use it as it is. 19177 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19178 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19180 $as_echo_n "checking for XATTR... " >&6; } 19181 if test ! -x "$tool_specified"; then 19182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19183 $as_echo "not found" >&6; } 19184 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19185 fi 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19187 $as_echo "$tool_specified" >&6; } 19188 fi 19189 fi 19190 fi 19191 19192 19193 19194 if test "x$XATTR" = x; then 19195 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19196 fi 19197 19198 19199 19200 19201 # Publish this variable in the help. 19202 19203 19204 if test "x$CODESIGN" = x; then 19205 # The variable is not set by user, try to locate tool using the code snippet 19206 for ac_prog in codesign 19207 do 19208 # Extract the first word of "$ac_prog", so it can be a program name with args. 19209 set dummy $ac_prog; ac_word=$2 19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19211 $as_echo_n "checking for $ac_word... " >&6; } 19212 if ${ac_cv_path_CODESIGN+:} false; then : 19213 $as_echo_n "(cached) " >&6 19214 else 19215 case $CODESIGN in 19216 [\\/]* | ?:[\\/]*) 19217 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19218 ;; 19219 *) 19220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19221 for as_dir in $PATH 19222 do 19223 IFS=$as_save_IFS 19224 test -z "$as_dir" && as_dir=. 19225 for ac_exec_ext in '' $ac_executable_extensions; do 19226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19227 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19229 break 2 19230 fi 19231 done 19232 done 19233 IFS=$as_save_IFS 19234 19235 ;; 19236 esac 19237 fi 19238 CODESIGN=$ac_cv_path_CODESIGN 19239 if test -n "$CODESIGN"; then 19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19241 $as_echo "$CODESIGN" >&6; } 19242 else 19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19244 $as_echo "no" >&6; } 19245 fi 19246 19247 19248 test -n "$CODESIGN" && break 19249 done 19250 19251 else 19252 # The variable is set, but is it from the command line or the environment? 19253 19254 # Try to remove the string !CODESIGN! from our list. 19255 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19256 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19257 # If it failed, the variable was not from the command line. Ignore it, 19258 # but warn the user (except for BASH, which is always set by the calling BASH). 19259 if test "xCODESIGN" != xBASH; then 19260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19261 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19262 fi 19263 # Try to locate tool using the code snippet 19264 for ac_prog in codesign 19265 do 19266 # Extract the first word of "$ac_prog", so it can be a program name with args. 19267 set dummy $ac_prog; ac_word=$2 19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19269 $as_echo_n "checking for $ac_word... " >&6; } 19270 if ${ac_cv_path_CODESIGN+:} false; then : 19271 $as_echo_n "(cached) " >&6 19272 else 19273 case $CODESIGN in 19274 [\\/]* | ?:[\\/]*) 19275 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19276 ;; 19277 *) 19278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19279 for as_dir in $PATH 19280 do 19281 IFS=$as_save_IFS 19282 test -z "$as_dir" && as_dir=. 19283 for ac_exec_ext in '' $ac_executable_extensions; do 19284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19285 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19287 break 2 19288 fi 19289 done 19290 done 19291 IFS=$as_save_IFS 19292 19293 ;; 19294 esac 19295 fi 19296 CODESIGN=$ac_cv_path_CODESIGN 19297 if test -n "$CODESIGN"; then 19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19299 $as_echo "$CODESIGN" >&6; } 19300 else 19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19302 $as_echo "no" >&6; } 19303 fi 19304 19305 19306 test -n "$CODESIGN" && break 19307 done 19308 19309 else 19310 # If it succeeded, then it was overridden by the user. We will use it 19311 # for the tool. 19312 19313 # First remove it from the list of overridden variables, so we can test 19314 # for unknown variables in the end. 19315 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19316 19317 # Check if the provided tool contains a complete path. 19318 tool_specified="$CODESIGN" 19319 tool_basename="${tool_specified##*/}" 19320 if test "x$tool_basename" = "x$tool_specified"; then 19321 # A command without a complete path is provided, search $PATH. 19322 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19323 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19324 # Extract the first word of "$tool_basename", so it can be a program name with args. 19325 set dummy $tool_basename; ac_word=$2 19326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19327 $as_echo_n "checking for $ac_word... " >&6; } 19328 if ${ac_cv_path_CODESIGN+:} false; then : 19329 $as_echo_n "(cached) " >&6 19330 else 19331 case $CODESIGN in 19332 [\\/]* | ?:[\\/]*) 19333 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19334 ;; 19335 *) 19336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19337 for as_dir in $PATH 19338 do 19339 IFS=$as_save_IFS 19340 test -z "$as_dir" && as_dir=. 19341 for ac_exec_ext in '' $ac_executable_extensions; do 19342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19343 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19345 break 2 19346 fi 19347 done 19348 done 19349 IFS=$as_save_IFS 19350 19351 ;; 19352 esac 19353 fi 19354 CODESIGN=$ac_cv_path_CODESIGN 19355 if test -n "$CODESIGN"; then 19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19357 $as_echo "$CODESIGN" >&6; } 19358 else 19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19360 $as_echo "no" >&6; } 19361 fi 19362 19363 19364 if test "x$CODESIGN" = x; then 19365 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19366 fi 19367 else 19368 # Otherwise we believe it is a complete path. Use it as it is. 19369 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19370 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19372 $as_echo_n "checking for CODESIGN... " >&6; } 19373 if test ! -x "$tool_specified"; then 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19375 $as_echo "not found" >&6; } 19376 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19377 fi 19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19379 $as_echo "$tool_specified" >&6; } 19380 fi 19381 fi 19382 fi 19383 19384 19385 if test "x$CODESIGN" != "x"; then 19386 # Verify that the openjdk_codesign certificate is present 19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19388 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19389 rm -f codesign-testfile 19390 touch codesign-testfile 19391 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19392 rm -f codesign-testfile 19393 if test "x$CODESIGN" = x; then 19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19395 $as_echo "no" >&6; } 19396 else 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19398 $as_echo "yes" >&6; } 19399 fi 19400 fi 19401 fi 19402 19403 19404 # Check if pkg-config is available. 19405 19406 19407 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19408 if test -n "$ac_tool_prefix"; then 19409 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19410 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19412 $as_echo_n "checking for $ac_word... " >&6; } 19413 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19414 $as_echo_n "(cached) " >&6 19415 else 19416 case $PKG_CONFIG in 19417 [\\/]* | ?:[\\/]*) 19418 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19419 ;; 19420 *) 19421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19422 for as_dir in $PATH 19423 do 19424 IFS=$as_save_IFS 19425 test -z "$as_dir" && as_dir=. 19426 for ac_exec_ext in '' $ac_executable_extensions; do 19427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19428 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19430 break 2 19431 fi 19432 done 19433 done 19434 IFS=$as_save_IFS 19435 19436 ;; 19437 esac 19438 fi 19439 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19440 if test -n "$PKG_CONFIG"; then 19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19442 $as_echo "$PKG_CONFIG" >&6; } 19443 else 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19445 $as_echo "no" >&6; } 19446 fi 19447 19448 19449 fi 19450 if test -z "$ac_cv_path_PKG_CONFIG"; then 19451 ac_pt_PKG_CONFIG=$PKG_CONFIG 19452 # Extract the first word of "pkg-config", so it can be a program name with args. 19453 set dummy pkg-config; ac_word=$2 19454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19455 $as_echo_n "checking for $ac_word... " >&6; } 19456 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19457 $as_echo_n "(cached) " >&6 19458 else 19459 case $ac_pt_PKG_CONFIG in 19460 [\\/]* | ?:[\\/]*) 19461 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19462 ;; 19463 *) 19464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19465 for as_dir in $PATH 19466 do 19467 IFS=$as_save_IFS 19468 test -z "$as_dir" && as_dir=. 19469 for ac_exec_ext in '' $ac_executable_extensions; do 19470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19471 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19473 break 2 19474 fi 19475 done 19476 done 19477 IFS=$as_save_IFS 19478 19479 ;; 19480 esac 19481 fi 19482 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19483 if test -n "$ac_pt_PKG_CONFIG"; then 19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19485 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19486 else 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19488 $as_echo "no" >&6; } 19489 fi 19490 19491 if test "x$ac_pt_PKG_CONFIG" = x; then 19492 PKG_CONFIG="" 19493 else 19494 case $cross_compiling:$ac_tool_warned in 19495 yes:) 19496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19498 ac_tool_warned=yes ;; 19499 esac 19500 PKG_CONFIG=$ac_pt_PKG_CONFIG 19501 fi 19502 else 19503 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19504 fi 19505 19506 fi 19507 if test -n "$PKG_CONFIG"; then 19508 _pkg_min_version=0.9.0 19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19510 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19511 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19513 $as_echo "yes" >&6; } 19514 else 19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19516 $as_echo "no" >&6; } 19517 PKG_CONFIG="" 19518 fi 19519 19520 fi 19521 19522 # After basic tools have been setup, we can check build os specific details. 19523 19524 ############################################################################### 19525 19526 # Note that this is the build platform OS version! 19527 19528 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19529 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19530 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19531 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19532 19533 19534 19535 19536 19537 # Setup builddeps, for automatic downloading of tools we need. 19538 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19539 # boot-jdk setup, but we need to have basic tools setup first. 19540 19541 19542 # Check whether --with-builddeps-conf was given. 19543 if test "${with_builddeps_conf+set}" = set; then : 19544 withval=$with_builddeps_conf; 19545 fi 19546 19547 19548 19549 # Check whether --with-builddeps-server was given. 19550 if test "${with_builddeps_server+set}" = set; then : 19551 withval=$with_builddeps_server; 19552 fi 19553 19554 19555 19556 # Check whether --with-builddeps-dir was given. 19557 if test "${with_builddeps_dir+set}" = set; then : 19558 withval=$with_builddeps_dir; 19559 else 19560 with_builddeps_dir=/localhome/builddeps 19561 fi 19562 19563 19564 19565 # Check whether --with-builddeps-group was given. 19566 if test "${with_builddeps_group+set}" = set; then : 19567 withval=$with_builddeps_group; 19568 fi 19569 19570 19571 19572 19573 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19574 if test "x$with_builddeps_conf" != x; then 19575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19576 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19577 builddepsfile=$with_builddeps_conf 19578 if test -s $builddepsfile; then 19579 . $builddepsfile 19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19581 $as_echo "loaded!" >&6; } 19582 else 19583 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19584 fi 19585 else 19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19587 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19588 builddepsfile=`mktemp` 19589 touch $builddepsfile 19590 # Put all found confs into a single file. 19591 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19592 # Source the file to acquire the variables 19593 if test -s $builddepsfile; then 19594 . $builddepsfile 19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19596 $as_echo "found at least one!" >&6; } 19597 else 19598 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19599 fi 19600 fi 19601 # Create build and target names that use _ instead of "-" and ".". 19602 # This is necessary to use them in variable names. 19603 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19604 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19605 # Extract rewrite information for build and target 19606 eval rewritten_build=\${REWRITE_${build_var}} 19607 if test "x$rewritten_build" = x; then 19608 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19609 echo Build stays the same $rewritten_build 19610 else 19611 echo Rewriting build for builddeps into $rewritten_build 19612 fi 19613 eval rewritten_target=\${REWRITE_${target_var}} 19614 if test "x$rewritten_target" = x; then 19615 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19616 echo Target stays the same $rewritten_target 19617 else 19618 echo Rewriting target for builddeps into $rewritten_target 19619 fi 19620 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19621 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19622 fi 19623 for ac_prog in 7z unzip 19624 do 19625 # Extract the first word of "$ac_prog", so it can be a program name with args. 19626 set dummy $ac_prog; ac_word=$2 19627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19628 $as_echo_n "checking for $ac_word... " >&6; } 19629 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19630 $as_echo_n "(cached) " >&6 19631 else 19632 if test -n "$BDEPS_UNZIP"; then 19633 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19634 else 19635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19636 for as_dir in $PATH 19637 do 19638 IFS=$as_save_IFS 19639 test -z "$as_dir" && as_dir=. 19640 for ac_exec_ext in '' $ac_executable_extensions; do 19641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19642 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19644 break 2 19645 fi 19646 done 19647 done 19648 IFS=$as_save_IFS 19649 19650 fi 19651 fi 19652 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19653 if test -n "$BDEPS_UNZIP"; then 19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19655 $as_echo "$BDEPS_UNZIP" >&6; } 19656 else 19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19658 $as_echo "no" >&6; } 19659 fi 19660 19661 19662 test -n "$BDEPS_UNZIP" && break 19663 done 19664 19665 if test "x$BDEPS_UNZIP" = x7z; then 19666 BDEPS_UNZIP="7z x" 19667 fi 19668 19669 for ac_prog in wget lftp ftp 19670 do 19671 # Extract the first word of "$ac_prog", so it can be a program name with args. 19672 set dummy $ac_prog; ac_word=$2 19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19674 $as_echo_n "checking for $ac_word... " >&6; } 19675 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19676 $as_echo_n "(cached) " >&6 19677 else 19678 if test -n "$BDEPS_FTP"; then 19679 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19680 else 19681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19682 for as_dir in $PATH 19683 do 19684 IFS=$as_save_IFS 19685 test -z "$as_dir" && as_dir=. 19686 for ac_exec_ext in '' $ac_executable_extensions; do 19687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19688 ac_cv_prog_BDEPS_FTP="$ac_prog" 19689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19690 break 2 19691 fi 19692 done 19693 done 19694 IFS=$as_save_IFS 19695 19696 fi 19697 fi 19698 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19699 if test -n "$BDEPS_FTP"; then 19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19701 $as_echo "$BDEPS_FTP" >&6; } 19702 else 19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19704 $as_echo "no" >&6; } 19705 fi 19706 19707 19708 test -n "$BDEPS_FTP" && break 19709 done 19710 19711 19712 19713 ############################################################################### 19714 # 19715 # Determine OpenJDK variants, options and version numbers. 19716 # 19717 ############################################################################### 19718 19719 # We need build & target for this. 19720 19721 19722 ############################################################################### 19723 # 19724 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19725 # We always build headless support. 19726 # 19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19728 $as_echo_n "checking headful support... " >&6; } 19729 # Check whether --enable-headful was given. 19730 if test "${enable_headful+set}" = set; then : 19731 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19732 else 19733 SUPPORT_HEADFUL=yes 19734 fi 19735 19736 19737 SUPPORT_HEADLESS=yes 19738 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19739 19740 if test "x$SUPPORT_HEADFUL" = xyes; then 19741 # We are building both headful and headless. 19742 headful_msg="include support for both headful and headless" 19743 fi 19744 19745 if test "x$SUPPORT_HEADFUL" = xno; then 19746 # Thus we are building headless only. 19747 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19748 headful_msg="headless only" 19749 fi 19750 19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19752 $as_echo "$headful_msg" >&6; } 19753 19754 19755 19756 19757 19758 # Control wether Hotspot runs Queens test after build. 19759 # Check whether --enable-hotspot-test-in-build was given. 19760 if test "${enable_hotspot_test_in_build+set}" = set; then : 19761 enableval=$enable_hotspot_test_in_build; 19762 else 19763 enable_hotspot_test_in_build=no 19764 fi 19765 19766 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19767 TEST_IN_BUILD=true 19768 else 19769 TEST_IN_BUILD=false 19770 fi 19771 19772 19773 ############################################################################### 19774 # 19775 # Choose cacerts source file 19776 # 19777 19778 # Check whether --with-cacerts-file was given. 19779 if test "${with_cacerts_file+set}" = set; then : 19780 withval=$with_cacerts_file; 19781 fi 19782 19783 if test "x$with_cacerts_file" != x; then 19784 CACERTS_FILE=$with_cacerts_file 19785 fi 19786 19787 19788 ############################################################################### 19789 # 19790 # Enable or disable unlimited crypto 19791 # 19792 # Check whether --enable-unlimited-crypto was given. 19793 if test "${enable_unlimited_crypto+set}" = set; then : 19794 enableval=$enable_unlimited_crypto; 19795 else 19796 enable_unlimited_crypto=no 19797 fi 19798 19799 if test "x$enable_unlimited_crypto" = "xyes"; then 19800 UNLIMITED_CRYPTO=true 19801 else 19802 UNLIMITED_CRYPTO=false 19803 fi 19804 19805 19806 ############################################################################### 19807 # 19808 # Enable or disable the elliptic curve crypto implementation 19809 # 19810 19811 19812 ############################################################################### 19813 # 19814 # Compress jars 19815 # 19816 COMPRESS_JARS=false 19817 19818 19819 19820 ############################################################################### 19821 # 19822 # Enable or disable JFR 19823 # 19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build JFR" >&5 19825 $as_echo_n "checking whether to build JFR... " >&6; } 19826 # Check whether --enable-jfr was given. 19827 if test "${enable_jfr+set}" = set; then : 19828 enableval=$enable_jfr; 19829 else 19830 enable_jfr=auto 19831 fi 19832 19833 if test "x$enable_jfr" = "xno"; then 19834 ENABLE_JFR=false 19835 elif test "x$enable_jfr" = "xyes" -o "x$enable_jfr" = "xauto"; then 19836 if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then 19837 if test "x$enable_jfr" = "xyes"; then 19838 as_fn_error $? "cannot enable JFR on minimal1 VM or zero build" "$LINENO" 5 19839 else 19840 ENABLE_JFR=false 19841 fi 19842 elif test "x$OPENJDK_TARGET_OS" = xaix; then 19843 if test "x$enable_jfr" = "xyes"; then 19844 as_fn_error $? "AIX does not support JFR" "$LINENO" 5 19845 else 19846 ENABLE_JFR=false 19847 fi 19848 else 19849 ENABLE_JFR=true 19850 fi 19851 else 19852 as_fn_error $? "--enable-jfr must be set to either yes or no" "$LINENO" 5 19853 fi 19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JFR" >&5 19855 $as_echo "$ENABLE_JFR" >&6; } 19856 19857 19858 19859 # Source the version numbers 19860 . $AUTOCONF_DIR/version-numbers 19861 19862 # Get the settings from parameters 19863 19864 # Check whether --with-milestone was given. 19865 if test "${with_milestone+set}" = set; then : 19866 withval=$with_milestone; 19867 fi 19868 19869 if test "x$with_milestone" = xyes; then 19870 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19871 elif test "x$with_milestone" != x; then 19872 MILESTONE="$with_milestone" 19873 fi 19874 if test "x$MILESTONE" = x; then 19875 MILESTONE=internal 19876 fi 19877 19878 19879 # Check whether --with-update-version was given. 19880 if test "${with_update_version+set}" = set; then : 19881 withval=$with_update_version; 19882 fi 19883 19884 if test "x$with_update_version" = xyes; then 19885 as_fn_error $? "Update version must have a value" "$LINENO" 5 19886 elif test "x$with_update_version" != x; then 19887 JDK_UPDATE_VERSION="$with_update_version" 19888 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19889 # to a bug in expr (which reduces it to just X). To work around this, we 19890 # always add a 0 to one digit update versions. 19891 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19892 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19893 fi 19894 fi 19895 19896 19897 # Check whether --with-user-release-suffix was given. 19898 if test "${with_user_release_suffix+set}" = set; then : 19899 withval=$with_user_release_suffix; 19900 fi 19901 19902 if test "x$with_user_release_suffix" = xyes; then 19903 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19904 elif test "x$with_user_release_suffix" != x; then 19905 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19906 fi 19907 19908 19909 # Check whether --with-build-number was given. 19910 if test "${with_build_number+set}" = set; then : 19911 withval=$with_build_number; 19912 fi 19913 19914 if test "x$with_build_number" = xyes; then 19915 as_fn_error $? "Build number must have a value" "$LINENO" 5 19916 elif test "x$with_build_number" != x; then 19917 JDK_BUILD_NUMBER="$with_build_number" 19918 fi 19919 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19920 if test "x$JDK_BUILD_NUMBER" = x; then 19921 JDK_BUILD_NUMBER=b00 19922 if test "x$USER_RELEASE_SUFFIX" = x; then 19923 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19924 # Avoid [:alnum:] since it depends on the locale. 19925 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19926 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19927 fi 19928 fi 19929 19930 # Now set the JDK version, milestone, build number etc. 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 # The vendor name, if any 19946 19947 # Check whether --with-vendor-name was given. 19948 if test "${with_vendor_name+set}" = set; then : 19949 withval=$with_vendor_name; 19950 fi 19951 19952 if test "x$with_vendor_name" = xyes; then 19953 as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5 19954 elif ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then 19955 as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5 19956 elif test "x$with_vendor_name" != x; then 19957 # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty. 19958 # Otherwise we will use the value from "version-numbers" included above. 19959 COMPANY_NAME="$with_vendor_name" 19960 fi 19961 19962 19963 # The vendor URL, if any 19964 19965 # Check whether --with-vendor-url was given. 19966 if test "${with_vendor_url+set}" = set; then : 19967 withval=$with_vendor_url; 19968 fi 19969 19970 if test "x$with_vendor_url" = xyes; then 19971 as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5 19972 elif ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then 19973 as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5 19974 else 19975 VENDOR_URL="$with_vendor_url" 19976 fi 19977 19978 19979 # The vendor bug URL, if any 19980 19981 # Check whether --with-vendor-bug-url was given. 19982 if test "${with_vendor_bug_url+set}" = set; then : 19983 withval=$with_vendor_bug_url; 19984 fi 19985 19986 if test "x$with_vendor_bug_url" = xyes; then 19987 as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5 19988 elif ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then 19989 as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5 19990 else 19991 VENDOR_URL_BUG="$with_vendor_bug_url" 19992 fi 19993 19994 19995 # The vendor VM bug URL, if any 19996 19997 # Check whether --with-vendor-vm-bug-url was given. 19998 if test "${with_vendor_vm_bug_url+set}" = set; then : 19999 withval=$with_vendor_vm_bug_url; 20000 fi 20001 20002 if test "x$with_vendor_vm_bug_url" = xyes; then 20003 as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5 20004 elif ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then 20005 as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5 20006 else 20007 VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url" 20008 fi 20009 20010 20011 20012 # Check whether --with-copyright-year was given. 20013 if test "${with_copyright_year+set}" = set; then : 20014 withval=$with_copyright_year; 20015 fi 20016 20017 if test "x$with_copyright_year" = xyes; then 20018 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 20019 elif test "x$with_copyright_year" != x; then 20020 COPYRIGHT_YEAR="$with_copyright_year" 20021 else 20022 COPYRIGHT_YEAR=`date +'%Y'` 20023 fi 20024 20025 20026 if test "x$JDK_UPDATE_VERSION" != x; then 20027 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20028 else 20029 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20030 fi 20031 20032 20033 # The cooked update version used to encode trailing letters in the update 20034 # version into a trailing number. That is no longer needed, but need to 20035 # keep the format in 8u for compatibility. 20036 COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0" 20037 20038 20039 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20040 20041 20042 20043 ############################################################################### 20044 # 20045 # Setup BootJDK, used to bootstrap the build. 20046 # 20047 ############################################################################### 20048 20049 20050 BOOT_JDK_FOUND=no 20051 20052 # Check whether --with-boot-jdk was given. 20053 if test "${with_boot_jdk+set}" = set; then : 20054 withval=$with_boot_jdk; 20055 fi 20056 20057 20058 # We look for the Boot JDK through various means, going from more certain to 20059 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20060 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20061 # must check if this is indeed valid; otherwise we'll continue looking. 20062 20063 # Test: Is bootjdk explicitely set by command line arguments? 20064 20065 if test "x$BOOT_JDK_FOUND" = xno; then 20066 # Now execute the test 20067 20068 if test "x$with_boot_jdk" != x; then 20069 BOOT_JDK=$with_boot_jdk 20070 BOOT_JDK_FOUND=maybe 20071 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20072 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20073 fi 20074 20075 20076 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20077 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20078 # Do we have a bin/java? 20079 if test ! -x "$BOOT_JDK/bin/java"; then 20080 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20081 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20082 BOOT_JDK_FOUND=no 20083 else 20084 # Do we have a bin/javac? 20085 if test ! -x "$BOOT_JDK/bin/javac"; then 20086 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20087 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20088 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20089 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20090 BOOT_JDK_FOUND=no 20091 else 20092 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20093 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20094 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20095 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20096 BOOT_JDK_FOUND=no 20097 else 20098 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20099 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20100 20101 # Extra M4 quote needed to protect [] in grep expression. 20102 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20103 if test "x$FOUND_VERSION_78" = x; then 20104 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20105 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20106 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20107 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20108 BOOT_JDK_FOUND=no 20109 else 20110 # We're done! :-) 20111 BOOT_JDK_FOUND=yes 20112 20113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20114 20115 # Input might be given as Windows format, start by converting to 20116 # unix format. 20117 path="$BOOT_JDK" 20118 new_path=`$CYGPATH -u "$path"` 20119 20120 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20121 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20122 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20123 # "foo.exe" is OK but "foo" is an error. 20124 # 20125 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20126 # It is also a way to make sure we got the proper file name for the real test later on. 20127 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20128 if test "x$test_shortpath" = x; then 20129 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20130 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20131 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20132 fi 20133 20134 # Call helper function which possibly converts this using DOS-style short mode. 20135 # If so, the updated path is stored in $new_path. 20136 20137 input_path="$new_path" 20138 # Check if we need to convert this using DOS-style short mode. If the path 20139 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20140 # take no chances and rewrite it. 20141 # Note: m4 eats our [], so we need to use [ and ] instead. 20142 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20143 if test "x$has_forbidden_chars" != x; then 20144 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20145 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20146 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20147 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20148 # Going to short mode and back again did indeed matter. Since short mode is 20149 # case insensitive, let's make it lowercase to improve readability. 20150 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20151 # Now convert it back to Unix-style (cygpath) 20152 input_path=`$CYGPATH -u "$shortmode_path"` 20153 new_path="$input_path" 20154 fi 20155 fi 20156 20157 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20158 if test "x$test_cygdrive_prefix" = x; then 20159 # As a simple fix, exclude /usr/bin since it's not a real path. 20160 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20161 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20162 # a path prefixed by /cygdrive for fixpath to work. 20163 new_path="$CYGWIN_ROOT_PATH$input_path" 20164 fi 20165 fi 20166 20167 20168 if test "x$path" != "x$new_path"; then 20169 BOOT_JDK="$new_path" 20170 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20171 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20172 fi 20173 20174 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20175 20176 path="$BOOT_JDK" 20177 has_colon=`$ECHO $path | $GREP ^.:` 20178 new_path="$path" 20179 if test "x$has_colon" = x; then 20180 # Not in mixed or Windows style, start by that. 20181 new_path=`cmd //c echo $path` 20182 fi 20183 20184 20185 input_path="$new_path" 20186 # Check if we need to convert this using DOS-style short mode. If the path 20187 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20188 # take no chances and rewrite it. 20189 # Note: m4 eats our [], so we need to use [ and ] instead. 20190 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20191 if test "x$has_forbidden_chars" != x; then 20192 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20193 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20194 fi 20195 20196 20197 windows_path="$new_path" 20198 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20199 unix_path=`$CYGPATH -u "$windows_path"` 20200 new_path="$unix_path" 20201 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20202 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20203 new_path="$unix_path" 20204 fi 20205 20206 if test "x$path" != "x$new_path"; then 20207 BOOT_JDK="$new_path" 20208 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20209 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20210 fi 20211 20212 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20213 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20214 20215 else 20216 # We're on a posix platform. Hooray! :) 20217 path="$BOOT_JDK" 20218 has_space=`$ECHO "$path" | $GREP " "` 20219 if test "x$has_space" != x; then 20220 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20221 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20222 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20223 fi 20224 20225 # Use eval to expand a potential ~ 20226 eval path="$path" 20227 if test ! -f "$path" && test ! -d "$path"; then 20228 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20229 fi 20230 20231 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20232 fi 20233 20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20235 $as_echo_n "checking for Boot JDK... " >&6; } 20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20237 $as_echo "$BOOT_JDK" >&6; } 20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20239 $as_echo_n "checking Boot JDK version... " >&6; } 20240 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20242 $as_echo "$BOOT_JDK_VERSION" >&6; } 20243 fi # end check jdk version 20244 fi # end check rt.jar 20245 fi # end check javac 20246 fi # end check java 20247 fi # end check boot jdk found 20248 fi 20249 20250 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20251 # Having specified an argument which is incorrect will produce an instant failure; 20252 # we should not go on looking 20253 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20254 fi 20255 20256 # Test: Is bootjdk available from builddeps? 20257 20258 if test "x$BOOT_JDK_FOUND" = xno; then 20259 # Now execute the test 20260 20261 20262 20263 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20264 # Source the builddeps file again, to make sure it uses the latest variables! 20265 . $builddepsfile 20266 # Look for a target and build machine specific resource! 20267 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20268 if test "x$resource" = x; then 20269 # Ok, lets instead look for a target specific resource 20270 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20271 fi 20272 if test "x$resource" = x; then 20273 # Ok, lets instead look for a build specific resource 20274 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20275 fi 20276 if test "x$resource" = x; then 20277 # Ok, lets instead look for a generic resource 20278 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20279 resource=${builddep_bootjdk} 20280 fi 20281 if test "x$resource" != x; then 20282 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20283 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20284 # If the resource in the builddeps.conf file is an existing directory, 20285 # for example /java/linux/cups 20286 if test -d ${resource}; then 20287 depdir=${resource} 20288 else 20289 20290 # bootjdk is for example mymodule 20291 # $resource is for example libs/general/libmymod_1_2_3.zip 20292 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20293 # $with_builddeps_dir is for example /localhome/builddeps 20294 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20295 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20296 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20297 filename=`basename $resource` 20298 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20299 filebase=${filename%%.*} 20300 extension=${filename#*.} 20301 installdir=$with_builddeps_dir/$filebase 20302 if test ! -f $installdir/$filename.unpacked; then 20303 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20304 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20305 if test ! -d $installdir; then 20306 mkdir -p $installdir 20307 fi 20308 if test ! -d $installdir; then 20309 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20310 fi 20311 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20312 touch $tmpfile 20313 if test ! -f $tmpfile; then 20314 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20315 fi 20316 20317 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20318 # $tmpfile is the local file name for the downloaded file. 20319 VALID_TOOL=no 20320 if test "x$BDEPS_FTP" = xwget; then 20321 VALID_TOOL=yes 20322 wget -O $tmpfile $with_builddeps_server/$resource 20323 fi 20324 if test "x$BDEPS_FTP" = xlftp; then 20325 VALID_TOOL=yes 20326 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20327 fi 20328 if test "x$BDEPS_FTP" = xftp; then 20329 VALID_TOOL=yes 20330 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20331 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20332 FTPUSERPWD=${FTPSERVER%%@*} 20333 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20334 FTPUSER=${userpwd%%:*} 20335 FTPPWD=${userpwd#*@} 20336 FTPSERVER=${FTPSERVER#*@} 20337 else 20338 FTPUSER=ftp 20339 FTPPWD=ftp 20340 fi 20341 # the "pass" command does not work on some 20342 # ftp clients (read ftp.exe) but if it works, 20343 # passive mode is better! 20344 ( \ 20345 echo "user $FTPUSER $FTPPWD" ; \ 20346 echo "pass" ; \ 20347 echo "bin" ; \ 20348 echo "get $FTPPATH $tmpfile" ; \ 20349 ) | ftp -in $FTPSERVER 20350 fi 20351 if test "x$VALID_TOOL" != xyes; then 20352 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20353 fi 20354 20355 mv $tmpfile $installdir/$filename 20356 if test ! -s $installdir/$filename; then 20357 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20358 fi 20359 case "$extension" in 20360 zip) echo "Unzipping $installdir/$filename..." 20361 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20362 ;; 20363 tar.gz) echo "Untaring $installdir/$filename..." 20364 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20365 ;; 20366 tgz) echo "Untaring $installdir/$filename..." 20367 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20368 ;; 20369 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20370 ;; 20371 esac 20372 fi 20373 if test -f $installdir/$filename.unpacked; then 20374 depdir=$installdir 20375 fi 20376 20377 fi 20378 # Source the builddeps file again, because in the previous command, the depdir 20379 # was updated to point at the current build dependency install directory. 20380 . $builddepsfile 20381 # Now extract variables from the builddeps.conf files. 20382 theroot=${builddep_bootjdk_ROOT} 20383 thecflags=${builddep_bootjdk_CFLAGS} 20384 thelibs=${builddep_bootjdk_LIBS} 20385 if test "x$depdir" = x; then 20386 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20387 fi 20388 BOOT_JDK=$depdir 20389 if test "x$theroot" != x; then 20390 BOOT_JDK="$theroot" 20391 fi 20392 if test "x$thecflags" != x; then 20393 BOOT_JDK_CFLAGS="$thecflags" 20394 fi 20395 if test "x$thelibs" != x; then 20396 BOOT_JDK_LIBS="$thelibs" 20397 fi 20398 BOOT_JDK_FOUND=maybe 20399 else BOOT_JDK_FOUND=no 20400 20401 fi 20402 else BOOT_JDK_FOUND=no 20403 20404 fi 20405 20406 20407 20408 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20409 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20410 # Do we have a bin/java? 20411 if test ! -x "$BOOT_JDK/bin/java"; then 20412 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20413 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20414 BOOT_JDK_FOUND=no 20415 else 20416 # Do we have a bin/javac? 20417 if test ! -x "$BOOT_JDK/bin/javac"; then 20418 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20419 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20420 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20421 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20422 BOOT_JDK_FOUND=no 20423 else 20424 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20425 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20426 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20428 BOOT_JDK_FOUND=no 20429 else 20430 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20431 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20432 20433 # Extra M4 quote needed to protect [] in grep expression. 20434 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20435 if test "x$FOUND_VERSION_78" = x; then 20436 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20437 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20438 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20439 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20440 BOOT_JDK_FOUND=no 20441 else 20442 # We're done! :-) 20443 BOOT_JDK_FOUND=yes 20444 20445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20446 20447 # Input might be given as Windows format, start by converting to 20448 # unix format. 20449 path="$BOOT_JDK" 20450 new_path=`$CYGPATH -u "$path"` 20451 20452 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20453 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20454 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20455 # "foo.exe" is OK but "foo" is an error. 20456 # 20457 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20458 # It is also a way to make sure we got the proper file name for the real test later on. 20459 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20460 if test "x$test_shortpath" = x; then 20461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20462 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20463 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20464 fi 20465 20466 # Call helper function which possibly converts this using DOS-style short mode. 20467 # If so, the updated path is stored in $new_path. 20468 20469 input_path="$new_path" 20470 # Check if we need to convert this using DOS-style short mode. If the path 20471 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20472 # take no chances and rewrite it. 20473 # Note: m4 eats our [], so we need to use [ and ] instead. 20474 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20475 if test "x$has_forbidden_chars" != x; then 20476 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20477 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20478 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20479 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20480 # Going to short mode and back again did indeed matter. Since short mode is 20481 # case insensitive, let's make it lowercase to improve readability. 20482 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20483 # Now convert it back to Unix-style (cygpath) 20484 input_path=`$CYGPATH -u "$shortmode_path"` 20485 new_path="$input_path" 20486 fi 20487 fi 20488 20489 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20490 if test "x$test_cygdrive_prefix" = x; then 20491 # As a simple fix, exclude /usr/bin since it's not a real path. 20492 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20493 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20494 # a path prefixed by /cygdrive for fixpath to work. 20495 new_path="$CYGWIN_ROOT_PATH$input_path" 20496 fi 20497 fi 20498 20499 20500 if test "x$path" != "x$new_path"; then 20501 BOOT_JDK="$new_path" 20502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20503 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20504 fi 20505 20506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20507 20508 path="$BOOT_JDK" 20509 has_colon=`$ECHO $path | $GREP ^.:` 20510 new_path="$path" 20511 if test "x$has_colon" = x; then 20512 # Not in mixed or Windows style, start by that. 20513 new_path=`cmd //c echo $path` 20514 fi 20515 20516 20517 input_path="$new_path" 20518 # Check if we need to convert this using DOS-style short mode. If the path 20519 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20520 # take no chances and rewrite it. 20521 # Note: m4 eats our [], so we need to use [ and ] instead. 20522 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20523 if test "x$has_forbidden_chars" != x; then 20524 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20525 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20526 fi 20527 20528 20529 windows_path="$new_path" 20530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20531 unix_path=`$CYGPATH -u "$windows_path"` 20532 new_path="$unix_path" 20533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20534 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20535 new_path="$unix_path" 20536 fi 20537 20538 if test "x$path" != "x$new_path"; then 20539 BOOT_JDK="$new_path" 20540 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20541 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20542 fi 20543 20544 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20545 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20546 20547 else 20548 # We're on a posix platform. Hooray! :) 20549 path="$BOOT_JDK" 20550 has_space=`$ECHO "$path" | $GREP " "` 20551 if test "x$has_space" != x; then 20552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20553 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20554 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20555 fi 20556 20557 # Use eval to expand a potential ~ 20558 eval path="$path" 20559 if test ! -f "$path" && test ! -d "$path"; then 20560 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20561 fi 20562 20563 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20564 fi 20565 20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20567 $as_echo_n "checking for Boot JDK... " >&6; } 20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20569 $as_echo "$BOOT_JDK" >&6; } 20570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20571 $as_echo_n "checking Boot JDK version... " >&6; } 20572 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20574 $as_echo "$BOOT_JDK_VERSION" >&6; } 20575 fi # end check jdk version 20576 fi # end check rt.jar 20577 fi # end check javac 20578 fi # end check java 20579 fi # end check boot jdk found 20580 fi 20581 20582 20583 # Test: Is $JAVA_HOME set? 20584 20585 if test "x$BOOT_JDK_FOUND" = xno; then 20586 # Now execute the test 20587 20588 if test "x$JAVA_HOME" != x; then 20589 JAVA_HOME_PROCESSED="$JAVA_HOME" 20590 20591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20592 20593 # Input might be given as Windows format, start by converting to 20594 # unix format. 20595 path="$JAVA_HOME_PROCESSED" 20596 new_path=`$CYGPATH -u "$path"` 20597 20598 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20599 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20600 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20601 # "foo.exe" is OK but "foo" is an error. 20602 # 20603 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20604 # It is also a way to make sure we got the proper file name for the real test later on. 20605 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20606 if test "x$test_shortpath" = x; then 20607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20608 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20609 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 20610 fi 20611 20612 # Call helper function which possibly converts this using DOS-style short mode. 20613 # If so, the updated path is stored in $new_path. 20614 20615 input_path="$new_path" 20616 # Check if we need to convert this using DOS-style short mode. If the path 20617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20618 # take no chances and rewrite it. 20619 # Note: m4 eats our [], so we need to use [ and ] instead. 20620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20621 if test "x$has_forbidden_chars" != x; then 20622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20623 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20624 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20625 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20626 # Going to short mode and back again did indeed matter. Since short mode is 20627 # case insensitive, let's make it lowercase to improve readability. 20628 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20629 # Now convert it back to Unix-style (cygpath) 20630 input_path=`$CYGPATH -u "$shortmode_path"` 20631 new_path="$input_path" 20632 fi 20633 fi 20634 20635 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20636 if test "x$test_cygdrive_prefix" = x; then 20637 # As a simple fix, exclude /usr/bin since it's not a real path. 20638 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20639 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20640 # a path prefixed by /cygdrive for fixpath to work. 20641 new_path="$CYGWIN_ROOT_PATH$input_path" 20642 fi 20643 fi 20644 20645 20646 if test "x$path" != "x$new_path"; then 20647 JAVA_HOME_PROCESSED="$new_path" 20648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20649 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20650 fi 20651 20652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20653 20654 path="$JAVA_HOME_PROCESSED" 20655 has_colon=`$ECHO $path | $GREP ^.:` 20656 new_path="$path" 20657 if test "x$has_colon" = x; then 20658 # Not in mixed or Windows style, start by that. 20659 new_path=`cmd //c echo $path` 20660 fi 20661 20662 20663 input_path="$new_path" 20664 # Check if we need to convert this using DOS-style short mode. If the path 20665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20666 # take no chances and rewrite it. 20667 # Note: m4 eats our [], so we need to use [ and ] instead. 20668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20669 if test "x$has_forbidden_chars" != x; then 20670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20671 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20672 fi 20673 20674 20675 windows_path="$new_path" 20676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20677 unix_path=`$CYGPATH -u "$windows_path"` 20678 new_path="$unix_path" 20679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20680 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20681 new_path="$unix_path" 20682 fi 20683 20684 if test "x$path" != "x$new_path"; then 20685 JAVA_HOME_PROCESSED="$new_path" 20686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20687 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20688 fi 20689 20690 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20691 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20692 20693 else 20694 # We're on a posix platform. Hooray! :) 20695 path="$JAVA_HOME_PROCESSED" 20696 has_space=`$ECHO "$path" | $GREP " "` 20697 if test "x$has_space" != x; then 20698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20699 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20700 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20701 fi 20702 20703 # Use eval to expand a potential ~ 20704 eval path="$path" 20705 if test ! -f "$path" && test ! -d "$path"; then 20706 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 20707 fi 20708 20709 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 20710 fi 20711 20712 if test ! -d "$JAVA_HOME_PROCESSED"; then 20713 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 20714 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 20715 else 20716 # Aha, the user has set a JAVA_HOME 20717 # let us use that as the Boot JDK. 20718 BOOT_JDK="$JAVA_HOME_PROCESSED" 20719 BOOT_JDK_FOUND=maybe 20720 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 20721 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 20722 fi 20723 fi 20724 20725 20726 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20727 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20728 # Do we have a bin/java? 20729 if test ! -x "$BOOT_JDK/bin/java"; then 20730 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20731 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20732 BOOT_JDK_FOUND=no 20733 else 20734 # Do we have a bin/javac? 20735 if test ! -x "$BOOT_JDK/bin/javac"; then 20736 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20737 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20738 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20739 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20740 BOOT_JDK_FOUND=no 20741 else 20742 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20743 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20744 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20745 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20746 BOOT_JDK_FOUND=no 20747 else 20748 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20749 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20750 20751 # Extra M4 quote needed to protect [] in grep expression. 20752 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20753 if test "x$FOUND_VERSION_78" = x; then 20754 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20755 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20756 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20757 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20758 BOOT_JDK_FOUND=no 20759 else 20760 # We're done! :-) 20761 BOOT_JDK_FOUND=yes 20762 20763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20764 20765 # Input might be given as Windows format, start by converting to 20766 # unix format. 20767 path="$BOOT_JDK" 20768 new_path=`$CYGPATH -u "$path"` 20769 20770 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20771 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20772 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20773 # "foo.exe" is OK but "foo" is an error. 20774 # 20775 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20776 # It is also a way to make sure we got the proper file name for the real test later on. 20777 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20778 if test "x$test_shortpath" = x; then 20779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20780 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20781 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20782 fi 20783 20784 # Call helper function which possibly converts this using DOS-style short mode. 20785 # If so, the updated path is stored in $new_path. 20786 20787 input_path="$new_path" 20788 # Check if we need to convert this using DOS-style short mode. If the path 20789 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20790 # take no chances and rewrite it. 20791 # Note: m4 eats our [], so we need to use [ and ] instead. 20792 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20793 if test "x$has_forbidden_chars" != x; then 20794 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20795 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20796 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20797 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20798 # Going to short mode and back again did indeed matter. Since short mode is 20799 # case insensitive, let's make it lowercase to improve readability. 20800 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20801 # Now convert it back to Unix-style (cygpath) 20802 input_path=`$CYGPATH -u "$shortmode_path"` 20803 new_path="$input_path" 20804 fi 20805 fi 20806 20807 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20808 if test "x$test_cygdrive_prefix" = x; then 20809 # As a simple fix, exclude /usr/bin since it's not a real path. 20810 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20811 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20812 # a path prefixed by /cygdrive for fixpath to work. 20813 new_path="$CYGWIN_ROOT_PATH$input_path" 20814 fi 20815 fi 20816 20817 20818 if test "x$path" != "x$new_path"; then 20819 BOOT_JDK="$new_path" 20820 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20821 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20822 fi 20823 20824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20825 20826 path="$BOOT_JDK" 20827 has_colon=`$ECHO $path | $GREP ^.:` 20828 new_path="$path" 20829 if test "x$has_colon" = x; then 20830 # Not in mixed or Windows style, start by that. 20831 new_path=`cmd //c echo $path` 20832 fi 20833 20834 20835 input_path="$new_path" 20836 # Check if we need to convert this using DOS-style short mode. If the path 20837 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20838 # take no chances and rewrite it. 20839 # Note: m4 eats our [], so we need to use [ and ] instead. 20840 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20841 if test "x$has_forbidden_chars" != x; then 20842 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20843 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20844 fi 20845 20846 20847 windows_path="$new_path" 20848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20849 unix_path=`$CYGPATH -u "$windows_path"` 20850 new_path="$unix_path" 20851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20853 new_path="$unix_path" 20854 fi 20855 20856 if test "x$path" != "x$new_path"; then 20857 BOOT_JDK="$new_path" 20858 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20859 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20860 fi 20861 20862 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20863 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20864 20865 else 20866 # We're on a posix platform. Hooray! :) 20867 path="$BOOT_JDK" 20868 has_space=`$ECHO "$path" | $GREP " "` 20869 if test "x$has_space" != x; then 20870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20871 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20872 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20873 fi 20874 20875 # Use eval to expand a potential ~ 20876 eval path="$path" 20877 if test ! -f "$path" && test ! -d "$path"; then 20878 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20879 fi 20880 20881 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20882 fi 20883 20884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20885 $as_echo_n "checking for Boot JDK... " >&6; } 20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20887 $as_echo "$BOOT_JDK" >&6; } 20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20889 $as_echo_n "checking Boot JDK version... " >&6; } 20890 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20892 $as_echo "$BOOT_JDK_VERSION" >&6; } 20893 fi # end check jdk version 20894 fi # end check rt.jar 20895 fi # end check javac 20896 fi # end check java 20897 fi # end check boot jdk found 20898 fi 20899 20900 20901 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 20902 20903 if test "x$BOOT_JDK_FOUND" = xno; then 20904 # Now execute the test 20905 20906 if test -x /usr/libexec/java_home; then 20907 BOOT_JDK=`/usr/libexec/java_home` 20908 BOOT_JDK_FOUND=maybe 20909 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5 20910 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;} 20911 fi 20912 20913 20914 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20915 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20916 # Do we have a bin/java? 20917 if test ! -x "$BOOT_JDK/bin/java"; then 20918 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20919 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20920 BOOT_JDK_FOUND=no 20921 else 20922 # Do we have a bin/javac? 20923 if test ! -x "$BOOT_JDK/bin/javac"; then 20924 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20925 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20926 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20927 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20928 BOOT_JDK_FOUND=no 20929 else 20930 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20931 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20932 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20933 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20934 BOOT_JDK_FOUND=no 20935 else 20936 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20937 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20938 20939 # Extra M4 quote needed to protect [] in grep expression. 20940 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20941 if test "x$FOUND_VERSION_78" = x; then 20942 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20943 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20944 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20945 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20946 BOOT_JDK_FOUND=no 20947 else 20948 # We're done! :-) 20949 BOOT_JDK_FOUND=yes 20950 20951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20952 20953 # Input might be given as Windows format, start by converting to 20954 # unix format. 20955 path="$BOOT_JDK" 20956 new_path=`$CYGPATH -u "$path"` 20957 20958 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20959 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20960 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20961 # "foo.exe" is OK but "foo" is an error. 20962 # 20963 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20964 # It is also a way to make sure we got the proper file name for the real test later on. 20965 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20966 if test "x$test_shortpath" = x; then 20967 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20968 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20969 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20970 fi 20971 20972 # Call helper function which possibly converts this using DOS-style short mode. 20973 # If so, the updated path is stored in $new_path. 20974 20975 input_path="$new_path" 20976 # Check if we need to convert this using DOS-style short mode. If the path 20977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20978 # take no chances and rewrite it. 20979 # Note: m4 eats our [], so we need to use [ and ] instead. 20980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20981 if test "x$has_forbidden_chars" != x; then 20982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20983 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20984 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20985 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20986 # Going to short mode and back again did indeed matter. Since short mode is 20987 # case insensitive, let's make it lowercase to improve readability. 20988 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20989 # Now convert it back to Unix-style (cygpath) 20990 input_path=`$CYGPATH -u "$shortmode_path"` 20991 new_path="$input_path" 20992 fi 20993 fi 20994 20995 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20996 if test "x$test_cygdrive_prefix" = x; then 20997 # As a simple fix, exclude /usr/bin since it's not a real path. 20998 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20999 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21000 # a path prefixed by /cygdrive for fixpath to work. 21001 new_path="$CYGWIN_ROOT_PATH$input_path" 21002 fi 21003 fi 21004 21005 21006 if test "x$path" != "x$new_path"; then 21007 BOOT_JDK="$new_path" 21008 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21009 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21010 fi 21011 21012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21013 21014 path="$BOOT_JDK" 21015 has_colon=`$ECHO $path | $GREP ^.:` 21016 new_path="$path" 21017 if test "x$has_colon" = x; then 21018 # Not in mixed or Windows style, start by that. 21019 new_path=`cmd //c echo $path` 21020 fi 21021 21022 21023 input_path="$new_path" 21024 # Check if we need to convert this using DOS-style short mode. If the path 21025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21026 # take no chances and rewrite it. 21027 # Note: m4 eats our [], so we need to use [ and ] instead. 21028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21029 if test "x$has_forbidden_chars" != x; then 21030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21031 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21032 fi 21033 21034 21035 windows_path="$new_path" 21036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21037 unix_path=`$CYGPATH -u "$windows_path"` 21038 new_path="$unix_path" 21039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21041 new_path="$unix_path" 21042 fi 21043 21044 if test "x$path" != "x$new_path"; then 21045 BOOT_JDK="$new_path" 21046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21047 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21048 fi 21049 21050 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21051 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21052 21053 else 21054 # We're on a posix platform. Hooray! :) 21055 path="$BOOT_JDK" 21056 has_space=`$ECHO "$path" | $GREP " "` 21057 if test "x$has_space" != x; then 21058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21059 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21060 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21061 fi 21062 21063 # Use eval to expand a potential ~ 21064 eval path="$path" 21065 if test ! -f "$path" && test ! -d "$path"; then 21066 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21067 fi 21068 21069 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21070 fi 21071 21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21073 $as_echo_n "checking for Boot JDK... " >&6; } 21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21075 $as_echo "$BOOT_JDK" >&6; } 21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21077 $as_echo_n "checking Boot JDK version... " >&6; } 21078 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21080 $as_echo "$BOOT_JDK_VERSION" >&6; } 21081 fi # end check jdk version 21082 fi # end check rt.jar 21083 fi # end check javac 21084 fi # end check java 21085 fi # end check boot jdk found 21086 fi 21087 21088 21089 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21090 21091 if test "x$BOOT_JDK_FOUND" = xno; then 21092 # Now execute the test 21093 21094 # Extract the first word of "javac", so it can be a program name with args. 21095 set dummy javac; ac_word=$2 21096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21097 $as_echo_n "checking for $ac_word... " >&6; } 21098 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21099 $as_echo_n "(cached) " >&6 21100 else 21101 case $JAVAC_CHECK in 21102 [\\/]* | ?:[\\/]*) 21103 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21104 ;; 21105 *) 21106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21107 for as_dir in $PATH 21108 do 21109 IFS=$as_save_IFS 21110 test -z "$as_dir" && as_dir=. 21111 for ac_exec_ext in '' $ac_executable_extensions; do 21112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21113 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21115 break 2 21116 fi 21117 done 21118 done 21119 IFS=$as_save_IFS 21120 21121 ;; 21122 esac 21123 fi 21124 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21125 if test -n "$JAVAC_CHECK"; then 21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21127 $as_echo "$JAVAC_CHECK" >&6; } 21128 else 21129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21130 $as_echo "no" >&6; } 21131 fi 21132 21133 21134 # Extract the first word of "java", so it can be a program name with args. 21135 set dummy java; ac_word=$2 21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21137 $as_echo_n "checking for $ac_word... " >&6; } 21138 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21139 $as_echo_n "(cached) " >&6 21140 else 21141 case $JAVA_CHECK in 21142 [\\/]* | ?:[\\/]*) 21143 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21144 ;; 21145 *) 21146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21147 for as_dir in $PATH 21148 do 21149 IFS=$as_save_IFS 21150 test -z "$as_dir" && as_dir=. 21151 for ac_exec_ext in '' $ac_executable_extensions; do 21152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21153 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21155 break 2 21156 fi 21157 done 21158 done 21159 IFS=$as_save_IFS 21160 21161 ;; 21162 esac 21163 fi 21164 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21165 if test -n "$JAVA_CHECK"; then 21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21167 $as_echo "$JAVA_CHECK" >&6; } 21168 else 21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21170 $as_echo "no" >&6; } 21171 fi 21172 21173 21174 BINARY="$JAVAC_CHECK" 21175 if test "x$JAVAC_CHECK" = x; then 21176 BINARY="$JAVA_CHECK" 21177 fi 21178 if test "x$BINARY" != x; then 21179 # So there is a java(c) binary, it might be part of a JDK. 21180 # Lets find the JDK/JRE directory by following symbolic links. 21181 # Linux/GNU systems often have links from /usr/bin/java to 21182 # /etc/alternatives/java to the real JDK binary. 21183 21184 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21185 # Follow a chain of symbolic links. Use readlink 21186 # where it exists, else fall back to horribly 21187 # complicated shell code. 21188 if test "x$READLINK_TESTED" != yes; then 21189 # On MacOSX there is a readlink tool with a different 21190 # purpose than the GNU readlink tool. Check the found readlink. 21191 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21192 if test "x$ISGNU" = x; then 21193 # A readlink that we do not know how to use. 21194 # Are there other non-GNU readlinks out there? 21195 READLINK_TESTED=yes 21196 READLINK= 21197 fi 21198 fi 21199 21200 if test "x$READLINK" != x; then 21201 BINARY=`$READLINK -f $BINARY` 21202 else 21203 # Save the current directory for restoring afterwards 21204 STARTDIR=$PWD 21205 COUNTER=0 21206 sym_link_dir=`$DIRNAME $BINARY` 21207 sym_link_file=`$BASENAME $BINARY` 21208 cd $sym_link_dir 21209 # Use -P flag to resolve symlinks in directories. 21210 cd `$THEPWDCMD -P` 21211 sym_link_dir=`$THEPWDCMD -P` 21212 # Resolve file symlinks 21213 while test $COUNTER -lt 20; do 21214 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21215 if test "x$ISLINK" == x; then 21216 # This is not a symbolic link! We are done! 21217 break 21218 fi 21219 # Again resolve directory symlinks since the target of the just found 21220 # link could be in a different directory 21221 cd `$DIRNAME $ISLINK` 21222 sym_link_dir=`$THEPWDCMD -P` 21223 sym_link_file=`$BASENAME $ISLINK` 21224 let COUNTER=COUNTER+1 21225 done 21226 cd $STARTDIR 21227 BINARY=$sym_link_dir/$sym_link_file 21228 fi 21229 fi 21230 21231 BOOT_JDK=`dirname "$BINARY"` 21232 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21233 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21234 # Looks like we found ourselves an JDK 21235 BOOT_JDK_FOUND=maybe 21236 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21237 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21238 fi 21239 fi 21240 21241 21242 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21243 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21244 # Do we have a bin/java? 21245 if test ! -x "$BOOT_JDK/bin/java"; then 21246 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21248 BOOT_JDK_FOUND=no 21249 else 21250 # Do we have a bin/javac? 21251 if test ! -x "$BOOT_JDK/bin/javac"; then 21252 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21254 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21255 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21256 BOOT_JDK_FOUND=no 21257 else 21258 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21259 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21260 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21261 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21262 BOOT_JDK_FOUND=no 21263 else 21264 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21265 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21266 21267 # Extra M4 quote needed to protect [] in grep expression. 21268 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21269 if test "x$FOUND_VERSION_78" = x; then 21270 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21271 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21272 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21273 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21274 BOOT_JDK_FOUND=no 21275 else 21276 # We're done! :-) 21277 BOOT_JDK_FOUND=yes 21278 21279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21280 21281 # Input might be given as Windows format, start by converting to 21282 # unix format. 21283 path="$BOOT_JDK" 21284 new_path=`$CYGPATH -u "$path"` 21285 21286 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21287 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21288 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21289 # "foo.exe" is OK but "foo" is an error. 21290 # 21291 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21292 # It is also a way to make sure we got the proper file name for the real test later on. 21293 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21294 if test "x$test_shortpath" = x; then 21295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21296 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21297 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21298 fi 21299 21300 # Call helper function which possibly converts this using DOS-style short mode. 21301 # If so, the updated path is stored in $new_path. 21302 21303 input_path="$new_path" 21304 # Check if we need to convert this using DOS-style short mode. If the path 21305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21306 # take no chances and rewrite it. 21307 # Note: m4 eats our [], so we need to use [ and ] instead. 21308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21309 if test "x$has_forbidden_chars" != x; then 21310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21311 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21312 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21313 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21314 # Going to short mode and back again did indeed matter. Since short mode is 21315 # case insensitive, let's make it lowercase to improve readability. 21316 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21317 # Now convert it back to Unix-style (cygpath) 21318 input_path=`$CYGPATH -u "$shortmode_path"` 21319 new_path="$input_path" 21320 fi 21321 fi 21322 21323 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21324 if test "x$test_cygdrive_prefix" = x; then 21325 # As a simple fix, exclude /usr/bin since it's not a real path. 21326 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21327 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21328 # a path prefixed by /cygdrive for fixpath to work. 21329 new_path="$CYGWIN_ROOT_PATH$input_path" 21330 fi 21331 fi 21332 21333 21334 if test "x$path" != "x$new_path"; then 21335 BOOT_JDK="$new_path" 21336 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21337 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21338 fi 21339 21340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21341 21342 path="$BOOT_JDK" 21343 has_colon=`$ECHO $path | $GREP ^.:` 21344 new_path="$path" 21345 if test "x$has_colon" = x; then 21346 # Not in mixed or Windows style, start by that. 21347 new_path=`cmd //c echo $path` 21348 fi 21349 21350 21351 input_path="$new_path" 21352 # Check if we need to convert this using DOS-style short mode. If the path 21353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21354 # take no chances and rewrite it. 21355 # Note: m4 eats our [], so we need to use [ and ] instead. 21356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21357 if test "x$has_forbidden_chars" != x; then 21358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21359 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21360 fi 21361 21362 21363 windows_path="$new_path" 21364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21365 unix_path=`$CYGPATH -u "$windows_path"` 21366 new_path="$unix_path" 21367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21368 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21369 new_path="$unix_path" 21370 fi 21371 21372 if test "x$path" != "x$new_path"; then 21373 BOOT_JDK="$new_path" 21374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21375 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21376 fi 21377 21378 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21379 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21380 21381 else 21382 # We're on a posix platform. Hooray! :) 21383 path="$BOOT_JDK" 21384 has_space=`$ECHO "$path" | $GREP " "` 21385 if test "x$has_space" != x; then 21386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21387 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21388 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21389 fi 21390 21391 # Use eval to expand a potential ~ 21392 eval path="$path" 21393 if test ! -f "$path" && test ! -d "$path"; then 21394 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21395 fi 21396 21397 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21398 fi 21399 21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21401 $as_echo_n "checking for Boot JDK... " >&6; } 21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21403 $as_echo "$BOOT_JDK" >&6; } 21404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21405 $as_echo_n "checking Boot JDK version... " >&6; } 21406 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21408 $as_echo "$BOOT_JDK_VERSION" >&6; } 21409 fi # end check jdk version 21410 fi # end check rt.jar 21411 fi # end check javac 21412 fi # end check java 21413 fi # end check boot jdk found 21414 fi 21415 21416 21417 # Test: Is there a JDK installed in default, well-known locations? 21418 21419 if test "x$BOOT_JDK_FOUND" = xno; then 21420 # Now execute the test 21421 21422 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21423 21424 if test "x$BOOT_JDK_FOUND" = xno; then 21425 # Now execute the test 21426 21427 if test "x$ProgramW6432" != x; then 21428 VIRTUAL_DIR="$ProgramW6432/Java" 21429 21430 windows_path="$VIRTUAL_DIR" 21431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21432 unix_path=`$CYGPATH -u "$windows_path"` 21433 VIRTUAL_DIR="$unix_path" 21434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21435 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21436 VIRTUAL_DIR="$unix_path" 21437 fi 21438 21439 21440 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21441 BOOT_JDK_SUFFIX="" 21442 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21443 if test "x$ALL_JDKS_FOUND" != x; then 21444 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21445 21446 if test "x$BOOT_JDK_FOUND" = xno; then 21447 # Now execute the test 21448 21449 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21450 if test -d "$BOOT_JDK"; then 21451 BOOT_JDK_FOUND=maybe 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21453 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21454 fi 21455 21456 21457 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21458 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21459 # Do we have a bin/java? 21460 if test ! -x "$BOOT_JDK/bin/java"; then 21461 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21462 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21463 BOOT_JDK_FOUND=no 21464 else 21465 # Do we have a bin/javac? 21466 if test ! -x "$BOOT_JDK/bin/javac"; then 21467 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21468 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21469 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21470 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21471 BOOT_JDK_FOUND=no 21472 else 21473 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21474 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21475 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21476 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21477 BOOT_JDK_FOUND=no 21478 else 21479 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21480 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21481 21482 # Extra M4 quote needed to protect [] in grep expression. 21483 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21484 if test "x$FOUND_VERSION_78" = x; then 21485 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21486 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21487 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21488 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21489 BOOT_JDK_FOUND=no 21490 else 21491 # We're done! :-) 21492 BOOT_JDK_FOUND=yes 21493 21494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21495 21496 # Input might be given as Windows format, start by converting to 21497 # unix format. 21498 path="$BOOT_JDK" 21499 new_path=`$CYGPATH -u "$path"` 21500 21501 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21502 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21503 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21504 # "foo.exe" is OK but "foo" is an error. 21505 # 21506 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21507 # It is also a way to make sure we got the proper file name for the real test later on. 21508 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21509 if test "x$test_shortpath" = x; then 21510 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21511 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21512 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21513 fi 21514 21515 # Call helper function which possibly converts this using DOS-style short mode. 21516 # If so, the updated path is stored in $new_path. 21517 21518 input_path="$new_path" 21519 # Check if we need to convert this using DOS-style short mode. If the path 21520 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21521 # take no chances and rewrite it. 21522 # Note: m4 eats our [], so we need to use [ and ] instead. 21523 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21524 if test "x$has_forbidden_chars" != x; then 21525 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21526 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21527 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21528 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21529 # Going to short mode and back again did indeed matter. Since short mode is 21530 # case insensitive, let's make it lowercase to improve readability. 21531 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21532 # Now convert it back to Unix-style (cygpath) 21533 input_path=`$CYGPATH -u "$shortmode_path"` 21534 new_path="$input_path" 21535 fi 21536 fi 21537 21538 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21539 if test "x$test_cygdrive_prefix" = x; then 21540 # As a simple fix, exclude /usr/bin since it's not a real path. 21541 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21542 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21543 # a path prefixed by /cygdrive for fixpath to work. 21544 new_path="$CYGWIN_ROOT_PATH$input_path" 21545 fi 21546 fi 21547 21548 21549 if test "x$path" != "x$new_path"; then 21550 BOOT_JDK="$new_path" 21551 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21552 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21553 fi 21554 21555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21556 21557 path="$BOOT_JDK" 21558 has_colon=`$ECHO $path | $GREP ^.:` 21559 new_path="$path" 21560 if test "x$has_colon" = x; then 21561 # Not in mixed or Windows style, start by that. 21562 new_path=`cmd //c echo $path` 21563 fi 21564 21565 21566 input_path="$new_path" 21567 # Check if we need to convert this using DOS-style short mode. If the path 21568 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21569 # take no chances and rewrite it. 21570 # Note: m4 eats our [], so we need to use [ and ] instead. 21571 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21572 if test "x$has_forbidden_chars" != x; then 21573 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21574 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21575 fi 21576 21577 21578 windows_path="$new_path" 21579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21580 unix_path=`$CYGPATH -u "$windows_path"` 21581 new_path="$unix_path" 21582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21583 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21584 new_path="$unix_path" 21585 fi 21586 21587 if test "x$path" != "x$new_path"; then 21588 BOOT_JDK="$new_path" 21589 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21590 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21591 fi 21592 21593 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21594 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21595 21596 else 21597 # We're on a posix platform. Hooray! :) 21598 path="$BOOT_JDK" 21599 has_space=`$ECHO "$path" | $GREP " "` 21600 if test "x$has_space" != x; then 21601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21602 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21603 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21604 fi 21605 21606 # Use eval to expand a potential ~ 21607 eval path="$path" 21608 if test ! -f "$path" && test ! -d "$path"; then 21609 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21610 fi 21611 21612 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21613 fi 21614 21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21616 $as_echo_n "checking for Boot JDK... " >&6; } 21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21618 $as_echo "$BOOT_JDK" >&6; } 21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21620 $as_echo_n "checking Boot JDK version... " >&6; } 21621 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21623 $as_echo "$BOOT_JDK_VERSION" >&6; } 21624 fi # end check jdk version 21625 fi # end check rt.jar 21626 fi # end check javac 21627 fi # end check java 21628 fi # end check boot jdk found 21629 fi 21630 21631 done 21632 fi 21633 21634 fi 21635 21636 21637 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21638 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21639 # Do we have a bin/java? 21640 if test ! -x "$BOOT_JDK/bin/java"; then 21641 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21642 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21643 BOOT_JDK_FOUND=no 21644 else 21645 # Do we have a bin/javac? 21646 if test ! -x "$BOOT_JDK/bin/javac"; then 21647 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21648 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21649 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21650 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21651 BOOT_JDK_FOUND=no 21652 else 21653 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21654 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21655 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21656 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21657 BOOT_JDK_FOUND=no 21658 else 21659 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21660 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21661 21662 # Extra M4 quote needed to protect [] in grep expression. 21663 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21664 if test "x$FOUND_VERSION_78" = x; then 21665 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21666 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21667 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21668 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21669 BOOT_JDK_FOUND=no 21670 else 21671 # We're done! :-) 21672 BOOT_JDK_FOUND=yes 21673 21674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21675 21676 # Input might be given as Windows format, start by converting to 21677 # unix format. 21678 path="$BOOT_JDK" 21679 new_path=`$CYGPATH -u "$path"` 21680 21681 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21682 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21683 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21684 # "foo.exe" is OK but "foo" is an error. 21685 # 21686 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21687 # It is also a way to make sure we got the proper file name for the real test later on. 21688 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21689 if test "x$test_shortpath" = x; then 21690 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21691 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21692 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21693 fi 21694 21695 # Call helper function which possibly converts this using DOS-style short mode. 21696 # If so, the updated path is stored in $new_path. 21697 21698 input_path="$new_path" 21699 # Check if we need to convert this using DOS-style short mode. If the path 21700 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21701 # take no chances and rewrite it. 21702 # Note: m4 eats our [], so we need to use [ and ] instead. 21703 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21704 if test "x$has_forbidden_chars" != x; then 21705 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21706 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21707 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21708 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21709 # Going to short mode and back again did indeed matter. Since short mode is 21710 # case insensitive, let's make it lowercase to improve readability. 21711 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21712 # Now convert it back to Unix-style (cygpath) 21713 input_path=`$CYGPATH -u "$shortmode_path"` 21714 new_path="$input_path" 21715 fi 21716 fi 21717 21718 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21719 if test "x$test_cygdrive_prefix" = x; then 21720 # As a simple fix, exclude /usr/bin since it's not a real path. 21721 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21722 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21723 # a path prefixed by /cygdrive for fixpath to work. 21724 new_path="$CYGWIN_ROOT_PATH$input_path" 21725 fi 21726 fi 21727 21728 21729 if test "x$path" != "x$new_path"; then 21730 BOOT_JDK="$new_path" 21731 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21732 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21733 fi 21734 21735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21736 21737 path="$BOOT_JDK" 21738 has_colon=`$ECHO $path | $GREP ^.:` 21739 new_path="$path" 21740 if test "x$has_colon" = x; then 21741 # Not in mixed or Windows style, start by that. 21742 new_path=`cmd //c echo $path` 21743 fi 21744 21745 21746 input_path="$new_path" 21747 # Check if we need to convert this using DOS-style short mode. If the path 21748 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21749 # take no chances and rewrite it. 21750 # Note: m4 eats our [], so we need to use [ and ] instead. 21751 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21752 if test "x$has_forbidden_chars" != x; then 21753 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21754 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21755 fi 21756 21757 21758 windows_path="$new_path" 21759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21760 unix_path=`$CYGPATH -u "$windows_path"` 21761 new_path="$unix_path" 21762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21763 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21764 new_path="$unix_path" 21765 fi 21766 21767 if test "x$path" != "x$new_path"; then 21768 BOOT_JDK="$new_path" 21769 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21770 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21771 fi 21772 21773 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21774 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21775 21776 else 21777 # We're on a posix platform. Hooray! :) 21778 path="$BOOT_JDK" 21779 has_space=`$ECHO "$path" | $GREP " "` 21780 if test "x$has_space" != x; then 21781 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21782 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21783 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21784 fi 21785 21786 # Use eval to expand a potential ~ 21787 eval path="$path" 21788 if test ! -f "$path" && test ! -d "$path"; then 21789 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21790 fi 21791 21792 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21793 fi 21794 21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21796 $as_echo_n "checking for Boot JDK... " >&6; } 21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21798 $as_echo "$BOOT_JDK" >&6; } 21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21800 $as_echo_n "checking Boot JDK version... " >&6; } 21801 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21803 $as_echo "$BOOT_JDK_VERSION" >&6; } 21804 fi # end check jdk version 21805 fi # end check rt.jar 21806 fi # end check javac 21807 fi # end check java 21808 fi # end check boot jdk found 21809 fi 21810 21811 21812 if test "x$BOOT_JDK_FOUND" = xno; then 21813 # Now execute the test 21814 21815 if test "x$PROGRAMW6432" != x; then 21816 VIRTUAL_DIR="$PROGRAMW6432/Java" 21817 21818 windows_path="$VIRTUAL_DIR" 21819 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21820 unix_path=`$CYGPATH -u "$windows_path"` 21821 VIRTUAL_DIR="$unix_path" 21822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21823 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21824 VIRTUAL_DIR="$unix_path" 21825 fi 21826 21827 21828 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21829 BOOT_JDK_SUFFIX="" 21830 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21831 if test "x$ALL_JDKS_FOUND" != x; then 21832 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21833 21834 if test "x$BOOT_JDK_FOUND" = xno; then 21835 # Now execute the test 21836 21837 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21838 if test -d "$BOOT_JDK"; then 21839 BOOT_JDK_FOUND=maybe 21840 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21841 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21842 fi 21843 21844 21845 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21846 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21847 # Do we have a bin/java? 21848 if test ! -x "$BOOT_JDK/bin/java"; then 21849 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21850 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21851 BOOT_JDK_FOUND=no 21852 else 21853 # Do we have a bin/javac? 21854 if test ! -x "$BOOT_JDK/bin/javac"; then 21855 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21856 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21857 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21858 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21859 BOOT_JDK_FOUND=no 21860 else 21861 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21862 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21863 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21864 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21865 BOOT_JDK_FOUND=no 21866 else 21867 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21868 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21869 21870 # Extra M4 quote needed to protect [] in grep expression. 21871 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21872 if test "x$FOUND_VERSION_78" = x; then 21873 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21874 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21875 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21876 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21877 BOOT_JDK_FOUND=no 21878 else 21879 # We're done! :-) 21880 BOOT_JDK_FOUND=yes 21881 21882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21883 21884 # Input might be given as Windows format, start by converting to 21885 # unix format. 21886 path="$BOOT_JDK" 21887 new_path=`$CYGPATH -u "$path"` 21888 21889 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21890 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21891 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21892 # "foo.exe" is OK but "foo" is an error. 21893 # 21894 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21895 # It is also a way to make sure we got the proper file name for the real test later on. 21896 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21897 if test "x$test_shortpath" = x; then 21898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21899 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21900 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21901 fi 21902 21903 # Call helper function which possibly converts this using DOS-style short mode. 21904 # If so, the updated path is stored in $new_path. 21905 21906 input_path="$new_path" 21907 # Check if we need to convert this using DOS-style short mode. If the path 21908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21909 # take no chances and rewrite it. 21910 # Note: m4 eats our [], so we need to use [ and ] instead. 21911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21912 if test "x$has_forbidden_chars" != x; then 21913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21914 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21915 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21916 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21917 # Going to short mode and back again did indeed matter. Since short mode is 21918 # case insensitive, let's make it lowercase to improve readability. 21919 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21920 # Now convert it back to Unix-style (cygpath) 21921 input_path=`$CYGPATH -u "$shortmode_path"` 21922 new_path="$input_path" 21923 fi 21924 fi 21925 21926 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21927 if test "x$test_cygdrive_prefix" = x; then 21928 # As a simple fix, exclude /usr/bin since it's not a real path. 21929 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21930 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21931 # a path prefixed by /cygdrive for fixpath to work. 21932 new_path="$CYGWIN_ROOT_PATH$input_path" 21933 fi 21934 fi 21935 21936 21937 if test "x$path" != "x$new_path"; then 21938 BOOT_JDK="$new_path" 21939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21940 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21941 fi 21942 21943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21944 21945 path="$BOOT_JDK" 21946 has_colon=`$ECHO $path | $GREP ^.:` 21947 new_path="$path" 21948 if test "x$has_colon" = x; then 21949 # Not in mixed or Windows style, start by that. 21950 new_path=`cmd //c echo $path` 21951 fi 21952 21953 21954 input_path="$new_path" 21955 # Check if we need to convert this using DOS-style short mode. If the path 21956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21957 # take no chances and rewrite it. 21958 # Note: m4 eats our [], so we need to use [ and ] instead. 21959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21960 if test "x$has_forbidden_chars" != x; then 21961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21962 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21963 fi 21964 21965 21966 windows_path="$new_path" 21967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21968 unix_path=`$CYGPATH -u "$windows_path"` 21969 new_path="$unix_path" 21970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21971 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21972 new_path="$unix_path" 21973 fi 21974 21975 if test "x$path" != "x$new_path"; then 21976 BOOT_JDK="$new_path" 21977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21978 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21979 fi 21980 21981 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21982 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21983 21984 else 21985 # We're on a posix platform. Hooray! :) 21986 path="$BOOT_JDK" 21987 has_space=`$ECHO "$path" | $GREP " "` 21988 if test "x$has_space" != x; then 21989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21990 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21991 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21992 fi 21993 21994 # Use eval to expand a potential ~ 21995 eval path="$path" 21996 if test ! -f "$path" && test ! -d "$path"; then 21997 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21998 fi 21999 22000 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22001 fi 22002 22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22004 $as_echo_n "checking for Boot JDK... " >&6; } 22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22006 $as_echo "$BOOT_JDK" >&6; } 22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22008 $as_echo_n "checking Boot JDK version... " >&6; } 22009 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22011 $as_echo "$BOOT_JDK_VERSION" >&6; } 22012 fi # end check jdk version 22013 fi # end check rt.jar 22014 fi # end check javac 22015 fi # end check java 22016 fi # end check boot jdk found 22017 fi 22018 22019 done 22020 fi 22021 22022 fi 22023 22024 22025 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22026 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22027 # Do we have a bin/java? 22028 if test ! -x "$BOOT_JDK/bin/java"; then 22029 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22030 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22031 BOOT_JDK_FOUND=no 22032 else 22033 # Do we have a bin/javac? 22034 if test ! -x "$BOOT_JDK/bin/javac"; then 22035 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22036 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22037 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22038 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22039 BOOT_JDK_FOUND=no 22040 else 22041 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22042 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22043 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22044 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22045 BOOT_JDK_FOUND=no 22046 else 22047 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22048 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22049 22050 # Extra M4 quote needed to protect [] in grep expression. 22051 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22052 if test "x$FOUND_VERSION_78" = x; then 22053 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22054 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22055 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22056 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22057 BOOT_JDK_FOUND=no 22058 else 22059 # We're done! :-) 22060 BOOT_JDK_FOUND=yes 22061 22062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22063 22064 # Input might be given as Windows format, start by converting to 22065 # unix format. 22066 path="$BOOT_JDK" 22067 new_path=`$CYGPATH -u "$path"` 22068 22069 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22070 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22071 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22072 # "foo.exe" is OK but "foo" is an error. 22073 # 22074 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22075 # It is also a way to make sure we got the proper file name for the real test later on. 22076 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22077 if test "x$test_shortpath" = x; then 22078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22079 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22080 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22081 fi 22082 22083 # Call helper function which possibly converts this using DOS-style short mode. 22084 # If so, the updated path is stored in $new_path. 22085 22086 input_path="$new_path" 22087 # Check if we need to convert this using DOS-style short mode. If the path 22088 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22089 # take no chances and rewrite it. 22090 # Note: m4 eats our [], so we need to use [ and ] instead. 22091 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22092 if test "x$has_forbidden_chars" != x; then 22093 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22094 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22095 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22096 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22097 # Going to short mode and back again did indeed matter. Since short mode is 22098 # case insensitive, let's make it lowercase to improve readability. 22099 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22100 # Now convert it back to Unix-style (cygpath) 22101 input_path=`$CYGPATH -u "$shortmode_path"` 22102 new_path="$input_path" 22103 fi 22104 fi 22105 22106 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22107 if test "x$test_cygdrive_prefix" = x; then 22108 # As a simple fix, exclude /usr/bin since it's not a real path. 22109 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22110 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22111 # a path prefixed by /cygdrive for fixpath to work. 22112 new_path="$CYGWIN_ROOT_PATH$input_path" 22113 fi 22114 fi 22115 22116 22117 if test "x$path" != "x$new_path"; then 22118 BOOT_JDK="$new_path" 22119 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22120 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22121 fi 22122 22123 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22124 22125 path="$BOOT_JDK" 22126 has_colon=`$ECHO $path | $GREP ^.:` 22127 new_path="$path" 22128 if test "x$has_colon" = x; then 22129 # Not in mixed or Windows style, start by that. 22130 new_path=`cmd //c echo $path` 22131 fi 22132 22133 22134 input_path="$new_path" 22135 # Check if we need to convert this using DOS-style short mode. If the path 22136 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22137 # take no chances and rewrite it. 22138 # Note: m4 eats our [], so we need to use [ and ] instead. 22139 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22140 if test "x$has_forbidden_chars" != x; then 22141 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22142 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22143 fi 22144 22145 22146 windows_path="$new_path" 22147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22148 unix_path=`$CYGPATH -u "$windows_path"` 22149 new_path="$unix_path" 22150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22151 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22152 new_path="$unix_path" 22153 fi 22154 22155 if test "x$path" != "x$new_path"; then 22156 BOOT_JDK="$new_path" 22157 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22158 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22159 fi 22160 22161 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22162 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22163 22164 else 22165 # We're on a posix platform. Hooray! :) 22166 path="$BOOT_JDK" 22167 has_space=`$ECHO "$path" | $GREP " "` 22168 if test "x$has_space" != x; then 22169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22170 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22171 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22172 fi 22173 22174 # Use eval to expand a potential ~ 22175 eval path="$path" 22176 if test ! -f "$path" && test ! -d "$path"; then 22177 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22178 fi 22179 22180 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22181 fi 22182 22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22184 $as_echo_n "checking for Boot JDK... " >&6; } 22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22186 $as_echo "$BOOT_JDK" >&6; } 22187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22188 $as_echo_n "checking Boot JDK version... " >&6; } 22189 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22191 $as_echo "$BOOT_JDK_VERSION" >&6; } 22192 fi # end check jdk version 22193 fi # end check rt.jar 22194 fi # end check javac 22195 fi # end check java 22196 fi # end check boot jdk found 22197 fi 22198 22199 22200 if test "x$BOOT_JDK_FOUND" = xno; then 22201 # Now execute the test 22202 22203 if test "x$PROGRAMFILES" != x; then 22204 VIRTUAL_DIR="$PROGRAMFILES/Java" 22205 22206 windows_path="$VIRTUAL_DIR" 22207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22208 unix_path=`$CYGPATH -u "$windows_path"` 22209 VIRTUAL_DIR="$unix_path" 22210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22211 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22212 VIRTUAL_DIR="$unix_path" 22213 fi 22214 22215 22216 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22217 BOOT_JDK_SUFFIX="" 22218 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22219 if test "x$ALL_JDKS_FOUND" != x; then 22220 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22221 22222 if test "x$BOOT_JDK_FOUND" = xno; then 22223 # Now execute the test 22224 22225 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22226 if test -d "$BOOT_JDK"; then 22227 BOOT_JDK_FOUND=maybe 22228 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22229 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22230 fi 22231 22232 22233 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22234 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22235 # Do we have a bin/java? 22236 if test ! -x "$BOOT_JDK/bin/java"; then 22237 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22239 BOOT_JDK_FOUND=no 22240 else 22241 # Do we have a bin/javac? 22242 if test ! -x "$BOOT_JDK/bin/javac"; then 22243 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22244 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22245 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22246 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22247 BOOT_JDK_FOUND=no 22248 else 22249 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22250 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22252 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22253 BOOT_JDK_FOUND=no 22254 else 22255 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22256 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22257 22258 # Extra M4 quote needed to protect [] in grep expression. 22259 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22260 if test "x$FOUND_VERSION_78" = x; then 22261 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22262 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22263 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22264 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22265 BOOT_JDK_FOUND=no 22266 else 22267 # We're done! :-) 22268 BOOT_JDK_FOUND=yes 22269 22270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22271 22272 # Input might be given as Windows format, start by converting to 22273 # unix format. 22274 path="$BOOT_JDK" 22275 new_path=`$CYGPATH -u "$path"` 22276 22277 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22278 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22279 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22280 # "foo.exe" is OK but "foo" is an error. 22281 # 22282 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22283 # It is also a way to make sure we got the proper file name for the real test later on. 22284 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22285 if test "x$test_shortpath" = x; then 22286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22287 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22288 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22289 fi 22290 22291 # Call helper function which possibly converts this using DOS-style short mode. 22292 # If so, the updated path is stored in $new_path. 22293 22294 input_path="$new_path" 22295 # Check if we need to convert this using DOS-style short mode. If the path 22296 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22297 # take no chances and rewrite it. 22298 # Note: m4 eats our [], so we need to use [ and ] instead. 22299 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22300 if test "x$has_forbidden_chars" != x; then 22301 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22302 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22303 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22304 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22305 # Going to short mode and back again did indeed matter. Since short mode is 22306 # case insensitive, let's make it lowercase to improve readability. 22307 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22308 # Now convert it back to Unix-style (cygpath) 22309 input_path=`$CYGPATH -u "$shortmode_path"` 22310 new_path="$input_path" 22311 fi 22312 fi 22313 22314 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22315 if test "x$test_cygdrive_prefix" = x; then 22316 # As a simple fix, exclude /usr/bin since it's not a real path. 22317 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22318 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22319 # a path prefixed by /cygdrive for fixpath to work. 22320 new_path="$CYGWIN_ROOT_PATH$input_path" 22321 fi 22322 fi 22323 22324 22325 if test "x$path" != "x$new_path"; then 22326 BOOT_JDK="$new_path" 22327 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22328 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22329 fi 22330 22331 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22332 22333 path="$BOOT_JDK" 22334 has_colon=`$ECHO $path | $GREP ^.:` 22335 new_path="$path" 22336 if test "x$has_colon" = x; then 22337 # Not in mixed or Windows style, start by that. 22338 new_path=`cmd //c echo $path` 22339 fi 22340 22341 22342 input_path="$new_path" 22343 # Check if we need to convert this using DOS-style short mode. If the path 22344 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22345 # take no chances and rewrite it. 22346 # Note: m4 eats our [], so we need to use [ and ] instead. 22347 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22348 if test "x$has_forbidden_chars" != x; then 22349 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22350 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22351 fi 22352 22353 22354 windows_path="$new_path" 22355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22356 unix_path=`$CYGPATH -u "$windows_path"` 22357 new_path="$unix_path" 22358 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22359 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22360 new_path="$unix_path" 22361 fi 22362 22363 if test "x$path" != "x$new_path"; then 22364 BOOT_JDK="$new_path" 22365 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22366 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22367 fi 22368 22369 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22370 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22371 22372 else 22373 # We're on a posix platform. Hooray! :) 22374 path="$BOOT_JDK" 22375 has_space=`$ECHO "$path" | $GREP " "` 22376 if test "x$has_space" != x; then 22377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22378 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22379 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22380 fi 22381 22382 # Use eval to expand a potential ~ 22383 eval path="$path" 22384 if test ! -f "$path" && test ! -d "$path"; then 22385 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22386 fi 22387 22388 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22389 fi 22390 22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22392 $as_echo_n "checking for Boot JDK... " >&6; } 22393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22394 $as_echo "$BOOT_JDK" >&6; } 22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22396 $as_echo_n "checking Boot JDK version... " >&6; } 22397 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22399 $as_echo "$BOOT_JDK_VERSION" >&6; } 22400 fi # end check jdk version 22401 fi # end check rt.jar 22402 fi # end check javac 22403 fi # end check java 22404 fi # end check boot jdk found 22405 fi 22406 22407 done 22408 fi 22409 22410 fi 22411 22412 22413 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22414 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22415 # Do we have a bin/java? 22416 if test ! -x "$BOOT_JDK/bin/java"; then 22417 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22418 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22419 BOOT_JDK_FOUND=no 22420 else 22421 # Do we have a bin/javac? 22422 if test ! -x "$BOOT_JDK/bin/javac"; then 22423 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22424 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22425 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22426 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22427 BOOT_JDK_FOUND=no 22428 else 22429 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22430 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22431 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22433 BOOT_JDK_FOUND=no 22434 else 22435 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22436 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22437 22438 # Extra M4 quote needed to protect [] in grep expression. 22439 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22440 if test "x$FOUND_VERSION_78" = x; then 22441 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22442 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22443 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22444 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22445 BOOT_JDK_FOUND=no 22446 else 22447 # We're done! :-) 22448 BOOT_JDK_FOUND=yes 22449 22450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22451 22452 # Input might be given as Windows format, start by converting to 22453 # unix format. 22454 path="$BOOT_JDK" 22455 new_path=`$CYGPATH -u "$path"` 22456 22457 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22458 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22459 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22460 # "foo.exe" is OK but "foo" is an error. 22461 # 22462 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22463 # It is also a way to make sure we got the proper file name for the real test later on. 22464 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22465 if test "x$test_shortpath" = x; then 22466 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22467 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22468 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22469 fi 22470 22471 # Call helper function which possibly converts this using DOS-style short mode. 22472 # If so, the updated path is stored in $new_path. 22473 22474 input_path="$new_path" 22475 # Check if we need to convert this using DOS-style short mode. If the path 22476 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22477 # take no chances and rewrite it. 22478 # Note: m4 eats our [], so we need to use [ and ] instead. 22479 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22480 if test "x$has_forbidden_chars" != x; then 22481 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22482 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22483 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22484 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22485 # Going to short mode and back again did indeed matter. Since short mode is 22486 # case insensitive, let's make it lowercase to improve readability. 22487 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22488 # Now convert it back to Unix-style (cygpath) 22489 input_path=`$CYGPATH -u "$shortmode_path"` 22490 new_path="$input_path" 22491 fi 22492 fi 22493 22494 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22495 if test "x$test_cygdrive_prefix" = x; then 22496 # As a simple fix, exclude /usr/bin since it's not a real path. 22497 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22498 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22499 # a path prefixed by /cygdrive for fixpath to work. 22500 new_path="$CYGWIN_ROOT_PATH$input_path" 22501 fi 22502 fi 22503 22504 22505 if test "x$path" != "x$new_path"; then 22506 BOOT_JDK="$new_path" 22507 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22508 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22509 fi 22510 22511 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22512 22513 path="$BOOT_JDK" 22514 has_colon=`$ECHO $path | $GREP ^.:` 22515 new_path="$path" 22516 if test "x$has_colon" = x; then 22517 # Not in mixed or Windows style, start by that. 22518 new_path=`cmd //c echo $path` 22519 fi 22520 22521 22522 input_path="$new_path" 22523 # Check if we need to convert this using DOS-style short mode. If the path 22524 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22525 # take no chances and rewrite it. 22526 # Note: m4 eats our [], so we need to use [ and ] instead. 22527 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22528 if test "x$has_forbidden_chars" != x; then 22529 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22530 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22531 fi 22532 22533 22534 windows_path="$new_path" 22535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22536 unix_path=`$CYGPATH -u "$windows_path"` 22537 new_path="$unix_path" 22538 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22539 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22540 new_path="$unix_path" 22541 fi 22542 22543 if test "x$path" != "x$new_path"; then 22544 BOOT_JDK="$new_path" 22545 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22546 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22547 fi 22548 22549 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22550 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22551 22552 else 22553 # We're on a posix platform. Hooray! :) 22554 path="$BOOT_JDK" 22555 has_space=`$ECHO "$path" | $GREP " "` 22556 if test "x$has_space" != x; then 22557 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22558 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22559 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22560 fi 22561 22562 # Use eval to expand a potential ~ 22563 eval path="$path" 22564 if test ! -f "$path" && test ! -d "$path"; then 22565 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22566 fi 22567 22568 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22569 fi 22570 22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22572 $as_echo_n "checking for Boot JDK... " >&6; } 22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22574 $as_echo "$BOOT_JDK" >&6; } 22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22576 $as_echo_n "checking Boot JDK version... " >&6; } 22577 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22579 $as_echo "$BOOT_JDK_VERSION" >&6; } 22580 fi # end check jdk version 22581 fi # end check rt.jar 22582 fi # end check javac 22583 fi # end check java 22584 fi # end check boot jdk found 22585 fi 22586 22587 22588 if test "x$BOOT_JDK_FOUND" = xno; then 22589 # Now execute the test 22590 22591 if test "x$ProgramFiles" != x; then 22592 VIRTUAL_DIR="$ProgramFiles/Java" 22593 22594 windows_path="$VIRTUAL_DIR" 22595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22596 unix_path=`$CYGPATH -u "$windows_path"` 22597 VIRTUAL_DIR="$unix_path" 22598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22600 VIRTUAL_DIR="$unix_path" 22601 fi 22602 22603 22604 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22605 BOOT_JDK_SUFFIX="" 22606 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22607 if test "x$ALL_JDKS_FOUND" != x; then 22608 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22609 22610 if test "x$BOOT_JDK_FOUND" = xno; then 22611 # Now execute the test 22612 22613 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22614 if test -d "$BOOT_JDK"; then 22615 BOOT_JDK_FOUND=maybe 22616 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22617 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22618 fi 22619 22620 22621 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22622 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22623 # Do we have a bin/java? 22624 if test ! -x "$BOOT_JDK/bin/java"; then 22625 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22627 BOOT_JDK_FOUND=no 22628 else 22629 # Do we have a bin/javac? 22630 if test ! -x "$BOOT_JDK/bin/javac"; then 22631 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22632 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22633 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22634 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22635 BOOT_JDK_FOUND=no 22636 else 22637 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22638 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22639 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22640 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22641 BOOT_JDK_FOUND=no 22642 else 22643 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22644 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22645 22646 # Extra M4 quote needed to protect [] in grep expression. 22647 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22648 if test "x$FOUND_VERSION_78" = x; then 22649 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22650 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22651 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22652 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22653 BOOT_JDK_FOUND=no 22654 else 22655 # We're done! :-) 22656 BOOT_JDK_FOUND=yes 22657 22658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22659 22660 # Input might be given as Windows format, start by converting to 22661 # unix format. 22662 path="$BOOT_JDK" 22663 new_path=`$CYGPATH -u "$path"` 22664 22665 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22666 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22667 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22668 # "foo.exe" is OK but "foo" is an error. 22669 # 22670 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22671 # It is also a way to make sure we got the proper file name for the real test later on. 22672 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22673 if test "x$test_shortpath" = x; then 22674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22675 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22676 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22677 fi 22678 22679 # Call helper function which possibly converts this using DOS-style short mode. 22680 # If so, the updated path is stored in $new_path. 22681 22682 input_path="$new_path" 22683 # Check if we need to convert this using DOS-style short mode. If the path 22684 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22685 # take no chances and rewrite it. 22686 # Note: m4 eats our [], so we need to use [ and ] instead. 22687 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22688 if test "x$has_forbidden_chars" != x; then 22689 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22690 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22691 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22692 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22693 # Going to short mode and back again did indeed matter. Since short mode is 22694 # case insensitive, let's make it lowercase to improve readability. 22695 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22696 # Now convert it back to Unix-style (cygpath) 22697 input_path=`$CYGPATH -u "$shortmode_path"` 22698 new_path="$input_path" 22699 fi 22700 fi 22701 22702 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22703 if test "x$test_cygdrive_prefix" = x; then 22704 # As a simple fix, exclude /usr/bin since it's not a real path. 22705 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22706 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22707 # a path prefixed by /cygdrive for fixpath to work. 22708 new_path="$CYGWIN_ROOT_PATH$input_path" 22709 fi 22710 fi 22711 22712 22713 if test "x$path" != "x$new_path"; then 22714 BOOT_JDK="$new_path" 22715 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22716 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22717 fi 22718 22719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22720 22721 path="$BOOT_JDK" 22722 has_colon=`$ECHO $path | $GREP ^.:` 22723 new_path="$path" 22724 if test "x$has_colon" = x; then 22725 # Not in mixed or Windows style, start by that. 22726 new_path=`cmd //c echo $path` 22727 fi 22728 22729 22730 input_path="$new_path" 22731 # Check if we need to convert this using DOS-style short mode. If the path 22732 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22733 # take no chances and rewrite it. 22734 # Note: m4 eats our [], so we need to use [ and ] instead. 22735 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22736 if test "x$has_forbidden_chars" != x; then 22737 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22738 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22739 fi 22740 22741 22742 windows_path="$new_path" 22743 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22744 unix_path=`$CYGPATH -u "$windows_path"` 22745 new_path="$unix_path" 22746 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22747 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22748 new_path="$unix_path" 22749 fi 22750 22751 if test "x$path" != "x$new_path"; then 22752 BOOT_JDK="$new_path" 22753 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22754 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22755 fi 22756 22757 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22758 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22759 22760 else 22761 # We're on a posix platform. Hooray! :) 22762 path="$BOOT_JDK" 22763 has_space=`$ECHO "$path" | $GREP " "` 22764 if test "x$has_space" != x; then 22765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22766 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22767 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22768 fi 22769 22770 # Use eval to expand a potential ~ 22771 eval path="$path" 22772 if test ! -f "$path" && test ! -d "$path"; then 22773 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22774 fi 22775 22776 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22777 fi 22778 22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22780 $as_echo_n "checking for Boot JDK... " >&6; } 22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22782 $as_echo "$BOOT_JDK" >&6; } 22783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22784 $as_echo_n "checking Boot JDK version... " >&6; } 22785 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22787 $as_echo "$BOOT_JDK_VERSION" >&6; } 22788 fi # end check jdk version 22789 fi # end check rt.jar 22790 fi # end check javac 22791 fi # end check java 22792 fi # end check boot jdk found 22793 fi 22794 22795 done 22796 fi 22797 22798 fi 22799 22800 22801 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22802 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22803 # Do we have a bin/java? 22804 if test ! -x "$BOOT_JDK/bin/java"; then 22805 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22807 BOOT_JDK_FOUND=no 22808 else 22809 # Do we have a bin/javac? 22810 if test ! -x "$BOOT_JDK/bin/javac"; then 22811 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22812 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22813 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22814 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22815 BOOT_JDK_FOUND=no 22816 else 22817 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22818 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22819 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22821 BOOT_JDK_FOUND=no 22822 else 22823 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22824 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22825 22826 # Extra M4 quote needed to protect [] in grep expression. 22827 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22828 if test "x$FOUND_VERSION_78" = x; then 22829 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22830 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22831 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22832 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22833 BOOT_JDK_FOUND=no 22834 else 22835 # We're done! :-) 22836 BOOT_JDK_FOUND=yes 22837 22838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22839 22840 # Input might be given as Windows format, start by converting to 22841 # unix format. 22842 path="$BOOT_JDK" 22843 new_path=`$CYGPATH -u "$path"` 22844 22845 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22846 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22847 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22848 # "foo.exe" is OK but "foo" is an error. 22849 # 22850 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22851 # It is also a way to make sure we got the proper file name for the real test later on. 22852 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22853 if test "x$test_shortpath" = x; then 22854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22855 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22856 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22857 fi 22858 22859 # Call helper function which possibly converts this using DOS-style short mode. 22860 # If so, the updated path is stored in $new_path. 22861 22862 input_path="$new_path" 22863 # Check if we need to convert this using DOS-style short mode. If the path 22864 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22865 # take no chances and rewrite it. 22866 # Note: m4 eats our [], so we need to use [ and ] instead. 22867 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22868 if test "x$has_forbidden_chars" != x; then 22869 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22870 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22871 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22872 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22873 # Going to short mode and back again did indeed matter. Since short mode is 22874 # case insensitive, let's make it lowercase to improve readability. 22875 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22876 # Now convert it back to Unix-style (cygpath) 22877 input_path=`$CYGPATH -u "$shortmode_path"` 22878 new_path="$input_path" 22879 fi 22880 fi 22881 22882 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22883 if test "x$test_cygdrive_prefix" = x; then 22884 # As a simple fix, exclude /usr/bin since it's not a real path. 22885 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22886 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22887 # a path prefixed by /cygdrive for fixpath to work. 22888 new_path="$CYGWIN_ROOT_PATH$input_path" 22889 fi 22890 fi 22891 22892 22893 if test "x$path" != "x$new_path"; then 22894 BOOT_JDK="$new_path" 22895 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22896 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22897 fi 22898 22899 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22900 22901 path="$BOOT_JDK" 22902 has_colon=`$ECHO $path | $GREP ^.:` 22903 new_path="$path" 22904 if test "x$has_colon" = x; then 22905 # Not in mixed or Windows style, start by that. 22906 new_path=`cmd //c echo $path` 22907 fi 22908 22909 22910 input_path="$new_path" 22911 # Check if we need to convert this using DOS-style short mode. If the path 22912 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22913 # take no chances and rewrite it. 22914 # Note: m4 eats our [], so we need to use [ and ] instead. 22915 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22916 if test "x$has_forbidden_chars" != x; then 22917 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22918 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22919 fi 22920 22921 22922 windows_path="$new_path" 22923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22924 unix_path=`$CYGPATH -u "$windows_path"` 22925 new_path="$unix_path" 22926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22928 new_path="$unix_path" 22929 fi 22930 22931 if test "x$path" != "x$new_path"; then 22932 BOOT_JDK="$new_path" 22933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22934 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22935 fi 22936 22937 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22938 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22939 22940 else 22941 # We're on a posix platform. Hooray! :) 22942 path="$BOOT_JDK" 22943 has_space=`$ECHO "$path" | $GREP " "` 22944 if test "x$has_space" != x; then 22945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22946 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22947 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22948 fi 22949 22950 # Use eval to expand a potential ~ 22951 eval path="$path" 22952 if test ! -f "$path" && test ! -d "$path"; then 22953 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22954 fi 22955 22956 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22957 fi 22958 22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22960 $as_echo_n "checking for Boot JDK... " >&6; } 22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22962 $as_echo "$BOOT_JDK" >&6; } 22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22964 $as_echo_n "checking Boot JDK version... " >&6; } 22965 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22967 $as_echo "$BOOT_JDK_VERSION" >&6; } 22968 fi # end check jdk version 22969 fi # end check rt.jar 22970 fi # end check javac 22971 fi # end check java 22972 fi # end check boot jdk found 22973 fi 22974 22975 22976 if test "x$BOOT_JDK_FOUND" = xno; then 22977 # Now execute the test 22978 22979 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 22980 BOOT_JDK_SUFFIX="" 22981 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22982 if test "x$ALL_JDKS_FOUND" != x; then 22983 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22984 22985 if test "x$BOOT_JDK_FOUND" = xno; then 22986 # Now execute the test 22987 22988 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22989 if test -d "$BOOT_JDK"; then 22990 BOOT_JDK_FOUND=maybe 22991 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22992 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22993 fi 22994 22995 22996 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22997 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22998 # Do we have a bin/java? 22999 if test ! -x "$BOOT_JDK/bin/java"; then 23000 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23001 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23002 BOOT_JDK_FOUND=no 23003 else 23004 # Do we have a bin/javac? 23005 if test ! -x "$BOOT_JDK/bin/javac"; then 23006 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23007 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23008 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23009 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23010 BOOT_JDK_FOUND=no 23011 else 23012 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23013 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23014 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23015 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23016 BOOT_JDK_FOUND=no 23017 else 23018 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23019 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23020 23021 # Extra M4 quote needed to protect [] in grep expression. 23022 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23023 if test "x$FOUND_VERSION_78" = x; then 23024 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23025 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23026 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23027 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23028 BOOT_JDK_FOUND=no 23029 else 23030 # We're done! :-) 23031 BOOT_JDK_FOUND=yes 23032 23033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23034 23035 # Input might be given as Windows format, start by converting to 23036 # unix format. 23037 path="$BOOT_JDK" 23038 new_path=`$CYGPATH -u "$path"` 23039 23040 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23041 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23042 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23043 # "foo.exe" is OK but "foo" is an error. 23044 # 23045 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23046 # It is also a way to make sure we got the proper file name for the real test later on. 23047 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23048 if test "x$test_shortpath" = x; then 23049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23050 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23051 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23052 fi 23053 23054 # Call helper function which possibly converts this using DOS-style short mode. 23055 # If so, the updated path is stored in $new_path. 23056 23057 input_path="$new_path" 23058 # Check if we need to convert this using DOS-style short mode. If the path 23059 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23060 # take no chances and rewrite it. 23061 # Note: m4 eats our [], so we need to use [ and ] instead. 23062 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23063 if test "x$has_forbidden_chars" != x; then 23064 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23065 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23066 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23067 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23068 # Going to short mode and back again did indeed matter. Since short mode is 23069 # case insensitive, let's make it lowercase to improve readability. 23070 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23071 # Now convert it back to Unix-style (cygpath) 23072 input_path=`$CYGPATH -u "$shortmode_path"` 23073 new_path="$input_path" 23074 fi 23075 fi 23076 23077 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23078 if test "x$test_cygdrive_prefix" = x; then 23079 # As a simple fix, exclude /usr/bin since it's not a real path. 23080 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23081 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23082 # a path prefixed by /cygdrive for fixpath to work. 23083 new_path="$CYGWIN_ROOT_PATH$input_path" 23084 fi 23085 fi 23086 23087 23088 if test "x$path" != "x$new_path"; then 23089 BOOT_JDK="$new_path" 23090 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23091 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23092 fi 23093 23094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23095 23096 path="$BOOT_JDK" 23097 has_colon=`$ECHO $path | $GREP ^.:` 23098 new_path="$path" 23099 if test "x$has_colon" = x; then 23100 # Not in mixed or Windows style, start by that. 23101 new_path=`cmd //c echo $path` 23102 fi 23103 23104 23105 input_path="$new_path" 23106 # Check if we need to convert this using DOS-style short mode. If the path 23107 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23108 # take no chances and rewrite it. 23109 # Note: m4 eats our [], so we need to use [ and ] instead. 23110 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23111 if test "x$has_forbidden_chars" != x; then 23112 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23113 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23114 fi 23115 23116 23117 windows_path="$new_path" 23118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23119 unix_path=`$CYGPATH -u "$windows_path"` 23120 new_path="$unix_path" 23121 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23122 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23123 new_path="$unix_path" 23124 fi 23125 23126 if test "x$path" != "x$new_path"; then 23127 BOOT_JDK="$new_path" 23128 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23129 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23130 fi 23131 23132 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23133 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23134 23135 else 23136 # We're on a posix platform. Hooray! :) 23137 path="$BOOT_JDK" 23138 has_space=`$ECHO "$path" | $GREP " "` 23139 if test "x$has_space" != x; then 23140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23141 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23142 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23143 fi 23144 23145 # Use eval to expand a potential ~ 23146 eval path="$path" 23147 if test ! -f "$path" && test ! -d "$path"; then 23148 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23149 fi 23150 23151 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23152 fi 23153 23154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23155 $as_echo_n "checking for Boot JDK... " >&6; } 23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23157 $as_echo "$BOOT_JDK" >&6; } 23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23159 $as_echo_n "checking Boot JDK version... " >&6; } 23160 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23162 $as_echo "$BOOT_JDK_VERSION" >&6; } 23163 fi # end check jdk version 23164 fi # end check rt.jar 23165 fi # end check javac 23166 fi # end check java 23167 fi # end check boot jdk found 23168 fi 23169 23170 done 23171 fi 23172 23173 23174 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23175 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23176 # Do we have a bin/java? 23177 if test ! -x "$BOOT_JDK/bin/java"; then 23178 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23179 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23180 BOOT_JDK_FOUND=no 23181 else 23182 # Do we have a bin/javac? 23183 if test ! -x "$BOOT_JDK/bin/javac"; then 23184 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23185 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23186 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23187 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23188 BOOT_JDK_FOUND=no 23189 else 23190 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23191 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23192 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23193 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23194 BOOT_JDK_FOUND=no 23195 else 23196 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23197 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23198 23199 # Extra M4 quote needed to protect [] in grep expression. 23200 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23201 if test "x$FOUND_VERSION_78" = x; then 23202 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23203 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23204 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23205 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23206 BOOT_JDK_FOUND=no 23207 else 23208 # We're done! :-) 23209 BOOT_JDK_FOUND=yes 23210 23211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23212 23213 # Input might be given as Windows format, start by converting to 23214 # unix format. 23215 path="$BOOT_JDK" 23216 new_path=`$CYGPATH -u "$path"` 23217 23218 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23219 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23220 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23221 # "foo.exe" is OK but "foo" is an error. 23222 # 23223 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23224 # It is also a way to make sure we got the proper file name for the real test later on. 23225 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23226 if test "x$test_shortpath" = x; then 23227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23228 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23229 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23230 fi 23231 23232 # Call helper function which possibly converts this using DOS-style short mode. 23233 # If so, the updated path is stored in $new_path. 23234 23235 input_path="$new_path" 23236 # Check if we need to convert this using DOS-style short mode. If the path 23237 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23238 # take no chances and rewrite it. 23239 # Note: m4 eats our [], so we need to use [ and ] instead. 23240 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23241 if test "x$has_forbidden_chars" != x; then 23242 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23243 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23244 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23245 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23246 # Going to short mode and back again did indeed matter. Since short mode is 23247 # case insensitive, let's make it lowercase to improve readability. 23248 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23249 # Now convert it back to Unix-style (cygpath) 23250 input_path=`$CYGPATH -u "$shortmode_path"` 23251 new_path="$input_path" 23252 fi 23253 fi 23254 23255 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23256 if test "x$test_cygdrive_prefix" = x; then 23257 # As a simple fix, exclude /usr/bin since it's not a real path. 23258 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23259 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23260 # a path prefixed by /cygdrive for fixpath to work. 23261 new_path="$CYGWIN_ROOT_PATH$input_path" 23262 fi 23263 fi 23264 23265 23266 if test "x$path" != "x$new_path"; then 23267 BOOT_JDK="$new_path" 23268 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23269 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23270 fi 23271 23272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23273 23274 path="$BOOT_JDK" 23275 has_colon=`$ECHO $path | $GREP ^.:` 23276 new_path="$path" 23277 if test "x$has_colon" = x; then 23278 # Not in mixed or Windows style, start by that. 23279 new_path=`cmd //c echo $path` 23280 fi 23281 23282 23283 input_path="$new_path" 23284 # Check if we need to convert this using DOS-style short mode. If the path 23285 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23286 # take no chances and rewrite it. 23287 # Note: m4 eats our [], so we need to use [ and ] instead. 23288 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23289 if test "x$has_forbidden_chars" != x; then 23290 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23291 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23292 fi 23293 23294 23295 windows_path="$new_path" 23296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23297 unix_path=`$CYGPATH -u "$windows_path"` 23298 new_path="$unix_path" 23299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23301 new_path="$unix_path" 23302 fi 23303 23304 if test "x$path" != "x$new_path"; then 23305 BOOT_JDK="$new_path" 23306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23307 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23308 fi 23309 23310 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23311 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23312 23313 else 23314 # We're on a posix platform. Hooray! :) 23315 path="$BOOT_JDK" 23316 has_space=`$ECHO "$path" | $GREP " "` 23317 if test "x$has_space" != x; then 23318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23319 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23320 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23321 fi 23322 23323 # Use eval to expand a potential ~ 23324 eval path="$path" 23325 if test ! -f "$path" && test ! -d "$path"; then 23326 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23327 fi 23328 23329 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23330 fi 23331 23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23333 $as_echo_n "checking for Boot JDK... " >&6; } 23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23335 $as_echo "$BOOT_JDK" >&6; } 23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23337 $as_echo_n "checking Boot JDK version... " >&6; } 23338 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23340 $as_echo "$BOOT_JDK_VERSION" >&6; } 23341 fi # end check jdk version 23342 fi # end check rt.jar 23343 fi # end check javac 23344 fi # end check java 23345 fi # end check boot jdk found 23346 fi 23347 23348 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23349 23350 if test "x$BOOT_JDK_FOUND" = xno; then 23351 # Now execute the test 23352 23353 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23354 BOOT_JDK_SUFFIX="/Contents/Home" 23355 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23356 if test "x$ALL_JDKS_FOUND" != x; then 23357 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23358 23359 if test "x$BOOT_JDK_FOUND" = xno; then 23360 # Now execute the test 23361 23362 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23363 if test -d "$BOOT_JDK"; then 23364 BOOT_JDK_FOUND=maybe 23365 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23366 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23367 fi 23368 23369 23370 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23371 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23372 # Do we have a bin/java? 23373 if test ! -x "$BOOT_JDK/bin/java"; then 23374 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23375 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23376 BOOT_JDK_FOUND=no 23377 else 23378 # Do we have a bin/javac? 23379 if test ! -x "$BOOT_JDK/bin/javac"; then 23380 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23381 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23382 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23383 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23384 BOOT_JDK_FOUND=no 23385 else 23386 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23387 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23388 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23389 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23390 BOOT_JDK_FOUND=no 23391 else 23392 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23393 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23394 23395 # Extra M4 quote needed to protect [] in grep expression. 23396 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23397 if test "x$FOUND_VERSION_78" = x; then 23398 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23399 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23400 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23401 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23402 BOOT_JDK_FOUND=no 23403 else 23404 # We're done! :-) 23405 BOOT_JDK_FOUND=yes 23406 23407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23408 23409 # Input might be given as Windows format, start by converting to 23410 # unix format. 23411 path="$BOOT_JDK" 23412 new_path=`$CYGPATH -u "$path"` 23413 23414 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23415 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23416 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23417 # "foo.exe" is OK but "foo" is an error. 23418 # 23419 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23420 # It is also a way to make sure we got the proper file name for the real test later on. 23421 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23422 if test "x$test_shortpath" = x; then 23423 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23424 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23425 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23426 fi 23427 23428 # Call helper function which possibly converts this using DOS-style short mode. 23429 # If so, the updated path is stored in $new_path. 23430 23431 input_path="$new_path" 23432 # Check if we need to convert this using DOS-style short mode. If the path 23433 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23434 # take no chances and rewrite it. 23435 # Note: m4 eats our [], so we need to use [ and ] instead. 23436 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23437 if test "x$has_forbidden_chars" != x; then 23438 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23439 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23440 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23441 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23442 # Going to short mode and back again did indeed matter. Since short mode is 23443 # case insensitive, let's make it lowercase to improve readability. 23444 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23445 # Now convert it back to Unix-style (cygpath) 23446 input_path=`$CYGPATH -u "$shortmode_path"` 23447 new_path="$input_path" 23448 fi 23449 fi 23450 23451 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23452 if test "x$test_cygdrive_prefix" = x; then 23453 # As a simple fix, exclude /usr/bin since it's not a real path. 23454 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23455 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23456 # a path prefixed by /cygdrive for fixpath to work. 23457 new_path="$CYGWIN_ROOT_PATH$input_path" 23458 fi 23459 fi 23460 23461 23462 if test "x$path" != "x$new_path"; then 23463 BOOT_JDK="$new_path" 23464 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23465 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23466 fi 23467 23468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23469 23470 path="$BOOT_JDK" 23471 has_colon=`$ECHO $path | $GREP ^.:` 23472 new_path="$path" 23473 if test "x$has_colon" = x; then 23474 # Not in mixed or Windows style, start by that. 23475 new_path=`cmd //c echo $path` 23476 fi 23477 23478 23479 input_path="$new_path" 23480 # Check if we need to convert this using DOS-style short mode. If the path 23481 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23482 # take no chances and rewrite it. 23483 # Note: m4 eats our [], so we need to use [ and ] instead. 23484 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23485 if test "x$has_forbidden_chars" != x; then 23486 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23487 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23488 fi 23489 23490 23491 windows_path="$new_path" 23492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23493 unix_path=`$CYGPATH -u "$windows_path"` 23494 new_path="$unix_path" 23495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23496 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23497 new_path="$unix_path" 23498 fi 23499 23500 if test "x$path" != "x$new_path"; then 23501 BOOT_JDK="$new_path" 23502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23503 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23504 fi 23505 23506 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23507 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23508 23509 else 23510 # We're on a posix platform. Hooray! :) 23511 path="$BOOT_JDK" 23512 has_space=`$ECHO "$path" | $GREP " "` 23513 if test "x$has_space" != x; then 23514 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23515 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23516 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23517 fi 23518 23519 # Use eval to expand a potential ~ 23520 eval path="$path" 23521 if test ! -f "$path" && test ! -d "$path"; then 23522 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23523 fi 23524 23525 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23526 fi 23527 23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23529 $as_echo_n "checking for Boot JDK... " >&6; } 23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23531 $as_echo "$BOOT_JDK" >&6; } 23532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23533 $as_echo_n "checking Boot JDK version... " >&6; } 23534 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23536 $as_echo "$BOOT_JDK_VERSION" >&6; } 23537 fi # end check jdk version 23538 fi # end check rt.jar 23539 fi # end check javac 23540 fi # end check java 23541 fi # end check boot jdk found 23542 fi 23543 23544 done 23545 fi 23546 23547 23548 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23549 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23550 # Do we have a bin/java? 23551 if test ! -x "$BOOT_JDK/bin/java"; then 23552 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23553 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23554 BOOT_JDK_FOUND=no 23555 else 23556 # Do we have a bin/javac? 23557 if test ! -x "$BOOT_JDK/bin/javac"; then 23558 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23559 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23560 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23561 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23562 BOOT_JDK_FOUND=no 23563 else 23564 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23565 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23566 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23567 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23568 BOOT_JDK_FOUND=no 23569 else 23570 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23571 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23572 23573 # Extra M4 quote needed to protect [] in grep expression. 23574 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23575 if test "x$FOUND_VERSION_78" = x; then 23576 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23577 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23578 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23579 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23580 BOOT_JDK_FOUND=no 23581 else 23582 # We're done! :-) 23583 BOOT_JDK_FOUND=yes 23584 23585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23586 23587 # Input might be given as Windows format, start by converting to 23588 # unix format. 23589 path="$BOOT_JDK" 23590 new_path=`$CYGPATH -u "$path"` 23591 23592 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23593 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23594 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23595 # "foo.exe" is OK but "foo" is an error. 23596 # 23597 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23598 # It is also a way to make sure we got the proper file name for the real test later on. 23599 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23600 if test "x$test_shortpath" = x; then 23601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23602 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23603 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23604 fi 23605 23606 # Call helper function which possibly converts this using DOS-style short mode. 23607 # If so, the updated path is stored in $new_path. 23608 23609 input_path="$new_path" 23610 # Check if we need to convert this using DOS-style short mode. If the path 23611 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23612 # take no chances and rewrite it. 23613 # Note: m4 eats our [], so we need to use [ and ] instead. 23614 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23615 if test "x$has_forbidden_chars" != x; then 23616 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23617 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23618 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23619 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23620 # Going to short mode and back again did indeed matter. Since short mode is 23621 # case insensitive, let's make it lowercase to improve readability. 23622 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23623 # Now convert it back to Unix-style (cygpath) 23624 input_path=`$CYGPATH -u "$shortmode_path"` 23625 new_path="$input_path" 23626 fi 23627 fi 23628 23629 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23630 if test "x$test_cygdrive_prefix" = x; then 23631 # As a simple fix, exclude /usr/bin since it's not a real path. 23632 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23633 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23634 # a path prefixed by /cygdrive for fixpath to work. 23635 new_path="$CYGWIN_ROOT_PATH$input_path" 23636 fi 23637 fi 23638 23639 23640 if test "x$path" != "x$new_path"; then 23641 BOOT_JDK="$new_path" 23642 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23643 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23644 fi 23645 23646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23647 23648 path="$BOOT_JDK" 23649 has_colon=`$ECHO $path | $GREP ^.:` 23650 new_path="$path" 23651 if test "x$has_colon" = x; then 23652 # Not in mixed or Windows style, start by that. 23653 new_path=`cmd //c echo $path` 23654 fi 23655 23656 23657 input_path="$new_path" 23658 # Check if we need to convert this using DOS-style short mode. If the path 23659 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23660 # take no chances and rewrite it. 23661 # Note: m4 eats our [], so we need to use [ and ] instead. 23662 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23663 if test "x$has_forbidden_chars" != x; then 23664 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23665 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23666 fi 23667 23668 23669 windows_path="$new_path" 23670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23671 unix_path=`$CYGPATH -u "$windows_path"` 23672 new_path="$unix_path" 23673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23674 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23675 new_path="$unix_path" 23676 fi 23677 23678 if test "x$path" != "x$new_path"; then 23679 BOOT_JDK="$new_path" 23680 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23681 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23682 fi 23683 23684 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23685 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23686 23687 else 23688 # We're on a posix platform. Hooray! :) 23689 path="$BOOT_JDK" 23690 has_space=`$ECHO "$path" | $GREP " "` 23691 if test "x$has_space" != x; then 23692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23693 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23694 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23695 fi 23696 23697 # Use eval to expand a potential ~ 23698 eval path="$path" 23699 if test ! -f "$path" && test ! -d "$path"; then 23700 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23701 fi 23702 23703 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23704 fi 23705 23706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23707 $as_echo_n "checking for Boot JDK... " >&6; } 23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23709 $as_echo "$BOOT_JDK" >&6; } 23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23711 $as_echo_n "checking Boot JDK version... " >&6; } 23712 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23714 $as_echo "$BOOT_JDK_VERSION" >&6; } 23715 fi # end check jdk version 23716 fi # end check rt.jar 23717 fi # end check javac 23718 fi # end check java 23719 fi # end check boot jdk found 23720 fi 23721 23722 23723 if test "x$BOOT_JDK_FOUND" = xno; then 23724 # Now execute the test 23725 23726 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 23727 BOOT_JDK_SUFFIX="/Contents/Home" 23728 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23729 if test "x$ALL_JDKS_FOUND" != x; then 23730 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23731 23732 if test "x$BOOT_JDK_FOUND" = xno; then 23733 # Now execute the test 23734 23735 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23736 if test -d "$BOOT_JDK"; then 23737 BOOT_JDK_FOUND=maybe 23738 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23739 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23740 fi 23741 23742 23743 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23744 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23745 # Do we have a bin/java? 23746 if test ! -x "$BOOT_JDK/bin/java"; then 23747 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23749 BOOT_JDK_FOUND=no 23750 else 23751 # Do we have a bin/javac? 23752 if test ! -x "$BOOT_JDK/bin/javac"; then 23753 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23754 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23755 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23756 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23757 BOOT_JDK_FOUND=no 23758 else 23759 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23760 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23761 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23762 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23763 BOOT_JDK_FOUND=no 23764 else 23765 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23766 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23767 23768 # Extra M4 quote needed to protect [] in grep expression. 23769 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23770 if test "x$FOUND_VERSION_78" = x; then 23771 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23772 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23773 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23774 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23775 BOOT_JDK_FOUND=no 23776 else 23777 # We're done! :-) 23778 BOOT_JDK_FOUND=yes 23779 23780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23781 23782 # Input might be given as Windows format, start by converting to 23783 # unix format. 23784 path="$BOOT_JDK" 23785 new_path=`$CYGPATH -u "$path"` 23786 23787 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23788 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23789 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23790 # "foo.exe" is OK but "foo" is an error. 23791 # 23792 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23793 # It is also a way to make sure we got the proper file name for the real test later on. 23794 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23795 if test "x$test_shortpath" = x; then 23796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23797 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23798 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23799 fi 23800 23801 # Call helper function which possibly converts this using DOS-style short mode. 23802 # If so, the updated path is stored in $new_path. 23803 23804 input_path="$new_path" 23805 # Check if we need to convert this using DOS-style short mode. If the path 23806 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23807 # take no chances and rewrite it. 23808 # Note: m4 eats our [], so we need to use [ and ] instead. 23809 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23810 if test "x$has_forbidden_chars" != x; then 23811 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23812 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23813 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23814 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23815 # Going to short mode and back again did indeed matter. Since short mode is 23816 # case insensitive, let's make it lowercase to improve readability. 23817 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23818 # Now convert it back to Unix-style (cygpath) 23819 input_path=`$CYGPATH -u "$shortmode_path"` 23820 new_path="$input_path" 23821 fi 23822 fi 23823 23824 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23825 if test "x$test_cygdrive_prefix" = x; then 23826 # As a simple fix, exclude /usr/bin since it's not a real path. 23827 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23828 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23829 # a path prefixed by /cygdrive for fixpath to work. 23830 new_path="$CYGWIN_ROOT_PATH$input_path" 23831 fi 23832 fi 23833 23834 23835 if test "x$path" != "x$new_path"; then 23836 BOOT_JDK="$new_path" 23837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23838 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23839 fi 23840 23841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23842 23843 path="$BOOT_JDK" 23844 has_colon=`$ECHO $path | $GREP ^.:` 23845 new_path="$path" 23846 if test "x$has_colon" = x; then 23847 # Not in mixed or Windows style, start by that. 23848 new_path=`cmd //c echo $path` 23849 fi 23850 23851 23852 input_path="$new_path" 23853 # Check if we need to convert this using DOS-style short mode. If the path 23854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23855 # take no chances and rewrite it. 23856 # Note: m4 eats our [], so we need to use [ and ] instead. 23857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23858 if test "x$has_forbidden_chars" != x; then 23859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23860 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23861 fi 23862 23863 23864 windows_path="$new_path" 23865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23866 unix_path=`$CYGPATH -u "$windows_path"` 23867 new_path="$unix_path" 23868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23869 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23870 new_path="$unix_path" 23871 fi 23872 23873 if test "x$path" != "x$new_path"; then 23874 BOOT_JDK="$new_path" 23875 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23876 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23877 fi 23878 23879 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23880 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23881 23882 else 23883 # We're on a posix platform. Hooray! :) 23884 path="$BOOT_JDK" 23885 has_space=`$ECHO "$path" | $GREP " "` 23886 if test "x$has_space" != x; then 23887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23888 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23889 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23890 fi 23891 23892 # Use eval to expand a potential ~ 23893 eval path="$path" 23894 if test ! -f "$path" && test ! -d "$path"; then 23895 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23896 fi 23897 23898 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23899 fi 23900 23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23902 $as_echo_n "checking for Boot JDK... " >&6; } 23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23904 $as_echo "$BOOT_JDK" >&6; } 23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23906 $as_echo_n "checking Boot JDK version... " >&6; } 23907 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23909 $as_echo "$BOOT_JDK_VERSION" >&6; } 23910 fi # end check jdk version 23911 fi # end check rt.jar 23912 fi # end check javac 23913 fi # end check java 23914 fi # end check boot jdk found 23915 fi 23916 23917 done 23918 fi 23919 23920 23921 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23922 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23923 # Do we have a bin/java? 23924 if test ! -x "$BOOT_JDK/bin/java"; then 23925 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23926 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23927 BOOT_JDK_FOUND=no 23928 else 23929 # Do we have a bin/javac? 23930 if test ! -x "$BOOT_JDK/bin/javac"; then 23931 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23932 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23933 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23934 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23935 BOOT_JDK_FOUND=no 23936 else 23937 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23938 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23939 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23940 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23941 BOOT_JDK_FOUND=no 23942 else 23943 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23944 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23945 23946 # Extra M4 quote needed to protect [] in grep expression. 23947 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23948 if test "x$FOUND_VERSION_78" = x; then 23949 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23950 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23951 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23952 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23953 BOOT_JDK_FOUND=no 23954 else 23955 # We're done! :-) 23956 BOOT_JDK_FOUND=yes 23957 23958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23959 23960 # Input might be given as Windows format, start by converting to 23961 # unix format. 23962 path="$BOOT_JDK" 23963 new_path=`$CYGPATH -u "$path"` 23964 23965 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23966 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23967 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23968 # "foo.exe" is OK but "foo" is an error. 23969 # 23970 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23971 # It is also a way to make sure we got the proper file name for the real test later on. 23972 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23973 if test "x$test_shortpath" = x; then 23974 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23975 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23976 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23977 fi 23978 23979 # Call helper function which possibly converts this using DOS-style short mode. 23980 # If so, the updated path is stored in $new_path. 23981 23982 input_path="$new_path" 23983 # Check if we need to convert this using DOS-style short mode. If the path 23984 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23985 # take no chances and rewrite it. 23986 # Note: m4 eats our [], so we need to use [ and ] instead. 23987 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23988 if test "x$has_forbidden_chars" != x; then 23989 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23990 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23991 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23992 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23993 # Going to short mode and back again did indeed matter. Since short mode is 23994 # case insensitive, let's make it lowercase to improve readability. 23995 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23996 # Now convert it back to Unix-style (cygpath) 23997 input_path=`$CYGPATH -u "$shortmode_path"` 23998 new_path="$input_path" 23999 fi 24000 fi 24001 24002 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24003 if test "x$test_cygdrive_prefix" = x; then 24004 # As a simple fix, exclude /usr/bin since it's not a real path. 24005 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24006 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24007 # a path prefixed by /cygdrive for fixpath to work. 24008 new_path="$CYGWIN_ROOT_PATH$input_path" 24009 fi 24010 fi 24011 24012 24013 if test "x$path" != "x$new_path"; then 24014 BOOT_JDK="$new_path" 24015 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24016 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24017 fi 24018 24019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24020 24021 path="$BOOT_JDK" 24022 has_colon=`$ECHO $path | $GREP ^.:` 24023 new_path="$path" 24024 if test "x$has_colon" = x; then 24025 # Not in mixed or Windows style, start by that. 24026 new_path=`cmd //c echo $path` 24027 fi 24028 24029 24030 input_path="$new_path" 24031 # Check if we need to convert this using DOS-style short mode. If the path 24032 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24033 # take no chances and rewrite it. 24034 # Note: m4 eats our [], so we need to use [ and ] instead. 24035 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24036 if test "x$has_forbidden_chars" != x; then 24037 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24038 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24039 fi 24040 24041 24042 windows_path="$new_path" 24043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24044 unix_path=`$CYGPATH -u "$windows_path"` 24045 new_path="$unix_path" 24046 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24047 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24048 new_path="$unix_path" 24049 fi 24050 24051 if test "x$path" != "x$new_path"; then 24052 BOOT_JDK="$new_path" 24053 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24054 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24055 fi 24056 24057 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24058 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24059 24060 else 24061 # We're on a posix platform. Hooray! :) 24062 path="$BOOT_JDK" 24063 has_space=`$ECHO "$path" | $GREP " "` 24064 if test "x$has_space" != x; then 24065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24066 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24067 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24068 fi 24069 24070 # Use eval to expand a potential ~ 24071 eval path="$path" 24072 if test ! -f "$path" && test ! -d "$path"; then 24073 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24074 fi 24075 24076 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24077 fi 24078 24079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24080 $as_echo_n "checking for Boot JDK... " >&6; } 24081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24082 $as_echo "$BOOT_JDK" >&6; } 24083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24084 $as_echo_n "checking Boot JDK version... " >&6; } 24085 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24087 $as_echo "$BOOT_JDK_VERSION" >&6; } 24088 fi # end check jdk version 24089 fi # end check rt.jar 24090 fi # end check javac 24091 fi # end check java 24092 fi # end check boot jdk found 24093 fi 24094 24095 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24096 24097 if test "x$BOOT_JDK_FOUND" = xno; then 24098 # Now execute the test 24099 24100 BOOT_JDK_PREFIX="/usr/lib/jvm" 24101 BOOT_JDK_SUFFIX="" 24102 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24103 if test "x$ALL_JDKS_FOUND" != x; then 24104 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24105 24106 if test "x$BOOT_JDK_FOUND" = xno; then 24107 # Now execute the test 24108 24109 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24110 if test -d "$BOOT_JDK"; then 24111 BOOT_JDK_FOUND=maybe 24112 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24113 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24114 fi 24115 24116 24117 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24118 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24119 # Do we have a bin/java? 24120 if test ! -x "$BOOT_JDK/bin/java"; then 24121 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24123 BOOT_JDK_FOUND=no 24124 else 24125 # Do we have a bin/javac? 24126 if test ! -x "$BOOT_JDK/bin/javac"; then 24127 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24129 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24130 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24131 BOOT_JDK_FOUND=no 24132 else 24133 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24134 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24135 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24136 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24137 BOOT_JDK_FOUND=no 24138 else 24139 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24140 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24141 24142 # Extra M4 quote needed to protect [] in grep expression. 24143 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24144 if test "x$FOUND_VERSION_78" = x; then 24145 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24146 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24147 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24148 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24149 BOOT_JDK_FOUND=no 24150 else 24151 # We're done! :-) 24152 BOOT_JDK_FOUND=yes 24153 24154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24155 24156 # Input might be given as Windows format, start by converting to 24157 # unix format. 24158 path="$BOOT_JDK" 24159 new_path=`$CYGPATH -u "$path"` 24160 24161 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24162 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24163 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24164 # "foo.exe" is OK but "foo" is an error. 24165 # 24166 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24167 # It is also a way to make sure we got the proper file name for the real test later on. 24168 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24169 if test "x$test_shortpath" = x; then 24170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24171 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24172 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24173 fi 24174 24175 # Call helper function which possibly converts this using DOS-style short mode. 24176 # If so, the updated path is stored in $new_path. 24177 24178 input_path="$new_path" 24179 # Check if we need to convert this using DOS-style short mode. If the path 24180 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24181 # take no chances and rewrite it. 24182 # Note: m4 eats our [], so we need to use [ and ] instead. 24183 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24184 if test "x$has_forbidden_chars" != x; then 24185 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24186 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24187 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24188 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24189 # Going to short mode and back again did indeed matter. Since short mode is 24190 # case insensitive, let's make it lowercase to improve readability. 24191 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24192 # Now convert it back to Unix-style (cygpath) 24193 input_path=`$CYGPATH -u "$shortmode_path"` 24194 new_path="$input_path" 24195 fi 24196 fi 24197 24198 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24199 if test "x$test_cygdrive_prefix" = x; then 24200 # As a simple fix, exclude /usr/bin since it's not a real path. 24201 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24202 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24203 # a path prefixed by /cygdrive for fixpath to work. 24204 new_path="$CYGWIN_ROOT_PATH$input_path" 24205 fi 24206 fi 24207 24208 24209 if test "x$path" != "x$new_path"; then 24210 BOOT_JDK="$new_path" 24211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24212 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24213 fi 24214 24215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24216 24217 path="$BOOT_JDK" 24218 has_colon=`$ECHO $path | $GREP ^.:` 24219 new_path="$path" 24220 if test "x$has_colon" = x; then 24221 # Not in mixed or Windows style, start by that. 24222 new_path=`cmd //c echo $path` 24223 fi 24224 24225 24226 input_path="$new_path" 24227 # Check if we need to convert this using DOS-style short mode. If the path 24228 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24229 # take no chances and rewrite it. 24230 # Note: m4 eats our [], so we need to use [ and ] instead. 24231 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24232 if test "x$has_forbidden_chars" != x; then 24233 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24234 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24235 fi 24236 24237 24238 windows_path="$new_path" 24239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24240 unix_path=`$CYGPATH -u "$windows_path"` 24241 new_path="$unix_path" 24242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24244 new_path="$unix_path" 24245 fi 24246 24247 if test "x$path" != "x$new_path"; then 24248 BOOT_JDK="$new_path" 24249 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24250 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24251 fi 24252 24253 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24254 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24255 24256 else 24257 # We're on a posix platform. Hooray! :) 24258 path="$BOOT_JDK" 24259 has_space=`$ECHO "$path" | $GREP " "` 24260 if test "x$has_space" != x; then 24261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24262 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24263 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24264 fi 24265 24266 # Use eval to expand a potential ~ 24267 eval path="$path" 24268 if test ! -f "$path" && test ! -d "$path"; then 24269 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24270 fi 24271 24272 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24273 fi 24274 24275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24276 $as_echo_n "checking for Boot JDK... " >&6; } 24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24278 $as_echo "$BOOT_JDK" >&6; } 24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24280 $as_echo_n "checking Boot JDK version... " >&6; } 24281 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24283 $as_echo "$BOOT_JDK_VERSION" >&6; } 24284 fi # end check jdk version 24285 fi # end check rt.jar 24286 fi # end check javac 24287 fi # end check java 24288 fi # end check boot jdk found 24289 fi 24290 24291 done 24292 fi 24293 24294 24295 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24296 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24297 # Do we have a bin/java? 24298 if test ! -x "$BOOT_JDK/bin/java"; then 24299 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24300 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24301 BOOT_JDK_FOUND=no 24302 else 24303 # Do we have a bin/javac? 24304 if test ! -x "$BOOT_JDK/bin/javac"; then 24305 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24306 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24307 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24308 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24309 BOOT_JDK_FOUND=no 24310 else 24311 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24312 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24313 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24314 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24315 BOOT_JDK_FOUND=no 24316 else 24317 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24318 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24319 24320 # Extra M4 quote needed to protect [] in grep expression. 24321 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24322 if test "x$FOUND_VERSION_78" = x; then 24323 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24324 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24325 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24326 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24327 BOOT_JDK_FOUND=no 24328 else 24329 # We're done! :-) 24330 BOOT_JDK_FOUND=yes 24331 24332 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24333 24334 # Input might be given as Windows format, start by converting to 24335 # unix format. 24336 path="$BOOT_JDK" 24337 new_path=`$CYGPATH -u "$path"` 24338 24339 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24340 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24341 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24342 # "foo.exe" is OK but "foo" is an error. 24343 # 24344 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24345 # It is also a way to make sure we got the proper file name for the real test later on. 24346 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24347 if test "x$test_shortpath" = x; then 24348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24349 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24350 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24351 fi 24352 24353 # Call helper function which possibly converts this using DOS-style short mode. 24354 # If so, the updated path is stored in $new_path. 24355 24356 input_path="$new_path" 24357 # Check if we need to convert this using DOS-style short mode. If the path 24358 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24359 # take no chances and rewrite it. 24360 # Note: m4 eats our [], so we need to use [ and ] instead. 24361 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24362 if test "x$has_forbidden_chars" != x; then 24363 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24364 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24365 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24366 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24367 # Going to short mode and back again did indeed matter. Since short mode is 24368 # case insensitive, let's make it lowercase to improve readability. 24369 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24370 # Now convert it back to Unix-style (cygpath) 24371 input_path=`$CYGPATH -u "$shortmode_path"` 24372 new_path="$input_path" 24373 fi 24374 fi 24375 24376 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24377 if test "x$test_cygdrive_prefix" = x; then 24378 # As a simple fix, exclude /usr/bin since it's not a real path. 24379 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24380 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24381 # a path prefixed by /cygdrive for fixpath to work. 24382 new_path="$CYGWIN_ROOT_PATH$input_path" 24383 fi 24384 fi 24385 24386 24387 if test "x$path" != "x$new_path"; then 24388 BOOT_JDK="$new_path" 24389 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24390 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24391 fi 24392 24393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24394 24395 path="$BOOT_JDK" 24396 has_colon=`$ECHO $path | $GREP ^.:` 24397 new_path="$path" 24398 if test "x$has_colon" = x; then 24399 # Not in mixed or Windows style, start by that. 24400 new_path=`cmd //c echo $path` 24401 fi 24402 24403 24404 input_path="$new_path" 24405 # Check if we need to convert this using DOS-style short mode. If the path 24406 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24407 # take no chances and rewrite it. 24408 # Note: m4 eats our [], so we need to use [ and ] instead. 24409 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24410 if test "x$has_forbidden_chars" != x; then 24411 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24412 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24413 fi 24414 24415 24416 windows_path="$new_path" 24417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24418 unix_path=`$CYGPATH -u "$windows_path"` 24419 new_path="$unix_path" 24420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24421 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24422 new_path="$unix_path" 24423 fi 24424 24425 if test "x$path" != "x$new_path"; then 24426 BOOT_JDK="$new_path" 24427 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24428 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24429 fi 24430 24431 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24432 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24433 24434 else 24435 # We're on a posix platform. Hooray! :) 24436 path="$BOOT_JDK" 24437 has_space=`$ECHO "$path" | $GREP " "` 24438 if test "x$has_space" != x; then 24439 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24440 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24441 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24442 fi 24443 24444 # Use eval to expand a potential ~ 24445 eval path="$path" 24446 if test ! -f "$path" && test ! -d "$path"; then 24447 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24448 fi 24449 24450 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24451 fi 24452 24453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24454 $as_echo_n "checking for Boot JDK... " >&6; } 24455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24456 $as_echo "$BOOT_JDK" >&6; } 24457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24458 $as_echo_n "checking Boot JDK version... " >&6; } 24459 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24461 $as_echo "$BOOT_JDK_VERSION" >&6; } 24462 fi # end check jdk version 24463 fi # end check rt.jar 24464 fi # end check javac 24465 fi # end check java 24466 fi # end check boot jdk found 24467 fi 24468 24469 fi 24470 24471 24472 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24473 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24474 # Do we have a bin/java? 24475 if test ! -x "$BOOT_JDK/bin/java"; then 24476 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24478 BOOT_JDK_FOUND=no 24479 else 24480 # Do we have a bin/javac? 24481 if test ! -x "$BOOT_JDK/bin/javac"; then 24482 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24483 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24484 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24485 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24486 BOOT_JDK_FOUND=no 24487 else 24488 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24489 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24490 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24491 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24492 BOOT_JDK_FOUND=no 24493 else 24494 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24495 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24496 24497 # Extra M4 quote needed to protect [] in grep expression. 24498 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 24499 if test "x$FOUND_VERSION_78" = x; then 24500 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24501 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24502 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 24503 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 24504 BOOT_JDK_FOUND=no 24505 else 24506 # We're done! :-) 24507 BOOT_JDK_FOUND=yes 24508 24509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24510 24511 # Input might be given as Windows format, start by converting to 24512 # unix format. 24513 path="$BOOT_JDK" 24514 new_path=`$CYGPATH -u "$path"` 24515 24516 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24517 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24518 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24519 # "foo.exe" is OK but "foo" is an error. 24520 # 24521 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24522 # It is also a way to make sure we got the proper file name for the real test later on. 24523 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24524 if test "x$test_shortpath" = x; then 24525 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24526 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24527 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24528 fi 24529 24530 # Call helper function which possibly converts this using DOS-style short mode. 24531 # If so, the updated path is stored in $new_path. 24532 24533 input_path="$new_path" 24534 # Check if we need to convert this using DOS-style short mode. If the path 24535 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24536 # take no chances and rewrite it. 24537 # Note: m4 eats our [], so we need to use [ and ] instead. 24538 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24539 if test "x$has_forbidden_chars" != x; then 24540 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24541 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24542 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24543 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24544 # Going to short mode and back again did indeed matter. Since short mode is 24545 # case insensitive, let's make it lowercase to improve readability. 24546 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24547 # Now convert it back to Unix-style (cygpath) 24548 input_path=`$CYGPATH -u "$shortmode_path"` 24549 new_path="$input_path" 24550 fi 24551 fi 24552 24553 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24554 if test "x$test_cygdrive_prefix" = x; then 24555 # As a simple fix, exclude /usr/bin since it's not a real path. 24556 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24557 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24558 # a path prefixed by /cygdrive for fixpath to work. 24559 new_path="$CYGWIN_ROOT_PATH$input_path" 24560 fi 24561 fi 24562 24563 24564 if test "x$path" != "x$new_path"; then 24565 BOOT_JDK="$new_path" 24566 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24567 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24568 fi 24569 24570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24571 24572 path="$BOOT_JDK" 24573 has_colon=`$ECHO $path | $GREP ^.:` 24574 new_path="$path" 24575 if test "x$has_colon" = x; then 24576 # Not in mixed or Windows style, start by that. 24577 new_path=`cmd //c echo $path` 24578 fi 24579 24580 24581 input_path="$new_path" 24582 # Check if we need to convert this using DOS-style short mode. If the path 24583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24584 # take no chances and rewrite it. 24585 # Note: m4 eats our [], so we need to use [ and ] instead. 24586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24587 if test "x$has_forbidden_chars" != x; then 24588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24589 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24590 fi 24591 24592 24593 windows_path="$new_path" 24594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24595 unix_path=`$CYGPATH -u "$windows_path"` 24596 new_path="$unix_path" 24597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24598 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24599 new_path="$unix_path" 24600 fi 24601 24602 if test "x$path" != "x$new_path"; then 24603 BOOT_JDK="$new_path" 24604 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24605 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24606 fi 24607 24608 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24609 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24610 24611 else 24612 # We're on a posix platform. Hooray! :) 24613 path="$BOOT_JDK" 24614 has_space=`$ECHO "$path" | $GREP " "` 24615 if test "x$has_space" != x; then 24616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24617 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24618 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24619 fi 24620 24621 # Use eval to expand a potential ~ 24622 eval path="$path" 24623 if test ! -f "$path" && test ! -d "$path"; then 24624 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24625 fi 24626 24627 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24628 fi 24629 24630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24631 $as_echo_n "checking for Boot JDK... " >&6; } 24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24633 $as_echo "$BOOT_JDK" >&6; } 24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24635 $as_echo_n "checking Boot JDK version... " >&6; } 24636 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24638 $as_echo "$BOOT_JDK_VERSION" >&6; } 24639 fi # end check jdk version 24640 fi # end check rt.jar 24641 fi # end check javac 24642 fi # end check java 24643 fi # end check boot jdk found 24644 fi 24645 24646 24647 # If we haven't found anything yet, we've truly lost. Give up. 24648 if test "x$BOOT_JDK_FOUND" = xno; then 24649 24650 # Print a helpful message on how to acquire the necessary build dependency. 24651 # openjdk is the help tag: freetype, cups, pulse, alsa etc 24652 MISSING_DEPENDENCY=openjdk 24653 24654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24655 cygwin_help $MISSING_DEPENDENCY 24656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24657 msys_help $MISSING_DEPENDENCY 24658 else 24659 PKGHANDLER_COMMAND= 24660 24661 case $PKGHANDLER in 24662 apt-get) 24663 apt_help $MISSING_DEPENDENCY ;; 24664 yum) 24665 yum_help $MISSING_DEPENDENCY ;; 24666 port) 24667 port_help $MISSING_DEPENDENCY ;; 24668 pkgutil) 24669 pkgutil_help $MISSING_DEPENDENCY ;; 24670 pkgadd) 24671 pkgadd_help $MISSING_DEPENDENCY ;; 24672 esac 24673 24674 if test "x$PKGHANDLER_COMMAND" != x; then 24675 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24676 fi 24677 fi 24678 24679 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 24680 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 24681 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 24682 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24683 as_fn_error $? "Cannot continue" "$LINENO" 5 24684 fi 24685 24686 # Setup proper paths for what we found 24687 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 24688 if test ! -f "$BOOT_RTJAR"; then 24689 # On MacOSX it is called classes.jar 24690 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 24691 if test -f "$BOOT_RTJAR"; then 24692 # Remove the .. 24693 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 24694 fi 24695 fi 24696 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 24697 BOOT_JDK="$BOOT_JDK" 24698 24699 24700 24701 24702 # Setup tools from the Boot JDK. 24703 24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 24705 $as_echo_n "checking for java in Boot JDK... " >&6; } 24706 JAVA=$BOOT_JDK/bin/java 24707 if test ! -x $JAVA; then 24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24709 $as_echo "not found" >&6; } 24710 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24711 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24712 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 24713 fi 24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24715 $as_echo "ok" >&6; } 24716 24717 24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 24719 $as_echo_n "checking for javac in Boot JDK... " >&6; } 24720 JAVAC=$BOOT_JDK/bin/javac 24721 if test ! -x $JAVAC; then 24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24723 $as_echo "not found" >&6; } 24724 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24725 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24726 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 24727 fi 24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24729 $as_echo "ok" >&6; } 24730 24731 24732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 24733 $as_echo_n "checking for javah in Boot JDK... " >&6; } 24734 JAVAH=$BOOT_JDK/bin/javah 24735 if test ! -x $JAVAH; then 24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24737 $as_echo "not found" >&6; } 24738 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24739 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24740 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 24741 fi 24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24743 $as_echo "ok" >&6; } 24744 24745 24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5 24747 $as_echo_n "checking for javap in Boot JDK... " >&6; } 24748 JAVAP=$BOOT_JDK/bin/javap 24749 if test ! -x $JAVAP; then 24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24751 $as_echo "not found" >&6; } 24752 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24753 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24754 as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5 24755 fi 24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24757 $as_echo "ok" >&6; } 24758 24759 24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 24761 $as_echo_n "checking for jar in Boot JDK... " >&6; } 24762 JAR=$BOOT_JDK/bin/jar 24763 if test ! -x $JAR; then 24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24765 $as_echo "not found" >&6; } 24766 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24767 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24768 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 24769 fi 24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24771 $as_echo "ok" >&6; } 24772 24773 24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5 24775 $as_echo_n "checking for rmic in Boot JDK... " >&6; } 24776 RMIC=$BOOT_JDK/bin/rmic 24777 if test ! -x $RMIC; then 24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24779 $as_echo "not found" >&6; } 24780 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24781 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24782 as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5 24783 fi 24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24785 $as_echo "ok" >&6; } 24786 24787 24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 24789 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 24790 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 24791 if test ! -x $NATIVE2ASCII; then 24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24793 $as_echo "not found" >&6; } 24794 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24795 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24796 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 24797 fi 24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24799 $as_echo "ok" >&6; } 24800 24801 24802 # Finally, set some other options... 24803 24804 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 24805 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 24806 24807 24808 24809 # Check if the boot jdk is 32 or 64 bit 24810 if "$JAVA" -d64 -version > /dev/null 2>&1; then 24811 BOOT_JDK_BITS="64" 24812 else 24813 BOOT_JDK_BITS="32" 24814 fi 24815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 24816 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 24818 $as_echo "$BOOT_JDK_BITS" >&6; } 24819 24820 24821 24822 ############################################################################## 24823 # 24824 # Specify options for anything that is run with the Boot JDK. 24825 # 24826 24827 # Check whether --with-boot-jdk-jvmargs was given. 24828 if test "${with_boot_jdk_jvmargs+set}" = set; then : 24829 withval=$with_boot_jdk_jvmargs; 24830 fi 24831 24832 24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 24834 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 24835 24836 # Disable special log output when a debug build is used as Boot JDK... 24837 24838 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 24839 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 24840 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 24841 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24842 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24843 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24844 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 24845 JVM_ARG_OK=true 24846 else 24847 $ECHO "Arg failed:" >&5 24848 $ECHO "$OUTPUT" >&5 24849 JVM_ARG_OK=false 24850 fi 24851 24852 24853 # Apply user provided options. 24854 24855 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 24856 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 24857 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 24858 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24859 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24860 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24861 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 24862 JVM_ARG_OK=true 24863 else 24864 $ECHO "Arg failed:" >&5 24865 $ECHO "$OUTPUT" >&5 24866 JVM_ARG_OK=false 24867 fi 24868 24869 24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 24871 $as_echo "$boot_jdk_jvmargs" >&6; } 24872 24873 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 24874 JAVA_FLAGS=$boot_jdk_jvmargs 24875 24876 24877 24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 24879 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 24880 24881 # Starting amount of heap memory. 24882 24883 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 24884 $ECHO "Command: $JAVA -Xms64M -version" >&5 24885 OUTPUT=`$JAVA -Xms64M -version 2>&1` 24886 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24887 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24888 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24889 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 24890 JVM_ARG_OK=true 24891 else 24892 $ECHO "Arg failed:" >&5 24893 $ECHO "$OUTPUT" >&5 24894 JVM_ARG_OK=false 24895 fi 24896 24897 24898 # Maximum amount of heap memory. 24899 # Maximum stack size. 24900 if test "x$BOOT_JDK_BITS" = x32; then 24901 JVM_MAX_HEAP=768M 24902 STACK_SIZE=768 24903 else 24904 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 24905 # pointers are used. Apparently, we need to increase the heap and stack 24906 # space for the jvm. More specifically, when running javac to build huge 24907 # jdk batch 24908 JVM_MAX_HEAP=1600M 24909 STACK_SIZE=1536 24910 fi 24911 24912 $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5 24913 $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5 24914 OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1` 24915 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24916 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24917 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24918 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP" 24919 JVM_ARG_OK=true 24920 else 24921 $ECHO "Arg failed:" >&5 24922 $ECHO "$OUTPUT" >&5 24923 JVM_ARG_OK=false 24924 fi 24925 24926 24927 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 24928 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 24929 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 24930 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24931 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24932 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24933 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 24934 JVM_ARG_OK=true 24935 else 24936 $ECHO "Arg failed:" >&5 24937 $ECHO "$OUTPUT" >&5 24938 JVM_ARG_OK=false 24939 fi 24940 24941 24942 $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5 24943 $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5 24944 OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1` 24945 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24946 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24947 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24948 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:PermSize=32m" 24949 JVM_ARG_OK=true 24950 else 24951 $ECHO "Arg failed:" >&5 24952 $ECHO "$OUTPUT" >&5 24953 JVM_ARG_OK=false 24954 fi 24955 24956 24957 $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5 24958 $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5 24959 OUTPUT=`$JAVA -XX:MaxPermSize=160m -version 2>&1` 24960 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24961 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24962 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24963 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:MaxPermSize=160m" 24964 JVM_ARG_OK=true 24965 else 24966 $ECHO "Arg failed:" >&5 24967 $ECHO "$OUTPUT" >&5 24968 JVM_ARG_OK=false 24969 fi 24970 24971 24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 24973 $as_echo "$boot_jdk_jvmargs_big" >&6; } 24974 24975 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 24976 24977 24978 24979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 24980 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 24981 24982 # Use serial gc for small short lived tools if possible 24983 24984 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 24985 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 24986 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 24987 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24988 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24989 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24990 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 24991 JVM_ARG_OK=true 24992 else 24993 $ECHO "Arg failed:" >&5 24994 $ECHO "$OUTPUT" >&5 24995 JVM_ARG_OK=false 24996 fi 24997 24998 24999 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 25000 $ECHO "Command: $JAVA -Xms32M -version" >&5 25001 OUTPUT=`$JAVA -Xms32M -version 2>&1` 25002 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25003 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25004 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25005 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 25006 JVM_ARG_OK=true 25007 else 25008 $ECHO "Arg failed:" >&5 25009 $ECHO "$OUTPUT" >&5 25010 JVM_ARG_OK=false 25011 fi 25012 25013 25014 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 25015 $ECHO "Command: $JAVA -Xmx512M -version" >&5 25016 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 25017 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25018 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25019 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25020 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 25021 JVM_ARG_OK=true 25022 else 25023 $ECHO "Arg failed:" >&5 25024 $ECHO "$OUTPUT" >&5 25025 JVM_ARG_OK=false 25026 fi 25027 25028 25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 25030 $as_echo "$boot_jdk_jvmargs_small" >&6; } 25031 25032 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 25033 25034 25035 25036 ############################################################################### 25037 # 25038 # Configure the sources to use. We can add or override individual directories. 25039 # 25040 ############################################################################### 25041 25042 25043 # Where are the sources. Any of these can be overridden 25044 # using --with-override-corba and the likes. 25045 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 25046 CORBA_TOPDIR="$SRC_ROOT/corba" 25047 JAXP_TOPDIR="$SRC_ROOT/jaxp" 25048 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 25049 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 25050 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 25051 JDK_TOPDIR="$SRC_ROOT/jdk" 25052 25053 25054 25055 25056 25057 25058 25059 25060 25061 25062 ############################################################################### 25063 # 25064 # Pickup additional source for a component from outside of the source root 25065 # or override source for a component. 25066 # 25067 25068 # Check whether --with-add-source-root was given. 25069 if test "${with_add_source_root+set}" = set; then : 25070 withval=$with_add_source_root; 25071 fi 25072 25073 25074 25075 # Check whether --with-override-source-root was given. 25076 if test "${with_override_source_root+set}" = set; then : 25077 withval=$with_override_source_root; 25078 fi 25079 25080 25081 25082 # Check whether --with-adds-and-overrides was given. 25083 if test "${with_adds_and_overrides+set}" = set; then : 25084 withval=$with_adds_and_overrides; 25085 fi 25086 25087 25088 if test "x$with_adds_and_overrides" != x; then 25089 with_add_source_root="$with_adds_and_overrides/adds" 25090 with_override_source_root="$with_adds_and_overrides/overrides" 25091 fi 25092 25093 if test "x$with_add_source_root" != x; then 25094 if ! test -d $with_add_source_root; then 25095 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 25096 fi 25097 CURDIR="$PWD" 25098 cd "$with_add_source_root" 25099 ADD_SRC_ROOT="`pwd`" 25100 cd "$CURDIR" 25101 # Verify that the addon source root does not have any root makefiles. 25102 # If it does, then it is usually an error, prevent this. 25103 if test -f $with_add_source_root/langtools/make/Makefile; then 25104 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 25105 fi 25106 if test -f $with_add_source_root/corba/make/Makefile; then 25107 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 25108 fi 25109 if test -f $with_add_source_root/jaxp/make/Makefile; then 25110 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 25111 fi 25112 if test -f $with_add_source_root/jaxws/make/Makefile; then 25113 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 25114 fi 25115 if test -f $with_add_source_root/hotspot/make/Makefile; then 25116 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 25117 fi 25118 if test -f $with_add_source_root/nashorn/make/Makefile; then 25119 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 25120 fi 25121 if test -f $with_add_source_root/jdk/make/Makefile; then 25122 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 25123 fi 25124 fi 25125 25126 25127 if test "x$with_override_source_root" != x; then 25128 if ! test -d $with_override_source_root; then 25129 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 25130 fi 25131 CURDIR="$PWD" 25132 cd "$with_override_source_root" 25133 OVERRIDE_SRC_ROOT="`pwd`" 25134 cd "$CURDIR" 25135 if test -f $with_override_source_root/langtools/make/Makefile; then 25136 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 25137 fi 25138 if test -f $with_override_source_root/corba/make/Makefile; then 25139 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 25140 fi 25141 if test -f $with_override_source_root/jaxp/make/Makefile; then 25142 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 25143 fi 25144 if test -f $with_override_source_root/jaxws/make/Makefile; then 25145 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 25146 fi 25147 if test -f $with_override_source_root/hotspot/make/Makefile; then 25148 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 25149 fi 25150 if test -f $with_override_source_root/nashorn/make/Makefile; then 25151 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 25152 fi 25153 if test -f $with_override_source_root/jdk/make/Makefile; then 25154 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 25155 fi 25156 fi 25157 25158 25159 ############################################################################### 25160 # 25161 # Override a repo completely, this is used for example when you have 3 small 25162 # development sandboxes of the langtools sources and want to avoid having 3 full 25163 # OpenJDK sources checked out on disk. 25164 # 25165 # Assuming that the 3 langtools sandboxes are located here: 25166 # /home/fredrik/sandbox1/langtools 25167 # /home/fredrik/sandbox2/langtools 25168 # /home/fredrik/sandbox3/langtools 25169 # 25170 # From the source root you create build subdirs manually: 25171 # mkdir -p build1 build2 build3 25172 # in each build directory run: 25173 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 25174 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 25175 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 25176 # 25177 25178 25179 # Check whether --with-override-langtools was given. 25180 if test "${with_override_langtools+set}" = set; then : 25181 withval=$with_override_langtools; 25182 fi 25183 25184 25185 25186 # Check whether --with-override-corba was given. 25187 if test "${with_override_corba+set}" = set; then : 25188 withval=$with_override_corba; 25189 fi 25190 25191 25192 25193 # Check whether --with-override-jaxp was given. 25194 if test "${with_override_jaxp+set}" = set; then : 25195 withval=$with_override_jaxp; 25196 fi 25197 25198 25199 25200 # Check whether --with-override-jaxws was given. 25201 if test "${with_override_jaxws+set}" = set; then : 25202 withval=$with_override_jaxws; 25203 fi 25204 25205 25206 25207 # Check whether --with-override-hotspot was given. 25208 if test "${with_override_hotspot+set}" = set; then : 25209 withval=$with_override_hotspot; 25210 fi 25211 25212 25213 25214 # Check whether --with-override-nashorn was given. 25215 if test "${with_override_nashorn+set}" = set; then : 25216 withval=$with_override_nashorn; 25217 fi 25218 25219 25220 25221 # Check whether --with-override-jdk was given. 25222 if test "${with_override_jdk+set}" = set; then : 25223 withval=$with_override_jdk; 25224 fi 25225 25226 25227 if test "x$with_override_langtools" != x; then 25228 CURDIR="$PWD" 25229 cd "$with_override_langtools" 25230 LANGTOOLS_TOPDIR="`pwd`" 25231 cd "$CURDIR" 25232 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 25233 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 25234 fi 25235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 25236 $as_echo_n "checking if langtools should be overridden... " >&6; } 25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 25238 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 25239 fi 25240 if test "x$with_override_corba" != x; then 25241 CURDIR="$PWD" 25242 cd "$with_override_corba" 25243 CORBA_TOPDIR="`pwd`" 25244 cd "$CURDIR" 25245 if ! test -f $CORBA_TOPDIR/make/Makefile; then 25246 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 25247 fi 25248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 25249 $as_echo_n "checking if corba should be overridden... " >&6; } 25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 25251 $as_echo "yes with $CORBA_TOPDIR" >&6; } 25252 fi 25253 if test "x$with_override_jaxp" != x; then 25254 CURDIR="$PWD" 25255 cd "$with_override_jaxp" 25256 JAXP_TOPDIR="`pwd`" 25257 cd "$CURDIR" 25258 if ! test -f $JAXP_TOPDIR/make/Makefile; then 25259 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 25260 fi 25261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 25262 $as_echo_n "checking if jaxp should be overridden... " >&6; } 25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 25264 $as_echo "yes with $JAXP_TOPDIR" >&6; } 25265 fi 25266 if test "x$with_override_jaxws" != x; then 25267 CURDIR="$PWD" 25268 cd "$with_override_jaxws" 25269 JAXWS_TOPDIR="`pwd`" 25270 cd "$CURDIR" 25271 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 25272 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 25273 fi 25274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 25275 $as_echo_n "checking if jaxws should be overridden... " >&6; } 25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 25277 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 25278 fi 25279 if test "x$with_override_hotspot" != x; then 25280 CURDIR="$PWD" 25281 cd "$with_override_hotspot" 25282 HOTSPOT_TOPDIR="`pwd`" 25283 cd "$CURDIR" 25284 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 25285 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 25286 fi 25287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 25288 $as_echo_n "checking if hotspot should be overridden... " >&6; } 25289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 25290 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 25291 fi 25292 if test "x$with_override_nashorn" != x; then 25293 CURDIR="$PWD" 25294 cd "$with_override_nashorn" 25295 NASHORN_TOPDIR="`pwd`" 25296 cd "$CURDIR" 25297 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 25298 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 25299 fi 25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 25301 $as_echo_n "checking if nashorn should be overridden... " >&6; } 25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 25303 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 25304 fi 25305 if test "x$with_override_jdk" != x; then 25306 CURDIR="$PWD" 25307 cd "$with_override_jdk" 25308 JDK_TOPDIR="`pwd`" 25309 cd "$CURDIR" 25310 if ! test -f $JDK_TOPDIR/make/Makefile; then 25311 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 25312 fi 25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 25314 $as_echo_n "checking if JDK should be overridden... " >&6; } 25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 25316 $as_echo "yes with $JDK_TOPDIR" >&6; } 25317 fi 25318 25319 25320 BUILD_OUTPUT="$OUTPUT_ROOT" 25321 25322 25323 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 25324 BUILD_HOTSPOT=true 25325 25326 25327 25328 # Check whether --with-import-hotspot was given. 25329 if test "${with_import_hotspot+set}" = set; then : 25330 withval=$with_import_hotspot; 25331 fi 25332 25333 if test "x$with_import_hotspot" != x; then 25334 CURDIR="$PWD" 25335 cd "$with_import_hotspot" 25336 HOTSPOT_DIST="`pwd`" 25337 cd "$CURDIR" 25338 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 25339 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 25340 fi 25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 25342 $as_echo_n "checking if hotspot should be imported... " >&6; } 25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 25344 $as_echo "yes from $HOTSPOT_DIST" >&6; } 25345 BUILD_HOTSPOT=false 25346 fi 25347 25348 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 25349 25350 25351 ############################################################################### 25352 # 25353 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 25354 # native code. 25355 # 25356 ############################################################################### 25357 25358 # First determine the toolchain type (compiler family) 25359 25360 25361 # Check whether --with-toolchain-type was given. 25362 if test "${with_toolchain_type+set}" = set; then : 25363 withval=$with_toolchain_type; 25364 fi 25365 25366 25367 # Use indirect variable referencing 25368 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 25369 VALID_TOOLCHAINS=${!toolchain_var_name} 25370 # First toolchain type in the list is the default 25371 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 25372 25373 if test "x$with_toolchain_type" = xlist; then 25374 # List all toolchains 25375 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 25376 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 25377 for toolchain in $VALID_TOOLCHAINS; do 25378 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 25379 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 25380 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 25381 done 25382 25383 exit 0 25384 elif test "x$with_toolchain_type" != x; then 25385 # User override; check that it is valid 25386 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 25387 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 25388 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 25389 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 25390 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 25391 as_fn_error $? "Cannot continue." "$LINENO" 5 25392 fi 25393 TOOLCHAIN_TYPE=$with_toolchain_type 25394 else 25395 # No flag given, use default 25396 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 25397 fi 25398 25399 25400 TOOLCHAIN_CC_BINARY_clang="clang" 25401 TOOLCHAIN_CC_BINARY_gcc="gcc" 25402 TOOLCHAIN_CC_BINARY_microsoft="cl" 25403 TOOLCHAIN_CC_BINARY_solstudio="cc" 25404 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 25405 25406 TOOLCHAIN_CXX_BINARY_clang="clang++" 25407 TOOLCHAIN_CXX_BINARY_gcc="g++" 25408 TOOLCHAIN_CXX_BINARY_microsoft="cl" 25409 TOOLCHAIN_CXX_BINARY_solstudio="CC" 25410 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 25411 25412 # Use indirect variable referencing 25413 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 25414 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 25415 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 25416 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 25417 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 25418 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 25419 25420 25421 # Define filename patterns 25422 if test "x$OPENJDK_TARGET_OS" = xwindows; then 25423 LIBRARY_PREFIX= 25424 SHARED_LIBRARY_SUFFIX='.dll' 25425 STATIC_LIBRARY_SUFFIX='.lib' 25426 SHARED_LIBRARY='$1.dll' 25427 STATIC_LIBRARY='$1.lib' 25428 OBJ_SUFFIX='.obj' 25429 EXE_SUFFIX='.exe' 25430 else 25431 LIBRARY_PREFIX=lib 25432 SHARED_LIBRARY_SUFFIX='.so' 25433 STATIC_LIBRARY_SUFFIX='.a' 25434 SHARED_LIBRARY='lib$1.so' 25435 STATIC_LIBRARY='lib$1.a' 25436 OBJ_SUFFIX='.o' 25437 EXE_SUFFIX='' 25438 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25439 SHARED_LIBRARY='lib$1.dylib' 25440 SHARED_LIBRARY_SUFFIX='.dylib' 25441 fi 25442 fi 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 25454 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 25455 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 25456 else 25457 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 25458 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 25459 fi 25460 25461 25462 # Then detect the actual binaries needed 25463 25464 # FIXME: Is this needed? 25465 ac_ext=cpp 25466 ac_cpp='$CXXCPP $CPPFLAGS' 25467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25470 25471 25472 # Store the CFLAGS etal passed to the configure script. 25473 ORG_CFLAGS="$CFLAGS" 25474 ORG_CXXFLAGS="$CXXFLAGS" 25475 ORG_OBJCFLAGS="$OBJCFLAGS" 25476 25477 # autoconf magic only relies on PATH, so update it if tools dir is specified 25478 OLD_PATH="$PATH" 25479 25480 # On Windows, we need to detect the visual studio installation first. 25481 # This will change the PATH, but we need to keep that new PATH even 25482 # after toolchain detection is done, since the compiler (on x86) uses 25483 # it for DLL resolution in runtime. 25484 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 25485 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 25486 25487 # Store path to cygwin link.exe to help excluding it when searching for 25488 # VS linker. This must be done before changing the PATH when looking for VS. 25489 # Extract the first word of "link", so it can be a program name with args. 25490 set dummy link; ac_word=$2 25491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25492 $as_echo_n "checking for $ac_word... " >&6; } 25493 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 25494 $as_echo_n "(cached) " >&6 25495 else 25496 case $CYGWIN_LINK in 25497 [\\/]* | ?:[\\/]*) 25498 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 25499 ;; 25500 *) 25501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25502 for as_dir in $PATH 25503 do 25504 IFS=$as_save_IFS 25505 test -z "$as_dir" && as_dir=. 25506 for ac_exec_ext in '' $ac_executable_extensions; do 25507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25508 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 25509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25510 break 2 25511 fi 25512 done 25513 done 25514 IFS=$as_save_IFS 25515 25516 ;; 25517 esac 25518 fi 25519 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 25520 if test -n "$CYGWIN_LINK"; then 25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 25522 $as_echo "$CYGWIN_LINK" >&6; } 25523 else 25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25525 $as_echo "no" >&6; } 25526 fi 25527 25528 25529 if test "x$CYGWIN_LINK" != x; then 25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 25531 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 25532 "$CYGWIN_LINK" --version > /dev/null 25533 if test $? -eq 0 ; then 25534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25535 $as_echo "yes" >&6; } 25536 else 25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25538 $as_echo "no" >&6; } 25539 # This might be the VS linker. Don't exclude it later on. 25540 CYGWIN_LINK="" 25541 fi 25542 fi 25543 25544 # First-hand choice is to locate and run the vsvars bat file. 25545 25546 25547 # Check whether --with-toolchain-version was given. 25548 if test "${with_toolchain_version+set}" = set; then : 25549 withval=$with_toolchain_version; 25550 fi 25551 25552 25553 if test "x$with_toolchain_version" = xlist; then 25554 # List all toolchains 25555 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 25556 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 25557 for version in $VALID_VS_VERSIONS; do 25558 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 25559 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 25560 done 25561 25562 exit 0 25563 elif test "x$DEVKIT_VS_VERSION" != x; then 25564 VS_VERSION=$DEVKIT_VS_VERSION 25565 TOOLCHAIN_VERSION=$VS_VERSION 25566 # If the devkit has a name, use that as description 25567 VS_DESCRIPTION="$DEVKIT_NAME" 25568 if test "x$VS_DESCRIPTION" = x; then 25569 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 25570 fi 25571 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 25572 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 25573 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 25574 eval USE_UCRT="\${VS_USE_UCRT_${VS_VERSION}}" 25575 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25576 VS_PATH="$TOOLCHAIN_PATH:$PATH" 25577 25578 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 25579 # can still be exported as INCLUDE for compiler invocations without 25580 # SYSROOT_CFLAGS 25581 OLDIFS="$IFS" 25582 IFS=";" 25583 for i in $DEVKIT_VS_INCLUDE; do 25584 ipath=$i 25585 25586 unix_path="$ipath" 25587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25588 windows_path=`$CYGPATH -m "$unix_path"` 25589 ipath="$windows_path" 25590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25591 windows_path=`cmd //c echo $unix_path` 25592 ipath="$windows_path" 25593 fi 25594 25595 VS_INCLUDE="$VS_INCLUDE;$ipath" 25596 done 25597 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 25598 # as LIB for compiler invocations without SYSROOT_LDFLAGS 25599 for i in $DEVKIT_VS_LIB; do 25600 libpath=$i 25601 25602 unix_path="$libpath" 25603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25604 windows_path=`$CYGPATH -m "$unix_path"` 25605 libpath="$windows_path" 25606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25607 windows_path=`cmd //c echo $unix_path` 25608 libpath="$windows_path" 25609 fi 25610 25611 VS_LIB="$VS_LIB;$libpath" 25612 done 25613 IFS="$OLDIFS" 25614 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 25616 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 25617 25618 elif test "x$with_toolchain_version" != x; then 25619 # User override; check that it is valid 25620 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 25621 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 25622 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 25623 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 25624 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 25625 as_fn_error $? "Cannot continue." "$LINENO" 5 25626 fi 25627 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 25628 else 25629 # No flag given, use default 25630 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 25631 fi 25632 25633 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 25634 25635 VS_VERSION="$VS_VERSION" 25636 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 25637 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 25638 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 25639 eval VS_EDITIONS="\${VS_EDITIONS_${VS_VERSION}}" 25640 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 25641 eval VS_ENV_ARGS="\${VS_ENV_ARGS_${VS_VERSION}}" 25642 25643 # When using --with-tools-dir, assume it points to the correct and default 25644 # version of Visual Studio or that --with-toolchain-version was also set. 25645 if test "x$with_tools_dir" != x; then 25646 25647 if test "x$VS_ENV_CMD" = x; then 25648 VS_VERSION="${VS_VERSION}" 25649 VS_BASE="$with_tools_dir/../.." 25650 METHOD="--with-tools-dir" 25651 25652 25653 windows_path="$VS_BASE" 25654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25655 unix_path=`$CYGPATH -u "$windows_path"` 25656 VS_BASE="$unix_path" 25657 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25658 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25659 VS_BASE="$unix_path" 25660 fi 25661 25662 # In VS 2017, the default installation is in a subdir named after the edition. 25663 # Find the first one present and use that. 25664 if test "x$VS_EDITIONS" != x; then 25665 for edition in $VS_EDITIONS; do 25666 if test -d "$VS_BASE/$edition"; then 25667 VS_BASE="$VS_BASE/$edition" 25668 break 25669 fi 25670 done 25671 fi 25672 25673 if test -d "$VS_BASE"; then 25674 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25675 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25676 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25677 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25678 else 25679 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25680 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25681 fi 25682 25683 for VCVARSFILE in $VCVARSFILES; do 25684 if test -f "$VS_BASE/$VCVARSFILE"; then 25685 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25686 break 25687 fi 25688 done 25689 25690 if test "x$VS_ENV_CMD" = x; then 25691 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25692 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25693 else 25694 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25695 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25696 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25697 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25698 25699 fi 25700 fi 25701 fi 25702 25703 25704 if test "x$VS_ENV_CMD" = x; then 25705 VS_VERSION="${VS_VERSION}" 25706 VS_BASE="$with_tools_dir/../../.." 25707 METHOD="--with-tools-dir" 25708 25709 25710 windows_path="$VS_BASE" 25711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25712 unix_path=`$CYGPATH -u "$windows_path"` 25713 VS_BASE="$unix_path" 25714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25715 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25716 VS_BASE="$unix_path" 25717 fi 25718 25719 # In VS 2017, the default installation is in a subdir named after the edition. 25720 # Find the first one present and use that. 25721 if test "x$VS_EDITIONS" != x; then 25722 for edition in $VS_EDITIONS; do 25723 if test -d "$VS_BASE/$edition"; then 25724 VS_BASE="$VS_BASE/$edition" 25725 break 25726 fi 25727 done 25728 fi 25729 25730 if test -d "$VS_BASE"; then 25731 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25732 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25733 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25734 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25735 else 25736 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25737 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25738 fi 25739 25740 for VCVARSFILE in $VCVARSFILES; do 25741 if test -f "$VS_BASE/$VCVARSFILE"; then 25742 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25743 break 25744 fi 25745 done 25746 25747 if test "x$VS_ENV_CMD" = x; then 25748 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25749 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25750 else 25751 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25752 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25753 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25754 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25755 25756 fi 25757 fi 25758 fi 25759 25760 if test "x$VS_ENV_CMD" = x; then 25761 # Having specified an argument which is incorrect will produce an instant failure; 25762 # we should not go on looking 25763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 25764 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 25765 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 25766 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 25767 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 25768 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 25769 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 25770 fi 25771 fi 25772 25773 VS_ENV_CMD="" 25774 25775 if test "x$VS_COMNTOOLS" != x; then 25776 25777 if test "x$VS_ENV_CMD" = x; then 25778 VS_VERSION="${VS_VERSION}" 25779 VS_BASE="$VS_COMNTOOLS/../.." 25780 METHOD="$VS_COMNTOOLS_VAR variable" 25781 25782 25783 windows_path="$VS_BASE" 25784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25785 unix_path=`$CYGPATH -u "$windows_path"` 25786 VS_BASE="$unix_path" 25787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25789 VS_BASE="$unix_path" 25790 fi 25791 25792 # In VS 2017, the default installation is in a subdir named after the edition. 25793 # Find the first one present and use that. 25794 if test "x$VS_EDITIONS" != x; then 25795 for edition in $VS_EDITIONS; do 25796 if test -d "$VS_BASE/$edition"; then 25797 VS_BASE="$VS_BASE/$edition" 25798 break 25799 fi 25800 done 25801 fi 25802 25803 if test -d "$VS_BASE"; then 25804 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25805 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25806 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25807 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25808 else 25809 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25810 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25811 fi 25812 25813 for VCVARSFILE in $VCVARSFILES; do 25814 if test -f "$VS_BASE/$VCVARSFILE"; then 25815 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25816 break 25817 fi 25818 done 25819 25820 if test "x$VS_ENV_CMD" = x; then 25821 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25822 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25823 else 25824 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25825 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25826 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25827 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25828 25829 fi 25830 fi 25831 fi 25832 25833 fi 25834 if test "x$PROGRAMFILES" != x; then 25835 25836 if test "x$VS_ENV_CMD" = x; then 25837 VS_VERSION="${VS_VERSION}" 25838 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 25839 METHOD="well-known name" 25840 25841 25842 windows_path="$VS_BASE" 25843 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25844 unix_path=`$CYGPATH -u "$windows_path"` 25845 VS_BASE="$unix_path" 25846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25847 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25848 VS_BASE="$unix_path" 25849 fi 25850 25851 # In VS 2017, the default installation is in a subdir named after the edition. 25852 # Find the first one present and use that. 25853 if test "x$VS_EDITIONS" != x; then 25854 for edition in $VS_EDITIONS; do 25855 if test -d "$VS_BASE/$edition"; then 25856 VS_BASE="$VS_BASE/$edition" 25857 break 25858 fi 25859 done 25860 fi 25861 25862 if test -d "$VS_BASE"; then 25863 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25864 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25865 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25866 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25867 else 25868 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25869 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25870 fi 25871 25872 for VCVARSFILE in $VCVARSFILES; do 25873 if test -f "$VS_BASE/$VCVARSFILE"; then 25874 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25875 break 25876 fi 25877 done 25878 25879 if test "x$VS_ENV_CMD" = x; then 25880 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25881 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25882 else 25883 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25884 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25885 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25886 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25887 25888 fi 25889 fi 25890 fi 25891 25892 fi 25893 # Work around the insanely named ProgramFiles(x86) env variable 25894 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 25895 if test "x$PROGRAMFILES_X86" != x; then 25896 25897 if test "x$VS_ENV_CMD" = x; then 25898 VS_VERSION="${VS_VERSION}" 25899 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 25900 METHOD="well-known name" 25901 25902 25903 windows_path="$VS_BASE" 25904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25905 unix_path=`$CYGPATH -u "$windows_path"` 25906 VS_BASE="$unix_path" 25907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25908 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25909 VS_BASE="$unix_path" 25910 fi 25911 25912 # In VS 2017, the default installation is in a subdir named after the edition. 25913 # Find the first one present and use that. 25914 if test "x$VS_EDITIONS" != x; then 25915 for edition in $VS_EDITIONS; do 25916 if test -d "$VS_BASE/$edition"; then 25917 VS_BASE="$VS_BASE/$edition" 25918 break 25919 fi 25920 done 25921 fi 25922 25923 if test -d "$VS_BASE"; then 25924 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25925 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25926 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25927 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25928 else 25929 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25930 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25931 fi 25932 25933 for VCVARSFILE in $VCVARSFILES; do 25934 if test -f "$VS_BASE/$VCVARSFILE"; then 25935 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25936 break 25937 fi 25938 done 25939 25940 if test "x$VS_ENV_CMD" = x; then 25941 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 25942 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 25943 else 25944 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 25945 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 25946 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 25947 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 25948 25949 fi 25950 fi 25951 fi 25952 25953 fi 25954 25955 if test "x$VS_ENV_CMD" = x; then 25956 VS_VERSION="${VS_VERSION}" 25957 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 25958 METHOD="well-known name" 25959 25960 25961 windows_path="$VS_BASE" 25962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25963 unix_path=`$CYGPATH -u "$windows_path"` 25964 VS_BASE="$unix_path" 25965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25967 VS_BASE="$unix_path" 25968 fi 25969 25970 # In VS 2017, the default installation is in a subdir named after the edition. 25971 # Find the first one present and use that. 25972 if test "x$VS_EDITIONS" != x; then 25973 for edition in $VS_EDITIONS; do 25974 if test -d "$VS_BASE/$edition"; then 25975 VS_BASE="$VS_BASE/$edition" 25976 break 25977 fi 25978 done 25979 fi 25980 25981 if test -d "$VS_BASE"; then 25982 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 25983 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 25984 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25985 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 25986 else 25987 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 25988 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 25989 fi 25990 25991 for VCVARSFILE in $VCVARSFILES; do 25992 if test -f "$VS_BASE/$VCVARSFILE"; then 25993 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 25994 break 25995 fi 25996 done 25997 25998 if test "x$VS_ENV_CMD" = x; then 25999 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 26000 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 26001 else 26002 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 26003 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 26004 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 26005 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26006 26007 fi 26008 fi 26009 fi 26010 26011 26012 if test "x$VS_ENV_CMD" = x; then 26013 VS_VERSION="${VS_VERSION}" 26014 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 26015 METHOD="well-known name" 26016 26017 26018 windows_path="$VS_BASE" 26019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26020 unix_path=`$CYGPATH -u "$windows_path"` 26021 VS_BASE="$unix_path" 26022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26024 VS_BASE="$unix_path" 26025 fi 26026 26027 # In VS 2017, the default installation is in a subdir named after the edition. 26028 # Find the first one present and use that. 26029 if test "x$VS_EDITIONS" != x; then 26030 for edition in $VS_EDITIONS; do 26031 if test -d "$VS_BASE/$edition"; then 26032 VS_BASE="$VS_BASE/$edition" 26033 break 26034 fi 26035 done 26036 fi 26037 26038 if test -d "$VS_BASE"; then 26039 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26040 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26041 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26042 VCVARSFILES="vc/bin/vcvars32.bat vc/auxiliary/build/vcvars32.bat" 26043 else 26044 VCVARSFILES="vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat \ 26045 vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat" 26046 fi 26047 26048 for VCVARSFILE in $VCVARSFILES; do 26049 if test -f "$VS_BASE/$VCVARSFILE"; then 26050 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26051 break 26052 fi 26053 done 26054 26055 if test "x$VS_ENV_CMD" = x; then 26056 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&5 26057 $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio installation not recognized. Ignoring" >&6;} 26058 else 26059 # PLATFORM_TOOLSET is used during the compilation of the freetype sources 26060 # (see 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 26061 # 'v110' or 'v120' for VS 2010, 2012 or VS2013 26062 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26063 26064 fi 26065 fi 26066 fi 26067 26068 26069 if test "x$SDK_INSTALL_DIR" != x; then 26070 if test "x$ProgramW6432" != x; then 26071 26072 if test "x$VS_ENV_CMD" = x; then 26073 VS_VERSION="${VS_VERSION}" 26074 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 26075 METHOD="well-known name" 26076 26077 windows_path="$WIN_SDK_BASE" 26078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26079 unix_path=`$CYGPATH -u "$windows_path"` 26080 WIN_SDK_BASE="$unix_path" 26081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26082 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26083 WIN_SDK_BASE="$unix_path" 26084 fi 26085 26086 if test -d "$WIN_SDK_BASE"; then 26087 # There have been cases of partial or broken SDK installations. A missing 26088 # lib dir is not going to work. 26089 if test ! -d "$WIN_SDK_BASE/lib"; then 26090 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26091 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26092 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26093 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26094 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26095 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26096 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26097 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26098 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26099 VS_ENV_ARGS="/x86" 26100 else 26101 VS_ENV_ARGS="/x64" 26102 fi 26103 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26104 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26105 # TODO: improve detection for other versions of SDK 26106 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26107 else 26108 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26109 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26110 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26111 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26112 fi 26113 fi 26114 fi 26115 26116 fi 26117 if test "x$PROGRAMW6432" != x; then 26118 26119 if test "x$VS_ENV_CMD" = x; then 26120 VS_VERSION="${VS_VERSION}" 26121 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 26122 METHOD="well-known name" 26123 26124 windows_path="$WIN_SDK_BASE" 26125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26126 unix_path=`$CYGPATH -u "$windows_path"` 26127 WIN_SDK_BASE="$unix_path" 26128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26129 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26130 WIN_SDK_BASE="$unix_path" 26131 fi 26132 26133 if test -d "$WIN_SDK_BASE"; then 26134 # There have been cases of partial or broken SDK installations. A missing 26135 # lib dir is not going to work. 26136 if test ! -d "$WIN_SDK_BASE/lib"; then 26137 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26138 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26139 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26140 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26141 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26142 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26143 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26144 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26145 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26146 VS_ENV_ARGS="/x86" 26147 else 26148 VS_ENV_ARGS="/x64" 26149 fi 26150 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26151 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26152 # TODO: improve detection for other versions of SDK 26153 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26154 else 26155 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26156 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26157 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26158 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26159 fi 26160 fi 26161 fi 26162 26163 fi 26164 if test "x$PROGRAMFILES" != x; then 26165 26166 if test "x$VS_ENV_CMD" = x; then 26167 VS_VERSION="${VS_VERSION}" 26168 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 26169 METHOD="well-known name" 26170 26171 windows_path="$WIN_SDK_BASE" 26172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26173 unix_path=`$CYGPATH -u "$windows_path"` 26174 WIN_SDK_BASE="$unix_path" 26175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26176 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26177 WIN_SDK_BASE="$unix_path" 26178 fi 26179 26180 if test -d "$WIN_SDK_BASE"; then 26181 # There have been cases of partial or broken SDK installations. A missing 26182 # lib dir is not going to work. 26183 if test ! -d "$WIN_SDK_BASE/lib"; then 26184 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26185 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26186 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26187 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26188 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26189 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26190 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26191 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26192 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26193 VS_ENV_ARGS="/x86" 26194 else 26195 VS_ENV_ARGS="/x64" 26196 fi 26197 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26198 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26199 # TODO: improve detection for other versions of SDK 26200 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26201 else 26202 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26203 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26204 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26205 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26206 fi 26207 fi 26208 fi 26209 26210 fi 26211 26212 if test "x$VS_ENV_CMD" = x; then 26213 VS_VERSION="${VS_VERSION}" 26214 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 26215 METHOD="well-known name" 26216 26217 windows_path="$WIN_SDK_BASE" 26218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26219 unix_path=`$CYGPATH -u "$windows_path"` 26220 WIN_SDK_BASE="$unix_path" 26221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26222 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26223 WIN_SDK_BASE="$unix_path" 26224 fi 26225 26226 if test -d "$WIN_SDK_BASE"; then 26227 # There have been cases of partial or broken SDK installations. A missing 26228 # lib dir is not going to work. 26229 if test ! -d "$WIN_SDK_BASE/lib"; then 26230 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26231 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26232 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26233 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26234 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26235 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26236 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26237 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26238 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26239 VS_ENV_ARGS="/x86" 26240 else 26241 VS_ENV_ARGS="/x64" 26242 fi 26243 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26244 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26245 # TODO: improve detection for other versions of SDK 26246 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26247 else 26248 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26249 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26250 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26251 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26252 fi 26253 fi 26254 fi 26255 26256 26257 if test "x$VS_ENV_CMD" = x; then 26258 VS_VERSION="${VS_VERSION}" 26259 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 26260 METHOD="well-known name" 26261 26262 windows_path="$WIN_SDK_BASE" 26263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26264 unix_path=`$CYGPATH -u "$windows_path"` 26265 WIN_SDK_BASE="$unix_path" 26266 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26267 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26268 WIN_SDK_BASE="$unix_path" 26269 fi 26270 26271 if test -d "$WIN_SDK_BASE"; then 26272 # There have been cases of partial or broken SDK installations. A missing 26273 # lib dir is not going to work. 26274 if test ! -d "$WIN_SDK_BASE/lib"; then 26275 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26276 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26277 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26278 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26279 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 26280 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26281 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26282 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 26283 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26284 VS_ENV_ARGS="/x86" 26285 else 26286 VS_ENV_ARGS="/x64" 26287 fi 26288 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26289 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26290 # TODO: improve detection for other versions of SDK 26291 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 26292 else 26293 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26294 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26295 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26296 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26297 fi 26298 fi 26299 fi 26300 26301 fi 26302 26303 if test "x$VS_ENV_CMD" != x; then 26304 TOOLCHAIN_VERSION=$VS_VERSION 26305 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 26306 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 26307 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 26308 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 26309 eval USE_UCRT="\${VS_USE_UCRT_${VS_VERSION}}" 26310 # The rest of the variables are already evaled while probing 26311 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 26312 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 26313 break 26314 fi 26315 done 26316 26317 TOOLCHAIN_DESCRIPTION="$VS_DESCRIPTION" 26318 if test "$TOOLCHAIN_VERSION" -gt 2013; then 26319 UNSUPPORTED_TOOLCHAIN_VERSION=yes 26320 fi 26321 26322 26323 # If we have a devkit, skip all of the below. 26324 if test "x$DEVKIT_VS_VERSION" = x; then 26325 if test "x$VS_ENV_CMD" != x; then 26326 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 26327 26328 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26329 26330 # First separate the path from the arguments. This will split at the first 26331 # space. 26332 complete="$VS_ENV_CMD" 26333 path="${complete%% *}" 26334 tmp="$complete EOL" 26335 arguments="${tmp#* }" 26336 26337 # Input might be given as Windows format, start by converting to 26338 # unix format. 26339 new_path=`$CYGPATH -u "$path"` 26340 26341 # Now try to locate executable using which 26342 new_path=`$WHICH "$new_path" 2> /dev/null` 26343 # bat and cmd files are not always considered executable in cygwin causing which 26344 # to not find them 26345 if test "x$new_path" = x \ 26346 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26347 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26348 new_path=`$CYGPATH -u "$path"` 26349 fi 26350 if test "x$new_path" = x; then 26351 # Oops. Which didn't find the executable. 26352 # The splitting of arguments from the executable at a space might have been incorrect, 26353 # since paths with space are more likely in Windows. Give it another try with the whole 26354 # argument. 26355 path="$complete" 26356 arguments="EOL" 26357 new_path=`$CYGPATH -u "$path"` 26358 new_path=`$WHICH "$new_path" 2> /dev/null` 26359 # bat and cmd files are not always considered executable in cygwin causing which 26360 # to not find them 26361 if test "x$new_path" = x \ 26362 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26363 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26364 new_path=`$CYGPATH -u "$path"` 26365 fi 26366 if test "x$new_path" = x; then 26367 # It's still not found. Now this is an unrecoverable error. 26368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26369 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26370 has_space=`$ECHO "$complete" | $GREP " "` 26371 if test "x$has_space" != x; then 26372 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26373 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26374 fi 26375 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26376 fi 26377 fi 26378 26379 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26380 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26381 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26382 # "foo.exe" is OK but "foo" is an error. 26383 # 26384 # This test is therefore slightly more accurate than "test -f" to check for file presence. 26385 # It is also a way to make sure we got the proper file name for the real test later on. 26386 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26387 if test "x$test_shortpath" = x; then 26388 # Short path failed, file does not exist as specified. 26389 # Try adding .exe or .cmd 26390 if test -f "${new_path}.exe"; then 26391 input_to_shortpath="${new_path}.exe" 26392 elif test -f "${new_path}.cmd"; then 26393 input_to_shortpath="${new_path}.cmd" 26394 else 26395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 26396 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 26397 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26398 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26399 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26400 fi 26401 else 26402 input_to_shortpath="$new_path" 26403 fi 26404 26405 # Call helper function which possibly converts this using DOS-style short mode. 26406 # If so, the updated path is stored in $new_path. 26407 new_path="$input_to_shortpath" 26408 26409 input_path="$input_to_shortpath" 26410 # Check if we need to convert this using DOS-style short mode. If the path 26411 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26412 # take no chances and rewrite it. 26413 # Note: m4 eats our [], so we need to use [ and ] instead. 26414 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26415 if test "x$has_forbidden_chars" != x; then 26416 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26417 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26418 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26419 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26420 # Going to short mode and back again did indeed matter. Since short mode is 26421 # case insensitive, let's make it lowercase to improve readability. 26422 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26423 # Now convert it back to Unix-style (cygpath) 26424 input_path=`$CYGPATH -u "$shortmode_path"` 26425 new_path="$input_path" 26426 fi 26427 fi 26428 26429 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26430 if test "x$test_cygdrive_prefix" = x; then 26431 # As a simple fix, exclude /usr/bin since it's not a real path. 26432 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26433 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26434 # a path prefixed by /cygdrive for fixpath to work. 26435 new_path="$CYGWIN_ROOT_PATH$input_path" 26436 fi 26437 fi 26438 26439 # remove trailing .exe if any 26440 new_path="${new_path/%.exe/}" 26441 26442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26443 26444 # First separate the path from the arguments. This will split at the first 26445 # space. 26446 complete="$VS_ENV_CMD" 26447 path="${complete%% *}" 26448 tmp="$complete EOL" 26449 arguments="${tmp#* }" 26450 26451 # Input might be given as Windows format, start by converting to 26452 # unix format. 26453 new_path="$path" 26454 26455 windows_path="$new_path" 26456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26457 unix_path=`$CYGPATH -u "$windows_path"` 26458 new_path="$unix_path" 26459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26460 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26461 new_path="$unix_path" 26462 fi 26463 26464 26465 # Now try to locate executable using which 26466 new_path=`$WHICH "$new_path" 2> /dev/null` 26467 26468 if test "x$new_path" = x; then 26469 # Oops. Which didn't find the executable. 26470 # The splitting of arguments from the executable at a space might have been incorrect, 26471 # since paths with space are more likely in Windows. Give it another try with the whole 26472 # argument. 26473 path="$complete" 26474 arguments="EOL" 26475 new_path="$path" 26476 26477 windows_path="$new_path" 26478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26479 unix_path=`$CYGPATH -u "$windows_path"` 26480 new_path="$unix_path" 26481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26482 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26483 new_path="$unix_path" 26484 fi 26485 26486 26487 new_path=`$WHICH "$new_path" 2> /dev/null` 26488 # bat and cmd files are not always considered executable in MSYS causing which 26489 # to not find them 26490 if test "x$new_path" = x \ 26491 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26492 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26493 new_path="$path" 26494 26495 windows_path="$new_path" 26496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26497 unix_path=`$CYGPATH -u "$windows_path"` 26498 new_path="$unix_path" 26499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26501 new_path="$unix_path" 26502 fi 26503 26504 fi 26505 26506 if test "x$new_path" = x; then 26507 # It's still not found. Now this is an unrecoverable error. 26508 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26509 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26510 has_space=`$ECHO "$complete" | $GREP " "` 26511 if test "x$has_space" != x; then 26512 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26513 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26514 fi 26515 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26516 fi 26517 fi 26518 26519 # Now new_path has a complete unix path to the binary 26520 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26521 # Keep paths in /bin as-is, but remove trailing .exe if any 26522 new_path="${new_path/%.exe/}" 26523 # Do not save /bin paths to all_fixpath_prefixes! 26524 else 26525 # Not in mixed or Windows style, start by that. 26526 new_path=`cmd //c echo $new_path` 26527 26528 input_path="$new_path" 26529 # Check if we need to convert this using DOS-style short mode. If the path 26530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26531 # take no chances and rewrite it. 26532 # Note: m4 eats our [], so we need to use [ and ] instead. 26533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26534 if test "x$has_forbidden_chars" != x; then 26535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26536 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26537 fi 26538 26539 # Output is in $new_path 26540 26541 windows_path="$new_path" 26542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26543 unix_path=`$CYGPATH -u "$windows_path"` 26544 new_path="$unix_path" 26545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26546 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26547 new_path="$unix_path" 26548 fi 26549 26550 # remove trailing .exe if any 26551 new_path="${new_path/%.exe/}" 26552 26553 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26554 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26555 fi 26556 26557 else 26558 # We're on a posix platform. Hooray! :) 26559 # First separate the path from the arguments. This will split at the first 26560 # space. 26561 complete="$VS_ENV_CMD" 26562 path="${complete%% *}" 26563 tmp="$complete EOL" 26564 arguments="${tmp#* }" 26565 26566 # Cannot rely on the command "which" here since it doesn't always work. 26567 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26568 if test -z "$is_absolute_path"; then 26569 # Path to executable is not absolute. Find it. 26570 IFS_save="$IFS" 26571 IFS=: 26572 for p in $PATH; do 26573 if test -f "$p/$path" && test -x "$p/$path"; then 26574 new_path="$p/$path" 26575 break 26576 fi 26577 done 26578 IFS="$IFS_save" 26579 else 26580 # This is an absolute path, we can use it without further modifications. 26581 new_path="$path" 26582 fi 26583 26584 if test "x$new_path" = x; then 26585 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26586 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26587 has_space=`$ECHO "$complete" | $GREP " "` 26588 if test "x$has_space" != x; then 26589 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26590 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26591 fi 26592 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26593 fi 26594 fi 26595 26596 # Now join together the path and the arguments once again 26597 if test "x$arguments" != xEOL; then 26598 new_complete="$new_path ${arguments% *}" 26599 else 26600 new_complete="$new_path" 26601 fi 26602 26603 if test "x$complete" != "x$new_complete"; then 26604 VS_ENV_CMD="$new_complete" 26605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 26606 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 26607 fi 26608 26609 26610 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 26611 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 26612 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 26613 26614 # We need to create a couple of temporary files. 26615 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 26616 $MKDIR -p $VS_ENV_TMP_DIR 26617 26618 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 26619 # Instead create a shell script which will set the relevant variables when run. 26620 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 26621 26622 unix_path="$WINPATH_VS_ENV_CMD" 26623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26624 windows_path=`$CYGPATH -m "$unix_path"` 26625 WINPATH_VS_ENV_CMD="$windows_path" 26626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26627 windows_path=`cmd //c echo $unix_path` 26628 WINPATH_VS_ENV_CMD="$windows_path" 26629 fi 26630 26631 WINPATH_BASH="$BASH" 26632 26633 unix_path="$WINPATH_BASH" 26634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26635 windows_path=`$CYGPATH -m "$unix_path"` 26636 WINPATH_BASH="$windows_path" 26637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26638 windows_path=`cmd //c echo $unix_path` 26639 WINPATH_BASH="$windows_path" 26640 fi 26641 26642 26643 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 26644 # script (executable by bash) that will setup the important variables. 26645 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 26646 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 26647 # This will end up something like: 26648 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 26649 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 26650 # In some cases, the VS_ENV_CMD will change directory, change back so 26651 # the set-vs-env.sh ends up in the right place. 26652 $ECHO 'cd %~dp0' >> $EXTRACT_VC_ENV_BAT_FILE 26653 # These will end up something like: 26654 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 26655 # The trailing space for everyone except PATH is no typo, but is needed due 26656 # to trailing \ in the Windows paths. These will be stripped later. 26657 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 26658 >> $EXTRACT_VC_ENV_BAT_FILE 26659 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' \ 26660 >> $EXTRACT_VC_ENV_BAT_FILE 26661 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' \ 26662 >> $EXTRACT_VC_ENV_BAT_FILE 26663 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 26664 >> $EXTRACT_VC_ENV_BAT_FILE 26665 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 26666 >> $EXTRACT_VC_ENV_BAT_FILE 26667 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 26668 >> $EXTRACT_VC_ENV_BAT_FILE 26669 26670 # Now execute the newly created bat file. 26671 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 26672 # Change directory so we don't need to mess with Windows paths in redirects. 26673 cd $VS_ENV_TMP_DIR 26674 cmd /c extract-vs-env.bat | $CAT 26675 cd $CURDIR 26676 26677 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 26678 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 26679 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 26680 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 26681 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 26682 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 26683 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 26684 as_fn_error $? "Cannot continue" "$LINENO" 5 26685 fi 26686 26687 # Now set all paths and other env variables. This will allow the rest of 26688 # the configure script to find and run the compiler in the proper way. 26689 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 26690 $as_echo "$as_me: Setting extracted environment variables" >&6;} 26691 . $VS_ENV_TMP_DIR/set-vs-env.sh 26692 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 26693 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 26694 else 26695 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 26696 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 26697 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 26698 fi 26699 fi 26700 26701 # At this point, we should have correct variables in the environment, or we can't continue. 26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 26703 $as_echo_n "checking for Visual Studio variables... " >&6; } 26704 26705 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 26706 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 26707 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 26709 $as_echo "present but broken" >&6; } 26710 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 26711 else 26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26713 $as_echo "ok" >&6; } 26714 # Remove any trailing "\" and " " from the variables. 26715 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 26716 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 26717 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 26718 WindowsSdkDir=`$ECHO "$WindowsSdkDir" | $SED 's/\\\\* *$//'` 26719 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 26720 if test -z "$WINDOWSSDKDIR"; then 26721 WINDOWSSDKDIR="$WindowsSdkDir" 26722 fi 26723 # Remove any paths containing # (typically F#) as that messes up make. This 26724 # is needed if visual studio was installed with F# support. 26725 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 26726 26727 26728 26729 26730 fi 26731 else 26732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26733 $as_echo "not found" >&6; } 26734 26735 if test "x$VS_ENV_CMD" = x; then 26736 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 26737 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 26738 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 26739 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 26740 else 26741 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 26742 $as_echo "$as_me: Running the extraction script failed." >&6;} 26743 fi 26744 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 26745 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 26746 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 26747 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 26748 as_fn_error $? "Cannot continue" "$LINENO" 5 26749 fi 26750 26751 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 26752 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 26753 PATH="$VS_PATH" 26754 # The microsoft toolchain also requires INCLUDE and LIB to be set. 26755 export INCLUDE="$VS_INCLUDE" 26756 export LIB="$VS_LIB" 26757 fi 26758 26759 # Before we locate the compilers, we need to sanitize the Xcode build environment 26760 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 26761 # determine path to Xcode developer directory 26762 # can be empty in which case all the tools will rely on a sane Xcode 4 installation 26763 SET_DEVELOPER_DIR= 26764 26765 if test -n "$XCODE_PATH"; then 26766 DEVELOPER_DIR="$XCODE_PATH"/Contents/Developer 26767 fi 26768 26769 # DEVELOPER_DIR could also be provided directly 26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining if we need to set DEVELOPER_DIR" >&5 26771 $as_echo_n "checking Determining if we need to set DEVELOPER_DIR... " >&6; } 26772 if test -n "$DEVELOPER_DIR"; then 26773 if test ! -d "$DEVELOPER_DIR"; then 26774 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 26775 fi 26776 if test ! -f "$DEVELOPER_DIR"/usr/bin/xcodebuild; then 26777 as_fn_error $? "Xcode Developer path is not valid: $DEVELOPER_DIR, it must point to Contents/Developer inside an Xcode application bundle" "$LINENO" 5 26778 fi 26779 # make it visible to all the tools immediately 26780 export DEVELOPER_DIR 26781 SET_DEVELOPER_DIR="export DEVELOPER_DIR := $DEVELOPER_DIR" 26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEVELOPER_DIR)" >&5 26783 $as_echo "yes ($DEVELOPER_DIR)" >&6; } 26784 else 26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26786 $as_echo "no" >&6; } 26787 fi 26788 26789 26790 # Extract the first word of "xcodebuild", so it can be a program name with args. 26791 set dummy xcodebuild; ac_word=$2 26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26793 $as_echo_n "checking for $ac_word... " >&6; } 26794 if ${ac_cv_path_XCODEBUILD+:} false; then : 26795 $as_echo_n "(cached) " >&6 26796 else 26797 case $XCODEBUILD in 26798 [\\/]* | ?:[\\/]*) 26799 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 26800 ;; 26801 *) 26802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26803 for as_dir in $PATH 26804 do 26805 IFS=$as_save_IFS 26806 test -z "$as_dir" && as_dir=. 26807 for ac_exec_ext in '' $ac_executable_extensions; do 26808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26809 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 26810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26811 break 2 26812 fi 26813 done 26814 done 26815 IFS=$as_save_IFS 26816 26817 ;; 26818 esac 26819 fi 26820 XCODEBUILD=$ac_cv_path_XCODEBUILD 26821 if test -n "$XCODEBUILD"; then 26822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 26823 $as_echo "$XCODEBUILD" >&6; } 26824 else 26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26826 $as_echo "no" >&6; } 26827 fi 26828 26829 26830 if test -z "$XCODEBUILD"; then 26831 as_fn_error $? "The xcodebuild tool was not found, the Xcode command line tools are required to build on Mac OS X" "$LINENO" 5 26832 fi 26833 26834 # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later 26835 XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` 26836 XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) 26837 if test ! "${XC_VERSION_PARTS[0]}" = "4"; then 26838 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 26839 fi 26840 26841 # Some versions of Xcode 5 command line tools install gcc and g++ as symlinks to 26842 # clang and clang++, which will break the build. So handle that here if we need to. 26843 if test -L "/usr/bin/gcc" -o -L "/usr/bin/g++"; then 26844 # use xcrun to find the real gcc and add it's directory to PATH 26845 # then autoconf magic will find it 26846 { $as_echo "$as_me:${as_lineno-$LINENO}: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&5 26847 $as_echo "$as_me: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&6;} 26848 XCODE_BIN_PATH=$(dirname `xcrun -find gcc`) 26849 PATH="$XCODE_BIN_PATH":$PATH 26850 fi 26851 26852 # Determine appropriate SDKPATH, don't use SDKROOT as it interferes with the stub tools 26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining Xcode SDK path" >&5 26854 $as_echo_n "checking Determining Xcode SDK path... " >&6; } 26855 # allow SDKNAME to be set to override the default SDK selection 26856 SDKPATH=`"$XCODEBUILD" -sdk ${SDKNAME:-macosx} -version | grep '^Path: ' | sed 's/Path: //'` 26857 if test -n "$SDKPATH"; then 26858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKPATH" >&5 26859 $as_echo "$SDKPATH" >&6; } 26860 else 26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none, will use system headers and frameworks)" >&5 26862 $as_echo "(none, will use system headers and frameworks)" >&6; } 26863 fi 26864 26865 26866 # Perform a basic sanity test 26867 if test ! -f "$SDKPATH/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 26868 as_fn_error $? "Unable to find required framework headers, provide a valid path to Xcode 4 using --with-xcode-path" "$LINENO" 5 26869 fi 26870 26871 # if SDKPATH is non-empty then we need to add -isysroot and -iframework for gcc and g++ 26872 if test -n "$SDKPATH"; then 26873 # We need -isysroot <path> and -iframework<path>/System/Library/Frameworks 26874 CFLAGS_JDK="${CFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26875 CXXFLAGS_JDK="${CXXFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26876 LDFLAGS_JDK="${LDFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 26877 fi 26878 26879 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 26880 # setting this here means it doesn't have to be peppered throughout the forest 26881 CFLAGS_JDK="$CFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26882 CXXFLAGS_JDK="$CXXFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26883 LDFLAGS_JDK="$LDFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 26884 fi 26885 26886 # For solaris we really need solaris tools, and not the GNU equivalent. 26887 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 26888 # so add that to path before starting to probe. 26889 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 26890 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 26891 PATH="/usr/ccs/bin:$PATH" 26892 fi 26893 26894 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 26895 # override all other locations. 26896 if test "x$TOOLCHAIN_PATH" != x; then 26897 PATH=$TOOLCHAIN_PATH:$PATH 26898 fi 26899 26900 26901 # 26902 # Setup the compilers (CC and CXX) 26903 # 26904 26905 COMPILER_NAME=C 26906 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 26907 26908 if test "x$CC" != x; then 26909 # User has supplied compiler name already, always let that override. 26910 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 26911 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 26912 if test "x`basename $CC`" = "x$CC"; then 26913 # A command without a complete path is provided, search $PATH. 26914 26915 for ac_prog in $CC 26916 do 26917 # Extract the first word of "$ac_prog", so it can be a program name with args. 26918 set dummy $ac_prog; ac_word=$2 26919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26920 $as_echo_n "checking for $ac_word... " >&6; } 26921 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 26922 $as_echo_n "(cached) " >&6 26923 else 26924 case $POTENTIAL_CC in 26925 [\\/]* | ?:[\\/]*) 26926 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 26927 ;; 26928 *) 26929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26930 for as_dir in $PATH 26931 do 26932 IFS=$as_save_IFS 26933 test -z "$as_dir" && as_dir=. 26934 for ac_exec_ext in '' $ac_executable_extensions; do 26935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26936 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 26937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26938 break 2 26939 fi 26940 done 26941 done 26942 IFS=$as_save_IFS 26943 26944 ;; 26945 esac 26946 fi 26947 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 26948 if test -n "$POTENTIAL_CC"; then 26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 26950 $as_echo "$POTENTIAL_CC" >&6; } 26951 else 26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26953 $as_echo "no" >&6; } 26954 fi 26955 26956 26957 test -n "$POTENTIAL_CC" && break 26958 done 26959 26960 if test "x$POTENTIAL_CC" != x; then 26961 CC=$POTENTIAL_CC 26962 else 26963 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 26964 fi 26965 else 26966 # Otherwise it might already be a complete path 26967 if test ! -x "$CC"; then 26968 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 26969 fi 26970 fi 26971 else 26972 # No user supplied value. Locate compiler ourselves. 26973 26974 # If we are cross compiling, assume cross compilation tools follows the 26975 # cross compilation standard where they are prefixed with the autoconf 26976 # standard name for the target. For example the binary 26977 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 26978 # If we are not cross compiling, then the default compiler name will be 26979 # used. 26980 26981 CC= 26982 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 26983 # before checking the rest of the PATH. 26984 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 26985 # step, this should not be necessary. 26986 if test -n "$TOOLCHAIN_PATH"; then 26987 PATH_save="$PATH" 26988 PATH="$TOOLCHAIN_PATH" 26989 for ac_prog in $SEARCH_LIST 26990 do 26991 # Extract the first word of "$ac_prog", so it can be a program name with args. 26992 set dummy $ac_prog; ac_word=$2 26993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26994 $as_echo_n "checking for $ac_word... " >&6; } 26995 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 26996 $as_echo_n "(cached) " >&6 26997 else 26998 case $TOOLCHAIN_PATH_CC in 26999 [\\/]* | ?:[\\/]*) 27000 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 27001 ;; 27002 *) 27003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27004 for as_dir in $PATH 27005 do 27006 IFS=$as_save_IFS 27007 test -z "$as_dir" && as_dir=. 27008 for ac_exec_ext in '' $ac_executable_extensions; do 27009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27010 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 27011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27012 break 2 27013 fi 27014 done 27015 done 27016 IFS=$as_save_IFS 27017 27018 ;; 27019 esac 27020 fi 27021 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 27022 if test -n "$TOOLCHAIN_PATH_CC"; then 27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 27024 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 27025 else 27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27027 $as_echo "no" >&6; } 27028 fi 27029 27030 27031 test -n "$TOOLCHAIN_PATH_CC" && break 27032 done 27033 27034 CC=$TOOLCHAIN_PATH_CC 27035 PATH="$PATH_save" 27036 fi 27037 27038 # AC_PATH_PROGS can't be run multiple times with the same variable, 27039 # so create a new name for this run. 27040 if test "x$CC" = x; then 27041 for ac_prog in $TOOLCHAIN_CC_BINARY 27042 do 27043 # Extract the first word of "$ac_prog", so it can be a program name with args. 27044 set dummy $ac_prog; ac_word=$2 27045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27046 $as_echo_n "checking for $ac_word... " >&6; } 27047 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27048 $as_echo_n "(cached) " >&6 27049 else 27050 case $POTENTIAL_CC in 27051 [\\/]* | ?:[\\/]*) 27052 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27053 ;; 27054 *) 27055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27056 for as_dir in $PATH 27057 do 27058 IFS=$as_save_IFS 27059 test -z "$as_dir" && as_dir=. 27060 for ac_exec_ext in '' $ac_executable_extensions; do 27061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27062 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27064 break 2 27065 fi 27066 done 27067 done 27068 IFS=$as_save_IFS 27069 27070 ;; 27071 esac 27072 fi 27073 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27074 if test -n "$POTENTIAL_CC"; then 27075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27076 $as_echo "$POTENTIAL_CC" >&6; } 27077 else 27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27079 $as_echo "no" >&6; } 27080 fi 27081 27082 27083 test -n "$POTENTIAL_CC" && break 27084 done 27085 27086 CC=$POTENTIAL_CC 27087 fi 27088 27089 if test "x$CC" = x; then 27090 27091 # Print a helpful message on how to acquire the necessary build dependency. 27092 # devkit is the help tag: freetype, cups, pulse, alsa etc 27093 MISSING_DEPENDENCY=devkit 27094 27095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27096 cygwin_help $MISSING_DEPENDENCY 27097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27098 msys_help $MISSING_DEPENDENCY 27099 else 27100 PKGHANDLER_COMMAND= 27101 27102 case $PKGHANDLER in 27103 apt-get) 27104 apt_help $MISSING_DEPENDENCY ;; 27105 yum) 27106 yum_help $MISSING_DEPENDENCY ;; 27107 port) 27108 port_help $MISSING_DEPENDENCY ;; 27109 pkgutil) 27110 pkgutil_help $MISSING_DEPENDENCY ;; 27111 pkgadd) 27112 pkgadd_help $MISSING_DEPENDENCY ;; 27113 esac 27114 27115 if test "x$PKGHANDLER_COMMAND" != x; then 27116 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27117 fi 27118 fi 27119 27120 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27121 fi 27122 fi 27123 27124 # Now we have a compiler binary in CC. Make sure it's okay. 27125 27126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27127 27128 # First separate the path from the arguments. This will split at the first 27129 # space. 27130 complete="$CC" 27131 path="${complete%% *}" 27132 tmp="$complete EOL" 27133 arguments="${tmp#* }" 27134 27135 # Input might be given as Windows format, start by converting to 27136 # unix format. 27137 new_path=`$CYGPATH -u "$path"` 27138 27139 # Now try to locate executable using which 27140 new_path=`$WHICH "$new_path" 2> /dev/null` 27141 # bat and cmd files are not always considered executable in cygwin causing which 27142 # to not find them 27143 if test "x$new_path" = x \ 27144 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27145 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27146 new_path=`$CYGPATH -u "$path"` 27147 fi 27148 if test "x$new_path" = x; then 27149 # Oops. Which didn't find the executable. 27150 # The splitting of arguments from the executable at a space might have been incorrect, 27151 # since paths with space are more likely in Windows. Give it another try with the whole 27152 # argument. 27153 path="$complete" 27154 arguments="EOL" 27155 new_path=`$CYGPATH -u "$path"` 27156 new_path=`$WHICH "$new_path" 2> /dev/null` 27157 # bat and cmd files are not always considered executable in cygwin causing which 27158 # to not find them 27159 if test "x$new_path" = x \ 27160 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27161 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27162 new_path=`$CYGPATH -u "$path"` 27163 fi 27164 if test "x$new_path" = x; then 27165 # It's still not found. Now this is an unrecoverable error. 27166 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27167 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27168 has_space=`$ECHO "$complete" | $GREP " "` 27169 if test "x$has_space" != x; then 27170 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27171 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27172 fi 27173 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27174 fi 27175 fi 27176 27177 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27178 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27179 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27180 # "foo.exe" is OK but "foo" is an error. 27181 # 27182 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27183 # It is also a way to make sure we got the proper file name for the real test later on. 27184 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27185 if test "x$test_shortpath" = x; then 27186 # Short path failed, file does not exist as specified. 27187 # Try adding .exe or .cmd 27188 if test -f "${new_path}.exe"; then 27189 input_to_shortpath="${new_path}.exe" 27190 elif test -f "${new_path}.cmd"; then 27191 input_to_shortpath="${new_path}.cmd" 27192 else 27193 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 27194 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 27195 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27196 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27197 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27198 fi 27199 else 27200 input_to_shortpath="$new_path" 27201 fi 27202 27203 # Call helper function which possibly converts this using DOS-style short mode. 27204 # If so, the updated path is stored in $new_path. 27205 new_path="$input_to_shortpath" 27206 27207 input_path="$input_to_shortpath" 27208 # Check if we need to convert this using DOS-style short mode. If the path 27209 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27210 # take no chances and rewrite it. 27211 # Note: m4 eats our [], so we need to use [ and ] instead. 27212 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27213 if test "x$has_forbidden_chars" != x; then 27214 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27215 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27216 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27217 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27218 # Going to short mode and back again did indeed matter. Since short mode is 27219 # case insensitive, let's make it lowercase to improve readability. 27220 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27221 # Now convert it back to Unix-style (cygpath) 27222 input_path=`$CYGPATH -u "$shortmode_path"` 27223 new_path="$input_path" 27224 fi 27225 fi 27226 27227 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27228 if test "x$test_cygdrive_prefix" = x; then 27229 # As a simple fix, exclude /usr/bin since it's not a real path. 27230 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27231 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27232 # a path prefixed by /cygdrive for fixpath to work. 27233 new_path="$CYGWIN_ROOT_PATH$input_path" 27234 fi 27235 fi 27236 27237 # remove trailing .exe if any 27238 new_path="${new_path/%.exe/}" 27239 27240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27241 27242 # First separate the path from the arguments. This will split at the first 27243 # space. 27244 complete="$CC" 27245 path="${complete%% *}" 27246 tmp="$complete EOL" 27247 arguments="${tmp#* }" 27248 27249 # Input might be given as Windows format, start by converting to 27250 # unix format. 27251 new_path="$path" 27252 27253 windows_path="$new_path" 27254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27255 unix_path=`$CYGPATH -u "$windows_path"` 27256 new_path="$unix_path" 27257 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27258 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27259 new_path="$unix_path" 27260 fi 27261 27262 27263 # Now try to locate executable using which 27264 new_path=`$WHICH "$new_path" 2> /dev/null` 27265 27266 if test "x$new_path" = x; then 27267 # Oops. Which didn't find the executable. 27268 # The splitting of arguments from the executable at a space might have been incorrect, 27269 # since paths with space are more likely in Windows. Give it another try with the whole 27270 # argument. 27271 path="$complete" 27272 arguments="EOL" 27273 new_path="$path" 27274 27275 windows_path="$new_path" 27276 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27277 unix_path=`$CYGPATH -u "$windows_path"` 27278 new_path="$unix_path" 27279 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27280 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27281 new_path="$unix_path" 27282 fi 27283 27284 27285 new_path=`$WHICH "$new_path" 2> /dev/null` 27286 # bat and cmd files are not always considered executable in MSYS causing which 27287 # to not find them 27288 if test "x$new_path" = x \ 27289 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27290 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27291 new_path="$path" 27292 27293 windows_path="$new_path" 27294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27295 unix_path=`$CYGPATH -u "$windows_path"` 27296 new_path="$unix_path" 27297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27298 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27299 new_path="$unix_path" 27300 fi 27301 27302 fi 27303 27304 if test "x$new_path" = x; then 27305 # It's still not found. Now this is an unrecoverable error. 27306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27307 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27308 has_space=`$ECHO "$complete" | $GREP " "` 27309 if test "x$has_space" != x; then 27310 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27311 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27312 fi 27313 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27314 fi 27315 fi 27316 27317 # Now new_path has a complete unix path to the binary 27318 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27319 # Keep paths in /bin as-is, but remove trailing .exe if any 27320 new_path="${new_path/%.exe/}" 27321 # Do not save /bin paths to all_fixpath_prefixes! 27322 else 27323 # Not in mixed or Windows style, start by that. 27324 new_path=`cmd //c echo $new_path` 27325 27326 input_path="$new_path" 27327 # Check if we need to convert this using DOS-style short mode. If the path 27328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27329 # take no chances and rewrite it. 27330 # Note: m4 eats our [], so we need to use [ and ] instead. 27331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27332 if test "x$has_forbidden_chars" != x; then 27333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27334 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27335 fi 27336 27337 # Output is in $new_path 27338 27339 windows_path="$new_path" 27340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27341 unix_path=`$CYGPATH -u "$windows_path"` 27342 new_path="$unix_path" 27343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27344 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27345 new_path="$unix_path" 27346 fi 27347 27348 # remove trailing .exe if any 27349 new_path="${new_path/%.exe/}" 27350 27351 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27352 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27353 fi 27354 27355 else 27356 # We're on a posix platform. Hooray! :) 27357 # First separate the path from the arguments. This will split at the first 27358 # space. 27359 complete="$CC" 27360 path="${complete%% *}" 27361 tmp="$complete EOL" 27362 arguments="${tmp#* }" 27363 27364 # Cannot rely on the command "which" here since it doesn't always work. 27365 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27366 if test -z "$is_absolute_path"; then 27367 # Path to executable is not absolute. Find it. 27368 IFS_save="$IFS" 27369 IFS=: 27370 for p in $PATH; do 27371 if test -f "$p/$path" && test -x "$p/$path"; then 27372 new_path="$p/$path" 27373 break 27374 fi 27375 done 27376 IFS="$IFS_save" 27377 else 27378 # This is an absolute path, we can use it without further modifications. 27379 new_path="$path" 27380 fi 27381 27382 if test "x$new_path" = x; then 27383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27384 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27385 has_space=`$ECHO "$complete" | $GREP " "` 27386 if test "x$has_space" != x; then 27387 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27388 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27389 fi 27390 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27391 fi 27392 fi 27393 27394 # Now join together the path and the arguments once again 27395 if test "x$arguments" != xEOL; then 27396 new_complete="$new_path ${arguments% *}" 27397 else 27398 new_complete="$new_path" 27399 fi 27400 27401 if test "x$complete" != "x$new_complete"; then 27402 CC="$new_complete" 27403 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 27404 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 27405 fi 27406 27407 TEST_COMPILER="$CC" 27408 27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 27410 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 27411 SYMLINK_ORIGINAL="$TEST_COMPILER" 27412 27413 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27414 # Follow a chain of symbolic links. Use readlink 27415 # where it exists, else fall back to horribly 27416 # complicated shell code. 27417 if test "x$READLINK_TESTED" != yes; then 27418 # On MacOSX there is a readlink tool with a different 27419 # purpose than the GNU readlink tool. Check the found readlink. 27420 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27421 if test "x$ISGNU" = x; then 27422 # A readlink that we do not know how to use. 27423 # Are there other non-GNU readlinks out there? 27424 READLINK_TESTED=yes 27425 READLINK= 27426 fi 27427 fi 27428 27429 if test "x$READLINK" != x; then 27430 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 27431 else 27432 # Save the current directory for restoring afterwards 27433 STARTDIR=$PWD 27434 COUNTER=0 27435 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 27436 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 27437 cd $sym_link_dir 27438 # Use -P flag to resolve symlinks in directories. 27439 cd `$THEPWDCMD -P` 27440 sym_link_dir=`$THEPWDCMD -P` 27441 # Resolve file symlinks 27442 while test $COUNTER -lt 20; do 27443 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27444 if test "x$ISLINK" == x; then 27445 # This is not a symbolic link! We are done! 27446 break 27447 fi 27448 # Again resolve directory symlinks since the target of the just found 27449 # link could be in a different directory 27450 cd `$DIRNAME $ISLINK` 27451 sym_link_dir=`$THEPWDCMD -P` 27452 sym_link_file=`$BASENAME $ISLINK` 27453 let COUNTER=COUNTER+1 27454 done 27455 cd $STARTDIR 27456 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 27457 fi 27458 fi 27459 27460 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 27461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 27462 $as_echo "no symlink" >&6; } 27463 else 27464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 27465 $as_echo "$SYMLINK_ORIGINAL" >&6; } 27466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 27467 $as_echo_n "checking if CC is disguised ccache... " >&6; } 27468 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 27469 if test "x$COMPILER_BASENAME" = "xccache"; then 27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 27471 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 27472 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 27473 # We want to control ccache invocation ourselves, so ignore this cc and try 27474 # searching again. 27475 27476 # Remove the path to the fake ccache cc from the PATH 27477 RETRY_COMPILER_SAVED_PATH="$PATH" 27478 COMPILER_DIRNAME=`$DIRNAME $CC` 27479 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 27480 # Try again looking for our compiler 27481 if test -n "$ac_tool_prefix"; then 27482 for ac_prog in $TOOLCHAIN_CC_BINARY 27483 do 27484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27487 $as_echo_n "checking for $ac_word... " >&6; } 27488 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 27489 $as_echo_n "(cached) " >&6 27490 else 27491 if test -n "$PROPER_COMPILER_CC"; then 27492 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 27493 else 27494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27495 for as_dir in $PATH 27496 do 27497 IFS=$as_save_IFS 27498 test -z "$as_dir" && as_dir=. 27499 for ac_exec_ext in '' $ac_executable_extensions; do 27500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27501 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 27502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27503 break 2 27504 fi 27505 done 27506 done 27507 IFS=$as_save_IFS 27508 27509 fi 27510 fi 27511 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 27512 if test -n "$PROPER_COMPILER_CC"; then 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27514 $as_echo "$PROPER_COMPILER_CC" >&6; } 27515 else 27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27517 $as_echo "no" >&6; } 27518 fi 27519 27520 27521 test -n "$PROPER_COMPILER_CC" && break 27522 done 27523 fi 27524 if test -z "$PROPER_COMPILER_CC"; then 27525 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 27526 for ac_prog in $TOOLCHAIN_CC_BINARY 27527 do 27528 # Extract the first word of "$ac_prog", so it can be a program name with args. 27529 set dummy $ac_prog; ac_word=$2 27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27531 $as_echo_n "checking for $ac_word... " >&6; } 27532 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 27533 $as_echo_n "(cached) " >&6 27534 else 27535 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 27536 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 27537 else 27538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27539 for as_dir in $PATH 27540 do 27541 IFS=$as_save_IFS 27542 test -z "$as_dir" && as_dir=. 27543 for ac_exec_ext in '' $ac_executable_extensions; do 27544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27545 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 27546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27547 break 2 27548 fi 27549 done 27550 done 27551 IFS=$as_save_IFS 27552 27553 fi 27554 fi 27555 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 27556 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 27557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 27558 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 27559 else 27560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27561 $as_echo "no" >&6; } 27562 fi 27563 27564 27565 test -n "$ac_ct_PROPER_COMPILER_CC" && break 27566 done 27567 27568 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 27569 PROPER_COMPILER_CC="" 27570 else 27571 case $cross_compiling:$ac_tool_warned in 27572 yes:) 27573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27575 ac_tool_warned=yes ;; 27576 esac 27577 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 27578 fi 27579 fi 27580 27581 27582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27583 27584 # First separate the path from the arguments. This will split at the first 27585 # space. 27586 complete="$PROPER_COMPILER_CC" 27587 path="${complete%% *}" 27588 tmp="$complete EOL" 27589 arguments="${tmp#* }" 27590 27591 # Input might be given as Windows format, start by converting to 27592 # unix format. 27593 new_path=`$CYGPATH -u "$path"` 27594 27595 # Now try to locate executable using which 27596 new_path=`$WHICH "$new_path" 2> /dev/null` 27597 # bat and cmd files are not always considered executable in cygwin causing which 27598 # to not find them 27599 if test "x$new_path" = x \ 27600 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27601 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27602 new_path=`$CYGPATH -u "$path"` 27603 fi 27604 if test "x$new_path" = x; then 27605 # Oops. Which didn't find the executable. 27606 # The splitting of arguments from the executable at a space might have been incorrect, 27607 # since paths with space are more likely in Windows. Give it another try with the whole 27608 # argument. 27609 path="$complete" 27610 arguments="EOL" 27611 new_path=`$CYGPATH -u "$path"` 27612 new_path=`$WHICH "$new_path" 2> /dev/null` 27613 # bat and cmd files are not always considered executable in cygwin causing which 27614 # to not find them 27615 if test "x$new_path" = x \ 27616 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27617 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27618 new_path=`$CYGPATH -u "$path"` 27619 fi 27620 if test "x$new_path" = x; then 27621 # It's still not found. Now this is an unrecoverable error. 27622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27623 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27624 has_space=`$ECHO "$complete" | $GREP " "` 27625 if test "x$has_space" != x; then 27626 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27627 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27628 fi 27629 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27630 fi 27631 fi 27632 27633 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27634 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27635 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27636 # "foo.exe" is OK but "foo" is an error. 27637 # 27638 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27639 # It is also a way to make sure we got the proper file name for the real test later on. 27640 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27641 if test "x$test_shortpath" = x; then 27642 # Short path failed, file does not exist as specified. 27643 # Try adding .exe or .cmd 27644 if test -f "${new_path}.exe"; then 27645 input_to_shortpath="${new_path}.exe" 27646 elif test -f "${new_path}.cmd"; then 27647 input_to_shortpath="${new_path}.cmd" 27648 else 27649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 27650 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 27651 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27652 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27653 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27654 fi 27655 else 27656 input_to_shortpath="$new_path" 27657 fi 27658 27659 # Call helper function which possibly converts this using DOS-style short mode. 27660 # If so, the updated path is stored in $new_path. 27661 new_path="$input_to_shortpath" 27662 27663 input_path="$input_to_shortpath" 27664 # Check if we need to convert this using DOS-style short mode. If the path 27665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27666 # take no chances and rewrite it. 27667 # Note: m4 eats our [], so we need to use [ and ] instead. 27668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27669 if test "x$has_forbidden_chars" != x; then 27670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27671 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27672 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27673 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27674 # Going to short mode and back again did indeed matter. Since short mode is 27675 # case insensitive, let's make it lowercase to improve readability. 27676 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27677 # Now convert it back to Unix-style (cygpath) 27678 input_path=`$CYGPATH -u "$shortmode_path"` 27679 new_path="$input_path" 27680 fi 27681 fi 27682 27683 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27684 if test "x$test_cygdrive_prefix" = x; then 27685 # As a simple fix, exclude /usr/bin since it's not a real path. 27686 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27687 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27688 # a path prefixed by /cygdrive for fixpath to work. 27689 new_path="$CYGWIN_ROOT_PATH$input_path" 27690 fi 27691 fi 27692 27693 # remove trailing .exe if any 27694 new_path="${new_path/%.exe/}" 27695 27696 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27697 27698 # First separate the path from the arguments. This will split at the first 27699 # space. 27700 complete="$PROPER_COMPILER_CC" 27701 path="${complete%% *}" 27702 tmp="$complete EOL" 27703 arguments="${tmp#* }" 27704 27705 # Input might be given as Windows format, start by converting to 27706 # unix format. 27707 new_path="$path" 27708 27709 windows_path="$new_path" 27710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27711 unix_path=`$CYGPATH -u "$windows_path"` 27712 new_path="$unix_path" 27713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27714 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27715 new_path="$unix_path" 27716 fi 27717 27718 27719 # Now try to locate executable using which 27720 new_path=`$WHICH "$new_path" 2> /dev/null` 27721 27722 if test "x$new_path" = x; then 27723 # Oops. Which didn't find the executable. 27724 # The splitting of arguments from the executable at a space might have been incorrect, 27725 # since paths with space are more likely in Windows. Give it another try with the whole 27726 # argument. 27727 path="$complete" 27728 arguments="EOL" 27729 new_path="$path" 27730 27731 windows_path="$new_path" 27732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27733 unix_path=`$CYGPATH -u "$windows_path"` 27734 new_path="$unix_path" 27735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27737 new_path="$unix_path" 27738 fi 27739 27740 27741 new_path=`$WHICH "$new_path" 2> /dev/null` 27742 # bat and cmd files are not always considered executable in MSYS causing which 27743 # to not find them 27744 if test "x$new_path" = x \ 27745 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27746 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27747 new_path="$path" 27748 27749 windows_path="$new_path" 27750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27751 unix_path=`$CYGPATH -u "$windows_path"` 27752 new_path="$unix_path" 27753 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27754 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27755 new_path="$unix_path" 27756 fi 27757 27758 fi 27759 27760 if test "x$new_path" = x; then 27761 # It's still not found. Now this is an unrecoverable error. 27762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27763 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27764 has_space=`$ECHO "$complete" | $GREP " "` 27765 if test "x$has_space" != x; then 27766 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27767 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27768 fi 27769 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27770 fi 27771 fi 27772 27773 # Now new_path has a complete unix path to the binary 27774 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27775 # Keep paths in /bin as-is, but remove trailing .exe if any 27776 new_path="${new_path/%.exe/}" 27777 # Do not save /bin paths to all_fixpath_prefixes! 27778 else 27779 # Not in mixed or Windows style, start by that. 27780 new_path=`cmd //c echo $new_path` 27781 27782 input_path="$new_path" 27783 # Check if we need to convert this using DOS-style short mode. If the path 27784 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27785 # take no chances and rewrite it. 27786 # Note: m4 eats our [], so we need to use [ and ] instead. 27787 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27788 if test "x$has_forbidden_chars" != x; then 27789 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27790 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27791 fi 27792 27793 # Output is in $new_path 27794 27795 windows_path="$new_path" 27796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27797 unix_path=`$CYGPATH -u "$windows_path"` 27798 new_path="$unix_path" 27799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27801 new_path="$unix_path" 27802 fi 27803 27804 # remove trailing .exe if any 27805 new_path="${new_path/%.exe/}" 27806 27807 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27808 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27809 fi 27810 27811 else 27812 # We're on a posix platform. Hooray! :) 27813 # First separate the path from the arguments. This will split at the first 27814 # space. 27815 complete="$PROPER_COMPILER_CC" 27816 path="${complete%% *}" 27817 tmp="$complete EOL" 27818 arguments="${tmp#* }" 27819 27820 # Cannot rely on the command "which" here since it doesn't always work. 27821 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27822 if test -z "$is_absolute_path"; then 27823 # Path to executable is not absolute. Find it. 27824 IFS_save="$IFS" 27825 IFS=: 27826 for p in $PATH; do 27827 if test -f "$p/$path" && test -x "$p/$path"; then 27828 new_path="$p/$path" 27829 break 27830 fi 27831 done 27832 IFS="$IFS_save" 27833 else 27834 # This is an absolute path, we can use it without further modifications. 27835 new_path="$path" 27836 fi 27837 27838 if test "x$new_path" = x; then 27839 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 27840 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 27841 has_space=`$ECHO "$complete" | $GREP " "` 27842 if test "x$has_space" != x; then 27843 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27844 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27845 fi 27846 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27847 fi 27848 fi 27849 27850 # Now join together the path and the arguments once again 27851 if test "x$arguments" != xEOL; then 27852 new_complete="$new_path ${arguments% *}" 27853 else 27854 new_complete="$new_path" 27855 fi 27856 27857 if test "x$complete" != "x$new_complete"; then 27858 PROPER_COMPILER_CC="$new_complete" 27859 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 27860 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 27861 fi 27862 27863 PATH="$RETRY_COMPILER_SAVED_PATH" 27864 27865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 27866 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 27867 27868 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27869 # Follow a chain of symbolic links. Use readlink 27870 # where it exists, else fall back to horribly 27871 # complicated shell code. 27872 if test "x$READLINK_TESTED" != yes; then 27873 # On MacOSX there is a readlink tool with a different 27874 # purpose than the GNU readlink tool. Check the found readlink. 27875 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27876 if test "x$ISGNU" = x; then 27877 # A readlink that we do not know how to use. 27878 # Are there other non-GNU readlinks out there? 27879 READLINK_TESTED=yes 27880 READLINK= 27881 fi 27882 fi 27883 27884 if test "x$READLINK" != x; then 27885 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 27886 else 27887 # Save the current directory for restoring afterwards 27888 STARTDIR=$PWD 27889 COUNTER=0 27890 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 27891 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 27892 cd $sym_link_dir 27893 # Use -P flag to resolve symlinks in directories. 27894 cd `$THEPWDCMD -P` 27895 sym_link_dir=`$THEPWDCMD -P` 27896 # Resolve file symlinks 27897 while test $COUNTER -lt 20; do 27898 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27899 if test "x$ISLINK" == x; then 27900 # This is not a symbolic link! We are done! 27901 break 27902 fi 27903 # Again resolve directory symlinks since the target of the just found 27904 # link could be in a different directory 27905 cd `$DIRNAME $ISLINK` 27906 sym_link_dir=`$THEPWDCMD -P` 27907 sym_link_file=`$BASENAME $ISLINK` 27908 let COUNTER=COUNTER+1 27909 done 27910 cd $STARTDIR 27911 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 27912 fi 27913 fi 27914 27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27916 $as_echo "$PROPER_COMPILER_CC" >&6; } 27917 CC="$PROPER_COMPILER_CC" 27918 else 27919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 27920 $as_echo "no, keeping CC" >&6; } 27921 fi 27922 fi 27923 27924 27925 COMPILER=$CC 27926 COMPILER_NAME=$COMPILER_NAME 27927 27928 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 27929 # cc -V output typically looks like 27930 # cc: Sun C 5.12 Linux_i386 2011/11/16 27931 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 27932 # Check that this is likely to be the Solaris Studio cc. 27933 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 27934 if test $? -ne 0; then 27935 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27936 { $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 27937 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27938 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27939 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27940 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27941 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27942 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27943 fi 27944 # Remove usage instructions (if present), and 27945 # collapse compiler output into a single line 27946 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27947 $SED -e 's/ *[Uu]sage:.*//'` 27948 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27949 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 27950 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 27951 # xlc -qversion output typically looks like 27952 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 27953 # Version: 11.01.0000.0015 27954 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 27955 # Check that this is likely to be the IBM XL C compiler. 27956 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 27957 if test $? -ne 0; then 27958 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27959 { $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 27960 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27961 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27962 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27963 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27964 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27965 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27966 fi 27967 # Collapse compiler output into a single line 27968 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27969 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27970 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 27971 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 27972 # There is no specific version flag, but all output starts with a version string. 27973 # First line typically looks something like: 27974 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 27975 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 27976 # Check that this is likely to be Microsoft CL.EXE. 27977 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 27978 if test $? -ne 0; then 27979 { $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 27980 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27981 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27982 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27983 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27984 fi 27985 # Collapse compiler output into a single line 27986 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27987 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27988 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 27989 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 27990 # gcc --version output typically looks like 27991 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 27992 # Copyright (C) 2013 Free Software Foundation, Inc. 27993 # This is free software; see the source for copying conditions. There is NO 27994 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27995 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27996 # Check that this is likely to be GCC. 27997 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 27998 if test $? -ne 0; then 27999 { $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 28000 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28001 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28002 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28003 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28004 fi 28005 # Remove Copyright and legalese from version string, and 28006 # collapse into a single line 28007 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28008 $SED -e 's/ *Copyright .*//'` 28009 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28010 $SED -e 's/^.* \([1-9][0-9]*\.[0-9.]*\) .*$/\1/'` 28011 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28012 # clang --version output typically looks like 28013 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28014 # clang version 3.3 (tags/RELEASE_33/final) 28015 # or 28016 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28017 # Target: x86_64-pc-linux-gnu 28018 # Thread model: posix 28019 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28020 # Check that this is likely to be clang 28021 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28022 if test $? -ne 0; then 28023 { $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 28024 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28025 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28026 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28027 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28028 fi 28029 # Collapse compiler output into a single line 28030 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28031 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28032 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28033 28034 else 28035 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28036 fi 28037 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28038 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28039 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28040 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28041 28042 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28043 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28044 28045 28046 # Now that we have resolved CC ourself, let autoconf have its go at it 28047 ac_ext=c 28048 ac_cpp='$CPP $CPPFLAGS' 28049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28051 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28052 if test -n "$ac_tool_prefix"; then 28053 for ac_prog in $CC 28054 do 28055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28058 $as_echo_n "checking for $ac_word... " >&6; } 28059 if ${ac_cv_prog_CC+:} false; then : 28060 $as_echo_n "(cached) " >&6 28061 else 28062 if test -n "$CC"; then 28063 ac_cv_prog_CC="$CC" # Let the user override the test. 28064 else 28065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28066 for as_dir in $PATH 28067 do 28068 IFS=$as_save_IFS 28069 test -z "$as_dir" && as_dir=. 28070 for ac_exec_ext in '' $ac_executable_extensions; do 28071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28072 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28074 break 2 28075 fi 28076 done 28077 done 28078 IFS=$as_save_IFS 28079 28080 fi 28081 fi 28082 CC=$ac_cv_prog_CC 28083 if test -n "$CC"; then 28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28085 $as_echo "$CC" >&6; } 28086 else 28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28088 $as_echo "no" >&6; } 28089 fi 28090 28091 28092 test -n "$CC" && break 28093 done 28094 fi 28095 if test -z "$CC"; then 28096 ac_ct_CC=$CC 28097 for ac_prog in $CC 28098 do 28099 # Extract the first word of "$ac_prog", so it can be a program name with args. 28100 set dummy $ac_prog; ac_word=$2 28101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28102 $as_echo_n "checking for $ac_word... " >&6; } 28103 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28104 $as_echo_n "(cached) " >&6 28105 else 28106 if test -n "$ac_ct_CC"; then 28107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28108 else 28109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28110 for as_dir in $PATH 28111 do 28112 IFS=$as_save_IFS 28113 test -z "$as_dir" && as_dir=. 28114 for ac_exec_ext in '' $ac_executable_extensions; do 28115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28116 ac_cv_prog_ac_ct_CC="$ac_prog" 28117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28118 break 2 28119 fi 28120 done 28121 done 28122 IFS=$as_save_IFS 28123 28124 fi 28125 fi 28126 ac_ct_CC=$ac_cv_prog_ac_ct_CC 28127 if test -n "$ac_ct_CC"; then 28128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28129 $as_echo "$ac_ct_CC" >&6; } 28130 else 28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28132 $as_echo "no" >&6; } 28133 fi 28134 28135 28136 test -n "$ac_ct_CC" && break 28137 done 28138 28139 if test "x$ac_ct_CC" = x; then 28140 CC="" 28141 else 28142 case $cross_compiling:$ac_tool_warned in 28143 yes:) 28144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28146 ac_tool_warned=yes ;; 28147 esac 28148 CC=$ac_ct_CC 28149 fi 28150 fi 28151 28152 28153 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28155 as_fn_error $? "no acceptable C compiler found in \$PATH 28156 See \`config.log' for more details" "$LINENO" 5; } 28157 28158 # Provide some information about the compiler. 28159 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28160 set X $ac_compile 28161 ac_compiler=$2 28162 for ac_option in --version -v -V -qversion; do 28163 { { ac_try="$ac_compiler $ac_option >&5" 28164 case "(($ac_try" in 28165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28166 *) ac_try_echo=$ac_try;; 28167 esac 28168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28169 $as_echo "$ac_try_echo"; } >&5 28170 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28171 ac_status=$? 28172 if test -s conftest.err; then 28173 sed '10a\ 28174 ... rest of stderr output deleted ... 28175 10q' conftest.err >conftest.er1 28176 cat conftest.er1 >&5 28177 fi 28178 rm -f conftest.er1 conftest.err 28179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28180 test $ac_status = 0; } 28181 done 28182 28183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28184 /* end confdefs.h. */ 28185 28186 int 28187 main () 28188 { 28189 28190 ; 28191 return 0; 28192 } 28193 _ACEOF 28194 ac_clean_files_save=$ac_clean_files 28195 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 28196 # Try to create an executable without -o first, disregard a.out. 28197 # It will help us diagnose broken compilers, and finding out an intuition 28198 # of exeext. 28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 28200 $as_echo_n "checking whether the C compiler works... " >&6; } 28201 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 28202 28203 # The possible output files: 28204 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 28205 28206 ac_rmfiles= 28207 for ac_file in $ac_files 28208 do 28209 case $ac_file in 28210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28211 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 28212 esac 28213 done 28214 rm -f $ac_rmfiles 28215 28216 if { { ac_try="$ac_link_default" 28217 case "(($ac_try" in 28218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28219 *) ac_try_echo=$ac_try;; 28220 esac 28221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28222 $as_echo "$ac_try_echo"; } >&5 28223 (eval "$ac_link_default") 2>&5 28224 ac_status=$? 28225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28226 test $ac_status = 0; }; then : 28227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 28228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 28229 # in a Makefile. We should not override ac_cv_exeext if it was cached, 28230 # so that the user can short-circuit this test for compilers unknown to 28231 # Autoconf. 28232 for ac_file in $ac_files '' 28233 do 28234 test -f "$ac_file" || continue 28235 case $ac_file in 28236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 28237 ;; 28238 [ab].out ) 28239 # We found the default executable, but exeext='' is most 28240 # certainly right. 28241 break;; 28242 *.* ) 28243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 28244 then :; else 28245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28246 fi 28247 # We set ac_cv_exeext here because the later test for it is not 28248 # safe: cross compilers may not add the suffix if given an `-o' 28249 # argument, so we may need to know it at that point already. 28250 # Even if this section looks crufty: it has the advantage of 28251 # actually working. 28252 break;; 28253 * ) 28254 break;; 28255 esac 28256 done 28257 test "$ac_cv_exeext" = no && ac_cv_exeext= 28258 28259 else 28260 ac_file='' 28261 fi 28262 if test -z "$ac_file"; then : 28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28264 $as_echo "no" >&6; } 28265 $as_echo "$as_me: failed program was:" >&5 28266 sed 's/^/| /' conftest.$ac_ext >&5 28267 28268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28270 as_fn_error 77 "C compiler cannot create executables 28271 See \`config.log' for more details" "$LINENO" 5; } 28272 else 28273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28274 $as_echo "yes" >&6; } 28275 fi 28276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 28277 $as_echo_n "checking for C compiler default output file name... " >&6; } 28278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 28279 $as_echo "$ac_file" >&6; } 28280 ac_exeext=$ac_cv_exeext 28281 28282 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 28283 ac_clean_files=$ac_clean_files_save 28284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 28285 $as_echo_n "checking for suffix of executables... " >&6; } 28286 if { { ac_try="$ac_link" 28287 case "(($ac_try" in 28288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28289 *) ac_try_echo=$ac_try;; 28290 esac 28291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28292 $as_echo "$ac_try_echo"; } >&5 28293 (eval "$ac_link") 2>&5 28294 ac_status=$? 28295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28296 test $ac_status = 0; }; then : 28297 # If both `conftest.exe' and `conftest' are `present' (well, observable) 28298 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 28299 # work properly (i.e., refer to `conftest.exe'), while it won't with 28300 # `rm'. 28301 for ac_file in conftest.exe conftest conftest.*; do 28302 test -f "$ac_file" || continue 28303 case $ac_file in 28304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28306 break;; 28307 * ) break;; 28308 esac 28309 done 28310 else 28311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28313 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 28314 See \`config.log' for more details" "$LINENO" 5; } 28315 fi 28316 rm -f conftest conftest$ac_cv_exeext 28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 28318 $as_echo "$ac_cv_exeext" >&6; } 28319 28320 rm -f conftest.$ac_ext 28321 EXEEXT=$ac_cv_exeext 28322 ac_exeext=$EXEEXT 28323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28324 /* end confdefs.h. */ 28325 #include <stdio.h> 28326 int 28327 main () 28328 { 28329 FILE *f = fopen ("conftest.out", "w"); 28330 return ferror (f) || fclose (f) != 0; 28331 28332 ; 28333 return 0; 28334 } 28335 _ACEOF 28336 ac_clean_files="$ac_clean_files conftest.out" 28337 # Check that the compiler produces executables we can run. If not, either 28338 # the compiler is broken, or we cross compile. 28339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 28340 $as_echo_n "checking whether we are cross compiling... " >&6; } 28341 if test "$cross_compiling" != yes; then 28342 { { ac_try="$ac_link" 28343 case "(($ac_try" in 28344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28345 *) ac_try_echo=$ac_try;; 28346 esac 28347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28348 $as_echo "$ac_try_echo"; } >&5 28349 (eval "$ac_link") 2>&5 28350 ac_status=$? 28351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28352 test $ac_status = 0; } 28353 if { ac_try='./conftest$ac_cv_exeext' 28354 { { case "(($ac_try" in 28355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28356 *) ac_try_echo=$ac_try;; 28357 esac 28358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28359 $as_echo "$ac_try_echo"; } >&5 28360 (eval "$ac_try") 2>&5 28361 ac_status=$? 28362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28363 test $ac_status = 0; }; }; then 28364 cross_compiling=no 28365 else 28366 if test "$cross_compiling" = maybe; then 28367 cross_compiling=yes 28368 else 28369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28371 as_fn_error $? "cannot run C compiled programs. 28372 If you meant to cross compile, use \`--host'. 28373 See \`config.log' for more details" "$LINENO" 5; } 28374 fi 28375 fi 28376 fi 28377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 28378 $as_echo "$cross_compiling" >&6; } 28379 28380 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 28381 ac_clean_files=$ac_clean_files_save 28382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 28383 $as_echo_n "checking for suffix of object files... " >&6; } 28384 if ${ac_cv_objext+:} false; then : 28385 $as_echo_n "(cached) " >&6 28386 else 28387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28388 /* end confdefs.h. */ 28389 28390 int 28391 main () 28392 { 28393 28394 ; 28395 return 0; 28396 } 28397 _ACEOF 28398 rm -f conftest.o conftest.obj 28399 if { { ac_try="$ac_compile" 28400 case "(($ac_try" in 28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28402 *) ac_try_echo=$ac_try;; 28403 esac 28404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28405 $as_echo "$ac_try_echo"; } >&5 28406 (eval "$ac_compile") 2>&5 28407 ac_status=$? 28408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28409 test $ac_status = 0; }; then : 28410 for ac_file in conftest.o conftest.obj conftest.*; do 28411 test -f "$ac_file" || continue; 28412 case $ac_file in 28413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 28414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 28415 break;; 28416 esac 28417 done 28418 else 28419 $as_echo "$as_me: failed program was:" >&5 28420 sed 's/^/| /' conftest.$ac_ext >&5 28421 28422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28424 as_fn_error $? "cannot compute suffix of object files: cannot compile 28425 See \`config.log' for more details" "$LINENO" 5; } 28426 fi 28427 rm -f conftest.$ac_cv_objext conftest.$ac_ext 28428 fi 28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 28430 $as_echo "$ac_cv_objext" >&6; } 28431 OBJEXT=$ac_cv_objext 28432 ac_objext=$OBJEXT 28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 28434 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 28435 if ${ac_cv_c_compiler_gnu+:} false; then : 28436 $as_echo_n "(cached) " >&6 28437 else 28438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28439 /* end confdefs.h. */ 28440 28441 int 28442 main () 28443 { 28444 #ifndef __GNUC__ 28445 choke me 28446 #endif 28447 28448 ; 28449 return 0; 28450 } 28451 _ACEOF 28452 if ac_fn_c_try_compile "$LINENO"; then : 28453 ac_compiler_gnu=yes 28454 else 28455 ac_compiler_gnu=no 28456 fi 28457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28458 ac_cv_c_compiler_gnu=$ac_compiler_gnu 28459 28460 fi 28461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 28462 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 28463 if test $ac_compiler_gnu = yes; then 28464 GCC=yes 28465 else 28466 GCC= 28467 fi 28468 ac_test_CFLAGS=${CFLAGS+set} 28469 ac_save_CFLAGS=$CFLAGS 28470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 28471 $as_echo_n "checking whether $CC accepts -g... " >&6; } 28472 if ${ac_cv_prog_cc_g+:} false; then : 28473 $as_echo_n "(cached) " >&6 28474 else 28475 ac_save_c_werror_flag=$ac_c_werror_flag 28476 ac_c_werror_flag=yes 28477 ac_cv_prog_cc_g=no 28478 CFLAGS="-g" 28479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28480 /* end confdefs.h. */ 28481 28482 int 28483 main () 28484 { 28485 28486 ; 28487 return 0; 28488 } 28489 _ACEOF 28490 if ac_fn_c_try_compile "$LINENO"; then : 28491 ac_cv_prog_cc_g=yes 28492 else 28493 CFLAGS="" 28494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28495 /* end confdefs.h. */ 28496 28497 int 28498 main () 28499 { 28500 28501 ; 28502 return 0; 28503 } 28504 _ACEOF 28505 if ac_fn_c_try_compile "$LINENO"; then : 28506 28507 else 28508 ac_c_werror_flag=$ac_save_c_werror_flag 28509 CFLAGS="-g" 28510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28511 /* end confdefs.h. */ 28512 28513 int 28514 main () 28515 { 28516 28517 ; 28518 return 0; 28519 } 28520 _ACEOF 28521 if ac_fn_c_try_compile "$LINENO"; then : 28522 ac_cv_prog_cc_g=yes 28523 fi 28524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28525 fi 28526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28527 fi 28528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28529 ac_c_werror_flag=$ac_save_c_werror_flag 28530 fi 28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 28532 $as_echo "$ac_cv_prog_cc_g" >&6; } 28533 if test "$ac_test_CFLAGS" = set; then 28534 CFLAGS=$ac_save_CFLAGS 28535 elif test $ac_cv_prog_cc_g = yes; then 28536 if test "$GCC" = yes; then 28537 CFLAGS="-g -O2" 28538 else 28539 CFLAGS="-g" 28540 fi 28541 else 28542 if test "$GCC" = yes; then 28543 CFLAGS="-O2" 28544 else 28545 CFLAGS= 28546 fi 28547 fi 28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 28549 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 28550 if ${ac_cv_prog_cc_c89+:} false; then : 28551 $as_echo_n "(cached) " >&6 28552 else 28553 ac_cv_prog_cc_c89=no 28554 ac_save_CC=$CC 28555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28556 /* end confdefs.h. */ 28557 #include <stdarg.h> 28558 #include <stdio.h> 28559 struct stat; 28560 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 28561 struct buf { int x; }; 28562 FILE * (*rcsopen) (struct buf *, struct stat *, int); 28563 static char *e (p, i) 28564 char **p; 28565 int i; 28566 { 28567 return p[i]; 28568 } 28569 static char *f (char * (*g) (char **, int), char **p, ...) 28570 { 28571 char *s; 28572 va_list v; 28573 va_start (v,p); 28574 s = g (p, va_arg (v,int)); 28575 va_end (v); 28576 return s; 28577 } 28578 28579 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 28580 function prototypes and stuff, but not '\xHH' hex character constants. 28581 These don't provoke an error unfortunately, instead are silently treated 28582 as 'x'. The following induces an error, until -std is added to get 28583 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 28584 array size at least. It's necessary to write '\x00'==0 to get something 28585 that's true only with -std. */ 28586 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 28587 28588 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 28589 inside strings and character constants. */ 28590 #define FOO(x) 'x' 28591 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 28592 28593 int test (int i, double x); 28594 struct s1 {int (*f) (int a);}; 28595 struct s2 {int (*f) (double a);}; 28596 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 28597 int argc; 28598 char **argv; 28599 int 28600 main () 28601 { 28602 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 28603 ; 28604 return 0; 28605 } 28606 _ACEOF 28607 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 28608 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 28609 do 28610 CC="$ac_save_CC $ac_arg" 28611 if ac_fn_c_try_compile "$LINENO"; then : 28612 ac_cv_prog_cc_c89=$ac_arg 28613 fi 28614 rm -f core conftest.err conftest.$ac_objext 28615 test "x$ac_cv_prog_cc_c89" != "xno" && break 28616 done 28617 rm -f conftest.$ac_ext 28618 CC=$ac_save_CC 28619 28620 fi 28621 # AC_CACHE_VAL 28622 case "x$ac_cv_prog_cc_c89" in 28623 x) 28624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 28625 $as_echo "none needed" >&6; } ;; 28626 xno) 28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 28628 $as_echo "unsupported" >&6; } ;; 28629 *) 28630 CC="$CC $ac_cv_prog_cc_c89" 28631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 28632 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 28633 esac 28634 if test "x$ac_cv_prog_cc_c89" != xno; then : 28635 28636 fi 28637 28638 ac_ext=cpp 28639 ac_cpp='$CXXCPP $CPPFLAGS' 28640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28643 28644 28645 28646 COMPILER_NAME=C++ 28647 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 28648 28649 if test "x$CXX" != x; then 28650 # User has supplied compiler name already, always let that override. 28651 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 28652 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 28653 if test "x`basename $CXX`" = "x$CXX"; then 28654 # A command without a complete path is provided, search $PATH. 28655 28656 for ac_prog in $CXX 28657 do 28658 # Extract the first word of "$ac_prog", so it can be a program name with args. 28659 set dummy $ac_prog; ac_word=$2 28660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28661 $as_echo_n "checking for $ac_word... " >&6; } 28662 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 28663 $as_echo_n "(cached) " >&6 28664 else 28665 case $POTENTIAL_CXX in 28666 [\\/]* | ?:[\\/]*) 28667 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 28668 ;; 28669 *) 28670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28671 for as_dir in $PATH 28672 do 28673 IFS=$as_save_IFS 28674 test -z "$as_dir" && as_dir=. 28675 for ac_exec_ext in '' $ac_executable_extensions; do 28676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28677 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 28678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28679 break 2 28680 fi 28681 done 28682 done 28683 IFS=$as_save_IFS 28684 28685 ;; 28686 esac 28687 fi 28688 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 28689 if test -n "$POTENTIAL_CXX"; then 28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 28691 $as_echo "$POTENTIAL_CXX" >&6; } 28692 else 28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28694 $as_echo "no" >&6; } 28695 fi 28696 28697 28698 test -n "$POTENTIAL_CXX" && break 28699 done 28700 28701 if test "x$POTENTIAL_CXX" != x; then 28702 CXX=$POTENTIAL_CXX 28703 else 28704 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 28705 fi 28706 else 28707 # Otherwise it might already be a complete path 28708 if test ! -x "$CXX"; then 28709 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 28710 fi 28711 fi 28712 else 28713 # No user supplied value. Locate compiler ourselves. 28714 28715 # If we are cross compiling, assume cross compilation tools follows the 28716 # cross compilation standard where they are prefixed with the autoconf 28717 # standard name for the target. For example the binary 28718 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 28719 # If we are not cross compiling, then the default compiler name will be 28720 # used. 28721 28722 CXX= 28723 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 28724 # before checking the rest of the PATH. 28725 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 28726 # step, this should not be necessary. 28727 if test -n "$TOOLCHAIN_PATH"; then 28728 PATH_save="$PATH" 28729 PATH="$TOOLCHAIN_PATH" 28730 for ac_prog in $SEARCH_LIST 28731 do 28732 # Extract the first word of "$ac_prog", so it can be a program name with args. 28733 set dummy $ac_prog; ac_word=$2 28734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28735 $as_echo_n "checking for $ac_word... " >&6; } 28736 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 28737 $as_echo_n "(cached) " >&6 28738 else 28739 case $TOOLCHAIN_PATH_CXX in 28740 [\\/]* | ?:[\\/]*) 28741 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 28742 ;; 28743 *) 28744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28745 for as_dir in $PATH 28746 do 28747 IFS=$as_save_IFS 28748 test -z "$as_dir" && as_dir=. 28749 for ac_exec_ext in '' $ac_executable_extensions; do 28750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28751 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 28752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28753 break 2 28754 fi 28755 done 28756 done 28757 IFS=$as_save_IFS 28758 28759 ;; 28760 esac 28761 fi 28762 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 28763 if test -n "$TOOLCHAIN_PATH_CXX"; then 28764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 28765 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 28766 else 28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28768 $as_echo "no" >&6; } 28769 fi 28770 28771 28772 test -n "$TOOLCHAIN_PATH_CXX" && break 28773 done 28774 28775 CXX=$TOOLCHAIN_PATH_CXX 28776 PATH="$PATH_save" 28777 fi 28778 28779 # AC_PATH_PROGS can't be run multiple times with the same variable, 28780 # so create a new name for this run. 28781 if test "x$CXX" = x; then 28782 for ac_prog in $TOOLCHAIN_CXX_BINARY 28783 do 28784 # Extract the first word of "$ac_prog", so it can be a program name with args. 28785 set dummy $ac_prog; ac_word=$2 28786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28787 $as_echo_n "checking for $ac_word... " >&6; } 28788 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 28789 $as_echo_n "(cached) " >&6 28790 else 28791 case $POTENTIAL_CXX in 28792 [\\/]* | ?:[\\/]*) 28793 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 28794 ;; 28795 *) 28796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28797 for as_dir in $PATH 28798 do 28799 IFS=$as_save_IFS 28800 test -z "$as_dir" && as_dir=. 28801 for ac_exec_ext in '' $ac_executable_extensions; do 28802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28803 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 28804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28805 break 2 28806 fi 28807 done 28808 done 28809 IFS=$as_save_IFS 28810 28811 ;; 28812 esac 28813 fi 28814 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 28815 if test -n "$POTENTIAL_CXX"; then 28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 28817 $as_echo "$POTENTIAL_CXX" >&6; } 28818 else 28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28820 $as_echo "no" >&6; } 28821 fi 28822 28823 28824 test -n "$POTENTIAL_CXX" && break 28825 done 28826 28827 CXX=$POTENTIAL_CXX 28828 fi 28829 28830 if test "x$CXX" = x; then 28831 28832 # Print a helpful message on how to acquire the necessary build dependency. 28833 # devkit is the help tag: freetype, cups, pulse, alsa etc 28834 MISSING_DEPENDENCY=devkit 28835 28836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28837 cygwin_help $MISSING_DEPENDENCY 28838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28839 msys_help $MISSING_DEPENDENCY 28840 else 28841 PKGHANDLER_COMMAND= 28842 28843 case $PKGHANDLER in 28844 apt-get) 28845 apt_help $MISSING_DEPENDENCY ;; 28846 yum) 28847 yum_help $MISSING_DEPENDENCY ;; 28848 port) 28849 port_help $MISSING_DEPENDENCY ;; 28850 pkgutil) 28851 pkgutil_help $MISSING_DEPENDENCY ;; 28852 pkgadd) 28853 pkgadd_help $MISSING_DEPENDENCY ;; 28854 esac 28855 28856 if test "x$PKGHANDLER_COMMAND" != x; then 28857 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28858 fi 28859 fi 28860 28861 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28862 fi 28863 fi 28864 28865 # Now we have a compiler binary in CXX. Make sure it's okay. 28866 28867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28868 28869 # First separate the path from the arguments. This will split at the first 28870 # space. 28871 complete="$CXX" 28872 path="${complete%% *}" 28873 tmp="$complete EOL" 28874 arguments="${tmp#* }" 28875 28876 # Input might be given as Windows format, start by converting to 28877 # unix format. 28878 new_path=`$CYGPATH -u "$path"` 28879 28880 # Now try to locate executable using which 28881 new_path=`$WHICH "$new_path" 2> /dev/null` 28882 # bat and cmd files are not always considered executable in cygwin causing which 28883 # to not find them 28884 if test "x$new_path" = x \ 28885 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28886 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28887 new_path=`$CYGPATH -u "$path"` 28888 fi 28889 if test "x$new_path" = x; then 28890 # Oops. Which didn't find the executable. 28891 # The splitting of arguments from the executable at a space might have been incorrect, 28892 # since paths with space are more likely in Windows. Give it another try with the whole 28893 # argument. 28894 path="$complete" 28895 arguments="EOL" 28896 new_path=`$CYGPATH -u "$path"` 28897 new_path=`$WHICH "$new_path" 2> /dev/null` 28898 # bat and cmd files are not always considered executable in cygwin causing which 28899 # to not find them 28900 if test "x$new_path" = x \ 28901 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28902 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28903 new_path=`$CYGPATH -u "$path"` 28904 fi 28905 if test "x$new_path" = x; then 28906 # It's still not found. Now this is an unrecoverable error. 28907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28908 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28909 has_space=`$ECHO "$complete" | $GREP " "` 28910 if test "x$has_space" != x; then 28911 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28912 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28913 fi 28914 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28915 fi 28916 fi 28917 28918 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28919 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28920 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28921 # "foo.exe" is OK but "foo" is an error. 28922 # 28923 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28924 # It is also a way to make sure we got the proper file name for the real test later on. 28925 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28926 if test "x$test_shortpath" = x; then 28927 # Short path failed, file does not exist as specified. 28928 # Try adding .exe or .cmd 28929 if test -f "${new_path}.exe"; then 28930 input_to_shortpath="${new_path}.exe" 28931 elif test -f "${new_path}.cmd"; then 28932 input_to_shortpath="${new_path}.cmd" 28933 else 28934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 28935 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 28936 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28937 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28938 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28939 fi 28940 else 28941 input_to_shortpath="$new_path" 28942 fi 28943 28944 # Call helper function which possibly converts this using DOS-style short mode. 28945 # If so, the updated path is stored in $new_path. 28946 new_path="$input_to_shortpath" 28947 28948 input_path="$input_to_shortpath" 28949 # Check if we need to convert this using DOS-style short mode. If the path 28950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28951 # take no chances and rewrite it. 28952 # Note: m4 eats our [], so we need to use [ and ] instead. 28953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28954 if test "x$has_forbidden_chars" != x; then 28955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28956 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28957 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28958 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28959 # Going to short mode and back again did indeed matter. Since short mode is 28960 # case insensitive, let's make it lowercase to improve readability. 28961 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28962 # Now convert it back to Unix-style (cygpath) 28963 input_path=`$CYGPATH -u "$shortmode_path"` 28964 new_path="$input_path" 28965 fi 28966 fi 28967 28968 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28969 if test "x$test_cygdrive_prefix" = x; then 28970 # As a simple fix, exclude /usr/bin since it's not a real path. 28971 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28972 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28973 # a path prefixed by /cygdrive for fixpath to work. 28974 new_path="$CYGWIN_ROOT_PATH$input_path" 28975 fi 28976 fi 28977 28978 # remove trailing .exe if any 28979 new_path="${new_path/%.exe/}" 28980 28981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28982 28983 # First separate the path from the arguments. This will split at the first 28984 # space. 28985 complete="$CXX" 28986 path="${complete%% *}" 28987 tmp="$complete EOL" 28988 arguments="${tmp#* }" 28989 28990 # Input might be given as Windows format, start by converting to 28991 # unix format. 28992 new_path="$path" 28993 28994 windows_path="$new_path" 28995 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28996 unix_path=`$CYGPATH -u "$windows_path"` 28997 new_path="$unix_path" 28998 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28999 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29000 new_path="$unix_path" 29001 fi 29002 29003 29004 # Now try to locate executable using which 29005 new_path=`$WHICH "$new_path" 2> /dev/null` 29006 29007 if test "x$new_path" = x; then 29008 # Oops. Which didn't find the executable. 29009 # The splitting of arguments from the executable at a space might have been incorrect, 29010 # since paths with space are more likely in Windows. Give it another try with the whole 29011 # argument. 29012 path="$complete" 29013 arguments="EOL" 29014 new_path="$path" 29015 29016 windows_path="$new_path" 29017 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29018 unix_path=`$CYGPATH -u "$windows_path"` 29019 new_path="$unix_path" 29020 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29021 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29022 new_path="$unix_path" 29023 fi 29024 29025 29026 new_path=`$WHICH "$new_path" 2> /dev/null` 29027 # bat and cmd files are not always considered executable in MSYS causing which 29028 # to not find them 29029 if test "x$new_path" = x \ 29030 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29031 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29032 new_path="$path" 29033 29034 windows_path="$new_path" 29035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29036 unix_path=`$CYGPATH -u "$windows_path"` 29037 new_path="$unix_path" 29038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29040 new_path="$unix_path" 29041 fi 29042 29043 fi 29044 29045 if test "x$new_path" = x; then 29046 # It's still not found. Now this is an unrecoverable error. 29047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29048 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29049 has_space=`$ECHO "$complete" | $GREP " "` 29050 if test "x$has_space" != x; then 29051 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29052 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29053 fi 29054 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29055 fi 29056 fi 29057 29058 # Now new_path has a complete unix path to the binary 29059 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29060 # Keep paths in /bin as-is, but remove trailing .exe if any 29061 new_path="${new_path/%.exe/}" 29062 # Do not save /bin paths to all_fixpath_prefixes! 29063 else 29064 # Not in mixed or Windows style, start by that. 29065 new_path=`cmd //c echo $new_path` 29066 29067 input_path="$new_path" 29068 # Check if we need to convert this using DOS-style short mode. If the path 29069 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29070 # take no chances and rewrite it. 29071 # Note: m4 eats our [], so we need to use [ and ] instead. 29072 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29073 if test "x$has_forbidden_chars" != x; then 29074 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29075 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29076 fi 29077 29078 # Output is in $new_path 29079 29080 windows_path="$new_path" 29081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29082 unix_path=`$CYGPATH -u "$windows_path"` 29083 new_path="$unix_path" 29084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29086 new_path="$unix_path" 29087 fi 29088 29089 # remove trailing .exe if any 29090 new_path="${new_path/%.exe/}" 29091 29092 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29093 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29094 fi 29095 29096 else 29097 # We're on a posix platform. Hooray! :) 29098 # First separate the path from the arguments. This will split at the first 29099 # space. 29100 complete="$CXX" 29101 path="${complete%% *}" 29102 tmp="$complete EOL" 29103 arguments="${tmp#* }" 29104 29105 # Cannot rely on the command "which" here since it doesn't always work. 29106 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29107 if test -z "$is_absolute_path"; then 29108 # Path to executable is not absolute. Find it. 29109 IFS_save="$IFS" 29110 IFS=: 29111 for p in $PATH; do 29112 if test -f "$p/$path" && test -x "$p/$path"; then 29113 new_path="$p/$path" 29114 break 29115 fi 29116 done 29117 IFS="$IFS_save" 29118 else 29119 # This is an absolute path, we can use it without further modifications. 29120 new_path="$path" 29121 fi 29122 29123 if test "x$new_path" = x; then 29124 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29125 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29126 has_space=`$ECHO "$complete" | $GREP " "` 29127 if test "x$has_space" != x; then 29128 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29129 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29130 fi 29131 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29132 fi 29133 fi 29134 29135 # Now join together the path and the arguments once again 29136 if test "x$arguments" != xEOL; then 29137 new_complete="$new_path ${arguments% *}" 29138 else 29139 new_complete="$new_path" 29140 fi 29141 29142 if test "x$complete" != "x$new_complete"; then 29143 CXX="$new_complete" 29144 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29145 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29146 fi 29147 29148 TEST_COMPILER="$CXX" 29149 29150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29151 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29152 SYMLINK_ORIGINAL="$TEST_COMPILER" 29153 29154 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29155 # Follow a chain of symbolic links. Use readlink 29156 # where it exists, else fall back to horribly 29157 # complicated shell code. 29158 if test "x$READLINK_TESTED" != yes; then 29159 # On MacOSX there is a readlink tool with a different 29160 # purpose than the GNU readlink tool. Check the found readlink. 29161 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29162 if test "x$ISGNU" = x; then 29163 # A readlink that we do not know how to use. 29164 # Are there other non-GNU readlinks out there? 29165 READLINK_TESTED=yes 29166 READLINK= 29167 fi 29168 fi 29169 29170 if test "x$READLINK" != x; then 29171 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 29172 else 29173 # Save the current directory for restoring afterwards 29174 STARTDIR=$PWD 29175 COUNTER=0 29176 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 29177 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 29178 cd $sym_link_dir 29179 # Use -P flag to resolve symlinks in directories. 29180 cd `$THEPWDCMD -P` 29181 sym_link_dir=`$THEPWDCMD -P` 29182 # Resolve file symlinks 29183 while test $COUNTER -lt 20; do 29184 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29185 if test "x$ISLINK" == x; then 29186 # This is not a symbolic link! We are done! 29187 break 29188 fi 29189 # Again resolve directory symlinks since the target of the just found 29190 # link could be in a different directory 29191 cd `$DIRNAME $ISLINK` 29192 sym_link_dir=`$THEPWDCMD -P` 29193 sym_link_file=`$BASENAME $ISLINK` 29194 let COUNTER=COUNTER+1 29195 done 29196 cd $STARTDIR 29197 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 29198 fi 29199 fi 29200 29201 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 29202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 29203 $as_echo "no symlink" >&6; } 29204 else 29205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 29206 $as_echo "$SYMLINK_ORIGINAL" >&6; } 29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 29208 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 29209 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 29210 if test "x$COMPILER_BASENAME" = "xccache"; then 29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29212 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29213 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29214 # We want to control ccache invocation ourselves, so ignore this cc and try 29215 # searching again. 29216 29217 # Remove the path to the fake ccache cc from the PATH 29218 RETRY_COMPILER_SAVED_PATH="$PATH" 29219 COMPILER_DIRNAME=`$DIRNAME $CXX` 29220 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29221 # Try again looking for our compiler 29222 if test -n "$ac_tool_prefix"; then 29223 for ac_prog in $TOOLCHAIN_CXX_BINARY 29224 do 29225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29228 $as_echo_n "checking for $ac_word... " >&6; } 29229 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 29230 $as_echo_n "(cached) " >&6 29231 else 29232 if test -n "$PROPER_COMPILER_CXX"; then 29233 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 29234 else 29235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29236 for as_dir in $PATH 29237 do 29238 IFS=$as_save_IFS 29239 test -z "$as_dir" && as_dir=. 29240 for ac_exec_ext in '' $ac_executable_extensions; do 29241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29242 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 29243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29244 break 2 29245 fi 29246 done 29247 done 29248 IFS=$as_save_IFS 29249 29250 fi 29251 fi 29252 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 29253 if test -n "$PROPER_COMPILER_CXX"; then 29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29255 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29256 else 29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29258 $as_echo "no" >&6; } 29259 fi 29260 29261 29262 test -n "$PROPER_COMPILER_CXX" && break 29263 done 29264 fi 29265 if test -z "$PROPER_COMPILER_CXX"; then 29266 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 29267 for ac_prog in $TOOLCHAIN_CXX_BINARY 29268 do 29269 # Extract the first word of "$ac_prog", so it can be a program name with args. 29270 set dummy $ac_prog; ac_word=$2 29271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29272 $as_echo_n "checking for $ac_word... " >&6; } 29273 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 29274 $as_echo_n "(cached) " >&6 29275 else 29276 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29277 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 29278 else 29279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29280 for as_dir in $PATH 29281 do 29282 IFS=$as_save_IFS 29283 test -z "$as_dir" && as_dir=. 29284 for ac_exec_ext in '' $ac_executable_extensions; do 29285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29286 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 29287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29288 break 2 29289 fi 29290 done 29291 done 29292 IFS=$as_save_IFS 29293 29294 fi 29295 fi 29296 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 29297 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 29299 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 29300 else 29301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29302 $as_echo "no" >&6; } 29303 fi 29304 29305 29306 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 29307 done 29308 29309 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 29310 PROPER_COMPILER_CXX="" 29311 else 29312 case $cross_compiling:$ac_tool_warned in 29313 yes:) 29314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29316 ac_tool_warned=yes ;; 29317 esac 29318 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 29319 fi 29320 fi 29321 29322 29323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29324 29325 # First separate the path from the arguments. This will split at the first 29326 # space. 29327 complete="$PROPER_COMPILER_CXX" 29328 path="${complete%% *}" 29329 tmp="$complete EOL" 29330 arguments="${tmp#* }" 29331 29332 # Input might be given as Windows format, start by converting to 29333 # unix format. 29334 new_path=`$CYGPATH -u "$path"` 29335 29336 # Now try to locate executable using which 29337 new_path=`$WHICH "$new_path" 2> /dev/null` 29338 # bat and cmd files are not always considered executable in cygwin causing which 29339 # to not find them 29340 if test "x$new_path" = x \ 29341 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29342 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29343 new_path=`$CYGPATH -u "$path"` 29344 fi 29345 if test "x$new_path" = x; then 29346 # Oops. Which didn't find the executable. 29347 # The splitting of arguments from the executable at a space might have been incorrect, 29348 # since paths with space are more likely in Windows. Give it another try with the whole 29349 # argument. 29350 path="$complete" 29351 arguments="EOL" 29352 new_path=`$CYGPATH -u "$path"` 29353 new_path=`$WHICH "$new_path" 2> /dev/null` 29354 # bat and cmd files are not always considered executable in cygwin causing which 29355 # to not find them 29356 if test "x$new_path" = x \ 29357 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29358 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29359 new_path=`$CYGPATH -u "$path"` 29360 fi 29361 if test "x$new_path" = x; then 29362 # It's still not found. Now this is an unrecoverable error. 29363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29364 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29365 has_space=`$ECHO "$complete" | $GREP " "` 29366 if test "x$has_space" != x; then 29367 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29368 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29369 fi 29370 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29371 fi 29372 fi 29373 29374 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29375 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29376 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29377 # "foo.exe" is OK but "foo" is an error. 29378 # 29379 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29380 # It is also a way to make sure we got the proper file name for the real test later on. 29381 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29382 if test "x$test_shortpath" = x; then 29383 # Short path failed, file does not exist as specified. 29384 # Try adding .exe or .cmd 29385 if test -f "${new_path}.exe"; then 29386 input_to_shortpath="${new_path}.exe" 29387 elif test -f "${new_path}.cmd"; then 29388 input_to_shortpath="${new_path}.cmd" 29389 else 29390 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 29391 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 29392 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29393 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29394 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29395 fi 29396 else 29397 input_to_shortpath="$new_path" 29398 fi 29399 29400 # Call helper function which possibly converts this using DOS-style short mode. 29401 # If so, the updated path is stored in $new_path. 29402 new_path="$input_to_shortpath" 29403 29404 input_path="$input_to_shortpath" 29405 # Check if we need to convert this using DOS-style short mode. If the path 29406 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29407 # take no chances and rewrite it. 29408 # Note: m4 eats our [], so we need to use [ and ] instead. 29409 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29410 if test "x$has_forbidden_chars" != x; then 29411 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29412 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29413 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29414 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29415 # Going to short mode and back again did indeed matter. Since short mode is 29416 # case insensitive, let's make it lowercase to improve readability. 29417 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29418 # Now convert it back to Unix-style (cygpath) 29419 input_path=`$CYGPATH -u "$shortmode_path"` 29420 new_path="$input_path" 29421 fi 29422 fi 29423 29424 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29425 if test "x$test_cygdrive_prefix" = x; then 29426 # As a simple fix, exclude /usr/bin since it's not a real path. 29427 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29428 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29429 # a path prefixed by /cygdrive for fixpath to work. 29430 new_path="$CYGWIN_ROOT_PATH$input_path" 29431 fi 29432 fi 29433 29434 # remove trailing .exe if any 29435 new_path="${new_path/%.exe/}" 29436 29437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29438 29439 # First separate the path from the arguments. This will split at the first 29440 # space. 29441 complete="$PROPER_COMPILER_CXX" 29442 path="${complete%% *}" 29443 tmp="$complete EOL" 29444 arguments="${tmp#* }" 29445 29446 # Input might be given as Windows format, start by converting to 29447 # unix format. 29448 new_path="$path" 29449 29450 windows_path="$new_path" 29451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29452 unix_path=`$CYGPATH -u "$windows_path"` 29453 new_path="$unix_path" 29454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29455 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29456 new_path="$unix_path" 29457 fi 29458 29459 29460 # Now try to locate executable using which 29461 new_path=`$WHICH "$new_path" 2> /dev/null` 29462 29463 if test "x$new_path" = x; then 29464 # Oops. Which didn't find the executable. 29465 # The splitting of arguments from the executable at a space might have been incorrect, 29466 # since paths with space are more likely in Windows. Give it another try with the whole 29467 # argument. 29468 path="$complete" 29469 arguments="EOL" 29470 new_path="$path" 29471 29472 windows_path="$new_path" 29473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29474 unix_path=`$CYGPATH -u "$windows_path"` 29475 new_path="$unix_path" 29476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29477 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29478 new_path="$unix_path" 29479 fi 29480 29481 29482 new_path=`$WHICH "$new_path" 2> /dev/null` 29483 # bat and cmd files are not always considered executable in MSYS causing which 29484 # to not find them 29485 if test "x$new_path" = x \ 29486 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29487 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29488 new_path="$path" 29489 29490 windows_path="$new_path" 29491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29492 unix_path=`$CYGPATH -u "$windows_path"` 29493 new_path="$unix_path" 29494 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29495 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29496 new_path="$unix_path" 29497 fi 29498 29499 fi 29500 29501 if test "x$new_path" = x; then 29502 # It's still not found. Now this is an unrecoverable error. 29503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29504 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29505 has_space=`$ECHO "$complete" | $GREP " "` 29506 if test "x$has_space" != x; then 29507 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29508 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29509 fi 29510 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29511 fi 29512 fi 29513 29514 # Now new_path has a complete unix path to the binary 29515 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29516 # Keep paths in /bin as-is, but remove trailing .exe if any 29517 new_path="${new_path/%.exe/}" 29518 # Do not save /bin paths to all_fixpath_prefixes! 29519 else 29520 # Not in mixed or Windows style, start by that. 29521 new_path=`cmd //c echo $new_path` 29522 29523 input_path="$new_path" 29524 # Check if we need to convert this using DOS-style short mode. If the path 29525 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29526 # take no chances and rewrite it. 29527 # Note: m4 eats our [], so we need to use [ and ] instead. 29528 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29529 if test "x$has_forbidden_chars" != x; then 29530 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29531 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29532 fi 29533 29534 # Output is in $new_path 29535 29536 windows_path="$new_path" 29537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29538 unix_path=`$CYGPATH -u "$windows_path"` 29539 new_path="$unix_path" 29540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29541 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29542 new_path="$unix_path" 29543 fi 29544 29545 # remove trailing .exe if any 29546 new_path="${new_path/%.exe/}" 29547 29548 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29549 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29550 fi 29551 29552 else 29553 # We're on a posix platform. Hooray! :) 29554 # First separate the path from the arguments. This will split at the first 29555 # space. 29556 complete="$PROPER_COMPILER_CXX" 29557 path="${complete%% *}" 29558 tmp="$complete EOL" 29559 arguments="${tmp#* }" 29560 29561 # Cannot rely on the command "which" here since it doesn't always work. 29562 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29563 if test -z "$is_absolute_path"; then 29564 # Path to executable is not absolute. Find it. 29565 IFS_save="$IFS" 29566 IFS=: 29567 for p in $PATH; do 29568 if test -f "$p/$path" && test -x "$p/$path"; then 29569 new_path="$p/$path" 29570 break 29571 fi 29572 done 29573 IFS="$IFS_save" 29574 else 29575 # This is an absolute path, we can use it without further modifications. 29576 new_path="$path" 29577 fi 29578 29579 if test "x$new_path" = x; then 29580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29581 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29582 has_space=`$ECHO "$complete" | $GREP " "` 29583 if test "x$has_space" != x; then 29584 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29585 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29586 fi 29587 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29588 fi 29589 fi 29590 29591 # Now join together the path and the arguments once again 29592 if test "x$arguments" != xEOL; then 29593 new_complete="$new_path ${arguments% *}" 29594 else 29595 new_complete="$new_path" 29596 fi 29597 29598 if test "x$complete" != "x$new_complete"; then 29599 PROPER_COMPILER_CXX="$new_complete" 29600 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 29601 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 29602 fi 29603 29604 PATH="$RETRY_COMPILER_SAVED_PATH" 29605 29606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 29607 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 29608 29609 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29610 # Follow a chain of symbolic links. Use readlink 29611 # where it exists, else fall back to horribly 29612 # complicated shell code. 29613 if test "x$READLINK_TESTED" != yes; then 29614 # On MacOSX there is a readlink tool with a different 29615 # purpose than the GNU readlink tool. Check the found readlink. 29616 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29617 if test "x$ISGNU" = x; then 29618 # A readlink that we do not know how to use. 29619 # Are there other non-GNU readlinks out there? 29620 READLINK_TESTED=yes 29621 READLINK= 29622 fi 29623 fi 29624 29625 if test "x$READLINK" != x; then 29626 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 29627 else 29628 # Save the current directory for restoring afterwards 29629 STARTDIR=$PWD 29630 COUNTER=0 29631 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 29632 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 29633 cd $sym_link_dir 29634 # Use -P flag to resolve symlinks in directories. 29635 cd `$THEPWDCMD -P` 29636 sym_link_dir=`$THEPWDCMD -P` 29637 # Resolve file symlinks 29638 while test $COUNTER -lt 20; do 29639 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29640 if test "x$ISLINK" == x; then 29641 # This is not a symbolic link! We are done! 29642 break 29643 fi 29644 # Again resolve directory symlinks since the target of the just found 29645 # link could be in a different directory 29646 cd `$DIRNAME $ISLINK` 29647 sym_link_dir=`$THEPWDCMD -P` 29648 sym_link_file=`$BASENAME $ISLINK` 29649 let COUNTER=COUNTER+1 29650 done 29651 cd $STARTDIR 29652 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 29653 fi 29654 fi 29655 29656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29657 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29658 CXX="$PROPER_COMPILER_CXX" 29659 else 29660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 29661 $as_echo "no, keeping CXX" >&6; } 29662 fi 29663 fi 29664 29665 29666 COMPILER=$CXX 29667 COMPILER_NAME=$COMPILER_NAME 29668 29669 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29670 # cc -V output typically looks like 29671 # cc: Sun C 5.12 Linux_i386 2011/11/16 29672 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 29673 # Check that this is likely to be the Solaris Studio cc. 29674 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 29675 if test $? -ne 0; then 29676 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29677 { $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 29678 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29679 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29680 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29681 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29682 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29683 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29684 fi 29685 # Remove usage instructions (if present), and 29686 # collapse compiler output into a single line 29687 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29688 $SED -e 's/ *[Uu]sage:.*//'` 29689 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29690 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 29691 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 29692 # xlc -qversion output typically looks like 29693 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 29694 # Version: 11.01.0000.0015 29695 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 29696 # Check that this is likely to be the IBM XL C compiler. 29697 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 29698 if test $? -ne 0; then 29699 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29700 { $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 29701 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29702 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29703 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29704 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29705 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29706 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29707 fi 29708 # Collapse compiler output into a single line 29709 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29710 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29711 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 29712 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 29713 # There is no specific version flag, but all output starts with a version string. 29714 # First line typically looks something like: 29715 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 29716 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 29717 # Check that this is likely to be Microsoft CL.EXE. 29718 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 29719 if test $? -ne 0; then 29720 { $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 29721 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29722 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29723 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29724 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29725 fi 29726 # Collapse compiler output into a single line 29727 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29728 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29729 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 29730 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 29731 # gcc --version output typically looks like 29732 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 29733 # Copyright (C) 2013 Free Software Foundation, Inc. 29734 # This is free software; see the source for copying conditions. There is NO 29735 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29736 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29737 # Check that this is likely to be GCC. 29738 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 29739 if test $? -ne 0; then 29740 { $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 29741 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29742 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 29743 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 29744 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29745 fi 29746 # Remove Copyright and legalese from version string, and 29747 # collapse into a single line 29748 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29749 $SED -e 's/ *Copyright .*//'` 29750 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29751 $SED -e 's/^.* \([1-9][0-9]*\.[0-9.]*\) .*$/\1/'` 29752 elif test "x$TOOLCHAIN_TYPE" = xclang; then 29753 # clang --version output typically looks like 29754 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 29755 # clang version 3.3 (tags/RELEASE_33/final) 29756 # or 29757 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 29758 # Target: x86_64-pc-linux-gnu 29759 # Thread model: posix 29760 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29761 # Check that this is likely to be clang 29762 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 29763 if test $? -ne 0; then 29764 { $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 29765 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29766 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29767 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29768 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29769 fi 29770 # Collapse compiler output into a single line 29771 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29772 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29773 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 29774 29775 else 29776 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 29777 fi 29778 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 29779 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 29780 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 29781 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 29782 29783 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 29784 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 29785 29786 29787 # Now that we have resolved CXX ourself, let autoconf have its go at it 29788 ac_ext=cpp 29789 ac_cpp='$CXXCPP $CPPFLAGS' 29790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29793 if test -z "$CXX"; then 29794 if test -n "$CCC"; then 29795 CXX=$CCC 29796 else 29797 if test -n "$ac_tool_prefix"; then 29798 for ac_prog in $CXX 29799 do 29800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29803 $as_echo_n "checking for $ac_word... " >&6; } 29804 if ${ac_cv_prog_CXX+:} false; then : 29805 $as_echo_n "(cached) " >&6 29806 else 29807 if test -n "$CXX"; then 29808 ac_cv_prog_CXX="$CXX" # Let the user override the test. 29809 else 29810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29811 for as_dir in $PATH 29812 do 29813 IFS=$as_save_IFS 29814 test -z "$as_dir" && as_dir=. 29815 for ac_exec_ext in '' $ac_executable_extensions; do 29816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29817 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 29818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29819 break 2 29820 fi 29821 done 29822 done 29823 IFS=$as_save_IFS 29824 29825 fi 29826 fi 29827 CXX=$ac_cv_prog_CXX 29828 if test -n "$CXX"; then 29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 29830 $as_echo "$CXX" >&6; } 29831 else 29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29833 $as_echo "no" >&6; } 29834 fi 29835 29836 29837 test -n "$CXX" && break 29838 done 29839 fi 29840 if test -z "$CXX"; then 29841 ac_ct_CXX=$CXX 29842 for ac_prog in $CXX 29843 do 29844 # Extract the first word of "$ac_prog", so it can be a program name with args. 29845 set dummy $ac_prog; ac_word=$2 29846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29847 $as_echo_n "checking for $ac_word... " >&6; } 29848 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 29849 $as_echo_n "(cached) " >&6 29850 else 29851 if test -n "$ac_ct_CXX"; then 29852 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 29853 else 29854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29855 for as_dir in $PATH 29856 do 29857 IFS=$as_save_IFS 29858 test -z "$as_dir" && as_dir=. 29859 for ac_exec_ext in '' $ac_executable_extensions; do 29860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29861 ac_cv_prog_ac_ct_CXX="$ac_prog" 29862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29863 break 2 29864 fi 29865 done 29866 done 29867 IFS=$as_save_IFS 29868 29869 fi 29870 fi 29871 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 29872 if test -n "$ac_ct_CXX"; then 29873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 29874 $as_echo "$ac_ct_CXX" >&6; } 29875 else 29876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29877 $as_echo "no" >&6; } 29878 fi 29879 29880 29881 test -n "$ac_ct_CXX" && break 29882 done 29883 29884 if test "x$ac_ct_CXX" = x; then 29885 CXX="g++" 29886 else 29887 case $cross_compiling:$ac_tool_warned in 29888 yes:) 29889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29891 ac_tool_warned=yes ;; 29892 esac 29893 CXX=$ac_ct_CXX 29894 fi 29895 fi 29896 29897 fi 29898 fi 29899 # Provide some information about the compiler. 29900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 29901 set X $ac_compile 29902 ac_compiler=$2 29903 for ac_option in --version -v -V -qversion; do 29904 { { ac_try="$ac_compiler $ac_option >&5" 29905 case "(($ac_try" in 29906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29907 *) ac_try_echo=$ac_try;; 29908 esac 29909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29910 $as_echo "$ac_try_echo"; } >&5 29911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29912 ac_status=$? 29913 if test -s conftest.err; then 29914 sed '10a\ 29915 ... rest of stderr output deleted ... 29916 10q' conftest.err >conftest.er1 29917 cat conftest.er1 >&5 29918 fi 29919 rm -f conftest.er1 conftest.err 29920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29921 test $ac_status = 0; } 29922 done 29923 29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 29925 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 29926 if ${ac_cv_cxx_compiler_gnu+:} false; then : 29927 $as_echo_n "(cached) " >&6 29928 else 29929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29930 /* end confdefs.h. */ 29931 29932 int 29933 main () 29934 { 29935 #ifndef __GNUC__ 29936 choke me 29937 #endif 29938 29939 ; 29940 return 0; 29941 } 29942 _ACEOF 29943 if ac_fn_cxx_try_compile "$LINENO"; then : 29944 ac_compiler_gnu=yes 29945 else 29946 ac_compiler_gnu=no 29947 fi 29948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29949 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 29950 29951 fi 29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 29953 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 29954 if test $ac_compiler_gnu = yes; then 29955 GXX=yes 29956 else 29957 GXX= 29958 fi 29959 ac_test_CXXFLAGS=${CXXFLAGS+set} 29960 ac_save_CXXFLAGS=$CXXFLAGS 29961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 29962 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 29963 if ${ac_cv_prog_cxx_g+:} false; then : 29964 $as_echo_n "(cached) " >&6 29965 else 29966 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 29967 ac_cxx_werror_flag=yes 29968 ac_cv_prog_cxx_g=no 29969 CXXFLAGS="-g" 29970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29971 /* end confdefs.h. */ 29972 29973 int 29974 main () 29975 { 29976 29977 ; 29978 return 0; 29979 } 29980 _ACEOF 29981 if ac_fn_cxx_try_compile "$LINENO"; then : 29982 ac_cv_prog_cxx_g=yes 29983 else 29984 CXXFLAGS="" 29985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29986 /* end confdefs.h. */ 29987 29988 int 29989 main () 29990 { 29991 29992 ; 29993 return 0; 29994 } 29995 _ACEOF 29996 if ac_fn_cxx_try_compile "$LINENO"; then : 29997 29998 else 29999 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30000 CXXFLAGS="-g" 30001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30002 /* end confdefs.h. */ 30003 30004 int 30005 main () 30006 { 30007 30008 ; 30009 return 0; 30010 } 30011 _ACEOF 30012 if ac_fn_cxx_try_compile "$LINENO"; then : 30013 ac_cv_prog_cxx_g=yes 30014 fi 30015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30016 fi 30017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30018 fi 30019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30020 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30021 fi 30022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30023 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30024 if test "$ac_test_CXXFLAGS" = set; then 30025 CXXFLAGS=$ac_save_CXXFLAGS 30026 elif test $ac_cv_prog_cxx_g = yes; then 30027 if test "$GXX" = yes; then 30028 CXXFLAGS="-g -O2" 30029 else 30030 CXXFLAGS="-g" 30031 fi 30032 else 30033 if test "$GXX" = yes; then 30034 CXXFLAGS="-O2" 30035 else 30036 CXXFLAGS= 30037 fi 30038 fi 30039 ac_ext=cpp 30040 ac_cpp='$CXXCPP $CPPFLAGS' 30041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30044 30045 30046 # This is the compiler version number on the form X.Y[.Z] 30047 30048 30049 30050 30051 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 30052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 30053 $as_echo "$as_me: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 30054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 30055 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 30056 fi 30057 30058 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 30059 if [[ "$CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 30060 { $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 30061 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&2;} 30062 fi 30063 30064 if [[ "$CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 30065 { $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 30066 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&2;} 30067 fi 30068 30069 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 30070 30071 30072 # 30073 # Setup the preprocessor (CPP and CXXCPP) 30074 # 30075 ac_ext=c 30076 ac_cpp='$CPP $CPPFLAGS' 30077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30079 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30081 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30082 # On Suns, sometimes $CPP names a directory. 30083 if test -n "$CPP" && test -d "$CPP"; then 30084 CPP= 30085 fi 30086 if test -z "$CPP"; then 30087 if ${ac_cv_prog_CPP+:} false; then : 30088 $as_echo_n "(cached) " >&6 30089 else 30090 # Double quotes because CPP needs to be expanded 30091 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30092 do 30093 ac_preproc_ok=false 30094 for ac_c_preproc_warn_flag in '' yes 30095 do 30096 # Use a header file that comes with gcc, so configuring glibc 30097 # with a fresh cross-compiler works. 30098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30099 # <limits.h> exists even on freestanding compilers. 30100 # On the NeXT, cc -E runs the code through the compiler's parser, 30101 # not just through cpp. "Syntax error" is here to catch this case. 30102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30103 /* end confdefs.h. */ 30104 #ifdef __STDC__ 30105 # include <limits.h> 30106 #else 30107 # include <assert.h> 30108 #endif 30109 Syntax error 30110 _ACEOF 30111 if ac_fn_c_try_cpp "$LINENO"; then : 30112 30113 else 30114 # Broken: fails on valid input. 30115 continue 30116 fi 30117 rm -f conftest.err conftest.i conftest.$ac_ext 30118 30119 # OK, works on sane cases. Now check whether nonexistent headers 30120 # can be detected and how. 30121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30122 /* end confdefs.h. */ 30123 #include <ac_nonexistent.h> 30124 _ACEOF 30125 if ac_fn_c_try_cpp "$LINENO"; then : 30126 # Broken: success on invalid input. 30127 continue 30128 else 30129 # Passes both tests. 30130 ac_preproc_ok=: 30131 break 30132 fi 30133 rm -f conftest.err conftest.i conftest.$ac_ext 30134 30135 done 30136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30137 rm -f conftest.i conftest.err conftest.$ac_ext 30138 if $ac_preproc_ok; then : 30139 break 30140 fi 30141 30142 done 30143 ac_cv_prog_CPP=$CPP 30144 30145 fi 30146 CPP=$ac_cv_prog_CPP 30147 else 30148 ac_cv_prog_CPP=$CPP 30149 fi 30150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30151 $as_echo "$CPP" >&6; } 30152 ac_preproc_ok=false 30153 for ac_c_preproc_warn_flag in '' yes 30154 do 30155 # Use a header file that comes with gcc, so configuring glibc 30156 # with a fresh cross-compiler works. 30157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30158 # <limits.h> exists even on freestanding compilers. 30159 # On the NeXT, cc -E runs the code through the compiler's parser, 30160 # not just through cpp. "Syntax error" is here to catch this case. 30161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30162 /* end confdefs.h. */ 30163 #ifdef __STDC__ 30164 # include <limits.h> 30165 #else 30166 # include <assert.h> 30167 #endif 30168 Syntax error 30169 _ACEOF 30170 if ac_fn_c_try_cpp "$LINENO"; then : 30171 30172 else 30173 # Broken: fails on valid input. 30174 continue 30175 fi 30176 rm -f conftest.err conftest.i conftest.$ac_ext 30177 30178 # OK, works on sane cases. Now check whether nonexistent headers 30179 # can be detected and how. 30180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30181 /* end confdefs.h. */ 30182 #include <ac_nonexistent.h> 30183 _ACEOF 30184 if ac_fn_c_try_cpp "$LINENO"; then : 30185 # Broken: success on invalid input. 30186 continue 30187 else 30188 # Passes both tests. 30189 ac_preproc_ok=: 30190 break 30191 fi 30192 rm -f conftest.err conftest.i conftest.$ac_ext 30193 30194 done 30195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30196 rm -f conftest.i conftest.err conftest.$ac_ext 30197 if $ac_preproc_ok; then : 30198 30199 else 30200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30202 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 30203 See \`config.log' for more details" "$LINENO" 5; } 30204 fi 30205 30206 ac_ext=cpp 30207 ac_cpp='$CXXCPP $CPPFLAGS' 30208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30211 30212 30213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30214 30215 # First separate the path from the arguments. This will split at the first 30216 # space. 30217 complete="$CPP" 30218 path="${complete%% *}" 30219 tmp="$complete EOL" 30220 arguments="${tmp#* }" 30221 30222 # Input might be given as Windows format, start by converting to 30223 # unix format. 30224 new_path=`$CYGPATH -u "$path"` 30225 30226 # Now try to locate executable using which 30227 new_path=`$WHICH "$new_path" 2> /dev/null` 30228 # bat and cmd files are not always considered executable in cygwin causing which 30229 # to not find them 30230 if test "x$new_path" = x \ 30231 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30232 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30233 new_path=`$CYGPATH -u "$path"` 30234 fi 30235 if test "x$new_path" = x; then 30236 # Oops. Which didn't find the executable. 30237 # The splitting of arguments from the executable at a space might have been incorrect, 30238 # since paths with space are more likely in Windows. Give it another try with the whole 30239 # argument. 30240 path="$complete" 30241 arguments="EOL" 30242 new_path=`$CYGPATH -u "$path"` 30243 new_path=`$WHICH "$new_path" 2> /dev/null` 30244 # bat and cmd files are not always considered executable in cygwin causing which 30245 # to not find them 30246 if test "x$new_path" = x \ 30247 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30248 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30249 new_path=`$CYGPATH -u "$path"` 30250 fi 30251 if test "x$new_path" = x; then 30252 # It's still not found. Now this is an unrecoverable error. 30253 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30254 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30255 has_space=`$ECHO "$complete" | $GREP " "` 30256 if test "x$has_space" != x; then 30257 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30258 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30259 fi 30260 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30261 fi 30262 fi 30263 30264 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30265 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30266 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30267 # "foo.exe" is OK but "foo" is an error. 30268 # 30269 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30270 # It is also a way to make sure we got the proper file name for the real test later on. 30271 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30272 if test "x$test_shortpath" = x; then 30273 # Short path failed, file does not exist as specified. 30274 # Try adding .exe or .cmd 30275 if test -f "${new_path}.exe"; then 30276 input_to_shortpath="${new_path}.exe" 30277 elif test -f "${new_path}.cmd"; then 30278 input_to_shortpath="${new_path}.cmd" 30279 else 30280 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 30281 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 30282 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30283 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30284 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30285 fi 30286 else 30287 input_to_shortpath="$new_path" 30288 fi 30289 30290 # Call helper function which possibly converts this using DOS-style short mode. 30291 # If so, the updated path is stored in $new_path. 30292 new_path="$input_to_shortpath" 30293 30294 input_path="$input_to_shortpath" 30295 # Check if we need to convert this using DOS-style short mode. If the path 30296 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30297 # take no chances and rewrite it. 30298 # Note: m4 eats our [], so we need to use [ and ] instead. 30299 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30300 if test "x$has_forbidden_chars" != x; then 30301 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30302 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30303 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30304 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30305 # Going to short mode and back again did indeed matter. Since short mode is 30306 # case insensitive, let's make it lowercase to improve readability. 30307 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30308 # Now convert it back to Unix-style (cygpath) 30309 input_path=`$CYGPATH -u "$shortmode_path"` 30310 new_path="$input_path" 30311 fi 30312 fi 30313 30314 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30315 if test "x$test_cygdrive_prefix" = x; then 30316 # As a simple fix, exclude /usr/bin since it's not a real path. 30317 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30318 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30319 # a path prefixed by /cygdrive for fixpath to work. 30320 new_path="$CYGWIN_ROOT_PATH$input_path" 30321 fi 30322 fi 30323 30324 # remove trailing .exe if any 30325 new_path="${new_path/%.exe/}" 30326 30327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30328 30329 # First separate the path from the arguments. This will split at the first 30330 # space. 30331 complete="$CPP" 30332 path="${complete%% *}" 30333 tmp="$complete EOL" 30334 arguments="${tmp#* }" 30335 30336 # Input might be given as Windows format, start by converting to 30337 # unix format. 30338 new_path="$path" 30339 30340 windows_path="$new_path" 30341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30342 unix_path=`$CYGPATH -u "$windows_path"` 30343 new_path="$unix_path" 30344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30345 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30346 new_path="$unix_path" 30347 fi 30348 30349 30350 # Now try to locate executable using which 30351 new_path=`$WHICH "$new_path" 2> /dev/null` 30352 30353 if test "x$new_path" = x; then 30354 # Oops. Which didn't find the executable. 30355 # The splitting of arguments from the executable at a space might have been incorrect, 30356 # since paths with space are more likely in Windows. Give it another try with the whole 30357 # argument. 30358 path="$complete" 30359 arguments="EOL" 30360 new_path="$path" 30361 30362 windows_path="$new_path" 30363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30364 unix_path=`$CYGPATH -u "$windows_path"` 30365 new_path="$unix_path" 30366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30368 new_path="$unix_path" 30369 fi 30370 30371 30372 new_path=`$WHICH "$new_path" 2> /dev/null` 30373 # bat and cmd files are not always considered executable in MSYS causing which 30374 # to not find them 30375 if test "x$new_path" = x \ 30376 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30377 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30378 new_path="$path" 30379 30380 windows_path="$new_path" 30381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30382 unix_path=`$CYGPATH -u "$windows_path"` 30383 new_path="$unix_path" 30384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30385 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30386 new_path="$unix_path" 30387 fi 30388 30389 fi 30390 30391 if test "x$new_path" = x; then 30392 # It's still not found. Now this is an unrecoverable error. 30393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30394 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30395 has_space=`$ECHO "$complete" | $GREP " "` 30396 if test "x$has_space" != x; then 30397 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30398 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30399 fi 30400 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30401 fi 30402 fi 30403 30404 # Now new_path has a complete unix path to the binary 30405 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30406 # Keep paths in /bin as-is, but remove trailing .exe if any 30407 new_path="${new_path/%.exe/}" 30408 # Do not save /bin paths to all_fixpath_prefixes! 30409 else 30410 # Not in mixed or Windows style, start by that. 30411 new_path=`cmd //c echo $new_path` 30412 30413 input_path="$new_path" 30414 # Check if we need to convert this using DOS-style short mode. If the path 30415 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30416 # take no chances and rewrite it. 30417 # Note: m4 eats our [], so we need to use [ and ] instead. 30418 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30419 if test "x$has_forbidden_chars" != x; then 30420 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30421 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30422 fi 30423 30424 # Output is in $new_path 30425 30426 windows_path="$new_path" 30427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30428 unix_path=`$CYGPATH -u "$windows_path"` 30429 new_path="$unix_path" 30430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30431 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30432 new_path="$unix_path" 30433 fi 30434 30435 # remove trailing .exe if any 30436 new_path="${new_path/%.exe/}" 30437 30438 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30439 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30440 fi 30441 30442 else 30443 # We're on a posix platform. Hooray! :) 30444 # First separate the path from the arguments. This will split at the first 30445 # space. 30446 complete="$CPP" 30447 path="${complete%% *}" 30448 tmp="$complete EOL" 30449 arguments="${tmp#* }" 30450 30451 # Cannot rely on the command "which" here since it doesn't always work. 30452 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30453 if test -z "$is_absolute_path"; then 30454 # Path to executable is not absolute. Find it. 30455 IFS_save="$IFS" 30456 IFS=: 30457 for p in $PATH; do 30458 if test -f "$p/$path" && test -x "$p/$path"; then 30459 new_path="$p/$path" 30460 break 30461 fi 30462 done 30463 IFS="$IFS_save" 30464 else 30465 # This is an absolute path, we can use it without further modifications. 30466 new_path="$path" 30467 fi 30468 30469 if test "x$new_path" = x; then 30470 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30471 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30472 has_space=`$ECHO "$complete" | $GREP " "` 30473 if test "x$has_space" != x; then 30474 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30475 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30476 fi 30477 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30478 fi 30479 fi 30480 30481 # Now join together the path and the arguments once again 30482 if test "x$arguments" != xEOL; then 30483 new_complete="$new_path ${arguments% *}" 30484 else 30485 new_complete="$new_path" 30486 fi 30487 30488 if test "x$complete" != "x$new_complete"; then 30489 CPP="$new_complete" 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 30491 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 30492 fi 30493 30494 ac_ext=cpp 30495 ac_cpp='$CXXCPP $CPPFLAGS' 30496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 30500 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 30501 if test -z "$CXXCPP"; then 30502 if ${ac_cv_prog_CXXCPP+:} false; then : 30503 $as_echo_n "(cached) " >&6 30504 else 30505 # Double quotes because CXXCPP needs to be expanded 30506 for CXXCPP in "$CXX -E" "/lib/cpp" 30507 do 30508 ac_preproc_ok=false 30509 for ac_cxx_preproc_warn_flag in '' yes 30510 do 30511 # Use a header file that comes with gcc, so configuring glibc 30512 # with a fresh cross-compiler works. 30513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30514 # <limits.h> exists even on freestanding compilers. 30515 # On the NeXT, cc -E runs the code through the compiler's parser, 30516 # not just through cpp. "Syntax error" is here to catch this case. 30517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30518 /* end confdefs.h. */ 30519 #ifdef __STDC__ 30520 # include <limits.h> 30521 #else 30522 # include <assert.h> 30523 #endif 30524 Syntax error 30525 _ACEOF 30526 if ac_fn_cxx_try_cpp "$LINENO"; then : 30527 30528 else 30529 # Broken: fails on valid input. 30530 continue 30531 fi 30532 rm -f conftest.err conftest.i conftest.$ac_ext 30533 30534 # OK, works on sane cases. Now check whether nonexistent headers 30535 # can be detected and how. 30536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30537 /* end confdefs.h. */ 30538 #include <ac_nonexistent.h> 30539 _ACEOF 30540 if ac_fn_cxx_try_cpp "$LINENO"; then : 30541 # Broken: success on invalid input. 30542 continue 30543 else 30544 # Passes both tests. 30545 ac_preproc_ok=: 30546 break 30547 fi 30548 rm -f conftest.err conftest.i conftest.$ac_ext 30549 30550 done 30551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30552 rm -f conftest.i conftest.err conftest.$ac_ext 30553 if $ac_preproc_ok; then : 30554 break 30555 fi 30556 30557 done 30558 ac_cv_prog_CXXCPP=$CXXCPP 30559 30560 fi 30561 CXXCPP=$ac_cv_prog_CXXCPP 30562 else 30563 ac_cv_prog_CXXCPP=$CXXCPP 30564 fi 30565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 30566 $as_echo "$CXXCPP" >&6; } 30567 ac_preproc_ok=false 30568 for ac_cxx_preproc_warn_flag in '' yes 30569 do 30570 # Use a header file that comes with gcc, so configuring glibc 30571 # with a fresh cross-compiler works. 30572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30573 # <limits.h> exists even on freestanding compilers. 30574 # On the NeXT, cc -E runs the code through the compiler's parser, 30575 # not just through cpp. "Syntax error" is here to catch this case. 30576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30577 /* end confdefs.h. */ 30578 #ifdef __STDC__ 30579 # include <limits.h> 30580 #else 30581 # include <assert.h> 30582 #endif 30583 Syntax error 30584 _ACEOF 30585 if ac_fn_cxx_try_cpp "$LINENO"; then : 30586 30587 else 30588 # Broken: fails on valid input. 30589 continue 30590 fi 30591 rm -f conftest.err conftest.i conftest.$ac_ext 30592 30593 # OK, works on sane cases. Now check whether nonexistent headers 30594 # can be detected and how. 30595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30596 /* end confdefs.h. */ 30597 #include <ac_nonexistent.h> 30598 _ACEOF 30599 if ac_fn_cxx_try_cpp "$LINENO"; then : 30600 # Broken: success on invalid input. 30601 continue 30602 else 30603 # Passes both tests. 30604 ac_preproc_ok=: 30605 break 30606 fi 30607 rm -f conftest.err conftest.i conftest.$ac_ext 30608 30609 done 30610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30611 rm -f conftest.i conftest.err conftest.$ac_ext 30612 if $ac_preproc_ok; then : 30613 30614 else 30615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30617 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 30618 See \`config.log' for more details" "$LINENO" 5; } 30619 fi 30620 30621 ac_ext=cpp 30622 ac_cpp='$CXXCPP $CPPFLAGS' 30623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30626 30627 30628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30629 30630 # First separate the path from the arguments. This will split at the first 30631 # space. 30632 complete="$CXXCPP" 30633 path="${complete%% *}" 30634 tmp="$complete EOL" 30635 arguments="${tmp#* }" 30636 30637 # Input might be given as Windows format, start by converting to 30638 # unix format. 30639 new_path=`$CYGPATH -u "$path"` 30640 30641 # Now try to locate executable using which 30642 new_path=`$WHICH "$new_path" 2> /dev/null` 30643 # bat and cmd files are not always considered executable in cygwin causing which 30644 # to not find them 30645 if test "x$new_path" = x \ 30646 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30647 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30648 new_path=`$CYGPATH -u "$path"` 30649 fi 30650 if test "x$new_path" = x; then 30651 # Oops. Which didn't find the executable. 30652 # The splitting of arguments from the executable at a space might have been incorrect, 30653 # since paths with space are more likely in Windows. Give it another try with the whole 30654 # argument. 30655 path="$complete" 30656 arguments="EOL" 30657 new_path=`$CYGPATH -u "$path"` 30658 new_path=`$WHICH "$new_path" 2> /dev/null` 30659 # bat and cmd files are not always considered executable in cygwin causing which 30660 # to not find them 30661 if test "x$new_path" = x \ 30662 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30663 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30664 new_path=`$CYGPATH -u "$path"` 30665 fi 30666 if test "x$new_path" = x; then 30667 # It's still not found. Now this is an unrecoverable error. 30668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30669 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30670 has_space=`$ECHO "$complete" | $GREP " "` 30671 if test "x$has_space" != x; then 30672 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30673 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30674 fi 30675 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30676 fi 30677 fi 30678 30679 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30680 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30681 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30682 # "foo.exe" is OK but "foo" is an error. 30683 # 30684 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30685 # It is also a way to make sure we got the proper file name for the real test later on. 30686 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30687 if test "x$test_shortpath" = x; then 30688 # Short path failed, file does not exist as specified. 30689 # Try adding .exe or .cmd 30690 if test -f "${new_path}.exe"; then 30691 input_to_shortpath="${new_path}.exe" 30692 elif test -f "${new_path}.cmd"; then 30693 input_to_shortpath="${new_path}.cmd" 30694 else 30695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 30696 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 30697 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30698 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30699 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30700 fi 30701 else 30702 input_to_shortpath="$new_path" 30703 fi 30704 30705 # Call helper function which possibly converts this using DOS-style short mode. 30706 # If so, the updated path is stored in $new_path. 30707 new_path="$input_to_shortpath" 30708 30709 input_path="$input_to_shortpath" 30710 # Check if we need to convert this using DOS-style short mode. If the path 30711 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30712 # take no chances and rewrite it. 30713 # Note: m4 eats our [], so we need to use [ and ] instead. 30714 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30715 if test "x$has_forbidden_chars" != x; then 30716 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30717 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30718 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30719 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30720 # Going to short mode and back again did indeed matter. Since short mode is 30721 # case insensitive, let's make it lowercase to improve readability. 30722 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30723 # Now convert it back to Unix-style (cygpath) 30724 input_path=`$CYGPATH -u "$shortmode_path"` 30725 new_path="$input_path" 30726 fi 30727 fi 30728 30729 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30730 if test "x$test_cygdrive_prefix" = x; then 30731 # As a simple fix, exclude /usr/bin since it's not a real path. 30732 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30733 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30734 # a path prefixed by /cygdrive for fixpath to work. 30735 new_path="$CYGWIN_ROOT_PATH$input_path" 30736 fi 30737 fi 30738 30739 # remove trailing .exe if any 30740 new_path="${new_path/%.exe/}" 30741 30742 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30743 30744 # First separate the path from the arguments. This will split at the first 30745 # space. 30746 complete="$CXXCPP" 30747 path="${complete%% *}" 30748 tmp="$complete EOL" 30749 arguments="${tmp#* }" 30750 30751 # Input might be given as Windows format, start by converting to 30752 # unix format. 30753 new_path="$path" 30754 30755 windows_path="$new_path" 30756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30757 unix_path=`$CYGPATH -u "$windows_path"` 30758 new_path="$unix_path" 30759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30760 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30761 new_path="$unix_path" 30762 fi 30763 30764 30765 # Now try to locate executable using which 30766 new_path=`$WHICH "$new_path" 2> /dev/null` 30767 30768 if test "x$new_path" = x; then 30769 # Oops. Which didn't find the executable. 30770 # The splitting of arguments from the executable at a space might have been incorrect, 30771 # since paths with space are more likely in Windows. Give it another try with the whole 30772 # argument. 30773 path="$complete" 30774 arguments="EOL" 30775 new_path="$path" 30776 30777 windows_path="$new_path" 30778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30779 unix_path=`$CYGPATH -u "$windows_path"` 30780 new_path="$unix_path" 30781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30782 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30783 new_path="$unix_path" 30784 fi 30785 30786 30787 new_path=`$WHICH "$new_path" 2> /dev/null` 30788 # bat and cmd files are not always considered executable in MSYS causing which 30789 # to not find them 30790 if test "x$new_path" = x \ 30791 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30792 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30793 new_path="$path" 30794 30795 windows_path="$new_path" 30796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30797 unix_path=`$CYGPATH -u "$windows_path"` 30798 new_path="$unix_path" 30799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30801 new_path="$unix_path" 30802 fi 30803 30804 fi 30805 30806 if test "x$new_path" = x; then 30807 # It's still not found. Now this is an unrecoverable error. 30808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30809 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30810 has_space=`$ECHO "$complete" | $GREP " "` 30811 if test "x$has_space" != x; then 30812 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30813 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30814 fi 30815 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30816 fi 30817 fi 30818 30819 # Now new_path has a complete unix path to the binary 30820 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30821 # Keep paths in /bin as-is, but remove trailing .exe if any 30822 new_path="${new_path/%.exe/}" 30823 # Do not save /bin paths to all_fixpath_prefixes! 30824 else 30825 # Not in mixed or Windows style, start by that. 30826 new_path=`cmd //c echo $new_path` 30827 30828 input_path="$new_path" 30829 # Check if we need to convert this using DOS-style short mode. If the path 30830 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30831 # take no chances and rewrite it. 30832 # Note: m4 eats our [], so we need to use [ and ] instead. 30833 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30834 if test "x$has_forbidden_chars" != x; then 30835 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30836 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30837 fi 30838 30839 # Output is in $new_path 30840 30841 windows_path="$new_path" 30842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30843 unix_path=`$CYGPATH -u "$windows_path"` 30844 new_path="$unix_path" 30845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30846 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30847 new_path="$unix_path" 30848 fi 30849 30850 # remove trailing .exe if any 30851 new_path="${new_path/%.exe/}" 30852 30853 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30854 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30855 fi 30856 30857 else 30858 # We're on a posix platform. Hooray! :) 30859 # First separate the path from the arguments. This will split at the first 30860 # space. 30861 complete="$CXXCPP" 30862 path="${complete%% *}" 30863 tmp="$complete EOL" 30864 arguments="${tmp#* }" 30865 30866 # Cannot rely on the command "which" here since it doesn't always work. 30867 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30868 if test -z "$is_absolute_path"; then 30869 # Path to executable is not absolute. Find it. 30870 IFS_save="$IFS" 30871 IFS=: 30872 for p in $PATH; do 30873 if test -f "$p/$path" && test -x "$p/$path"; then 30874 new_path="$p/$path" 30875 break 30876 fi 30877 done 30878 IFS="$IFS_save" 30879 else 30880 # This is an absolute path, we can use it without further modifications. 30881 new_path="$path" 30882 fi 30883 30884 if test "x$new_path" = x; then 30885 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 30886 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 30887 has_space=`$ECHO "$complete" | $GREP " "` 30888 if test "x$has_space" != x; then 30889 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30890 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30891 fi 30892 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 30893 fi 30894 fi 30895 30896 # Now join together the path and the arguments once again 30897 if test "x$arguments" != xEOL; then 30898 new_complete="$new_path ${arguments% *}" 30899 else 30900 new_complete="$new_path" 30901 fi 30902 30903 if test "x$complete" != "x$new_complete"; then 30904 CXXCPP="$new_complete" 30905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 30906 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 30907 fi 30908 30909 30910 # 30911 # Setup the linker (LD) 30912 # 30913 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30914 # In the Microsoft toolchain we have a separate LD command "link". 30915 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 30916 # a cygwin program for something completely different. 30917 # Extract the first word of "link", so it can be a program name with args. 30918 set dummy link; ac_word=$2 30919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30920 $as_echo_n "checking for $ac_word... " >&6; } 30921 if ${ac_cv_prog_LD+:} false; then : 30922 $as_echo_n "(cached) " >&6 30923 else 30924 if test -n "$LD"; then 30925 ac_cv_prog_LD="$LD" # Let the user override the test. 30926 else 30927 ac_prog_rejected=no 30928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30929 for as_dir in $PATH 30930 do 30931 IFS=$as_save_IFS 30932 test -z "$as_dir" && as_dir=. 30933 for ac_exec_ext in '' $ac_executable_extensions; do 30934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30935 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 30936 ac_prog_rejected=yes 30937 continue 30938 fi 30939 ac_cv_prog_LD="link" 30940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30941 break 2 30942 fi 30943 done 30944 done 30945 IFS=$as_save_IFS 30946 30947 if test $ac_prog_rejected = yes; then 30948 # We found a bogon in the path, so make sure we never use it. 30949 set dummy $ac_cv_prog_LD 30950 shift 30951 if test $# != 0; then 30952 # We chose a different compiler from the bogus one. 30953 # However, it has the same basename, so the bogon will be chosen 30954 # first if we set LD to just the basename; use the full file name. 30955 shift 30956 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 30957 fi 30958 fi 30959 fi 30960 fi 30961 LD=$ac_cv_prog_LD 30962 if test -n "$LD"; then 30963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 30964 $as_echo "$LD" >&6; } 30965 else 30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30967 $as_echo "no" >&6; } 30968 fi 30969 30970 30971 30972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30973 30974 # First separate the path from the arguments. This will split at the first 30975 # space. 30976 complete="$LD" 30977 path="${complete%% *}" 30978 tmp="$complete EOL" 30979 arguments="${tmp#* }" 30980 30981 # Input might be given as Windows format, start by converting to 30982 # unix format. 30983 new_path=`$CYGPATH -u "$path"` 30984 30985 # Now try to locate executable using which 30986 new_path=`$WHICH "$new_path" 2> /dev/null` 30987 # bat and cmd files are not always considered executable in cygwin causing which 30988 # to not find them 30989 if test "x$new_path" = x \ 30990 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30991 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30992 new_path=`$CYGPATH -u "$path"` 30993 fi 30994 if test "x$new_path" = x; then 30995 # Oops. Which didn't find the executable. 30996 # The splitting of arguments from the executable at a space might have been incorrect, 30997 # since paths with space are more likely in Windows. Give it another try with the whole 30998 # argument. 30999 path="$complete" 31000 arguments="EOL" 31001 new_path=`$CYGPATH -u "$path"` 31002 new_path=`$WHICH "$new_path" 2> /dev/null` 31003 # bat and cmd files are not always considered executable in cygwin causing which 31004 # to not find them 31005 if test "x$new_path" = x \ 31006 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31007 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31008 new_path=`$CYGPATH -u "$path"` 31009 fi 31010 if test "x$new_path" = x; then 31011 # It's still not found. Now this is an unrecoverable error. 31012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31013 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31014 has_space=`$ECHO "$complete" | $GREP " "` 31015 if test "x$has_space" != x; then 31016 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31017 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31018 fi 31019 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31020 fi 31021 fi 31022 31023 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31024 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31025 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31026 # "foo.exe" is OK but "foo" is an error. 31027 # 31028 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31029 # It is also a way to make sure we got the proper file name for the real test later on. 31030 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31031 if test "x$test_shortpath" = x; then 31032 # Short path failed, file does not exist as specified. 31033 # Try adding .exe or .cmd 31034 if test -f "${new_path}.exe"; then 31035 input_to_shortpath="${new_path}.exe" 31036 elif test -f "${new_path}.cmd"; then 31037 input_to_shortpath="${new_path}.cmd" 31038 else 31039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31040 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31041 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31042 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31043 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31044 fi 31045 else 31046 input_to_shortpath="$new_path" 31047 fi 31048 31049 # Call helper function which possibly converts this using DOS-style short mode. 31050 # If so, the updated path is stored in $new_path. 31051 new_path="$input_to_shortpath" 31052 31053 input_path="$input_to_shortpath" 31054 # Check if we need to convert this using DOS-style short mode. If the path 31055 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31056 # take no chances and rewrite it. 31057 # Note: m4 eats our [], so we need to use [ and ] instead. 31058 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31059 if test "x$has_forbidden_chars" != x; then 31060 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31061 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31062 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31063 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31064 # Going to short mode and back again did indeed matter. Since short mode is 31065 # case insensitive, let's make it lowercase to improve readability. 31066 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31067 # Now convert it back to Unix-style (cygpath) 31068 input_path=`$CYGPATH -u "$shortmode_path"` 31069 new_path="$input_path" 31070 fi 31071 fi 31072 31073 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31074 if test "x$test_cygdrive_prefix" = x; then 31075 # As a simple fix, exclude /usr/bin since it's not a real path. 31076 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31077 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31078 # a path prefixed by /cygdrive for fixpath to work. 31079 new_path="$CYGWIN_ROOT_PATH$input_path" 31080 fi 31081 fi 31082 31083 # remove trailing .exe if any 31084 new_path="${new_path/%.exe/}" 31085 31086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31087 31088 # First separate the path from the arguments. This will split at the first 31089 # space. 31090 complete="$LD" 31091 path="${complete%% *}" 31092 tmp="$complete EOL" 31093 arguments="${tmp#* }" 31094 31095 # Input might be given as Windows format, start by converting to 31096 # unix format. 31097 new_path="$path" 31098 31099 windows_path="$new_path" 31100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31101 unix_path=`$CYGPATH -u "$windows_path"` 31102 new_path="$unix_path" 31103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31105 new_path="$unix_path" 31106 fi 31107 31108 31109 # Now try to locate executable using which 31110 new_path=`$WHICH "$new_path" 2> /dev/null` 31111 31112 if test "x$new_path" = x; then 31113 # Oops. Which didn't find the executable. 31114 # The splitting of arguments from the executable at a space might have been incorrect, 31115 # since paths with space are more likely in Windows. Give it another try with the whole 31116 # argument. 31117 path="$complete" 31118 arguments="EOL" 31119 new_path="$path" 31120 31121 windows_path="$new_path" 31122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31123 unix_path=`$CYGPATH -u "$windows_path"` 31124 new_path="$unix_path" 31125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31127 new_path="$unix_path" 31128 fi 31129 31130 31131 new_path=`$WHICH "$new_path" 2> /dev/null` 31132 # bat and cmd files are not always considered executable in MSYS causing which 31133 # to not find them 31134 if test "x$new_path" = x \ 31135 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31136 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31137 new_path="$path" 31138 31139 windows_path="$new_path" 31140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31141 unix_path=`$CYGPATH -u "$windows_path"` 31142 new_path="$unix_path" 31143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31145 new_path="$unix_path" 31146 fi 31147 31148 fi 31149 31150 if test "x$new_path" = x; then 31151 # It's still not found. Now this is an unrecoverable error. 31152 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31153 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31154 has_space=`$ECHO "$complete" | $GREP " "` 31155 if test "x$has_space" != x; then 31156 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31157 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31158 fi 31159 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31160 fi 31161 fi 31162 31163 # Now new_path has a complete unix path to the binary 31164 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31165 # Keep paths in /bin as-is, but remove trailing .exe if any 31166 new_path="${new_path/%.exe/}" 31167 # Do not save /bin paths to all_fixpath_prefixes! 31168 else 31169 # Not in mixed or Windows style, start by that. 31170 new_path=`cmd //c echo $new_path` 31171 31172 input_path="$new_path" 31173 # Check if we need to convert this using DOS-style short mode. If the path 31174 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31175 # take no chances and rewrite it. 31176 # Note: m4 eats our [], so we need to use [ and ] instead. 31177 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31178 if test "x$has_forbidden_chars" != x; then 31179 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31180 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31181 fi 31182 31183 # Output is in $new_path 31184 31185 windows_path="$new_path" 31186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31187 unix_path=`$CYGPATH -u "$windows_path"` 31188 new_path="$unix_path" 31189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31191 new_path="$unix_path" 31192 fi 31193 31194 # remove trailing .exe if any 31195 new_path="${new_path/%.exe/}" 31196 31197 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31198 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31199 fi 31200 31201 else 31202 # We're on a posix platform. Hooray! :) 31203 # First separate the path from the arguments. This will split at the first 31204 # space. 31205 complete="$LD" 31206 path="${complete%% *}" 31207 tmp="$complete EOL" 31208 arguments="${tmp#* }" 31209 31210 # Cannot rely on the command "which" here since it doesn't always work. 31211 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31212 if test -z "$is_absolute_path"; then 31213 # Path to executable is not absolute. Find it. 31214 IFS_save="$IFS" 31215 IFS=: 31216 for p in $PATH; do 31217 if test -f "$p/$path" && test -x "$p/$path"; then 31218 new_path="$p/$path" 31219 break 31220 fi 31221 done 31222 IFS="$IFS_save" 31223 else 31224 # This is an absolute path, we can use it without further modifications. 31225 new_path="$path" 31226 fi 31227 31228 if test "x$new_path" = x; then 31229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31230 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31231 has_space=`$ECHO "$complete" | $GREP " "` 31232 if test "x$has_space" != x; then 31233 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31234 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31235 fi 31236 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31237 fi 31238 fi 31239 31240 # Now join together the path and the arguments once again 31241 if test "x$arguments" != xEOL; then 31242 new_complete="$new_path ${arguments% *}" 31243 else 31244 new_complete="$new_path" 31245 fi 31246 31247 if test "x$complete" != "x$new_complete"; then 31248 LD="$new_complete" 31249 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 31250 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 31251 fi 31252 31253 # Verify that we indeed succeeded with this trick. 31254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 31255 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 31256 "$LD" --version > /dev/null 31257 if test $? -eq 0 ; then 31258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31259 $as_echo "no" >&6; } 31260 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 31261 else 31262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31263 $as_echo "yes" >&6; } 31264 fi 31265 LDCXX="$LD" 31266 else 31267 # All other toolchains use the compiler to link. 31268 LD="$CC" 31269 LDCXX="$CXX" 31270 fi 31271 31272 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 31273 31274 31275 # 31276 # Setup the assembler (AS) 31277 # 31278 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31279 # FIXME: should this really be solaris, or solstudio? 31280 31281 31282 # Publish this variable in the help. 31283 31284 31285 if test "x$AS" = x; then 31286 # The variable is not set by user, try to locate tool using the code snippet 31287 for ac_prog in as 31288 do 31289 # Extract the first word of "$ac_prog", so it can be a program name with args. 31290 set dummy $ac_prog; ac_word=$2 31291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31292 $as_echo_n "checking for $ac_word... " >&6; } 31293 if ${ac_cv_path_AS+:} false; then : 31294 $as_echo_n "(cached) " >&6 31295 else 31296 case $AS in 31297 [\\/]* | ?:[\\/]*) 31298 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31299 ;; 31300 *) 31301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31302 for as_dir in $PATH 31303 do 31304 IFS=$as_save_IFS 31305 test -z "$as_dir" && as_dir=. 31306 for ac_exec_ext in '' $ac_executable_extensions; do 31307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31308 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31310 break 2 31311 fi 31312 done 31313 done 31314 IFS=$as_save_IFS 31315 31316 ;; 31317 esac 31318 fi 31319 AS=$ac_cv_path_AS 31320 if test -n "$AS"; then 31321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31322 $as_echo "$AS" >&6; } 31323 else 31324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31325 $as_echo "no" >&6; } 31326 fi 31327 31328 31329 test -n "$AS" && break 31330 done 31331 31332 else 31333 # The variable is set, but is it from the command line or the environment? 31334 31335 # Try to remove the string !AS! from our list. 31336 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 31337 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31338 # If it failed, the variable was not from the command line. Ignore it, 31339 # but warn the user (except for BASH, which is always set by the calling BASH). 31340 if test "xAS" != xBASH; then 31341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 31342 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 31343 fi 31344 # Try to locate tool using the code snippet 31345 for ac_prog in as 31346 do 31347 # Extract the first word of "$ac_prog", so it can be a program name with args. 31348 set dummy $ac_prog; ac_word=$2 31349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31350 $as_echo_n "checking for $ac_word... " >&6; } 31351 if ${ac_cv_path_AS+:} false; then : 31352 $as_echo_n "(cached) " >&6 31353 else 31354 case $AS in 31355 [\\/]* | ?:[\\/]*) 31356 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31357 ;; 31358 *) 31359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31360 for as_dir in $PATH 31361 do 31362 IFS=$as_save_IFS 31363 test -z "$as_dir" && as_dir=. 31364 for ac_exec_ext in '' $ac_executable_extensions; do 31365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31366 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31368 break 2 31369 fi 31370 done 31371 done 31372 IFS=$as_save_IFS 31373 31374 ;; 31375 esac 31376 fi 31377 AS=$ac_cv_path_AS 31378 if test -n "$AS"; then 31379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31380 $as_echo "$AS" >&6; } 31381 else 31382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31383 $as_echo "no" >&6; } 31384 fi 31385 31386 31387 test -n "$AS" && break 31388 done 31389 31390 else 31391 # If it succeeded, then it was overridden by the user. We will use it 31392 # for the tool. 31393 31394 # First remove it from the list of overridden variables, so we can test 31395 # for unknown variables in the end. 31396 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31397 31398 # Check if the provided tool contains a complete path. 31399 tool_specified="$AS" 31400 tool_basename="${tool_specified##*/}" 31401 if test "x$tool_basename" = "x$tool_specified"; then 31402 # A command without a complete path is provided, search $PATH. 31403 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 31404 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 31405 # Extract the first word of "$tool_basename", so it can be a program name with args. 31406 set dummy $tool_basename; ac_word=$2 31407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31408 $as_echo_n "checking for $ac_word... " >&6; } 31409 if ${ac_cv_path_AS+:} false; then : 31410 $as_echo_n "(cached) " >&6 31411 else 31412 case $AS in 31413 [\\/]* | ?:[\\/]*) 31414 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31415 ;; 31416 *) 31417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31418 for as_dir in $PATH 31419 do 31420 IFS=$as_save_IFS 31421 test -z "$as_dir" && as_dir=. 31422 for ac_exec_ext in '' $ac_executable_extensions; do 31423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31424 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31426 break 2 31427 fi 31428 done 31429 done 31430 IFS=$as_save_IFS 31431 31432 ;; 31433 esac 31434 fi 31435 AS=$ac_cv_path_AS 31436 if test -n "$AS"; then 31437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31438 $as_echo "$AS" >&6; } 31439 else 31440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31441 $as_echo "no" >&6; } 31442 fi 31443 31444 31445 if test "x$AS" = x; then 31446 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31447 fi 31448 else 31449 # Otherwise we believe it is a complete path. Use it as it is. 31450 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 31451 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 31452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 31453 $as_echo_n "checking for AS... " >&6; } 31454 if test ! -x "$tool_specified"; then 31455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31456 $as_echo "not found" >&6; } 31457 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 31458 fi 31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31460 $as_echo "$tool_specified" >&6; } 31461 fi 31462 fi 31463 fi 31464 31465 31466 31467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31468 31469 # First separate the path from the arguments. This will split at the first 31470 # space. 31471 complete="$AS" 31472 path="${complete%% *}" 31473 tmp="$complete EOL" 31474 arguments="${tmp#* }" 31475 31476 # Input might be given as Windows format, start by converting to 31477 # unix format. 31478 new_path=`$CYGPATH -u "$path"` 31479 31480 # Now try to locate executable using which 31481 new_path=`$WHICH "$new_path" 2> /dev/null` 31482 # bat and cmd files are not always considered executable in cygwin causing which 31483 # to not find them 31484 if test "x$new_path" = x \ 31485 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31486 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31487 new_path=`$CYGPATH -u "$path"` 31488 fi 31489 if test "x$new_path" = x; then 31490 # Oops. Which didn't find the executable. 31491 # The splitting of arguments from the executable at a space might have been incorrect, 31492 # since paths with space are more likely in Windows. Give it another try with the whole 31493 # argument. 31494 path="$complete" 31495 arguments="EOL" 31496 new_path=`$CYGPATH -u "$path"` 31497 new_path=`$WHICH "$new_path" 2> /dev/null` 31498 # bat and cmd files are not always considered executable in cygwin causing which 31499 # to not find them 31500 if test "x$new_path" = x \ 31501 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31502 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31503 new_path=`$CYGPATH -u "$path"` 31504 fi 31505 if test "x$new_path" = x; then 31506 # It's still not found. Now this is an unrecoverable error. 31507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31508 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31509 has_space=`$ECHO "$complete" | $GREP " "` 31510 if test "x$has_space" != x; then 31511 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31512 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31513 fi 31514 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31515 fi 31516 fi 31517 31518 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31519 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31520 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31521 # "foo.exe" is OK but "foo" is an error. 31522 # 31523 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31524 # It is also a way to make sure we got the proper file name for the real test later on. 31525 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31526 if test "x$test_shortpath" = x; then 31527 # Short path failed, file does not exist as specified. 31528 # Try adding .exe or .cmd 31529 if test -f "${new_path}.exe"; then 31530 input_to_shortpath="${new_path}.exe" 31531 elif test -f "${new_path}.cmd"; then 31532 input_to_shortpath="${new_path}.cmd" 31533 else 31534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 31535 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 31536 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31537 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31538 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31539 fi 31540 else 31541 input_to_shortpath="$new_path" 31542 fi 31543 31544 # Call helper function which possibly converts this using DOS-style short mode. 31545 # If so, the updated path is stored in $new_path. 31546 new_path="$input_to_shortpath" 31547 31548 input_path="$input_to_shortpath" 31549 # Check if we need to convert this using DOS-style short mode. If the path 31550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31551 # take no chances and rewrite it. 31552 # Note: m4 eats our [], so we need to use [ and ] instead. 31553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31554 if test "x$has_forbidden_chars" != x; then 31555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31556 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31557 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31558 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31559 # Going to short mode and back again did indeed matter. Since short mode is 31560 # case insensitive, let's make it lowercase to improve readability. 31561 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31562 # Now convert it back to Unix-style (cygpath) 31563 input_path=`$CYGPATH -u "$shortmode_path"` 31564 new_path="$input_path" 31565 fi 31566 fi 31567 31568 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31569 if test "x$test_cygdrive_prefix" = x; then 31570 # As a simple fix, exclude /usr/bin since it's not a real path. 31571 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31572 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31573 # a path prefixed by /cygdrive for fixpath to work. 31574 new_path="$CYGWIN_ROOT_PATH$input_path" 31575 fi 31576 fi 31577 31578 # remove trailing .exe if any 31579 new_path="${new_path/%.exe/}" 31580 31581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31582 31583 # First separate the path from the arguments. This will split at the first 31584 # space. 31585 complete="$AS" 31586 path="${complete%% *}" 31587 tmp="$complete EOL" 31588 arguments="${tmp#* }" 31589 31590 # Input might be given as Windows format, start by converting to 31591 # unix format. 31592 new_path="$path" 31593 31594 windows_path="$new_path" 31595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31596 unix_path=`$CYGPATH -u "$windows_path"` 31597 new_path="$unix_path" 31598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31600 new_path="$unix_path" 31601 fi 31602 31603 31604 # Now try to locate executable using which 31605 new_path=`$WHICH "$new_path" 2> /dev/null` 31606 31607 if test "x$new_path" = x; then 31608 # Oops. Which didn't find the executable. 31609 # The splitting of arguments from the executable at a space might have been incorrect, 31610 # since paths with space are more likely in Windows. Give it another try with the whole 31611 # argument. 31612 path="$complete" 31613 arguments="EOL" 31614 new_path="$path" 31615 31616 windows_path="$new_path" 31617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31618 unix_path=`$CYGPATH -u "$windows_path"` 31619 new_path="$unix_path" 31620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31622 new_path="$unix_path" 31623 fi 31624 31625 31626 new_path=`$WHICH "$new_path" 2> /dev/null` 31627 # bat and cmd files are not always considered executable in MSYS causing which 31628 # to not find them 31629 if test "x$new_path" = x \ 31630 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31631 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31632 new_path="$path" 31633 31634 windows_path="$new_path" 31635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31636 unix_path=`$CYGPATH -u "$windows_path"` 31637 new_path="$unix_path" 31638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31640 new_path="$unix_path" 31641 fi 31642 31643 fi 31644 31645 if test "x$new_path" = x; then 31646 # It's still not found. Now this is an unrecoverable error. 31647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31648 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31649 has_space=`$ECHO "$complete" | $GREP " "` 31650 if test "x$has_space" != x; then 31651 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31652 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31653 fi 31654 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31655 fi 31656 fi 31657 31658 # Now new_path has a complete unix path to the binary 31659 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31660 # Keep paths in /bin as-is, but remove trailing .exe if any 31661 new_path="${new_path/%.exe/}" 31662 # Do not save /bin paths to all_fixpath_prefixes! 31663 else 31664 # Not in mixed or Windows style, start by that. 31665 new_path=`cmd //c echo $new_path` 31666 31667 input_path="$new_path" 31668 # Check if we need to convert this using DOS-style short mode. If the path 31669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31670 # take no chances and rewrite it. 31671 # Note: m4 eats our [], so we need to use [ and ] instead. 31672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31673 if test "x$has_forbidden_chars" != x; then 31674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31675 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31676 fi 31677 31678 # Output is in $new_path 31679 31680 windows_path="$new_path" 31681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31682 unix_path=`$CYGPATH -u "$windows_path"` 31683 new_path="$unix_path" 31684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31685 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31686 new_path="$unix_path" 31687 fi 31688 31689 # remove trailing .exe if any 31690 new_path="${new_path/%.exe/}" 31691 31692 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31693 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31694 fi 31695 31696 else 31697 # We're on a posix platform. Hooray! :) 31698 # First separate the path from the arguments. This will split at the first 31699 # space. 31700 complete="$AS" 31701 path="${complete%% *}" 31702 tmp="$complete EOL" 31703 arguments="${tmp#* }" 31704 31705 # Cannot rely on the command "which" here since it doesn't always work. 31706 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31707 if test -z "$is_absolute_path"; then 31708 # Path to executable is not absolute. Find it. 31709 IFS_save="$IFS" 31710 IFS=: 31711 for p in $PATH; do 31712 if test -f "$p/$path" && test -x "$p/$path"; then 31713 new_path="$p/$path" 31714 break 31715 fi 31716 done 31717 IFS="$IFS_save" 31718 else 31719 # This is an absolute path, we can use it without further modifications. 31720 new_path="$path" 31721 fi 31722 31723 if test "x$new_path" = x; then 31724 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31725 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31726 has_space=`$ECHO "$complete" | $GREP " "` 31727 if test "x$has_space" != x; then 31728 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31729 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31730 fi 31731 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31732 fi 31733 fi 31734 31735 # Now join together the path and the arguments once again 31736 if test "x$arguments" != xEOL; then 31737 new_complete="$new_path ${arguments% *}" 31738 else 31739 new_complete="$new_path" 31740 fi 31741 31742 if test "x$complete" != "x$new_complete"; then 31743 AS="$new_complete" 31744 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 31745 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 31746 fi 31747 31748 else 31749 # FIXME: is this correct for microsoft? 31750 AS="$CC -c" 31751 fi 31752 31753 31754 # 31755 # Setup the archiver (AR) 31756 # 31757 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31758 # The corresponding ar tool is lib.exe (used to create static libraries) 31759 # Extract the first word of "lib", so it can be a program name with args. 31760 set dummy lib; ac_word=$2 31761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31762 $as_echo_n "checking for $ac_word... " >&6; } 31763 if ${ac_cv_prog_AR+:} false; then : 31764 $as_echo_n "(cached) " >&6 31765 else 31766 if test -n "$AR"; then 31767 ac_cv_prog_AR="$AR" # Let the user override the test. 31768 else 31769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31770 for as_dir in $PATH 31771 do 31772 IFS=$as_save_IFS 31773 test -z "$as_dir" && as_dir=. 31774 for ac_exec_ext in '' $ac_executable_extensions; do 31775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31776 ac_cv_prog_AR="lib" 31777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31778 break 2 31779 fi 31780 done 31781 done 31782 IFS=$as_save_IFS 31783 31784 fi 31785 fi 31786 AR=$ac_cv_prog_AR 31787 if test -n "$AR"; then 31788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31789 $as_echo "$AR" >&6; } 31790 else 31791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31792 $as_echo "no" >&6; } 31793 fi 31794 31795 31796 else 31797 31798 31799 # Publish this variable in the help. 31800 31801 31802 if test "x$AR" = x; then 31803 # The variable is not set by user, try to locate tool using the code snippet 31804 if test -n "$ac_tool_prefix"; then 31805 for ac_prog in ar 31806 do 31807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31810 $as_echo_n "checking for $ac_word... " >&6; } 31811 if ${ac_cv_prog_AR+:} false; then : 31812 $as_echo_n "(cached) " >&6 31813 else 31814 if test -n "$AR"; then 31815 ac_cv_prog_AR="$AR" # Let the user override the test. 31816 else 31817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31818 for as_dir in $PATH 31819 do 31820 IFS=$as_save_IFS 31821 test -z "$as_dir" && as_dir=. 31822 for ac_exec_ext in '' $ac_executable_extensions; do 31823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31824 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 31825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31826 break 2 31827 fi 31828 done 31829 done 31830 IFS=$as_save_IFS 31831 31832 fi 31833 fi 31834 AR=$ac_cv_prog_AR 31835 if test -n "$AR"; then 31836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31837 $as_echo "$AR" >&6; } 31838 else 31839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31840 $as_echo "no" >&6; } 31841 fi 31842 31843 31844 test -n "$AR" && break 31845 done 31846 fi 31847 if test -z "$AR"; then 31848 ac_ct_AR=$AR 31849 for ac_prog in ar 31850 do 31851 # Extract the first word of "$ac_prog", so it can be a program name with args. 31852 set dummy $ac_prog; ac_word=$2 31853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31854 $as_echo_n "checking for $ac_word... " >&6; } 31855 if ${ac_cv_prog_ac_ct_AR+:} false; then : 31856 $as_echo_n "(cached) " >&6 31857 else 31858 if test -n "$ac_ct_AR"; then 31859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 31860 else 31861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31862 for as_dir in $PATH 31863 do 31864 IFS=$as_save_IFS 31865 test -z "$as_dir" && as_dir=. 31866 for ac_exec_ext in '' $ac_executable_extensions; do 31867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31868 ac_cv_prog_ac_ct_AR="$ac_prog" 31869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31870 break 2 31871 fi 31872 done 31873 done 31874 IFS=$as_save_IFS 31875 31876 fi 31877 fi 31878 ac_ct_AR=$ac_cv_prog_ac_ct_AR 31879 if test -n "$ac_ct_AR"; then 31880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 31881 $as_echo "$ac_ct_AR" >&6; } 31882 else 31883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31884 $as_echo "no" >&6; } 31885 fi 31886 31887 31888 test -n "$ac_ct_AR" && break 31889 done 31890 31891 if test "x$ac_ct_AR" = x; then 31892 AR="" 31893 else 31894 case $cross_compiling:$ac_tool_warned in 31895 yes:) 31896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31898 ac_tool_warned=yes ;; 31899 esac 31900 AR=$ac_ct_AR 31901 fi 31902 fi 31903 31904 else 31905 # The variable is set, but is it from the command line or the environment? 31906 31907 # Try to remove the string !AR! from our list. 31908 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 31909 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31910 # If it failed, the variable was not from the command line. Ignore it, 31911 # but warn the user (except for BASH, which is always set by the calling BASH). 31912 if test "xAR" != xBASH; then 31913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 31914 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 31915 fi 31916 # Try to locate tool using the code snippet 31917 if test -n "$ac_tool_prefix"; then 31918 for ac_prog in ar 31919 do 31920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31923 $as_echo_n "checking for $ac_word... " >&6; } 31924 if ${ac_cv_prog_AR+:} false; then : 31925 $as_echo_n "(cached) " >&6 31926 else 31927 if test -n "$AR"; then 31928 ac_cv_prog_AR="$AR" # Let the user override the test. 31929 else 31930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31931 for as_dir in $PATH 31932 do 31933 IFS=$as_save_IFS 31934 test -z "$as_dir" && as_dir=. 31935 for ac_exec_ext in '' $ac_executable_extensions; do 31936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31937 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 31938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31939 break 2 31940 fi 31941 done 31942 done 31943 IFS=$as_save_IFS 31944 31945 fi 31946 fi 31947 AR=$ac_cv_prog_AR 31948 if test -n "$AR"; then 31949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31950 $as_echo "$AR" >&6; } 31951 else 31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31953 $as_echo "no" >&6; } 31954 fi 31955 31956 31957 test -n "$AR" && break 31958 done 31959 fi 31960 if test -z "$AR"; then 31961 ac_ct_AR=$AR 31962 for ac_prog in ar 31963 do 31964 # Extract the first word of "$ac_prog", so it can be a program name with args. 31965 set dummy $ac_prog; ac_word=$2 31966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31967 $as_echo_n "checking for $ac_word... " >&6; } 31968 if ${ac_cv_prog_ac_ct_AR+:} false; then : 31969 $as_echo_n "(cached) " >&6 31970 else 31971 if test -n "$ac_ct_AR"; then 31972 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 31973 else 31974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31975 for as_dir in $PATH 31976 do 31977 IFS=$as_save_IFS 31978 test -z "$as_dir" && as_dir=. 31979 for ac_exec_ext in '' $ac_executable_extensions; do 31980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31981 ac_cv_prog_ac_ct_AR="$ac_prog" 31982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31983 break 2 31984 fi 31985 done 31986 done 31987 IFS=$as_save_IFS 31988 31989 fi 31990 fi 31991 ac_ct_AR=$ac_cv_prog_ac_ct_AR 31992 if test -n "$ac_ct_AR"; then 31993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 31994 $as_echo "$ac_ct_AR" >&6; } 31995 else 31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31997 $as_echo "no" >&6; } 31998 fi 31999 32000 32001 test -n "$ac_ct_AR" && break 32002 done 32003 32004 if test "x$ac_ct_AR" = x; then 32005 AR="" 32006 else 32007 case $cross_compiling:$ac_tool_warned in 32008 yes:) 32009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32011 ac_tool_warned=yes ;; 32012 esac 32013 AR=$ac_ct_AR 32014 fi 32015 fi 32016 32017 else 32018 # If it succeeded, then it was overridden by the user. We will use it 32019 # for the tool. 32020 32021 # First remove it from the list of overridden variables, so we can test 32022 # for unknown variables in the end. 32023 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32024 32025 # Check if the provided tool contains a complete path. 32026 tool_specified="$AR" 32027 tool_basename="${tool_specified##*/}" 32028 if test "x$tool_basename" = "x$tool_specified"; then 32029 # A command without a complete path is provided, search $PATH. 32030 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32031 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32032 # Extract the first word of "$tool_basename", so it can be a program name with args. 32033 set dummy $tool_basename; ac_word=$2 32034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32035 $as_echo_n "checking for $ac_word... " >&6; } 32036 if ${ac_cv_path_AR+:} false; then : 32037 $as_echo_n "(cached) " >&6 32038 else 32039 case $AR in 32040 [\\/]* | ?:[\\/]*) 32041 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32042 ;; 32043 *) 32044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32045 for as_dir in $PATH 32046 do 32047 IFS=$as_save_IFS 32048 test -z "$as_dir" && as_dir=. 32049 for ac_exec_ext in '' $ac_executable_extensions; do 32050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32051 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32053 break 2 32054 fi 32055 done 32056 done 32057 IFS=$as_save_IFS 32058 32059 ;; 32060 esac 32061 fi 32062 AR=$ac_cv_path_AR 32063 if test -n "$AR"; then 32064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32065 $as_echo "$AR" >&6; } 32066 else 32067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32068 $as_echo "no" >&6; } 32069 fi 32070 32071 32072 if test "x$AR" = x; then 32073 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32074 fi 32075 else 32076 # Otherwise we believe it is a complete path. Use it as it is. 32077 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32078 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32080 $as_echo_n "checking for AR... " >&6; } 32081 if test ! -x "$tool_specified"; then 32082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32083 $as_echo "not found" >&6; } 32084 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32085 fi 32086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32087 $as_echo "$tool_specified" >&6; } 32088 fi 32089 fi 32090 fi 32091 32092 32093 fi 32094 32095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32096 32097 # First separate the path from the arguments. This will split at the first 32098 # space. 32099 complete="$AR" 32100 path="${complete%% *}" 32101 tmp="$complete EOL" 32102 arguments="${tmp#* }" 32103 32104 # Input might be given as Windows format, start by converting to 32105 # unix format. 32106 new_path=`$CYGPATH -u "$path"` 32107 32108 # Now try to locate executable using which 32109 new_path=`$WHICH "$new_path" 2> /dev/null` 32110 # bat and cmd files are not always considered executable in cygwin causing which 32111 # to not find them 32112 if test "x$new_path" = x \ 32113 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32114 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32115 new_path=`$CYGPATH -u "$path"` 32116 fi 32117 if test "x$new_path" = x; then 32118 # Oops. Which didn't find the executable. 32119 # The splitting of arguments from the executable at a space might have been incorrect, 32120 # since paths with space are more likely in Windows. Give it another try with the whole 32121 # argument. 32122 path="$complete" 32123 arguments="EOL" 32124 new_path=`$CYGPATH -u "$path"` 32125 new_path=`$WHICH "$new_path" 2> /dev/null` 32126 # bat and cmd files are not always considered executable in cygwin causing which 32127 # to not find them 32128 if test "x$new_path" = x \ 32129 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32130 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32131 new_path=`$CYGPATH -u "$path"` 32132 fi 32133 if test "x$new_path" = x; then 32134 # It's still not found. Now this is an unrecoverable error. 32135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32136 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32137 has_space=`$ECHO "$complete" | $GREP " "` 32138 if test "x$has_space" != x; then 32139 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32140 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32141 fi 32142 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32143 fi 32144 fi 32145 32146 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32147 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32148 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32149 # "foo.exe" is OK but "foo" is an error. 32150 # 32151 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32152 # It is also a way to make sure we got the proper file name for the real test later on. 32153 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32154 if test "x$test_shortpath" = x; then 32155 # Short path failed, file does not exist as specified. 32156 # Try adding .exe or .cmd 32157 if test -f "${new_path}.exe"; then 32158 input_to_shortpath="${new_path}.exe" 32159 elif test -f "${new_path}.cmd"; then 32160 input_to_shortpath="${new_path}.cmd" 32161 else 32162 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32163 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32164 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32165 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32166 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32167 fi 32168 else 32169 input_to_shortpath="$new_path" 32170 fi 32171 32172 # Call helper function which possibly converts this using DOS-style short mode. 32173 # If so, the updated path is stored in $new_path. 32174 new_path="$input_to_shortpath" 32175 32176 input_path="$input_to_shortpath" 32177 # Check if we need to convert this using DOS-style short mode. If the path 32178 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32179 # take no chances and rewrite it. 32180 # Note: m4 eats our [], so we need to use [ and ] instead. 32181 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32182 if test "x$has_forbidden_chars" != x; then 32183 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32184 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32185 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32186 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32187 # Going to short mode and back again did indeed matter. Since short mode is 32188 # case insensitive, let's make it lowercase to improve readability. 32189 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32190 # Now convert it back to Unix-style (cygpath) 32191 input_path=`$CYGPATH -u "$shortmode_path"` 32192 new_path="$input_path" 32193 fi 32194 fi 32195 32196 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32197 if test "x$test_cygdrive_prefix" = x; then 32198 # As a simple fix, exclude /usr/bin since it's not a real path. 32199 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32200 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32201 # a path prefixed by /cygdrive for fixpath to work. 32202 new_path="$CYGWIN_ROOT_PATH$input_path" 32203 fi 32204 fi 32205 32206 # remove trailing .exe if any 32207 new_path="${new_path/%.exe/}" 32208 32209 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32210 32211 # First separate the path from the arguments. This will split at the first 32212 # space. 32213 complete="$AR" 32214 path="${complete%% *}" 32215 tmp="$complete EOL" 32216 arguments="${tmp#* }" 32217 32218 # Input might be given as Windows format, start by converting to 32219 # unix format. 32220 new_path="$path" 32221 32222 windows_path="$new_path" 32223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32224 unix_path=`$CYGPATH -u "$windows_path"` 32225 new_path="$unix_path" 32226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32228 new_path="$unix_path" 32229 fi 32230 32231 32232 # Now try to locate executable using which 32233 new_path=`$WHICH "$new_path" 2> /dev/null` 32234 32235 if test "x$new_path" = x; then 32236 # Oops. Which didn't find the executable. 32237 # The splitting of arguments from the executable at a space might have been incorrect, 32238 # since paths with space are more likely in Windows. Give it another try with the whole 32239 # argument. 32240 path="$complete" 32241 arguments="EOL" 32242 new_path="$path" 32243 32244 windows_path="$new_path" 32245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32246 unix_path=`$CYGPATH -u "$windows_path"` 32247 new_path="$unix_path" 32248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32249 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32250 new_path="$unix_path" 32251 fi 32252 32253 32254 new_path=`$WHICH "$new_path" 2> /dev/null` 32255 # bat and cmd files are not always considered executable in MSYS causing which 32256 # to not find them 32257 if test "x$new_path" = x \ 32258 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32259 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32260 new_path="$path" 32261 32262 windows_path="$new_path" 32263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32264 unix_path=`$CYGPATH -u "$windows_path"` 32265 new_path="$unix_path" 32266 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32267 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32268 new_path="$unix_path" 32269 fi 32270 32271 fi 32272 32273 if test "x$new_path" = x; then 32274 # It's still not found. Now this is an unrecoverable error. 32275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32276 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32277 has_space=`$ECHO "$complete" | $GREP " "` 32278 if test "x$has_space" != x; then 32279 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32280 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32281 fi 32282 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32283 fi 32284 fi 32285 32286 # Now new_path has a complete unix path to the binary 32287 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32288 # Keep paths in /bin as-is, but remove trailing .exe if any 32289 new_path="${new_path/%.exe/}" 32290 # Do not save /bin paths to all_fixpath_prefixes! 32291 else 32292 # Not in mixed or Windows style, start by that. 32293 new_path=`cmd //c echo $new_path` 32294 32295 input_path="$new_path" 32296 # Check if we need to convert this using DOS-style short mode. If the path 32297 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32298 # take no chances and rewrite it. 32299 # Note: m4 eats our [], so we need to use [ and ] instead. 32300 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32301 if test "x$has_forbidden_chars" != x; then 32302 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32303 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32304 fi 32305 32306 # Output is in $new_path 32307 32308 windows_path="$new_path" 32309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32310 unix_path=`$CYGPATH -u "$windows_path"` 32311 new_path="$unix_path" 32312 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32313 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32314 new_path="$unix_path" 32315 fi 32316 32317 # remove trailing .exe if any 32318 new_path="${new_path/%.exe/}" 32319 32320 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32321 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32322 fi 32323 32324 else 32325 # We're on a posix platform. Hooray! :) 32326 # First separate the path from the arguments. This will split at the first 32327 # space. 32328 complete="$AR" 32329 path="${complete%% *}" 32330 tmp="$complete EOL" 32331 arguments="${tmp#* }" 32332 32333 # Cannot rely on the command "which" here since it doesn't always work. 32334 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32335 if test -z "$is_absolute_path"; then 32336 # Path to executable is not absolute. Find it. 32337 IFS_save="$IFS" 32338 IFS=: 32339 for p in $PATH; do 32340 if test -f "$p/$path" && test -x "$p/$path"; then 32341 new_path="$p/$path" 32342 break 32343 fi 32344 done 32345 IFS="$IFS_save" 32346 else 32347 # This is an absolute path, we can use it without further modifications. 32348 new_path="$path" 32349 fi 32350 32351 if test "x$new_path" = x; then 32352 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32353 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32354 has_space=`$ECHO "$complete" | $GREP " "` 32355 if test "x$has_space" != x; then 32356 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32357 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32358 fi 32359 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32360 fi 32361 fi 32362 32363 # Now join together the path and the arguments once again 32364 if test "x$arguments" != xEOL; then 32365 new_complete="$new_path ${arguments% *}" 32366 else 32367 new_complete="$new_path" 32368 fi 32369 32370 if test "x$complete" != "x$new_complete"; then 32371 AR="$new_complete" 32372 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 32373 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 32374 fi 32375 32376 32377 32378 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 32379 ac_ext=m 32380 ac_cpp='$OBJCPP $CPPFLAGS' 32381 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32382 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32383 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 32384 if test -n "$ac_tool_prefix"; then 32385 for ac_prog in gcc objcc objc cc CC 32386 do 32387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32390 $as_echo_n "checking for $ac_word... " >&6; } 32391 if ${ac_cv_prog_OBJC+:} false; then : 32392 $as_echo_n "(cached) " >&6 32393 else 32394 if test -n "$OBJC"; then 32395 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 32396 else 32397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32398 for as_dir in $PATH 32399 do 32400 IFS=$as_save_IFS 32401 test -z "$as_dir" && as_dir=. 32402 for ac_exec_ext in '' $ac_executable_extensions; do 32403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32404 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 32405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32406 break 2 32407 fi 32408 done 32409 done 32410 IFS=$as_save_IFS 32411 32412 fi 32413 fi 32414 OBJC=$ac_cv_prog_OBJC 32415 if test -n "$OBJC"; then 32416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 32417 $as_echo "$OBJC" >&6; } 32418 else 32419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32420 $as_echo "no" >&6; } 32421 fi 32422 32423 32424 test -n "$OBJC" && break 32425 done 32426 fi 32427 if test -z "$OBJC"; then 32428 ac_ct_OBJC=$OBJC 32429 for ac_prog in gcc objcc objc cc CC 32430 do 32431 # Extract the first word of "$ac_prog", so it can be a program name with args. 32432 set dummy $ac_prog; ac_word=$2 32433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32434 $as_echo_n "checking for $ac_word... " >&6; } 32435 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 32436 $as_echo_n "(cached) " >&6 32437 else 32438 if test -n "$ac_ct_OBJC"; then 32439 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 32440 else 32441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32442 for as_dir in $PATH 32443 do 32444 IFS=$as_save_IFS 32445 test -z "$as_dir" && as_dir=. 32446 for ac_exec_ext in '' $ac_executable_extensions; do 32447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32448 ac_cv_prog_ac_ct_OBJC="$ac_prog" 32449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32450 break 2 32451 fi 32452 done 32453 done 32454 IFS=$as_save_IFS 32455 32456 fi 32457 fi 32458 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 32459 if test -n "$ac_ct_OBJC"; then 32460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 32461 $as_echo "$ac_ct_OBJC" >&6; } 32462 else 32463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32464 $as_echo "no" >&6; } 32465 fi 32466 32467 32468 test -n "$ac_ct_OBJC" && break 32469 done 32470 32471 if test "x$ac_ct_OBJC" = x; then 32472 OBJC="gcc" 32473 else 32474 case $cross_compiling:$ac_tool_warned in 32475 yes:) 32476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32478 ac_tool_warned=yes ;; 32479 esac 32480 OBJC=$ac_ct_OBJC 32481 fi 32482 fi 32483 32484 # Provide some information about the compiler. 32485 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 32486 set X $ac_compile 32487 ac_compiler=$2 32488 for ac_option in --version -v -V -qversion; do 32489 { { ac_try="$ac_compiler $ac_option >&5" 32490 case "(($ac_try" in 32491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32492 *) ac_try_echo=$ac_try;; 32493 esac 32494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32495 $as_echo "$ac_try_echo"; } >&5 32496 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32497 ac_status=$? 32498 if test -s conftest.err; then 32499 sed '10a\ 32500 ... rest of stderr output deleted ... 32501 10q' conftest.err >conftest.er1 32502 cat conftest.er1 >&5 32503 fi 32504 rm -f conftest.er1 conftest.err 32505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32506 test $ac_status = 0; } 32507 done 32508 32509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 32510 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 32511 if ${ac_cv_objc_compiler_gnu+:} false; then : 32512 $as_echo_n "(cached) " >&6 32513 else 32514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32515 /* end confdefs.h. */ 32516 32517 int 32518 main () 32519 { 32520 #ifndef __GNUC__ 32521 choke me 32522 #endif 32523 32524 ; 32525 return 0; 32526 } 32527 _ACEOF 32528 if ac_fn_objc_try_compile "$LINENO"; then : 32529 ac_compiler_gnu=yes 32530 else 32531 ac_compiler_gnu=no 32532 fi 32533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32534 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 32535 32536 fi 32537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 32538 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 32539 if test $ac_compiler_gnu = yes; then 32540 GOBJC=yes 32541 else 32542 GOBJC= 32543 fi 32544 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 32545 ac_save_OBJCFLAGS=$OBJCFLAGS 32546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 32547 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 32548 if ${ac_cv_prog_objc_g+:} false; then : 32549 $as_echo_n "(cached) " >&6 32550 else 32551 ac_save_objc_werror_flag=$ac_objc_werror_flag 32552 ac_objc_werror_flag=yes 32553 ac_cv_prog_objc_g=no 32554 OBJCFLAGS="-g" 32555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32556 /* end confdefs.h. */ 32557 32558 int 32559 main () 32560 { 32561 32562 ; 32563 return 0; 32564 } 32565 _ACEOF 32566 if ac_fn_objc_try_compile "$LINENO"; then : 32567 ac_cv_prog_objc_g=yes 32568 else 32569 OBJCFLAGS="" 32570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32571 /* end confdefs.h. */ 32572 32573 int 32574 main () 32575 { 32576 32577 ; 32578 return 0; 32579 } 32580 _ACEOF 32581 if ac_fn_objc_try_compile "$LINENO"; then : 32582 32583 else 32584 ac_objc_werror_flag=$ac_save_objc_werror_flag 32585 OBJCFLAGS="-g" 32586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32587 /* end confdefs.h. */ 32588 32589 int 32590 main () 32591 { 32592 32593 ; 32594 return 0; 32595 } 32596 _ACEOF 32597 if ac_fn_objc_try_compile "$LINENO"; then : 32598 ac_cv_prog_objc_g=yes 32599 fi 32600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32601 fi 32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32603 fi 32604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32605 ac_objc_werror_flag=$ac_save_objc_werror_flag 32606 fi 32607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 32608 $as_echo "$ac_cv_prog_objc_g" >&6; } 32609 if test "$ac_test_OBJCFLAGS" = set; then 32610 OBJCFLAGS=$ac_save_OBJCFLAGS 32611 elif test $ac_cv_prog_objc_g = yes; then 32612 if test "$GOBJC" = yes; then 32613 OBJCFLAGS="-g -O2" 32614 else 32615 OBJCFLAGS="-g" 32616 fi 32617 else 32618 if test "$GOBJC" = yes; then 32619 OBJCFLAGS="-O2" 32620 else 32621 OBJCFLAGS= 32622 fi 32623 fi 32624 ac_ext=cpp 32625 ac_cpp='$CXXCPP $CPPFLAGS' 32626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32629 32630 32631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32632 32633 # First separate the path from the arguments. This will split at the first 32634 # space. 32635 complete="$OBJC" 32636 path="${complete%% *}" 32637 tmp="$complete EOL" 32638 arguments="${tmp#* }" 32639 32640 # Input might be given as Windows format, start by converting to 32641 # unix format. 32642 new_path=`$CYGPATH -u "$path"` 32643 32644 # Now try to locate executable using which 32645 new_path=`$WHICH "$new_path" 2> /dev/null` 32646 # bat and cmd files are not always considered executable in cygwin causing which 32647 # to not find them 32648 if test "x$new_path" = x \ 32649 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32650 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32651 new_path=`$CYGPATH -u "$path"` 32652 fi 32653 if test "x$new_path" = x; then 32654 # Oops. Which didn't find the executable. 32655 # The splitting of arguments from the executable at a space might have been incorrect, 32656 # since paths with space are more likely in Windows. Give it another try with the whole 32657 # argument. 32658 path="$complete" 32659 arguments="EOL" 32660 new_path=`$CYGPATH -u "$path"` 32661 new_path=`$WHICH "$new_path" 2> /dev/null` 32662 # bat and cmd files are not always considered executable in cygwin causing which 32663 # to not find them 32664 if test "x$new_path" = x \ 32665 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32666 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32667 new_path=`$CYGPATH -u "$path"` 32668 fi 32669 if test "x$new_path" = x; then 32670 # It's still not found. Now this is an unrecoverable error. 32671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32672 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32673 has_space=`$ECHO "$complete" | $GREP " "` 32674 if test "x$has_space" != x; then 32675 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32676 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32677 fi 32678 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32679 fi 32680 fi 32681 32682 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32683 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32684 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32685 # "foo.exe" is OK but "foo" is an error. 32686 # 32687 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32688 # It is also a way to make sure we got the proper file name for the real test later on. 32689 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32690 if test "x$test_shortpath" = x; then 32691 # Short path failed, file does not exist as specified. 32692 # Try adding .exe or .cmd 32693 if test -f "${new_path}.exe"; then 32694 input_to_shortpath="${new_path}.exe" 32695 elif test -f "${new_path}.cmd"; then 32696 input_to_shortpath="${new_path}.cmd" 32697 else 32698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 32699 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 32700 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32701 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32702 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32703 fi 32704 else 32705 input_to_shortpath="$new_path" 32706 fi 32707 32708 # Call helper function which possibly converts this using DOS-style short mode. 32709 # If so, the updated path is stored in $new_path. 32710 new_path="$input_to_shortpath" 32711 32712 input_path="$input_to_shortpath" 32713 # Check if we need to convert this using DOS-style short mode. If the path 32714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32715 # take no chances and rewrite it. 32716 # Note: m4 eats our [], so we need to use [ and ] instead. 32717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32718 if test "x$has_forbidden_chars" != x; then 32719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32720 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32721 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32722 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32723 # Going to short mode and back again did indeed matter. Since short mode is 32724 # case insensitive, let's make it lowercase to improve readability. 32725 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32726 # Now convert it back to Unix-style (cygpath) 32727 input_path=`$CYGPATH -u "$shortmode_path"` 32728 new_path="$input_path" 32729 fi 32730 fi 32731 32732 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32733 if test "x$test_cygdrive_prefix" = x; then 32734 # As a simple fix, exclude /usr/bin since it's not a real path. 32735 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32736 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32737 # a path prefixed by /cygdrive for fixpath to work. 32738 new_path="$CYGWIN_ROOT_PATH$input_path" 32739 fi 32740 fi 32741 32742 # remove trailing .exe if any 32743 new_path="${new_path/%.exe/}" 32744 32745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32746 32747 # First separate the path from the arguments. This will split at the first 32748 # space. 32749 complete="$OBJC" 32750 path="${complete%% *}" 32751 tmp="$complete EOL" 32752 arguments="${tmp#* }" 32753 32754 # Input might be given as Windows format, start by converting to 32755 # unix format. 32756 new_path="$path" 32757 32758 windows_path="$new_path" 32759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32760 unix_path=`$CYGPATH -u "$windows_path"` 32761 new_path="$unix_path" 32762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32763 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32764 new_path="$unix_path" 32765 fi 32766 32767 32768 # Now try to locate executable using which 32769 new_path=`$WHICH "$new_path" 2> /dev/null` 32770 32771 if test "x$new_path" = x; then 32772 # Oops. Which didn't find the executable. 32773 # The splitting of arguments from the executable at a space might have been incorrect, 32774 # since paths with space are more likely in Windows. Give it another try with the whole 32775 # argument. 32776 path="$complete" 32777 arguments="EOL" 32778 new_path="$path" 32779 32780 windows_path="$new_path" 32781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32782 unix_path=`$CYGPATH -u "$windows_path"` 32783 new_path="$unix_path" 32784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32785 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32786 new_path="$unix_path" 32787 fi 32788 32789 32790 new_path=`$WHICH "$new_path" 2> /dev/null` 32791 # bat and cmd files are not always considered executable in MSYS causing which 32792 # to not find them 32793 if test "x$new_path" = x \ 32794 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32795 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32796 new_path="$path" 32797 32798 windows_path="$new_path" 32799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32800 unix_path=`$CYGPATH -u "$windows_path"` 32801 new_path="$unix_path" 32802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32804 new_path="$unix_path" 32805 fi 32806 32807 fi 32808 32809 if test "x$new_path" = x; then 32810 # It's still not found. Now this is an unrecoverable error. 32811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32812 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32813 has_space=`$ECHO "$complete" | $GREP " "` 32814 if test "x$has_space" != x; then 32815 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32816 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32817 fi 32818 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32819 fi 32820 fi 32821 32822 # Now new_path has a complete unix path to the binary 32823 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32824 # Keep paths in /bin as-is, but remove trailing .exe if any 32825 new_path="${new_path/%.exe/}" 32826 # Do not save /bin paths to all_fixpath_prefixes! 32827 else 32828 # Not in mixed or Windows style, start by that. 32829 new_path=`cmd //c echo $new_path` 32830 32831 input_path="$new_path" 32832 # Check if we need to convert this using DOS-style short mode. If the path 32833 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32834 # take no chances and rewrite it. 32835 # Note: m4 eats our [], so we need to use [ and ] instead. 32836 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32837 if test "x$has_forbidden_chars" != x; then 32838 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32839 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32840 fi 32841 32842 # Output is in $new_path 32843 32844 windows_path="$new_path" 32845 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32846 unix_path=`$CYGPATH -u "$windows_path"` 32847 new_path="$unix_path" 32848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32849 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32850 new_path="$unix_path" 32851 fi 32852 32853 # remove trailing .exe if any 32854 new_path="${new_path/%.exe/}" 32855 32856 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32857 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32858 fi 32859 32860 else 32861 # We're on a posix platform. Hooray! :) 32862 # First separate the path from the arguments. This will split at the first 32863 # space. 32864 complete="$OBJC" 32865 path="${complete%% *}" 32866 tmp="$complete EOL" 32867 arguments="${tmp#* }" 32868 32869 # Cannot rely on the command "which" here since it doesn't always work. 32870 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32871 if test -z "$is_absolute_path"; then 32872 # Path to executable is not absolute. Find it. 32873 IFS_save="$IFS" 32874 IFS=: 32875 for p in $PATH; do 32876 if test -f "$p/$path" && test -x "$p/$path"; then 32877 new_path="$p/$path" 32878 break 32879 fi 32880 done 32881 IFS="$IFS_save" 32882 else 32883 # This is an absolute path, we can use it without further modifications. 32884 new_path="$path" 32885 fi 32886 32887 if test "x$new_path" = x; then 32888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32889 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32890 has_space=`$ECHO "$complete" | $GREP " "` 32891 if test "x$has_space" != x; then 32892 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32893 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32894 fi 32895 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32896 fi 32897 fi 32898 32899 # Now join together the path and the arguments once again 32900 if test "x$arguments" != xEOL; then 32901 new_complete="$new_path ${arguments% *}" 32902 else 32903 new_complete="$new_path" 32904 fi 32905 32906 if test "x$complete" != "x$new_complete"; then 32907 OBJC="$new_complete" 32908 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 32909 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 32910 fi 32911 32912 32913 32914 # Publish this variable in the help. 32915 32916 32917 if test "x$LIPO" = x; then 32918 # The variable is not set by user, try to locate tool using the code snippet 32919 for ac_prog in lipo 32920 do 32921 # Extract the first word of "$ac_prog", so it can be a program name with args. 32922 set dummy $ac_prog; ac_word=$2 32923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32924 $as_echo_n "checking for $ac_word... " >&6; } 32925 if ${ac_cv_path_LIPO+:} false; then : 32926 $as_echo_n "(cached) " >&6 32927 else 32928 case $LIPO in 32929 [\\/]* | ?:[\\/]*) 32930 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32931 ;; 32932 *) 32933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32934 for as_dir in $PATH 32935 do 32936 IFS=$as_save_IFS 32937 test -z "$as_dir" && as_dir=. 32938 for ac_exec_ext in '' $ac_executable_extensions; do 32939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32940 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 32941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32942 break 2 32943 fi 32944 done 32945 done 32946 IFS=$as_save_IFS 32947 32948 ;; 32949 esac 32950 fi 32951 LIPO=$ac_cv_path_LIPO 32952 if test -n "$LIPO"; then 32953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 32954 $as_echo "$LIPO" >&6; } 32955 else 32956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32957 $as_echo "no" >&6; } 32958 fi 32959 32960 32961 test -n "$LIPO" && break 32962 done 32963 32964 else 32965 # The variable is set, but is it from the command line or the environment? 32966 32967 # Try to remove the string !LIPO! from our list. 32968 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 32969 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32970 # If it failed, the variable was not from the command line. Ignore it, 32971 # but warn the user (except for BASH, which is always set by the calling BASH). 32972 if test "xLIPO" != xBASH; then 32973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 32974 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 32975 fi 32976 # Try to locate tool using the code snippet 32977 for ac_prog in lipo 32978 do 32979 # Extract the first word of "$ac_prog", so it can be a program name with args. 32980 set dummy $ac_prog; ac_word=$2 32981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32982 $as_echo_n "checking for $ac_word... " >&6; } 32983 if ${ac_cv_path_LIPO+:} false; then : 32984 $as_echo_n "(cached) " >&6 32985 else 32986 case $LIPO in 32987 [\\/]* | ?:[\\/]*) 32988 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32989 ;; 32990 *) 32991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32992 for as_dir in $PATH 32993 do 32994 IFS=$as_save_IFS 32995 test -z "$as_dir" && as_dir=. 32996 for ac_exec_ext in '' $ac_executable_extensions; do 32997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32998 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 32999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33000 break 2 33001 fi 33002 done 33003 done 33004 IFS=$as_save_IFS 33005 33006 ;; 33007 esac 33008 fi 33009 LIPO=$ac_cv_path_LIPO 33010 if test -n "$LIPO"; then 33011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33012 $as_echo "$LIPO" >&6; } 33013 else 33014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33015 $as_echo "no" >&6; } 33016 fi 33017 33018 33019 test -n "$LIPO" && break 33020 done 33021 33022 else 33023 # If it succeeded, then it was overridden by the user. We will use it 33024 # for the tool. 33025 33026 # First remove it from the list of overridden variables, so we can test 33027 # for unknown variables in the end. 33028 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33029 33030 # Check if the provided tool contains a complete path. 33031 tool_specified="$LIPO" 33032 tool_basename="${tool_specified##*/}" 33033 if test "x$tool_basename" = "x$tool_specified"; then 33034 # A command without a complete path is provided, search $PATH. 33035 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33036 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33037 # Extract the first word of "$tool_basename", so it can be a program name with args. 33038 set dummy $tool_basename; ac_word=$2 33039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33040 $as_echo_n "checking for $ac_word... " >&6; } 33041 if ${ac_cv_path_LIPO+:} false; then : 33042 $as_echo_n "(cached) " >&6 33043 else 33044 case $LIPO in 33045 [\\/]* | ?:[\\/]*) 33046 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33047 ;; 33048 *) 33049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33050 for as_dir in $PATH 33051 do 33052 IFS=$as_save_IFS 33053 test -z "$as_dir" && as_dir=. 33054 for ac_exec_ext in '' $ac_executable_extensions; do 33055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33056 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33058 break 2 33059 fi 33060 done 33061 done 33062 IFS=$as_save_IFS 33063 33064 ;; 33065 esac 33066 fi 33067 LIPO=$ac_cv_path_LIPO 33068 if test -n "$LIPO"; then 33069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33070 $as_echo "$LIPO" >&6; } 33071 else 33072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33073 $as_echo "no" >&6; } 33074 fi 33075 33076 33077 if test "x$LIPO" = x; then 33078 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33079 fi 33080 else 33081 # Otherwise we believe it is a complete path. Use it as it is. 33082 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33083 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33085 $as_echo_n "checking for LIPO... " >&6; } 33086 if test ! -x "$tool_specified"; then 33087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33088 $as_echo "not found" >&6; } 33089 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33090 fi 33091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33092 $as_echo "$tool_specified" >&6; } 33093 fi 33094 fi 33095 fi 33096 33097 33098 33099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33100 33101 # First separate the path from the arguments. This will split at the first 33102 # space. 33103 complete="$LIPO" 33104 path="${complete%% *}" 33105 tmp="$complete EOL" 33106 arguments="${tmp#* }" 33107 33108 # Input might be given as Windows format, start by converting to 33109 # unix format. 33110 new_path=`$CYGPATH -u "$path"` 33111 33112 # Now try to locate executable using which 33113 new_path=`$WHICH "$new_path" 2> /dev/null` 33114 # bat and cmd files are not always considered executable in cygwin causing which 33115 # to not find them 33116 if test "x$new_path" = x \ 33117 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33118 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33119 new_path=`$CYGPATH -u "$path"` 33120 fi 33121 if test "x$new_path" = x; then 33122 # Oops. Which didn't find the executable. 33123 # The splitting of arguments from the executable at a space might have been incorrect, 33124 # since paths with space are more likely in Windows. Give it another try with the whole 33125 # argument. 33126 path="$complete" 33127 arguments="EOL" 33128 new_path=`$CYGPATH -u "$path"` 33129 new_path=`$WHICH "$new_path" 2> /dev/null` 33130 # bat and cmd files are not always considered executable in cygwin causing which 33131 # to not find them 33132 if test "x$new_path" = x \ 33133 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33134 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33135 new_path=`$CYGPATH -u "$path"` 33136 fi 33137 if test "x$new_path" = x; then 33138 # It's still not found. Now this is an unrecoverable error. 33139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33140 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33141 has_space=`$ECHO "$complete" | $GREP " "` 33142 if test "x$has_space" != x; then 33143 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33144 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33145 fi 33146 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33147 fi 33148 fi 33149 33150 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33151 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33152 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33153 # "foo.exe" is OK but "foo" is an error. 33154 # 33155 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33156 # It is also a way to make sure we got the proper file name for the real test later on. 33157 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33158 if test "x$test_shortpath" = x; then 33159 # Short path failed, file does not exist as specified. 33160 # Try adding .exe or .cmd 33161 if test -f "${new_path}.exe"; then 33162 input_to_shortpath="${new_path}.exe" 33163 elif test -f "${new_path}.cmd"; then 33164 input_to_shortpath="${new_path}.cmd" 33165 else 33166 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33167 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33168 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33169 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33170 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33171 fi 33172 else 33173 input_to_shortpath="$new_path" 33174 fi 33175 33176 # Call helper function which possibly converts this using DOS-style short mode. 33177 # If so, the updated path is stored in $new_path. 33178 new_path="$input_to_shortpath" 33179 33180 input_path="$input_to_shortpath" 33181 # Check if we need to convert this using DOS-style short mode. If the path 33182 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33183 # take no chances and rewrite it. 33184 # Note: m4 eats our [], so we need to use [ and ] instead. 33185 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33186 if test "x$has_forbidden_chars" != x; then 33187 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33188 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33189 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33190 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33191 # Going to short mode and back again did indeed matter. Since short mode is 33192 # case insensitive, let's make it lowercase to improve readability. 33193 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33194 # Now convert it back to Unix-style (cygpath) 33195 input_path=`$CYGPATH -u "$shortmode_path"` 33196 new_path="$input_path" 33197 fi 33198 fi 33199 33200 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33201 if test "x$test_cygdrive_prefix" = x; then 33202 # As a simple fix, exclude /usr/bin since it's not a real path. 33203 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33204 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33205 # a path prefixed by /cygdrive for fixpath to work. 33206 new_path="$CYGWIN_ROOT_PATH$input_path" 33207 fi 33208 fi 33209 33210 # remove trailing .exe if any 33211 new_path="${new_path/%.exe/}" 33212 33213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33214 33215 # First separate the path from the arguments. This will split at the first 33216 # space. 33217 complete="$LIPO" 33218 path="${complete%% *}" 33219 tmp="$complete EOL" 33220 arguments="${tmp#* }" 33221 33222 # Input might be given as Windows format, start by converting to 33223 # unix format. 33224 new_path="$path" 33225 33226 windows_path="$new_path" 33227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33228 unix_path=`$CYGPATH -u "$windows_path"` 33229 new_path="$unix_path" 33230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33231 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33232 new_path="$unix_path" 33233 fi 33234 33235 33236 # Now try to locate executable using which 33237 new_path=`$WHICH "$new_path" 2> /dev/null` 33238 33239 if test "x$new_path" = x; then 33240 # Oops. Which didn't find the executable. 33241 # The splitting of arguments from the executable at a space might have been incorrect, 33242 # since paths with space are more likely in Windows. Give it another try with the whole 33243 # argument. 33244 path="$complete" 33245 arguments="EOL" 33246 new_path="$path" 33247 33248 windows_path="$new_path" 33249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33250 unix_path=`$CYGPATH -u "$windows_path"` 33251 new_path="$unix_path" 33252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33254 new_path="$unix_path" 33255 fi 33256 33257 33258 new_path=`$WHICH "$new_path" 2> /dev/null` 33259 # bat and cmd files are not always considered executable in MSYS causing which 33260 # to not find them 33261 if test "x$new_path" = x \ 33262 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33263 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33264 new_path="$path" 33265 33266 windows_path="$new_path" 33267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33268 unix_path=`$CYGPATH -u "$windows_path"` 33269 new_path="$unix_path" 33270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33272 new_path="$unix_path" 33273 fi 33274 33275 fi 33276 33277 if test "x$new_path" = x; then 33278 # It's still not found. Now this is an unrecoverable error. 33279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33280 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33281 has_space=`$ECHO "$complete" | $GREP " "` 33282 if test "x$has_space" != x; then 33283 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33284 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33285 fi 33286 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33287 fi 33288 fi 33289 33290 # Now new_path has a complete unix path to the binary 33291 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33292 # Keep paths in /bin as-is, but remove trailing .exe if any 33293 new_path="${new_path/%.exe/}" 33294 # Do not save /bin paths to all_fixpath_prefixes! 33295 else 33296 # Not in mixed or Windows style, start by that. 33297 new_path=`cmd //c echo $new_path` 33298 33299 input_path="$new_path" 33300 # Check if we need to convert this using DOS-style short mode. If the path 33301 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33302 # take no chances and rewrite it. 33303 # Note: m4 eats our [], so we need to use [ and ] instead. 33304 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33305 if test "x$has_forbidden_chars" != x; then 33306 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33307 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33308 fi 33309 33310 # Output is in $new_path 33311 33312 windows_path="$new_path" 33313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33314 unix_path=`$CYGPATH -u "$windows_path"` 33315 new_path="$unix_path" 33316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33318 new_path="$unix_path" 33319 fi 33320 33321 # remove trailing .exe if any 33322 new_path="${new_path/%.exe/}" 33323 33324 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33325 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33326 fi 33327 33328 else 33329 # We're on a posix platform. Hooray! :) 33330 # First separate the path from the arguments. This will split at the first 33331 # space. 33332 complete="$LIPO" 33333 path="${complete%% *}" 33334 tmp="$complete EOL" 33335 arguments="${tmp#* }" 33336 33337 # Cannot rely on the command "which" here since it doesn't always work. 33338 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33339 if test -z "$is_absolute_path"; then 33340 # Path to executable is not absolute. Find it. 33341 IFS_save="$IFS" 33342 IFS=: 33343 for p in $PATH; do 33344 if test -f "$p/$path" && test -x "$p/$path"; then 33345 new_path="$p/$path" 33346 break 33347 fi 33348 done 33349 IFS="$IFS_save" 33350 else 33351 # This is an absolute path, we can use it without further modifications. 33352 new_path="$path" 33353 fi 33354 33355 if test "x$new_path" = x; then 33356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33357 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33358 has_space=`$ECHO "$complete" | $GREP " "` 33359 if test "x$has_space" != x; then 33360 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33361 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33362 fi 33363 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33364 fi 33365 fi 33366 33367 # Now join together the path and the arguments once again 33368 if test "x$arguments" != xEOL; then 33369 new_complete="$new_path ${arguments% *}" 33370 else 33371 new_complete="$new_path" 33372 fi 33373 33374 if test "x$complete" != "x$new_complete"; then 33375 LIPO="$new_complete" 33376 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 33377 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 33378 fi 33379 33380 else 33381 OBJC= 33382 fi 33383 33384 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33385 # Extract the first word of "mt", so it can be a program name with args. 33386 set dummy mt; ac_word=$2 33387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33388 $as_echo_n "checking for $ac_word... " >&6; } 33389 if ${ac_cv_prog_MT+:} false; then : 33390 $as_echo_n "(cached) " >&6 33391 else 33392 if test -n "$MT"; then 33393 ac_cv_prog_MT="$MT" # Let the user override the test. 33394 else 33395 ac_prog_rejected=no 33396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33397 for as_dir in $PATH 33398 do 33399 IFS=$as_save_IFS 33400 test -z "$as_dir" && as_dir=. 33401 for ac_exec_ext in '' $ac_executable_extensions; do 33402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33403 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 33404 ac_prog_rejected=yes 33405 continue 33406 fi 33407 ac_cv_prog_MT="mt" 33408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33409 break 2 33410 fi 33411 done 33412 done 33413 IFS=$as_save_IFS 33414 33415 if test $ac_prog_rejected = yes; then 33416 # We found a bogon in the path, so make sure we never use it. 33417 set dummy $ac_cv_prog_MT 33418 shift 33419 if test $# != 0; then 33420 # We chose a different compiler from the bogus one. 33421 # However, it has the same basename, so the bogon will be chosen 33422 # first if we set MT to just the basename; use the full file name. 33423 shift 33424 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 33425 fi 33426 fi 33427 fi 33428 fi 33429 MT=$ac_cv_prog_MT 33430 if test -n "$MT"; then 33431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 33432 $as_echo "$MT" >&6; } 33433 else 33434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33435 $as_echo "no" >&6; } 33436 fi 33437 33438 33439 33440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33441 33442 # First separate the path from the arguments. This will split at the first 33443 # space. 33444 complete="$MT" 33445 path="${complete%% *}" 33446 tmp="$complete EOL" 33447 arguments="${tmp#* }" 33448 33449 # Input might be given as Windows format, start by converting to 33450 # unix format. 33451 new_path=`$CYGPATH -u "$path"` 33452 33453 # Now try to locate executable using which 33454 new_path=`$WHICH "$new_path" 2> /dev/null` 33455 # bat and cmd files are not always considered executable in cygwin causing which 33456 # to not find them 33457 if test "x$new_path" = x \ 33458 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33459 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33460 new_path=`$CYGPATH -u "$path"` 33461 fi 33462 if test "x$new_path" = x; then 33463 # Oops. Which didn't find the executable. 33464 # The splitting of arguments from the executable at a space might have been incorrect, 33465 # since paths with space are more likely in Windows. Give it another try with the whole 33466 # argument. 33467 path="$complete" 33468 arguments="EOL" 33469 new_path=`$CYGPATH -u "$path"` 33470 new_path=`$WHICH "$new_path" 2> /dev/null` 33471 # bat and cmd files are not always considered executable in cygwin causing which 33472 # to not find them 33473 if test "x$new_path" = x \ 33474 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33475 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33476 new_path=`$CYGPATH -u "$path"` 33477 fi 33478 if test "x$new_path" = x; then 33479 # It's still not found. Now this is an unrecoverable error. 33480 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33481 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33482 has_space=`$ECHO "$complete" | $GREP " "` 33483 if test "x$has_space" != x; then 33484 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33485 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33486 fi 33487 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33488 fi 33489 fi 33490 33491 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33492 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33493 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33494 # "foo.exe" is OK but "foo" is an error. 33495 # 33496 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33497 # It is also a way to make sure we got the proper file name for the real test later on. 33498 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33499 if test "x$test_shortpath" = x; then 33500 # Short path failed, file does not exist as specified. 33501 # Try adding .exe or .cmd 33502 if test -f "${new_path}.exe"; then 33503 input_to_shortpath="${new_path}.exe" 33504 elif test -f "${new_path}.cmd"; then 33505 input_to_shortpath="${new_path}.cmd" 33506 else 33507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 33508 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 33509 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33510 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33511 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33512 fi 33513 else 33514 input_to_shortpath="$new_path" 33515 fi 33516 33517 # Call helper function which possibly converts this using DOS-style short mode. 33518 # If so, the updated path is stored in $new_path. 33519 new_path="$input_to_shortpath" 33520 33521 input_path="$input_to_shortpath" 33522 # Check if we need to convert this using DOS-style short mode. If the path 33523 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33524 # take no chances and rewrite it. 33525 # Note: m4 eats our [], so we need to use [ and ] instead. 33526 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33527 if test "x$has_forbidden_chars" != x; then 33528 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33529 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33530 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33531 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33532 # Going to short mode and back again did indeed matter. Since short mode is 33533 # case insensitive, let's make it lowercase to improve readability. 33534 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33535 # Now convert it back to Unix-style (cygpath) 33536 input_path=`$CYGPATH -u "$shortmode_path"` 33537 new_path="$input_path" 33538 fi 33539 fi 33540 33541 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33542 if test "x$test_cygdrive_prefix" = x; then 33543 # As a simple fix, exclude /usr/bin since it's not a real path. 33544 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33545 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33546 # a path prefixed by /cygdrive for fixpath to work. 33547 new_path="$CYGWIN_ROOT_PATH$input_path" 33548 fi 33549 fi 33550 33551 # remove trailing .exe if any 33552 new_path="${new_path/%.exe/}" 33553 33554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33555 33556 # First separate the path from the arguments. This will split at the first 33557 # space. 33558 complete="$MT" 33559 path="${complete%% *}" 33560 tmp="$complete EOL" 33561 arguments="${tmp#* }" 33562 33563 # Input might be given as Windows format, start by converting to 33564 # unix format. 33565 new_path="$path" 33566 33567 windows_path="$new_path" 33568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33569 unix_path=`$CYGPATH -u "$windows_path"` 33570 new_path="$unix_path" 33571 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33572 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33573 new_path="$unix_path" 33574 fi 33575 33576 33577 # Now try to locate executable using which 33578 new_path=`$WHICH "$new_path" 2> /dev/null` 33579 33580 if test "x$new_path" = x; then 33581 # Oops. Which didn't find the executable. 33582 # The splitting of arguments from the executable at a space might have been incorrect, 33583 # since paths with space are more likely in Windows. Give it another try with the whole 33584 # argument. 33585 path="$complete" 33586 arguments="EOL" 33587 new_path="$path" 33588 33589 windows_path="$new_path" 33590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33591 unix_path=`$CYGPATH -u "$windows_path"` 33592 new_path="$unix_path" 33593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33594 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33595 new_path="$unix_path" 33596 fi 33597 33598 33599 new_path=`$WHICH "$new_path" 2> /dev/null` 33600 # bat and cmd files are not always considered executable in MSYS causing which 33601 # to not find them 33602 if test "x$new_path" = x \ 33603 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33604 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33605 new_path="$path" 33606 33607 windows_path="$new_path" 33608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33609 unix_path=`$CYGPATH -u "$windows_path"` 33610 new_path="$unix_path" 33611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33613 new_path="$unix_path" 33614 fi 33615 33616 fi 33617 33618 if test "x$new_path" = x; then 33619 # It's still not found. Now this is an unrecoverable error. 33620 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33621 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33622 has_space=`$ECHO "$complete" | $GREP " "` 33623 if test "x$has_space" != x; then 33624 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33625 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33626 fi 33627 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33628 fi 33629 fi 33630 33631 # Now new_path has a complete unix path to the binary 33632 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33633 # Keep paths in /bin as-is, but remove trailing .exe if any 33634 new_path="${new_path/%.exe/}" 33635 # Do not save /bin paths to all_fixpath_prefixes! 33636 else 33637 # Not in mixed or Windows style, start by that. 33638 new_path=`cmd //c echo $new_path` 33639 33640 input_path="$new_path" 33641 # Check if we need to convert this using DOS-style short mode. If the path 33642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33643 # take no chances and rewrite it. 33644 # Note: m4 eats our [], so we need to use [ and ] instead. 33645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33646 if test "x$has_forbidden_chars" != x; then 33647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33648 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33649 fi 33650 33651 # Output is in $new_path 33652 33653 windows_path="$new_path" 33654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33655 unix_path=`$CYGPATH -u "$windows_path"` 33656 new_path="$unix_path" 33657 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33658 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33659 new_path="$unix_path" 33660 fi 33661 33662 # remove trailing .exe if any 33663 new_path="${new_path/%.exe/}" 33664 33665 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33666 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33667 fi 33668 33669 else 33670 # We're on a posix platform. Hooray! :) 33671 # First separate the path from the arguments. This will split at the first 33672 # space. 33673 complete="$MT" 33674 path="${complete%% *}" 33675 tmp="$complete EOL" 33676 arguments="${tmp#* }" 33677 33678 # Cannot rely on the command "which" here since it doesn't always work. 33679 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33680 if test -z "$is_absolute_path"; then 33681 # Path to executable is not absolute. Find it. 33682 IFS_save="$IFS" 33683 IFS=: 33684 for p in $PATH; do 33685 if test -f "$p/$path" && test -x "$p/$path"; then 33686 new_path="$p/$path" 33687 break 33688 fi 33689 done 33690 IFS="$IFS_save" 33691 else 33692 # This is an absolute path, we can use it without further modifications. 33693 new_path="$path" 33694 fi 33695 33696 if test "x$new_path" = x; then 33697 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33698 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33699 has_space=`$ECHO "$complete" | $GREP " "` 33700 if test "x$has_space" != x; then 33701 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33702 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33703 fi 33704 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33705 fi 33706 fi 33707 33708 # Now join together the path and the arguments once again 33709 if test "x$arguments" != xEOL; then 33710 new_complete="$new_path ${arguments% *}" 33711 else 33712 new_complete="$new_path" 33713 fi 33714 33715 if test "x$complete" != "x$new_complete"; then 33716 MT="$new_complete" 33717 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 33718 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 33719 fi 33720 33721 # Setup the resource compiler (RC) 33722 # Extract the first word of "rc", so it can be a program name with args. 33723 set dummy rc; ac_word=$2 33724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33725 $as_echo_n "checking for $ac_word... " >&6; } 33726 if ${ac_cv_prog_RC+:} false; then : 33727 $as_echo_n "(cached) " >&6 33728 else 33729 if test -n "$RC"; then 33730 ac_cv_prog_RC="$RC" # Let the user override the test. 33731 else 33732 ac_prog_rejected=no 33733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33734 for as_dir in $PATH 33735 do 33736 IFS=$as_save_IFS 33737 test -z "$as_dir" && as_dir=. 33738 for ac_exec_ext in '' $ac_executable_extensions; do 33739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 33741 ac_prog_rejected=yes 33742 continue 33743 fi 33744 ac_cv_prog_RC="rc" 33745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33746 break 2 33747 fi 33748 done 33749 done 33750 IFS=$as_save_IFS 33751 33752 if test $ac_prog_rejected = yes; then 33753 # We found a bogon in the path, so make sure we never use it. 33754 set dummy $ac_cv_prog_RC 33755 shift 33756 if test $# != 0; then 33757 # We chose a different compiler from the bogus one. 33758 # However, it has the same basename, so the bogon will be chosen 33759 # first if we set RC to just the basename; use the full file name. 33760 shift 33761 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 33762 fi 33763 fi 33764 fi 33765 fi 33766 RC=$ac_cv_prog_RC 33767 if test -n "$RC"; then 33768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 33769 $as_echo "$RC" >&6; } 33770 else 33771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33772 $as_echo "no" >&6; } 33773 fi 33774 33775 33776 33777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33778 33779 # First separate the path from the arguments. This will split at the first 33780 # space. 33781 complete="$RC" 33782 path="${complete%% *}" 33783 tmp="$complete EOL" 33784 arguments="${tmp#* }" 33785 33786 # Input might be given as Windows format, start by converting to 33787 # unix format. 33788 new_path=`$CYGPATH -u "$path"` 33789 33790 # Now try to locate executable using which 33791 new_path=`$WHICH "$new_path" 2> /dev/null` 33792 # bat and cmd files are not always considered executable in cygwin causing which 33793 # to not find them 33794 if test "x$new_path" = x \ 33795 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33796 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33797 new_path=`$CYGPATH -u "$path"` 33798 fi 33799 if test "x$new_path" = x; then 33800 # Oops. Which didn't find the executable. 33801 # The splitting of arguments from the executable at a space might have been incorrect, 33802 # since paths with space are more likely in Windows. Give it another try with the whole 33803 # argument. 33804 path="$complete" 33805 arguments="EOL" 33806 new_path=`$CYGPATH -u "$path"` 33807 new_path=`$WHICH "$new_path" 2> /dev/null` 33808 # bat and cmd files are not always considered executable in cygwin causing which 33809 # to not find them 33810 if test "x$new_path" = x \ 33811 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33812 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33813 new_path=`$CYGPATH -u "$path"` 33814 fi 33815 if test "x$new_path" = x; then 33816 # It's still not found. Now this is an unrecoverable error. 33817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 33818 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 33819 has_space=`$ECHO "$complete" | $GREP " "` 33820 if test "x$has_space" != x; then 33821 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33822 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33823 fi 33824 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33825 fi 33826 fi 33827 33828 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33829 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33830 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33831 # "foo.exe" is OK but "foo" is an error. 33832 # 33833 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33834 # It is also a way to make sure we got the proper file name for the real test later on. 33835 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33836 if test "x$test_shortpath" = x; then 33837 # Short path failed, file does not exist as specified. 33838 # Try adding .exe or .cmd 33839 if test -f "${new_path}.exe"; then 33840 input_to_shortpath="${new_path}.exe" 33841 elif test -f "${new_path}.cmd"; then 33842 input_to_shortpath="${new_path}.cmd" 33843 else 33844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 33845 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 33846 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33847 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33848 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33849 fi 33850 else 33851 input_to_shortpath="$new_path" 33852 fi 33853 33854 # Call helper function which possibly converts this using DOS-style short mode. 33855 # If so, the updated path is stored in $new_path. 33856 new_path="$input_to_shortpath" 33857 33858 input_path="$input_to_shortpath" 33859 # Check if we need to convert this using DOS-style short mode. If the path 33860 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33861 # take no chances and rewrite it. 33862 # Note: m4 eats our [], so we need to use [ and ] instead. 33863 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33864 if test "x$has_forbidden_chars" != x; then 33865 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33866 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33867 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33868 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33869 # Going to short mode and back again did indeed matter. Since short mode is 33870 # case insensitive, let's make it lowercase to improve readability. 33871 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33872 # Now convert it back to Unix-style (cygpath) 33873 input_path=`$CYGPATH -u "$shortmode_path"` 33874 new_path="$input_path" 33875 fi 33876 fi 33877 33878 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33879 if test "x$test_cygdrive_prefix" = x; then 33880 # As a simple fix, exclude /usr/bin since it's not a real path. 33881 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33882 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33883 # a path prefixed by /cygdrive for fixpath to work. 33884 new_path="$CYGWIN_ROOT_PATH$input_path" 33885 fi 33886 fi 33887 33888 # remove trailing .exe if any 33889 new_path="${new_path/%.exe/}" 33890 33891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33892 33893 # First separate the path from the arguments. This will split at the first 33894 # space. 33895 complete="$RC" 33896 path="${complete%% *}" 33897 tmp="$complete EOL" 33898 arguments="${tmp#* }" 33899 33900 # Input might be given as Windows format, start by converting to 33901 # unix format. 33902 new_path="$path" 33903 33904 windows_path="$new_path" 33905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33906 unix_path=`$CYGPATH -u "$windows_path"` 33907 new_path="$unix_path" 33908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33910 new_path="$unix_path" 33911 fi 33912 33913 33914 # Now try to locate executable using which 33915 new_path=`$WHICH "$new_path" 2> /dev/null` 33916 33917 if test "x$new_path" = x; then 33918 # Oops. Which didn't find the executable. 33919 # The splitting of arguments from the executable at a space might have been incorrect, 33920 # since paths with space are more likely in Windows. Give it another try with the whole 33921 # argument. 33922 path="$complete" 33923 arguments="EOL" 33924 new_path="$path" 33925 33926 windows_path="$new_path" 33927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33928 unix_path=`$CYGPATH -u "$windows_path"` 33929 new_path="$unix_path" 33930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33932 new_path="$unix_path" 33933 fi 33934 33935 33936 new_path=`$WHICH "$new_path" 2> /dev/null` 33937 # bat and cmd files are not always considered executable in MSYS causing which 33938 # to not find them 33939 if test "x$new_path" = x \ 33940 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33941 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33942 new_path="$path" 33943 33944 windows_path="$new_path" 33945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33946 unix_path=`$CYGPATH -u "$windows_path"` 33947 new_path="$unix_path" 33948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33949 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33950 new_path="$unix_path" 33951 fi 33952 33953 fi 33954 33955 if test "x$new_path" = x; then 33956 # It's still not found. Now this is an unrecoverable error. 33957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 33958 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 33959 has_space=`$ECHO "$complete" | $GREP " "` 33960 if test "x$has_space" != x; then 33961 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33962 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33963 fi 33964 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33965 fi 33966 fi 33967 33968 # Now new_path has a complete unix path to the binary 33969 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33970 # Keep paths in /bin as-is, but remove trailing .exe if any 33971 new_path="${new_path/%.exe/}" 33972 # Do not save /bin paths to all_fixpath_prefixes! 33973 else 33974 # Not in mixed or Windows style, start by that. 33975 new_path=`cmd //c echo $new_path` 33976 33977 input_path="$new_path" 33978 # Check if we need to convert this using DOS-style short mode. If the path 33979 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33980 # take no chances and rewrite it. 33981 # Note: m4 eats our [], so we need to use [ and ] instead. 33982 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33983 if test "x$has_forbidden_chars" != x; then 33984 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33985 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33986 fi 33987 33988 # Output is in $new_path 33989 33990 windows_path="$new_path" 33991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33992 unix_path=`$CYGPATH -u "$windows_path"` 33993 new_path="$unix_path" 33994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33995 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33996 new_path="$unix_path" 33997 fi 33998 33999 # remove trailing .exe if any 34000 new_path="${new_path/%.exe/}" 34001 34002 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34003 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34004 fi 34005 34006 else 34007 # We're on a posix platform. Hooray! :) 34008 # First separate the path from the arguments. This will split at the first 34009 # space. 34010 complete="$RC" 34011 path="${complete%% *}" 34012 tmp="$complete EOL" 34013 arguments="${tmp#* }" 34014 34015 # Cannot rely on the command "which" here since it doesn't always work. 34016 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34017 if test -z "$is_absolute_path"; then 34018 # Path to executable is not absolute. Find it. 34019 IFS_save="$IFS" 34020 IFS=: 34021 for p in $PATH; do 34022 if test -f "$p/$path" && test -x "$p/$path"; then 34023 new_path="$p/$path" 34024 break 34025 fi 34026 done 34027 IFS="$IFS_save" 34028 else 34029 # This is an absolute path, we can use it without further modifications. 34030 new_path="$path" 34031 fi 34032 34033 if test "x$new_path" = x; then 34034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34035 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34036 has_space=`$ECHO "$complete" | $GREP " "` 34037 if test "x$has_space" != x; then 34038 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34039 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34040 fi 34041 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34042 fi 34043 fi 34044 34045 # Now join together the path and the arguments once again 34046 if test "x$arguments" != xEOL; then 34047 new_complete="$new_path ${arguments% *}" 34048 else 34049 new_complete="$new_path" 34050 fi 34051 34052 if test "x$complete" != "x$new_complete"; then 34053 RC="$new_complete" 34054 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34055 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34056 fi 34057 34058 # Extract the first word of "dumpbin", so it can be a program name with args. 34059 set dummy dumpbin; ac_word=$2 34060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34061 $as_echo_n "checking for $ac_word... " >&6; } 34062 if ${ac_cv_prog_DUMPBIN+:} false; then : 34063 $as_echo_n "(cached) " >&6 34064 else 34065 if test -n "$DUMPBIN"; then 34066 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34067 else 34068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34069 for as_dir in $PATH 34070 do 34071 IFS=$as_save_IFS 34072 test -z "$as_dir" && as_dir=. 34073 for ac_exec_ext in '' $ac_executable_extensions; do 34074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34075 ac_cv_prog_DUMPBIN="dumpbin" 34076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34077 break 2 34078 fi 34079 done 34080 done 34081 IFS=$as_save_IFS 34082 34083 fi 34084 fi 34085 DUMPBIN=$ac_cv_prog_DUMPBIN 34086 if test -n "$DUMPBIN"; then 34087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34088 $as_echo "$DUMPBIN" >&6; } 34089 else 34090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34091 $as_echo "no" >&6; } 34092 fi 34093 34094 34095 34096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34097 34098 # First separate the path from the arguments. This will split at the first 34099 # space. 34100 complete="$DUMPBIN" 34101 path="${complete%% *}" 34102 tmp="$complete EOL" 34103 arguments="${tmp#* }" 34104 34105 # Input might be given as Windows format, start by converting to 34106 # unix format. 34107 new_path=`$CYGPATH -u "$path"` 34108 34109 # Now try to locate executable using which 34110 new_path=`$WHICH "$new_path" 2> /dev/null` 34111 # bat and cmd files are not always considered executable in cygwin causing which 34112 # to not find them 34113 if test "x$new_path" = x \ 34114 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34115 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34116 new_path=`$CYGPATH -u "$path"` 34117 fi 34118 if test "x$new_path" = x; then 34119 # Oops. Which didn't find the executable. 34120 # The splitting of arguments from the executable at a space might have been incorrect, 34121 # since paths with space are more likely in Windows. Give it another try with the whole 34122 # argument. 34123 path="$complete" 34124 arguments="EOL" 34125 new_path=`$CYGPATH -u "$path"` 34126 new_path=`$WHICH "$new_path" 2> /dev/null` 34127 # bat and cmd files are not always considered executable in cygwin causing which 34128 # to not find them 34129 if test "x$new_path" = x \ 34130 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34131 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34132 new_path=`$CYGPATH -u "$path"` 34133 fi 34134 if test "x$new_path" = x; then 34135 # It's still not found. Now this is an unrecoverable error. 34136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34137 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34138 has_space=`$ECHO "$complete" | $GREP " "` 34139 if test "x$has_space" != x; then 34140 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34141 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34142 fi 34143 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34144 fi 34145 fi 34146 34147 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34148 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34149 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34150 # "foo.exe" is OK but "foo" is an error. 34151 # 34152 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34153 # It is also a way to make sure we got the proper file name for the real test later on. 34154 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34155 if test "x$test_shortpath" = x; then 34156 # Short path failed, file does not exist as specified. 34157 # Try adding .exe or .cmd 34158 if test -f "${new_path}.exe"; then 34159 input_to_shortpath="${new_path}.exe" 34160 elif test -f "${new_path}.cmd"; then 34161 input_to_shortpath="${new_path}.cmd" 34162 else 34163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34164 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34165 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34166 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34167 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34168 fi 34169 else 34170 input_to_shortpath="$new_path" 34171 fi 34172 34173 # Call helper function which possibly converts this using DOS-style short mode. 34174 # If so, the updated path is stored in $new_path. 34175 new_path="$input_to_shortpath" 34176 34177 input_path="$input_to_shortpath" 34178 # Check if we need to convert this using DOS-style short mode. If the path 34179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34180 # take no chances and rewrite it. 34181 # Note: m4 eats our [], so we need to use [ and ] instead. 34182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34183 if test "x$has_forbidden_chars" != x; then 34184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34185 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34186 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34187 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34188 # Going to short mode and back again did indeed matter. Since short mode is 34189 # case insensitive, let's make it lowercase to improve readability. 34190 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34191 # Now convert it back to Unix-style (cygpath) 34192 input_path=`$CYGPATH -u "$shortmode_path"` 34193 new_path="$input_path" 34194 fi 34195 fi 34196 34197 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34198 if test "x$test_cygdrive_prefix" = x; then 34199 # As a simple fix, exclude /usr/bin since it's not a real path. 34200 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34201 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34202 # a path prefixed by /cygdrive for fixpath to work. 34203 new_path="$CYGWIN_ROOT_PATH$input_path" 34204 fi 34205 fi 34206 34207 # remove trailing .exe if any 34208 new_path="${new_path/%.exe/}" 34209 34210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34211 34212 # First separate the path from the arguments. This will split at the first 34213 # space. 34214 complete="$DUMPBIN" 34215 path="${complete%% *}" 34216 tmp="$complete EOL" 34217 arguments="${tmp#* }" 34218 34219 # Input might be given as Windows format, start by converting to 34220 # unix format. 34221 new_path="$path" 34222 34223 windows_path="$new_path" 34224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34225 unix_path=`$CYGPATH -u "$windows_path"` 34226 new_path="$unix_path" 34227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34229 new_path="$unix_path" 34230 fi 34231 34232 34233 # Now try to locate executable using which 34234 new_path=`$WHICH "$new_path" 2> /dev/null` 34235 34236 if test "x$new_path" = x; then 34237 # Oops. Which didn't find the executable. 34238 # The splitting of arguments from the executable at a space might have been incorrect, 34239 # since paths with space are more likely in Windows. Give it another try with the whole 34240 # argument. 34241 path="$complete" 34242 arguments="EOL" 34243 new_path="$path" 34244 34245 windows_path="$new_path" 34246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34247 unix_path=`$CYGPATH -u "$windows_path"` 34248 new_path="$unix_path" 34249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34250 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34251 new_path="$unix_path" 34252 fi 34253 34254 34255 new_path=`$WHICH "$new_path" 2> /dev/null` 34256 # bat and cmd files are not always considered executable in MSYS causing which 34257 # to not find them 34258 if test "x$new_path" = x \ 34259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34261 new_path="$path" 34262 34263 windows_path="$new_path" 34264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34265 unix_path=`$CYGPATH -u "$windows_path"` 34266 new_path="$unix_path" 34267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34269 new_path="$unix_path" 34270 fi 34271 34272 fi 34273 34274 if test "x$new_path" = x; then 34275 # It's still not found. Now this is an unrecoverable error. 34276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34277 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34278 has_space=`$ECHO "$complete" | $GREP " "` 34279 if test "x$has_space" != x; then 34280 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34281 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34282 fi 34283 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34284 fi 34285 fi 34286 34287 # Now new_path has a complete unix path to the binary 34288 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34289 # Keep paths in /bin as-is, but remove trailing .exe if any 34290 new_path="${new_path/%.exe/}" 34291 # Do not save /bin paths to all_fixpath_prefixes! 34292 else 34293 # Not in mixed or Windows style, start by that. 34294 new_path=`cmd //c echo $new_path` 34295 34296 input_path="$new_path" 34297 # Check if we need to convert this using DOS-style short mode. If the path 34298 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34299 # take no chances and rewrite it. 34300 # Note: m4 eats our [], so we need to use [ and ] instead. 34301 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34302 if test "x$has_forbidden_chars" != x; then 34303 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34304 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34305 fi 34306 34307 # Output is in $new_path 34308 34309 windows_path="$new_path" 34310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34311 unix_path=`$CYGPATH -u "$windows_path"` 34312 new_path="$unix_path" 34313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34314 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34315 new_path="$unix_path" 34316 fi 34317 34318 # remove trailing .exe if any 34319 new_path="${new_path/%.exe/}" 34320 34321 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34322 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34323 fi 34324 34325 else 34326 # We're on a posix platform. Hooray! :) 34327 # First separate the path from the arguments. This will split at the first 34328 # space. 34329 complete="$DUMPBIN" 34330 path="${complete%% *}" 34331 tmp="$complete EOL" 34332 arguments="${tmp#* }" 34333 34334 # Cannot rely on the command "which" here since it doesn't always work. 34335 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34336 if test -z "$is_absolute_path"; then 34337 # Path to executable is not absolute. Find it. 34338 IFS_save="$IFS" 34339 IFS=: 34340 for p in $PATH; do 34341 if test -f "$p/$path" && test -x "$p/$path"; then 34342 new_path="$p/$path" 34343 break 34344 fi 34345 done 34346 IFS="$IFS_save" 34347 else 34348 # This is an absolute path, we can use it without further modifications. 34349 new_path="$path" 34350 fi 34351 34352 if test "x$new_path" = x; then 34353 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34354 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34355 has_space=`$ECHO "$complete" | $GREP " "` 34356 if test "x$has_space" != x; then 34357 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34358 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34359 fi 34360 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34361 fi 34362 fi 34363 34364 # Now join together the path and the arguments once again 34365 if test "x$arguments" != xEOL; then 34366 new_complete="$new_path ${arguments% *}" 34367 else 34368 new_complete="$new_path" 34369 fi 34370 34371 if test "x$complete" != "x$new_complete"; then 34372 DUMPBIN="$new_complete" 34373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 34374 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 34375 fi 34376 34377 # We need to check for 'msbuild.exe' because at the place where we expect to 34378 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 34379 # won't find the 'msbuild.exe' executable in that case (and the 34380 # 'ac_executable_extensions' is unusable due to performance reasons). 34381 # Notice that we intentionally don't fix up the path to MSBUILD because we 34382 # will call it in a DOS shell during freetype detection on Windows (see 34383 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 34384 # Extract the first word of "msbuild.exe", so it can be a program name with args. 34385 set dummy msbuild.exe; ac_word=$2 34386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34387 $as_echo_n "checking for $ac_word... " >&6; } 34388 if ${ac_cv_prog_MSBUILD+:} false; then : 34389 $as_echo_n "(cached) " >&6 34390 else 34391 if test -n "$MSBUILD"; then 34392 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 34393 else 34394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34395 for as_dir in $PATH 34396 do 34397 IFS=$as_save_IFS 34398 test -z "$as_dir" && as_dir=. 34399 for ac_exec_ext in '' $ac_executable_extensions; do 34400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34401 ac_cv_prog_MSBUILD="msbuild.exe" 34402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34403 break 2 34404 fi 34405 done 34406 done 34407 IFS=$as_save_IFS 34408 34409 fi 34410 fi 34411 MSBUILD=$ac_cv_prog_MSBUILD 34412 if test -n "$MSBUILD"; then 34413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 34414 $as_echo "$MSBUILD" >&6; } 34415 else 34416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34417 $as_echo "no" >&6; } 34418 fi 34419 34420 34421 fi 34422 34423 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 34424 34425 34426 # Publish this variable in the help. 34427 34428 34429 if test "x$STRIP" = x; then 34430 # The variable is not set by user, try to locate tool using the code snippet 34431 for ac_prog in strip 34432 do 34433 # Extract the first word of "$ac_prog", so it can be a program name with args. 34434 set dummy $ac_prog; ac_word=$2 34435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34436 $as_echo_n "checking for $ac_word... " >&6; } 34437 if ${ac_cv_path_STRIP+:} false; then : 34438 $as_echo_n "(cached) " >&6 34439 else 34440 case $STRIP in 34441 [\\/]* | ?:[\\/]*) 34442 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34443 ;; 34444 *) 34445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34446 for as_dir in $PATH 34447 do 34448 IFS=$as_save_IFS 34449 test -z "$as_dir" && as_dir=. 34450 for ac_exec_ext in '' $ac_executable_extensions; do 34451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34452 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34454 break 2 34455 fi 34456 done 34457 done 34458 IFS=$as_save_IFS 34459 34460 ;; 34461 esac 34462 fi 34463 STRIP=$ac_cv_path_STRIP 34464 if test -n "$STRIP"; then 34465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34466 $as_echo "$STRIP" >&6; } 34467 else 34468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34469 $as_echo "no" >&6; } 34470 fi 34471 34472 34473 test -n "$STRIP" && break 34474 done 34475 34476 else 34477 # The variable is set, but is it from the command line or the environment? 34478 34479 # Try to remove the string !STRIP! from our list. 34480 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 34481 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34482 # If it failed, the variable was not from the command line. Ignore it, 34483 # but warn the user (except for BASH, which is always set by the calling BASH). 34484 if test "xSTRIP" != xBASH; then 34485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 34486 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 34487 fi 34488 # Try to locate tool using the code snippet 34489 for ac_prog in strip 34490 do 34491 # Extract the first word of "$ac_prog", so it can be a program name with args. 34492 set dummy $ac_prog; ac_word=$2 34493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34494 $as_echo_n "checking for $ac_word... " >&6; } 34495 if ${ac_cv_path_STRIP+:} false; then : 34496 $as_echo_n "(cached) " >&6 34497 else 34498 case $STRIP in 34499 [\\/]* | ?:[\\/]*) 34500 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34501 ;; 34502 *) 34503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34504 for as_dir in $PATH 34505 do 34506 IFS=$as_save_IFS 34507 test -z "$as_dir" && as_dir=. 34508 for ac_exec_ext in '' $ac_executable_extensions; do 34509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34510 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34512 break 2 34513 fi 34514 done 34515 done 34516 IFS=$as_save_IFS 34517 34518 ;; 34519 esac 34520 fi 34521 STRIP=$ac_cv_path_STRIP 34522 if test -n "$STRIP"; then 34523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34524 $as_echo "$STRIP" >&6; } 34525 else 34526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34527 $as_echo "no" >&6; } 34528 fi 34529 34530 34531 test -n "$STRIP" && break 34532 done 34533 34534 else 34535 # If it succeeded, then it was overridden by the user. We will use it 34536 # for the tool. 34537 34538 # First remove it from the list of overridden variables, so we can test 34539 # for unknown variables in the end. 34540 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34541 34542 # Check if the provided tool contains a complete path. 34543 tool_specified="$STRIP" 34544 tool_basename="${tool_specified##*/}" 34545 if test "x$tool_basename" = "x$tool_specified"; then 34546 # A command without a complete path is provided, search $PATH. 34547 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 34548 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 34549 # Extract the first word of "$tool_basename", so it can be a program name with args. 34550 set dummy $tool_basename; ac_word=$2 34551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34552 $as_echo_n "checking for $ac_word... " >&6; } 34553 if ${ac_cv_path_STRIP+:} false; then : 34554 $as_echo_n "(cached) " >&6 34555 else 34556 case $STRIP in 34557 [\\/]* | ?:[\\/]*) 34558 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34559 ;; 34560 *) 34561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34562 for as_dir in $PATH 34563 do 34564 IFS=$as_save_IFS 34565 test -z "$as_dir" && as_dir=. 34566 for ac_exec_ext in '' $ac_executable_extensions; do 34567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34568 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34570 break 2 34571 fi 34572 done 34573 done 34574 IFS=$as_save_IFS 34575 34576 ;; 34577 esac 34578 fi 34579 STRIP=$ac_cv_path_STRIP 34580 if test -n "$STRIP"; then 34581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34582 $as_echo "$STRIP" >&6; } 34583 else 34584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34585 $as_echo "no" >&6; } 34586 fi 34587 34588 34589 if test "x$STRIP" = x; then 34590 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34591 fi 34592 else 34593 # Otherwise we believe it is a complete path. Use it as it is. 34594 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 34595 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 34596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 34597 $as_echo_n "checking for STRIP... " >&6; } 34598 if test ! -x "$tool_specified"; then 34599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34600 $as_echo "not found" >&6; } 34601 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 34602 fi 34603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34604 $as_echo "$tool_specified" >&6; } 34605 fi 34606 fi 34607 fi 34608 34609 34610 34611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34612 34613 # First separate the path from the arguments. This will split at the first 34614 # space. 34615 complete="$STRIP" 34616 path="${complete%% *}" 34617 tmp="$complete EOL" 34618 arguments="${tmp#* }" 34619 34620 # Input might be given as Windows format, start by converting to 34621 # unix format. 34622 new_path=`$CYGPATH -u "$path"` 34623 34624 # Now try to locate executable using which 34625 new_path=`$WHICH "$new_path" 2> /dev/null` 34626 # bat and cmd files are not always considered executable in cygwin causing which 34627 # to not find them 34628 if test "x$new_path" = x \ 34629 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34630 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34631 new_path=`$CYGPATH -u "$path"` 34632 fi 34633 if test "x$new_path" = x; then 34634 # Oops. Which didn't find the executable. 34635 # The splitting of arguments from the executable at a space might have been incorrect, 34636 # since paths with space are more likely in Windows. Give it another try with the whole 34637 # argument. 34638 path="$complete" 34639 arguments="EOL" 34640 new_path=`$CYGPATH -u "$path"` 34641 new_path=`$WHICH "$new_path" 2> /dev/null` 34642 # bat and cmd files are not always considered executable in cygwin causing which 34643 # to not find them 34644 if test "x$new_path" = x \ 34645 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34646 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34647 new_path=`$CYGPATH -u "$path"` 34648 fi 34649 if test "x$new_path" = x; then 34650 # It's still not found. Now this is an unrecoverable error. 34651 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34652 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34653 has_space=`$ECHO "$complete" | $GREP " "` 34654 if test "x$has_space" != x; then 34655 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34656 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34657 fi 34658 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34659 fi 34660 fi 34661 34662 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34663 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34664 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34665 # "foo.exe" is OK but "foo" is an error. 34666 # 34667 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34668 # It is also a way to make sure we got the proper file name for the real test later on. 34669 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34670 if test "x$test_shortpath" = x; then 34671 # Short path failed, file does not exist as specified. 34672 # Try adding .exe or .cmd 34673 if test -f "${new_path}.exe"; then 34674 input_to_shortpath="${new_path}.exe" 34675 elif test -f "${new_path}.cmd"; then 34676 input_to_shortpath="${new_path}.cmd" 34677 else 34678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 34679 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 34680 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34681 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34682 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34683 fi 34684 else 34685 input_to_shortpath="$new_path" 34686 fi 34687 34688 # Call helper function which possibly converts this using DOS-style short mode. 34689 # If so, the updated path is stored in $new_path. 34690 new_path="$input_to_shortpath" 34691 34692 input_path="$input_to_shortpath" 34693 # Check if we need to convert this using DOS-style short mode. If the path 34694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34695 # take no chances and rewrite it. 34696 # Note: m4 eats our [], so we need to use [ and ] instead. 34697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34698 if test "x$has_forbidden_chars" != x; then 34699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34700 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34701 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34702 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34703 # Going to short mode and back again did indeed matter. Since short mode is 34704 # case insensitive, let's make it lowercase to improve readability. 34705 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34706 # Now convert it back to Unix-style (cygpath) 34707 input_path=`$CYGPATH -u "$shortmode_path"` 34708 new_path="$input_path" 34709 fi 34710 fi 34711 34712 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34713 if test "x$test_cygdrive_prefix" = x; then 34714 # As a simple fix, exclude /usr/bin since it's not a real path. 34715 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34716 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34717 # a path prefixed by /cygdrive for fixpath to work. 34718 new_path="$CYGWIN_ROOT_PATH$input_path" 34719 fi 34720 fi 34721 34722 # remove trailing .exe if any 34723 new_path="${new_path/%.exe/}" 34724 34725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34726 34727 # First separate the path from the arguments. This will split at the first 34728 # space. 34729 complete="$STRIP" 34730 path="${complete%% *}" 34731 tmp="$complete EOL" 34732 arguments="${tmp#* }" 34733 34734 # Input might be given as Windows format, start by converting to 34735 # unix format. 34736 new_path="$path" 34737 34738 windows_path="$new_path" 34739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34740 unix_path=`$CYGPATH -u "$windows_path"` 34741 new_path="$unix_path" 34742 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34743 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34744 new_path="$unix_path" 34745 fi 34746 34747 34748 # Now try to locate executable using which 34749 new_path=`$WHICH "$new_path" 2> /dev/null` 34750 34751 if test "x$new_path" = x; then 34752 # Oops. Which didn't find the executable. 34753 # The splitting of arguments from the executable at a space might have been incorrect, 34754 # since paths with space are more likely in Windows. Give it another try with the whole 34755 # argument. 34756 path="$complete" 34757 arguments="EOL" 34758 new_path="$path" 34759 34760 windows_path="$new_path" 34761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34762 unix_path=`$CYGPATH -u "$windows_path"` 34763 new_path="$unix_path" 34764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34766 new_path="$unix_path" 34767 fi 34768 34769 34770 new_path=`$WHICH "$new_path" 2> /dev/null` 34771 # bat and cmd files are not always considered executable in MSYS causing which 34772 # to not find them 34773 if test "x$new_path" = x \ 34774 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34775 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34776 new_path="$path" 34777 34778 windows_path="$new_path" 34779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34780 unix_path=`$CYGPATH -u "$windows_path"` 34781 new_path="$unix_path" 34782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34783 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34784 new_path="$unix_path" 34785 fi 34786 34787 fi 34788 34789 if test "x$new_path" = x; then 34790 # It's still not found. Now this is an unrecoverable error. 34791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34792 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34793 has_space=`$ECHO "$complete" | $GREP " "` 34794 if test "x$has_space" != x; then 34795 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34796 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34797 fi 34798 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34799 fi 34800 fi 34801 34802 # Now new_path has a complete unix path to the binary 34803 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34804 # Keep paths in /bin as-is, but remove trailing .exe if any 34805 new_path="${new_path/%.exe/}" 34806 # Do not save /bin paths to all_fixpath_prefixes! 34807 else 34808 # Not in mixed or Windows style, start by that. 34809 new_path=`cmd //c echo $new_path` 34810 34811 input_path="$new_path" 34812 # Check if we need to convert this using DOS-style short mode. If the path 34813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34814 # take no chances and rewrite it. 34815 # Note: m4 eats our [], so we need to use [ and ] instead. 34816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34817 if test "x$has_forbidden_chars" != x; then 34818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34819 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34820 fi 34821 34822 # Output is in $new_path 34823 34824 windows_path="$new_path" 34825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34826 unix_path=`$CYGPATH -u "$windows_path"` 34827 new_path="$unix_path" 34828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34829 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34830 new_path="$unix_path" 34831 fi 34832 34833 # remove trailing .exe if any 34834 new_path="${new_path/%.exe/}" 34835 34836 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34837 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34838 fi 34839 34840 else 34841 # We're on a posix platform. Hooray! :) 34842 # First separate the path from the arguments. This will split at the first 34843 # space. 34844 complete="$STRIP" 34845 path="${complete%% *}" 34846 tmp="$complete EOL" 34847 arguments="${tmp#* }" 34848 34849 # Cannot rely on the command "which" here since it doesn't always work. 34850 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34851 if test -z "$is_absolute_path"; then 34852 # Path to executable is not absolute. Find it. 34853 IFS_save="$IFS" 34854 IFS=: 34855 for p in $PATH; do 34856 if test -f "$p/$path" && test -x "$p/$path"; then 34857 new_path="$p/$path" 34858 break 34859 fi 34860 done 34861 IFS="$IFS_save" 34862 else 34863 # This is an absolute path, we can use it without further modifications. 34864 new_path="$path" 34865 fi 34866 34867 if test "x$new_path" = x; then 34868 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34869 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34870 has_space=`$ECHO "$complete" | $GREP " "` 34871 if test "x$has_space" != x; then 34872 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34873 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34874 fi 34875 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34876 fi 34877 fi 34878 34879 # Now join together the path and the arguments once again 34880 if test "x$arguments" != xEOL; then 34881 new_complete="$new_path ${arguments% *}" 34882 else 34883 new_complete="$new_path" 34884 fi 34885 34886 if test "x$complete" != "x$new_complete"; then 34887 STRIP="$new_complete" 34888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 34889 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 34890 fi 34891 34892 34893 34894 # Publish this variable in the help. 34895 34896 34897 if test "x$NM" = x; then 34898 # The variable is not set by user, try to locate tool using the code snippet 34899 for ac_prog in nm 34900 do 34901 # Extract the first word of "$ac_prog", so it can be a program name with args. 34902 set dummy $ac_prog; ac_word=$2 34903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34904 $as_echo_n "checking for $ac_word... " >&6; } 34905 if ${ac_cv_path_NM+:} false; then : 34906 $as_echo_n "(cached) " >&6 34907 else 34908 case $NM in 34909 [\\/]* | ?:[\\/]*) 34910 ac_cv_path_NM="$NM" # Let the user override the test with a path. 34911 ;; 34912 *) 34913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34914 for as_dir in $PATH 34915 do 34916 IFS=$as_save_IFS 34917 test -z "$as_dir" && as_dir=. 34918 for ac_exec_ext in '' $ac_executable_extensions; do 34919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34920 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 34921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34922 break 2 34923 fi 34924 done 34925 done 34926 IFS=$as_save_IFS 34927 34928 ;; 34929 esac 34930 fi 34931 NM=$ac_cv_path_NM 34932 if test -n "$NM"; then 34933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 34934 $as_echo "$NM" >&6; } 34935 else 34936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34937 $as_echo "no" >&6; } 34938 fi 34939 34940 34941 test -n "$NM" && break 34942 done 34943 34944 else 34945 # The variable is set, but is it from the command line or the environment? 34946 34947 # Try to remove the string !NM! from our list. 34948 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 34949 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34950 # If it failed, the variable was not from the command line. Ignore it, 34951 # but warn the user (except for BASH, which is always set by the calling BASH). 34952 if test "xNM" != xBASH; then 34953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 34954 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 34955 fi 34956 # Try to locate tool using the code snippet 34957 for ac_prog in nm 34958 do 34959 # Extract the first word of "$ac_prog", so it can be a program name with args. 34960 set dummy $ac_prog; ac_word=$2 34961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34962 $as_echo_n "checking for $ac_word... " >&6; } 34963 if ${ac_cv_path_NM+:} false; then : 34964 $as_echo_n "(cached) " >&6 34965 else 34966 case $NM in 34967 [\\/]* | ?:[\\/]*) 34968 ac_cv_path_NM="$NM" # Let the user override the test with a path. 34969 ;; 34970 *) 34971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34972 for as_dir in $PATH 34973 do 34974 IFS=$as_save_IFS 34975 test -z "$as_dir" && as_dir=. 34976 for ac_exec_ext in '' $ac_executable_extensions; do 34977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34978 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 34979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34980 break 2 34981 fi 34982 done 34983 done 34984 IFS=$as_save_IFS 34985 34986 ;; 34987 esac 34988 fi 34989 NM=$ac_cv_path_NM 34990 if test -n "$NM"; then 34991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 34992 $as_echo "$NM" >&6; } 34993 else 34994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34995 $as_echo "no" >&6; } 34996 fi 34997 34998 34999 test -n "$NM" && break 35000 done 35001 35002 else 35003 # If it succeeded, then it was overridden by the user. We will use it 35004 # for the tool. 35005 35006 # First remove it from the list of overridden variables, so we can test 35007 # for unknown variables in the end. 35008 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35009 35010 # Check if the provided tool contains a complete path. 35011 tool_specified="$NM" 35012 tool_basename="${tool_specified##*/}" 35013 if test "x$tool_basename" = "x$tool_specified"; then 35014 # A command without a complete path is provided, search $PATH. 35015 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35016 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35017 # Extract the first word of "$tool_basename", so it can be a program name with args. 35018 set dummy $tool_basename; ac_word=$2 35019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35020 $as_echo_n "checking for $ac_word... " >&6; } 35021 if ${ac_cv_path_NM+:} false; then : 35022 $as_echo_n "(cached) " >&6 35023 else 35024 case $NM in 35025 [\\/]* | ?:[\\/]*) 35026 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35027 ;; 35028 *) 35029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35030 for as_dir in $PATH 35031 do 35032 IFS=$as_save_IFS 35033 test -z "$as_dir" && as_dir=. 35034 for ac_exec_ext in '' $ac_executable_extensions; do 35035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35036 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35038 break 2 35039 fi 35040 done 35041 done 35042 IFS=$as_save_IFS 35043 35044 ;; 35045 esac 35046 fi 35047 NM=$ac_cv_path_NM 35048 if test -n "$NM"; then 35049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35050 $as_echo "$NM" >&6; } 35051 else 35052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35053 $as_echo "no" >&6; } 35054 fi 35055 35056 35057 if test "x$NM" = x; then 35058 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35059 fi 35060 else 35061 # Otherwise we believe it is a complete path. Use it as it is. 35062 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35063 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35065 $as_echo_n "checking for NM... " >&6; } 35066 if test ! -x "$tool_specified"; then 35067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35068 $as_echo "not found" >&6; } 35069 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35070 fi 35071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35072 $as_echo "$tool_specified" >&6; } 35073 fi 35074 fi 35075 fi 35076 35077 35078 35079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35080 35081 # First separate the path from the arguments. This will split at the first 35082 # space. 35083 complete="$NM" 35084 path="${complete%% *}" 35085 tmp="$complete EOL" 35086 arguments="${tmp#* }" 35087 35088 # Input might be given as Windows format, start by converting to 35089 # unix format. 35090 new_path=`$CYGPATH -u "$path"` 35091 35092 # Now try to locate executable using which 35093 new_path=`$WHICH "$new_path" 2> /dev/null` 35094 # bat and cmd files are not always considered executable in cygwin causing which 35095 # to not find them 35096 if test "x$new_path" = x \ 35097 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35098 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35099 new_path=`$CYGPATH -u "$path"` 35100 fi 35101 if test "x$new_path" = x; then 35102 # Oops. Which didn't find the executable. 35103 # The splitting of arguments from the executable at a space might have been incorrect, 35104 # since paths with space are more likely in Windows. Give it another try with the whole 35105 # argument. 35106 path="$complete" 35107 arguments="EOL" 35108 new_path=`$CYGPATH -u "$path"` 35109 new_path=`$WHICH "$new_path" 2> /dev/null` 35110 # bat and cmd files are not always considered executable in cygwin causing which 35111 # to not find them 35112 if test "x$new_path" = x \ 35113 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35114 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35115 new_path=`$CYGPATH -u "$path"` 35116 fi 35117 if test "x$new_path" = x; then 35118 # It's still not found. Now this is an unrecoverable error. 35119 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35120 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35121 has_space=`$ECHO "$complete" | $GREP " "` 35122 if test "x$has_space" != x; then 35123 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35124 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35125 fi 35126 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35127 fi 35128 fi 35129 35130 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35131 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35132 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35133 # "foo.exe" is OK but "foo" is an error. 35134 # 35135 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35136 # It is also a way to make sure we got the proper file name for the real test later on. 35137 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35138 if test "x$test_shortpath" = x; then 35139 # Short path failed, file does not exist as specified. 35140 # Try adding .exe or .cmd 35141 if test -f "${new_path}.exe"; then 35142 input_to_shortpath="${new_path}.exe" 35143 elif test -f "${new_path}.cmd"; then 35144 input_to_shortpath="${new_path}.cmd" 35145 else 35146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35147 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35148 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35149 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35150 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35151 fi 35152 else 35153 input_to_shortpath="$new_path" 35154 fi 35155 35156 # Call helper function which possibly converts this using DOS-style short mode. 35157 # If so, the updated path is stored in $new_path. 35158 new_path="$input_to_shortpath" 35159 35160 input_path="$input_to_shortpath" 35161 # Check if we need to convert this using DOS-style short mode. If the path 35162 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35163 # take no chances and rewrite it. 35164 # Note: m4 eats our [], so we need to use [ and ] instead. 35165 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35166 if test "x$has_forbidden_chars" != x; then 35167 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35168 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35169 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35170 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35171 # Going to short mode and back again did indeed matter. Since short mode is 35172 # case insensitive, let's make it lowercase to improve readability. 35173 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35174 # Now convert it back to Unix-style (cygpath) 35175 input_path=`$CYGPATH -u "$shortmode_path"` 35176 new_path="$input_path" 35177 fi 35178 fi 35179 35180 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35181 if test "x$test_cygdrive_prefix" = x; then 35182 # As a simple fix, exclude /usr/bin since it's not a real path. 35183 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35184 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35185 # a path prefixed by /cygdrive for fixpath to work. 35186 new_path="$CYGWIN_ROOT_PATH$input_path" 35187 fi 35188 fi 35189 35190 # remove trailing .exe if any 35191 new_path="${new_path/%.exe/}" 35192 35193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35194 35195 # First separate the path from the arguments. This will split at the first 35196 # space. 35197 complete="$NM" 35198 path="${complete%% *}" 35199 tmp="$complete EOL" 35200 arguments="${tmp#* }" 35201 35202 # Input might be given as Windows format, start by converting to 35203 # unix format. 35204 new_path="$path" 35205 35206 windows_path="$new_path" 35207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35208 unix_path=`$CYGPATH -u "$windows_path"` 35209 new_path="$unix_path" 35210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35211 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35212 new_path="$unix_path" 35213 fi 35214 35215 35216 # Now try to locate executable using which 35217 new_path=`$WHICH "$new_path" 2> /dev/null` 35218 35219 if test "x$new_path" = x; then 35220 # Oops. Which didn't find the executable. 35221 # The splitting of arguments from the executable at a space might have been incorrect, 35222 # since paths with space are more likely in Windows. Give it another try with the whole 35223 # argument. 35224 path="$complete" 35225 arguments="EOL" 35226 new_path="$path" 35227 35228 windows_path="$new_path" 35229 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35230 unix_path=`$CYGPATH -u "$windows_path"` 35231 new_path="$unix_path" 35232 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35233 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35234 new_path="$unix_path" 35235 fi 35236 35237 35238 new_path=`$WHICH "$new_path" 2> /dev/null` 35239 # bat and cmd files are not always considered executable in MSYS causing which 35240 # to not find them 35241 if test "x$new_path" = x \ 35242 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35243 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35244 new_path="$path" 35245 35246 windows_path="$new_path" 35247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35248 unix_path=`$CYGPATH -u "$windows_path"` 35249 new_path="$unix_path" 35250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35251 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35252 new_path="$unix_path" 35253 fi 35254 35255 fi 35256 35257 if test "x$new_path" = x; then 35258 # It's still not found. Now this is an unrecoverable error. 35259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35260 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35261 has_space=`$ECHO "$complete" | $GREP " "` 35262 if test "x$has_space" != x; then 35263 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35264 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35265 fi 35266 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35267 fi 35268 fi 35269 35270 # Now new_path has a complete unix path to the binary 35271 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35272 # Keep paths in /bin as-is, but remove trailing .exe if any 35273 new_path="${new_path/%.exe/}" 35274 # Do not save /bin paths to all_fixpath_prefixes! 35275 else 35276 # Not in mixed or Windows style, start by that. 35277 new_path=`cmd //c echo $new_path` 35278 35279 input_path="$new_path" 35280 # Check if we need to convert this using DOS-style short mode. If the path 35281 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35282 # take no chances and rewrite it. 35283 # Note: m4 eats our [], so we need to use [ and ] instead. 35284 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35285 if test "x$has_forbidden_chars" != x; then 35286 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35287 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35288 fi 35289 35290 # Output is in $new_path 35291 35292 windows_path="$new_path" 35293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35294 unix_path=`$CYGPATH -u "$windows_path"` 35295 new_path="$unix_path" 35296 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35297 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35298 new_path="$unix_path" 35299 fi 35300 35301 # remove trailing .exe if any 35302 new_path="${new_path/%.exe/}" 35303 35304 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35305 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35306 fi 35307 35308 else 35309 # We're on a posix platform. Hooray! :) 35310 # First separate the path from the arguments. This will split at the first 35311 # space. 35312 complete="$NM" 35313 path="${complete%% *}" 35314 tmp="$complete EOL" 35315 arguments="${tmp#* }" 35316 35317 # Cannot rely on the command "which" here since it doesn't always work. 35318 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35319 if test -z "$is_absolute_path"; then 35320 # Path to executable is not absolute. Find it. 35321 IFS_save="$IFS" 35322 IFS=: 35323 for p in $PATH; do 35324 if test -f "$p/$path" && test -x "$p/$path"; then 35325 new_path="$p/$path" 35326 break 35327 fi 35328 done 35329 IFS="$IFS_save" 35330 else 35331 # This is an absolute path, we can use it without further modifications. 35332 new_path="$path" 35333 fi 35334 35335 if test "x$new_path" = x; then 35336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35337 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35338 has_space=`$ECHO "$complete" | $GREP " "` 35339 if test "x$has_space" != x; then 35340 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35341 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35342 fi 35343 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35344 fi 35345 fi 35346 35347 # Now join together the path and the arguments once again 35348 if test "x$arguments" != xEOL; then 35349 new_complete="$new_path ${arguments% *}" 35350 else 35351 new_complete="$new_path" 35352 fi 35353 35354 if test "x$complete" != "x$new_complete"; then 35355 NM="$new_complete" 35356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 35357 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 35358 fi 35359 35360 35361 35362 # Publish this variable in the help. 35363 35364 35365 if test "x$GNM" = x; then 35366 # The variable is not set by user, try to locate tool using the code snippet 35367 for ac_prog in gnm 35368 do 35369 # Extract the first word of "$ac_prog", so it can be a program name with args. 35370 set dummy $ac_prog; ac_word=$2 35371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35372 $as_echo_n "checking for $ac_word... " >&6; } 35373 if ${ac_cv_path_GNM+:} false; then : 35374 $as_echo_n "(cached) " >&6 35375 else 35376 case $GNM in 35377 [\\/]* | ?:[\\/]*) 35378 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35379 ;; 35380 *) 35381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35382 for as_dir in $PATH 35383 do 35384 IFS=$as_save_IFS 35385 test -z "$as_dir" && as_dir=. 35386 for ac_exec_ext in '' $ac_executable_extensions; do 35387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35388 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35390 break 2 35391 fi 35392 done 35393 done 35394 IFS=$as_save_IFS 35395 35396 ;; 35397 esac 35398 fi 35399 GNM=$ac_cv_path_GNM 35400 if test -n "$GNM"; then 35401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35402 $as_echo "$GNM" >&6; } 35403 else 35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35405 $as_echo "no" >&6; } 35406 fi 35407 35408 35409 test -n "$GNM" && break 35410 done 35411 35412 else 35413 # The variable is set, but is it from the command line or the environment? 35414 35415 # Try to remove the string !GNM! from our list. 35416 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 35417 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35418 # If it failed, the variable was not from the command line. Ignore it, 35419 # but warn the user (except for BASH, which is always set by the calling BASH). 35420 if test "xGNM" != xBASH; then 35421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 35422 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 35423 fi 35424 # Try to locate tool using the code snippet 35425 for ac_prog in gnm 35426 do 35427 # Extract the first word of "$ac_prog", so it can be a program name with args. 35428 set dummy $ac_prog; ac_word=$2 35429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35430 $as_echo_n "checking for $ac_word... " >&6; } 35431 if ${ac_cv_path_GNM+:} false; then : 35432 $as_echo_n "(cached) " >&6 35433 else 35434 case $GNM in 35435 [\\/]* | ?:[\\/]*) 35436 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35437 ;; 35438 *) 35439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35440 for as_dir in $PATH 35441 do 35442 IFS=$as_save_IFS 35443 test -z "$as_dir" && as_dir=. 35444 for ac_exec_ext in '' $ac_executable_extensions; do 35445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35446 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35448 break 2 35449 fi 35450 done 35451 done 35452 IFS=$as_save_IFS 35453 35454 ;; 35455 esac 35456 fi 35457 GNM=$ac_cv_path_GNM 35458 if test -n "$GNM"; then 35459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35460 $as_echo "$GNM" >&6; } 35461 else 35462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35463 $as_echo "no" >&6; } 35464 fi 35465 35466 35467 test -n "$GNM" && break 35468 done 35469 35470 else 35471 # If it succeeded, then it was overridden by the user. We will use it 35472 # for the tool. 35473 35474 # First remove it from the list of overridden variables, so we can test 35475 # for unknown variables in the end. 35476 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35477 35478 # Check if the provided tool contains a complete path. 35479 tool_specified="$GNM" 35480 tool_basename="${tool_specified##*/}" 35481 if test "x$tool_basename" = "x$tool_specified"; then 35482 # A command without a complete path is provided, search $PATH. 35483 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 35484 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 35485 # Extract the first word of "$tool_basename", so it can be a program name with args. 35486 set dummy $tool_basename; ac_word=$2 35487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35488 $as_echo_n "checking for $ac_word... " >&6; } 35489 if ${ac_cv_path_GNM+:} false; then : 35490 $as_echo_n "(cached) " >&6 35491 else 35492 case $GNM in 35493 [\\/]* | ?:[\\/]*) 35494 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35495 ;; 35496 *) 35497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35498 for as_dir in $PATH 35499 do 35500 IFS=$as_save_IFS 35501 test -z "$as_dir" && as_dir=. 35502 for ac_exec_ext in '' $ac_executable_extensions; do 35503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35504 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35506 break 2 35507 fi 35508 done 35509 done 35510 IFS=$as_save_IFS 35511 35512 ;; 35513 esac 35514 fi 35515 GNM=$ac_cv_path_GNM 35516 if test -n "$GNM"; then 35517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35518 $as_echo "$GNM" >&6; } 35519 else 35520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35521 $as_echo "no" >&6; } 35522 fi 35523 35524 35525 if test "x$GNM" = x; then 35526 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35527 fi 35528 else 35529 # Otherwise we believe it is a complete path. Use it as it is. 35530 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 35531 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 35532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 35533 $as_echo_n "checking for GNM... " >&6; } 35534 if test ! -x "$tool_specified"; then 35535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35536 $as_echo "not found" >&6; } 35537 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 35538 fi 35539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35540 $as_echo "$tool_specified" >&6; } 35541 fi 35542 fi 35543 fi 35544 35545 35546 35547 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35548 35549 # First separate the path from the arguments. This will split at the first 35550 # space. 35551 complete="$GNM" 35552 path="${complete%% *}" 35553 tmp="$complete EOL" 35554 arguments="${tmp#* }" 35555 35556 # Input might be given as Windows format, start by converting to 35557 # unix format. 35558 new_path=`$CYGPATH -u "$path"` 35559 35560 # Now try to locate executable using which 35561 new_path=`$WHICH "$new_path" 2> /dev/null` 35562 # bat and cmd files are not always considered executable in cygwin causing which 35563 # to not find them 35564 if test "x$new_path" = x \ 35565 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35566 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35567 new_path=`$CYGPATH -u "$path"` 35568 fi 35569 if test "x$new_path" = x; then 35570 # Oops. Which didn't find the executable. 35571 # The splitting of arguments from the executable at a space might have been incorrect, 35572 # since paths with space are more likely in Windows. Give it another try with the whole 35573 # argument. 35574 path="$complete" 35575 arguments="EOL" 35576 new_path=`$CYGPATH -u "$path"` 35577 new_path=`$WHICH "$new_path" 2> /dev/null` 35578 # bat and cmd files are not always considered executable in cygwin causing which 35579 # to not find them 35580 if test "x$new_path" = x \ 35581 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35582 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35583 new_path=`$CYGPATH -u "$path"` 35584 fi 35585 if test "x$new_path" = x; then 35586 # It's still not found. Now this is an unrecoverable error. 35587 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35588 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35589 has_space=`$ECHO "$complete" | $GREP " "` 35590 if test "x$has_space" != x; then 35591 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35592 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35593 fi 35594 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35595 fi 35596 fi 35597 35598 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35599 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35600 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35601 # "foo.exe" is OK but "foo" is an error. 35602 # 35603 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35604 # It is also a way to make sure we got the proper file name for the real test later on. 35605 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35606 if test "x$test_shortpath" = x; then 35607 # Short path failed, file does not exist as specified. 35608 # Try adding .exe or .cmd 35609 if test -f "${new_path}.exe"; then 35610 input_to_shortpath="${new_path}.exe" 35611 elif test -f "${new_path}.cmd"; then 35612 input_to_shortpath="${new_path}.cmd" 35613 else 35614 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 35615 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 35616 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35617 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35618 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35619 fi 35620 else 35621 input_to_shortpath="$new_path" 35622 fi 35623 35624 # Call helper function which possibly converts this using DOS-style short mode. 35625 # If so, the updated path is stored in $new_path. 35626 new_path="$input_to_shortpath" 35627 35628 input_path="$input_to_shortpath" 35629 # Check if we need to convert this using DOS-style short mode. If the path 35630 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35631 # take no chances and rewrite it. 35632 # Note: m4 eats our [], so we need to use [ and ] instead. 35633 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35634 if test "x$has_forbidden_chars" != x; then 35635 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35636 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35637 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35638 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35639 # Going to short mode and back again did indeed matter. Since short mode is 35640 # case insensitive, let's make it lowercase to improve readability. 35641 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35642 # Now convert it back to Unix-style (cygpath) 35643 input_path=`$CYGPATH -u "$shortmode_path"` 35644 new_path="$input_path" 35645 fi 35646 fi 35647 35648 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35649 if test "x$test_cygdrive_prefix" = x; then 35650 # As a simple fix, exclude /usr/bin since it's not a real path. 35651 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35652 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35653 # a path prefixed by /cygdrive for fixpath to work. 35654 new_path="$CYGWIN_ROOT_PATH$input_path" 35655 fi 35656 fi 35657 35658 # remove trailing .exe if any 35659 new_path="${new_path/%.exe/}" 35660 35661 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35662 35663 # First separate the path from the arguments. This will split at the first 35664 # space. 35665 complete="$GNM" 35666 path="${complete%% *}" 35667 tmp="$complete EOL" 35668 arguments="${tmp#* }" 35669 35670 # Input might be given as Windows format, start by converting to 35671 # unix format. 35672 new_path="$path" 35673 35674 windows_path="$new_path" 35675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35676 unix_path=`$CYGPATH -u "$windows_path"` 35677 new_path="$unix_path" 35678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35680 new_path="$unix_path" 35681 fi 35682 35683 35684 # Now try to locate executable using which 35685 new_path=`$WHICH "$new_path" 2> /dev/null` 35686 35687 if test "x$new_path" = x; then 35688 # Oops. Which didn't find the executable. 35689 # The splitting of arguments from the executable at a space might have been incorrect, 35690 # since paths with space are more likely in Windows. Give it another try with the whole 35691 # argument. 35692 path="$complete" 35693 arguments="EOL" 35694 new_path="$path" 35695 35696 windows_path="$new_path" 35697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35698 unix_path=`$CYGPATH -u "$windows_path"` 35699 new_path="$unix_path" 35700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35702 new_path="$unix_path" 35703 fi 35704 35705 35706 new_path=`$WHICH "$new_path" 2> /dev/null` 35707 # bat and cmd files are not always considered executable in MSYS causing which 35708 # to not find them 35709 if test "x$new_path" = x \ 35710 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35711 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35712 new_path="$path" 35713 35714 windows_path="$new_path" 35715 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35716 unix_path=`$CYGPATH -u "$windows_path"` 35717 new_path="$unix_path" 35718 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35719 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35720 new_path="$unix_path" 35721 fi 35722 35723 fi 35724 35725 if test "x$new_path" = x; then 35726 # It's still not found. Now this is an unrecoverable error. 35727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35728 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35729 has_space=`$ECHO "$complete" | $GREP " "` 35730 if test "x$has_space" != x; then 35731 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35732 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35733 fi 35734 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35735 fi 35736 fi 35737 35738 # Now new_path has a complete unix path to the binary 35739 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35740 # Keep paths in /bin as-is, but remove trailing .exe if any 35741 new_path="${new_path/%.exe/}" 35742 # Do not save /bin paths to all_fixpath_prefixes! 35743 else 35744 # Not in mixed or Windows style, start by that. 35745 new_path=`cmd //c echo $new_path` 35746 35747 input_path="$new_path" 35748 # Check if we need to convert this using DOS-style short mode. If the path 35749 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35750 # take no chances and rewrite it. 35751 # Note: m4 eats our [], so we need to use [ and ] instead. 35752 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35753 if test "x$has_forbidden_chars" != x; then 35754 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35755 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35756 fi 35757 35758 # Output is in $new_path 35759 35760 windows_path="$new_path" 35761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35762 unix_path=`$CYGPATH -u "$windows_path"` 35763 new_path="$unix_path" 35764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35766 new_path="$unix_path" 35767 fi 35768 35769 # remove trailing .exe if any 35770 new_path="${new_path/%.exe/}" 35771 35772 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35773 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35774 fi 35775 35776 else 35777 # We're on a posix platform. Hooray! :) 35778 # First separate the path from the arguments. This will split at the first 35779 # space. 35780 complete="$GNM" 35781 path="${complete%% *}" 35782 tmp="$complete EOL" 35783 arguments="${tmp#* }" 35784 35785 # Cannot rely on the command "which" here since it doesn't always work. 35786 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35787 if test -z "$is_absolute_path"; then 35788 # Path to executable is not absolute. Find it. 35789 IFS_save="$IFS" 35790 IFS=: 35791 for p in $PATH; do 35792 if test -f "$p/$path" && test -x "$p/$path"; then 35793 new_path="$p/$path" 35794 break 35795 fi 35796 done 35797 IFS="$IFS_save" 35798 else 35799 # This is an absolute path, we can use it without further modifications. 35800 new_path="$path" 35801 fi 35802 35803 if test "x$new_path" = x; then 35804 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35805 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35806 has_space=`$ECHO "$complete" | $GREP " "` 35807 if test "x$has_space" != x; then 35808 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35809 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35810 fi 35811 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35812 fi 35813 fi 35814 35815 # Now join together the path and the arguments once again 35816 if test "x$arguments" != xEOL; then 35817 new_complete="$new_path ${arguments% *}" 35818 else 35819 new_complete="$new_path" 35820 fi 35821 35822 if test "x$complete" != "x$new_complete"; then 35823 GNM="$new_complete" 35824 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 35825 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 35826 fi 35827 35828 35829 35830 35831 # Publish this variable in the help. 35832 35833 35834 if test "x$MCS" = x; then 35835 # The variable is not set by user, try to locate tool using the code snippet 35836 for ac_prog in mcs 35837 do 35838 # Extract the first word of "$ac_prog", so it can be a program name with args. 35839 set dummy $ac_prog; ac_word=$2 35840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35841 $as_echo_n "checking for $ac_word... " >&6; } 35842 if ${ac_cv_path_MCS+:} false; then : 35843 $as_echo_n "(cached) " >&6 35844 else 35845 case $MCS in 35846 [\\/]* | ?:[\\/]*) 35847 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35848 ;; 35849 *) 35850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35851 for as_dir in $PATH 35852 do 35853 IFS=$as_save_IFS 35854 test -z "$as_dir" && as_dir=. 35855 for ac_exec_ext in '' $ac_executable_extensions; do 35856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35857 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35859 break 2 35860 fi 35861 done 35862 done 35863 IFS=$as_save_IFS 35864 35865 ;; 35866 esac 35867 fi 35868 MCS=$ac_cv_path_MCS 35869 if test -n "$MCS"; then 35870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35871 $as_echo "$MCS" >&6; } 35872 else 35873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35874 $as_echo "no" >&6; } 35875 fi 35876 35877 35878 test -n "$MCS" && break 35879 done 35880 35881 else 35882 # The variable is set, but is it from the command line or the environment? 35883 35884 # Try to remove the string !MCS! from our list. 35885 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 35886 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35887 # If it failed, the variable was not from the command line. Ignore it, 35888 # but warn the user (except for BASH, which is always set by the calling BASH). 35889 if test "xMCS" != xBASH; then 35890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 35891 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 35892 fi 35893 # Try to locate tool using the code snippet 35894 for ac_prog in mcs 35895 do 35896 # Extract the first word of "$ac_prog", so it can be a program name with args. 35897 set dummy $ac_prog; ac_word=$2 35898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35899 $as_echo_n "checking for $ac_word... " >&6; } 35900 if ${ac_cv_path_MCS+:} false; then : 35901 $as_echo_n "(cached) " >&6 35902 else 35903 case $MCS in 35904 [\\/]* | ?:[\\/]*) 35905 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35906 ;; 35907 *) 35908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35909 for as_dir in $PATH 35910 do 35911 IFS=$as_save_IFS 35912 test -z "$as_dir" && as_dir=. 35913 for ac_exec_ext in '' $ac_executable_extensions; do 35914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35915 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35917 break 2 35918 fi 35919 done 35920 done 35921 IFS=$as_save_IFS 35922 35923 ;; 35924 esac 35925 fi 35926 MCS=$ac_cv_path_MCS 35927 if test -n "$MCS"; then 35928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35929 $as_echo "$MCS" >&6; } 35930 else 35931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35932 $as_echo "no" >&6; } 35933 fi 35934 35935 35936 test -n "$MCS" && break 35937 done 35938 35939 else 35940 # If it succeeded, then it was overridden by the user. We will use it 35941 # for the tool. 35942 35943 # First remove it from the list of overridden variables, so we can test 35944 # for unknown variables in the end. 35945 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35946 35947 # Check if the provided tool contains a complete path. 35948 tool_specified="$MCS" 35949 tool_basename="${tool_specified##*/}" 35950 if test "x$tool_basename" = "x$tool_specified"; then 35951 # A command without a complete path is provided, search $PATH. 35952 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 35953 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 35954 # Extract the first word of "$tool_basename", so it can be a program name with args. 35955 set dummy $tool_basename; ac_word=$2 35956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35957 $as_echo_n "checking for $ac_word... " >&6; } 35958 if ${ac_cv_path_MCS+:} false; then : 35959 $as_echo_n "(cached) " >&6 35960 else 35961 case $MCS in 35962 [\\/]* | ?:[\\/]*) 35963 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 35964 ;; 35965 *) 35966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35967 for as_dir in $PATH 35968 do 35969 IFS=$as_save_IFS 35970 test -z "$as_dir" && as_dir=. 35971 for ac_exec_ext in '' $ac_executable_extensions; do 35972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35973 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 35974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35975 break 2 35976 fi 35977 done 35978 done 35979 IFS=$as_save_IFS 35980 35981 ;; 35982 esac 35983 fi 35984 MCS=$ac_cv_path_MCS 35985 if test -n "$MCS"; then 35986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 35987 $as_echo "$MCS" >&6; } 35988 else 35989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35990 $as_echo "no" >&6; } 35991 fi 35992 35993 35994 if test "x$MCS" = x; then 35995 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35996 fi 35997 else 35998 # Otherwise we believe it is a complete path. Use it as it is. 35999 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36000 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36002 $as_echo_n "checking for MCS... " >&6; } 36003 if test ! -x "$tool_specified"; then 36004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36005 $as_echo "not found" >&6; } 36006 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36007 fi 36008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36009 $as_echo "$tool_specified" >&6; } 36010 fi 36011 fi 36012 fi 36013 36014 36015 36016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36017 36018 # First separate the path from the arguments. This will split at the first 36019 # space. 36020 complete="$MCS" 36021 path="${complete%% *}" 36022 tmp="$complete EOL" 36023 arguments="${tmp#* }" 36024 36025 # Input might be given as Windows format, start by converting to 36026 # unix format. 36027 new_path=`$CYGPATH -u "$path"` 36028 36029 # Now try to locate executable using which 36030 new_path=`$WHICH "$new_path" 2> /dev/null` 36031 # bat and cmd files are not always considered executable in cygwin causing which 36032 # to not find them 36033 if test "x$new_path" = x \ 36034 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36035 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36036 new_path=`$CYGPATH -u "$path"` 36037 fi 36038 if test "x$new_path" = x; then 36039 # Oops. Which didn't find the executable. 36040 # The splitting of arguments from the executable at a space might have been incorrect, 36041 # since paths with space are more likely in Windows. Give it another try with the whole 36042 # argument. 36043 path="$complete" 36044 arguments="EOL" 36045 new_path=`$CYGPATH -u "$path"` 36046 new_path=`$WHICH "$new_path" 2> /dev/null` 36047 # bat and cmd files are not always considered executable in cygwin causing which 36048 # to not find them 36049 if test "x$new_path" = x \ 36050 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36051 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36052 new_path=`$CYGPATH -u "$path"` 36053 fi 36054 if test "x$new_path" = x; then 36055 # It's still not found. Now this is an unrecoverable error. 36056 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36057 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36058 has_space=`$ECHO "$complete" | $GREP " "` 36059 if test "x$has_space" != x; then 36060 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36061 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36062 fi 36063 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36064 fi 36065 fi 36066 36067 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36068 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36069 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36070 # "foo.exe" is OK but "foo" is an error. 36071 # 36072 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36073 # It is also a way to make sure we got the proper file name for the real test later on. 36074 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36075 if test "x$test_shortpath" = x; then 36076 # Short path failed, file does not exist as specified. 36077 # Try adding .exe or .cmd 36078 if test -f "${new_path}.exe"; then 36079 input_to_shortpath="${new_path}.exe" 36080 elif test -f "${new_path}.cmd"; then 36081 input_to_shortpath="${new_path}.cmd" 36082 else 36083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36084 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36085 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36086 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36087 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36088 fi 36089 else 36090 input_to_shortpath="$new_path" 36091 fi 36092 36093 # Call helper function which possibly converts this using DOS-style short mode. 36094 # If so, the updated path is stored in $new_path. 36095 new_path="$input_to_shortpath" 36096 36097 input_path="$input_to_shortpath" 36098 # Check if we need to convert this using DOS-style short mode. If the path 36099 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36100 # take no chances and rewrite it. 36101 # Note: m4 eats our [], so we need to use [ and ] instead. 36102 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36103 if test "x$has_forbidden_chars" != x; then 36104 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36105 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36106 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36107 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36108 # Going to short mode and back again did indeed matter. Since short mode is 36109 # case insensitive, let's make it lowercase to improve readability. 36110 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36111 # Now convert it back to Unix-style (cygpath) 36112 input_path=`$CYGPATH -u "$shortmode_path"` 36113 new_path="$input_path" 36114 fi 36115 fi 36116 36117 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36118 if test "x$test_cygdrive_prefix" = x; then 36119 # As a simple fix, exclude /usr/bin since it's not a real path. 36120 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36121 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36122 # a path prefixed by /cygdrive for fixpath to work. 36123 new_path="$CYGWIN_ROOT_PATH$input_path" 36124 fi 36125 fi 36126 36127 # remove trailing .exe if any 36128 new_path="${new_path/%.exe/}" 36129 36130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36131 36132 # First separate the path from the arguments. This will split at the first 36133 # space. 36134 complete="$MCS" 36135 path="${complete%% *}" 36136 tmp="$complete EOL" 36137 arguments="${tmp#* }" 36138 36139 # Input might be given as Windows format, start by converting to 36140 # unix format. 36141 new_path="$path" 36142 36143 windows_path="$new_path" 36144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36145 unix_path=`$CYGPATH -u "$windows_path"` 36146 new_path="$unix_path" 36147 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36148 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36149 new_path="$unix_path" 36150 fi 36151 36152 36153 # Now try to locate executable using which 36154 new_path=`$WHICH "$new_path" 2> /dev/null` 36155 36156 if test "x$new_path" = x; then 36157 # Oops. Which didn't find the executable. 36158 # The splitting of arguments from the executable at a space might have been incorrect, 36159 # since paths with space are more likely in Windows. Give it another try with the whole 36160 # argument. 36161 path="$complete" 36162 arguments="EOL" 36163 new_path="$path" 36164 36165 windows_path="$new_path" 36166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36167 unix_path=`$CYGPATH -u "$windows_path"` 36168 new_path="$unix_path" 36169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36171 new_path="$unix_path" 36172 fi 36173 36174 36175 new_path=`$WHICH "$new_path" 2> /dev/null` 36176 # bat and cmd files are not always considered executable in MSYS causing which 36177 # to not find them 36178 if test "x$new_path" = x \ 36179 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36180 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36181 new_path="$path" 36182 36183 windows_path="$new_path" 36184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36185 unix_path=`$CYGPATH -u "$windows_path"` 36186 new_path="$unix_path" 36187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36188 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36189 new_path="$unix_path" 36190 fi 36191 36192 fi 36193 36194 if test "x$new_path" = x; then 36195 # It's still not found. Now this is an unrecoverable error. 36196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36197 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36198 has_space=`$ECHO "$complete" | $GREP " "` 36199 if test "x$has_space" != x; then 36200 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36201 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36202 fi 36203 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36204 fi 36205 fi 36206 36207 # Now new_path has a complete unix path to the binary 36208 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36209 # Keep paths in /bin as-is, but remove trailing .exe if any 36210 new_path="${new_path/%.exe/}" 36211 # Do not save /bin paths to all_fixpath_prefixes! 36212 else 36213 # Not in mixed or Windows style, start by that. 36214 new_path=`cmd //c echo $new_path` 36215 36216 input_path="$new_path" 36217 # Check if we need to convert this using DOS-style short mode. If the path 36218 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36219 # take no chances and rewrite it. 36220 # Note: m4 eats our [], so we need to use [ and ] instead. 36221 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36222 if test "x$has_forbidden_chars" != x; then 36223 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36224 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36225 fi 36226 36227 # Output is in $new_path 36228 36229 windows_path="$new_path" 36230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36231 unix_path=`$CYGPATH -u "$windows_path"` 36232 new_path="$unix_path" 36233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36234 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36235 new_path="$unix_path" 36236 fi 36237 36238 # remove trailing .exe if any 36239 new_path="${new_path/%.exe/}" 36240 36241 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36242 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36243 fi 36244 36245 else 36246 # We're on a posix platform. Hooray! :) 36247 # First separate the path from the arguments. This will split at the first 36248 # space. 36249 complete="$MCS" 36250 path="${complete%% *}" 36251 tmp="$complete EOL" 36252 arguments="${tmp#* }" 36253 36254 # Cannot rely on the command "which" here since it doesn't always work. 36255 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36256 if test -z "$is_absolute_path"; then 36257 # Path to executable is not absolute. Find it. 36258 IFS_save="$IFS" 36259 IFS=: 36260 for p in $PATH; do 36261 if test -f "$p/$path" && test -x "$p/$path"; then 36262 new_path="$p/$path" 36263 break 36264 fi 36265 done 36266 IFS="$IFS_save" 36267 else 36268 # This is an absolute path, we can use it without further modifications. 36269 new_path="$path" 36270 fi 36271 36272 if test "x$new_path" = x; then 36273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36274 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36275 has_space=`$ECHO "$complete" | $GREP " "` 36276 if test "x$has_space" != x; then 36277 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36278 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36279 fi 36280 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36281 fi 36282 fi 36283 36284 # Now join together the path and the arguments once again 36285 if test "x$arguments" != xEOL; then 36286 new_complete="$new_path ${arguments% *}" 36287 else 36288 new_complete="$new_path" 36289 fi 36290 36291 if test "x$complete" != "x$new_complete"; then 36292 MCS="$new_complete" 36293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36294 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36295 fi 36296 36297 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36298 # FIXME: we should unify this with the solaris case above. 36299 36300 36301 # Publish this variable in the help. 36302 36303 36304 if test "x$STRIP" = x; then 36305 # The variable is not set by user, try to locate tool using the code snippet 36306 if test -n "$ac_tool_prefix"; then 36307 for ac_prog in strip 36308 do 36309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36312 $as_echo_n "checking for $ac_word... " >&6; } 36313 if ${ac_cv_prog_STRIP+:} false; then : 36314 $as_echo_n "(cached) " >&6 36315 else 36316 if test -n "$STRIP"; then 36317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36318 else 36319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36320 for as_dir in $PATH 36321 do 36322 IFS=$as_save_IFS 36323 test -z "$as_dir" && as_dir=. 36324 for ac_exec_ext in '' $ac_executable_extensions; do 36325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36326 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36328 break 2 36329 fi 36330 done 36331 done 36332 IFS=$as_save_IFS 36333 36334 fi 36335 fi 36336 STRIP=$ac_cv_prog_STRIP 36337 if test -n "$STRIP"; then 36338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36339 $as_echo "$STRIP" >&6; } 36340 else 36341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36342 $as_echo "no" >&6; } 36343 fi 36344 36345 36346 test -n "$STRIP" && break 36347 done 36348 fi 36349 if test -z "$STRIP"; then 36350 ac_ct_STRIP=$STRIP 36351 for ac_prog in strip 36352 do 36353 # Extract the first word of "$ac_prog", so it can be a program name with args. 36354 set dummy $ac_prog; ac_word=$2 36355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36356 $as_echo_n "checking for $ac_word... " >&6; } 36357 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36358 $as_echo_n "(cached) " >&6 36359 else 36360 if test -n "$ac_ct_STRIP"; then 36361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36362 else 36363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36364 for as_dir in $PATH 36365 do 36366 IFS=$as_save_IFS 36367 test -z "$as_dir" && as_dir=. 36368 for ac_exec_ext in '' $ac_executable_extensions; do 36369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36370 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36372 break 2 36373 fi 36374 done 36375 done 36376 IFS=$as_save_IFS 36377 36378 fi 36379 fi 36380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36381 if test -n "$ac_ct_STRIP"; then 36382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36383 $as_echo "$ac_ct_STRIP" >&6; } 36384 else 36385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36386 $as_echo "no" >&6; } 36387 fi 36388 36389 36390 test -n "$ac_ct_STRIP" && break 36391 done 36392 36393 if test "x$ac_ct_STRIP" = x; then 36394 STRIP="" 36395 else 36396 case $cross_compiling:$ac_tool_warned in 36397 yes:) 36398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36400 ac_tool_warned=yes ;; 36401 esac 36402 STRIP=$ac_ct_STRIP 36403 fi 36404 fi 36405 36406 else 36407 # The variable is set, but is it from the command line or the environment? 36408 36409 # Try to remove the string !STRIP! from our list. 36410 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 36411 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36412 # If it failed, the variable was not from the command line. Ignore it, 36413 # but warn the user (except for BASH, which is always set by the calling BASH). 36414 if test "xSTRIP" != xBASH; then 36415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 36416 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 36417 fi 36418 # Try to locate tool using the code snippet 36419 if test -n "$ac_tool_prefix"; then 36420 for ac_prog in strip 36421 do 36422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36425 $as_echo_n "checking for $ac_word... " >&6; } 36426 if ${ac_cv_prog_STRIP+:} false; then : 36427 $as_echo_n "(cached) " >&6 36428 else 36429 if test -n "$STRIP"; then 36430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36431 else 36432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36433 for as_dir in $PATH 36434 do 36435 IFS=$as_save_IFS 36436 test -z "$as_dir" && as_dir=. 36437 for ac_exec_ext in '' $ac_executable_extensions; do 36438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36439 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36441 break 2 36442 fi 36443 done 36444 done 36445 IFS=$as_save_IFS 36446 36447 fi 36448 fi 36449 STRIP=$ac_cv_prog_STRIP 36450 if test -n "$STRIP"; then 36451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36452 $as_echo "$STRIP" >&6; } 36453 else 36454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36455 $as_echo "no" >&6; } 36456 fi 36457 36458 36459 test -n "$STRIP" && break 36460 done 36461 fi 36462 if test -z "$STRIP"; then 36463 ac_ct_STRIP=$STRIP 36464 for ac_prog in strip 36465 do 36466 # Extract the first word of "$ac_prog", so it can be a program name with args. 36467 set dummy $ac_prog; ac_word=$2 36468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36469 $as_echo_n "checking for $ac_word... " >&6; } 36470 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36471 $as_echo_n "(cached) " >&6 36472 else 36473 if test -n "$ac_ct_STRIP"; then 36474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36475 else 36476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36477 for as_dir in $PATH 36478 do 36479 IFS=$as_save_IFS 36480 test -z "$as_dir" && as_dir=. 36481 for ac_exec_ext in '' $ac_executable_extensions; do 36482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36483 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36485 break 2 36486 fi 36487 done 36488 done 36489 IFS=$as_save_IFS 36490 36491 fi 36492 fi 36493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36494 if test -n "$ac_ct_STRIP"; then 36495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36496 $as_echo "$ac_ct_STRIP" >&6; } 36497 else 36498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36499 $as_echo "no" >&6; } 36500 fi 36501 36502 36503 test -n "$ac_ct_STRIP" && break 36504 done 36505 36506 if test "x$ac_ct_STRIP" = x; then 36507 STRIP="" 36508 else 36509 case $cross_compiling:$ac_tool_warned in 36510 yes:) 36511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36513 ac_tool_warned=yes ;; 36514 esac 36515 STRIP=$ac_ct_STRIP 36516 fi 36517 fi 36518 36519 else 36520 # If it succeeded, then it was overridden by the user. We will use it 36521 # for the tool. 36522 36523 # First remove it from the list of overridden variables, so we can test 36524 # for unknown variables in the end. 36525 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36526 36527 # Check if the provided tool contains a complete path. 36528 tool_specified="$STRIP" 36529 tool_basename="${tool_specified##*/}" 36530 if test "x$tool_basename" = "x$tool_specified"; then 36531 # A command without a complete path is provided, search $PATH. 36532 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 36533 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 36534 # Extract the first word of "$tool_basename", so it can be a program name with args. 36535 set dummy $tool_basename; ac_word=$2 36536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36537 $as_echo_n "checking for $ac_word... " >&6; } 36538 if ${ac_cv_path_STRIP+:} false; then : 36539 $as_echo_n "(cached) " >&6 36540 else 36541 case $STRIP in 36542 [\\/]* | ?:[\\/]*) 36543 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36544 ;; 36545 *) 36546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36547 for as_dir in $PATH 36548 do 36549 IFS=$as_save_IFS 36550 test -z "$as_dir" && as_dir=. 36551 for ac_exec_ext in '' $ac_executable_extensions; do 36552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36553 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36555 break 2 36556 fi 36557 done 36558 done 36559 IFS=$as_save_IFS 36560 36561 ;; 36562 esac 36563 fi 36564 STRIP=$ac_cv_path_STRIP 36565 if test -n "$STRIP"; then 36566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36567 $as_echo "$STRIP" >&6; } 36568 else 36569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36570 $as_echo "no" >&6; } 36571 fi 36572 36573 36574 if test "x$STRIP" = x; then 36575 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36576 fi 36577 else 36578 # Otherwise we believe it is a complete path. Use it as it is. 36579 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 36580 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 36581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 36582 $as_echo_n "checking for STRIP... " >&6; } 36583 if test ! -x "$tool_specified"; then 36584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36585 $as_echo "not found" >&6; } 36586 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 36587 fi 36588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36589 $as_echo "$tool_specified" >&6; } 36590 fi 36591 fi 36592 fi 36593 36594 36595 36596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36597 36598 # First separate the path from the arguments. This will split at the first 36599 # space. 36600 complete="$STRIP" 36601 path="${complete%% *}" 36602 tmp="$complete EOL" 36603 arguments="${tmp#* }" 36604 36605 # Input might be given as Windows format, start by converting to 36606 # unix format. 36607 new_path=`$CYGPATH -u "$path"` 36608 36609 # Now try to locate executable using which 36610 new_path=`$WHICH "$new_path" 2> /dev/null` 36611 # bat and cmd files are not always considered executable in cygwin causing which 36612 # to not find them 36613 if test "x$new_path" = x \ 36614 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36615 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36616 new_path=`$CYGPATH -u "$path"` 36617 fi 36618 if test "x$new_path" = x; then 36619 # Oops. Which didn't find the executable. 36620 # The splitting of arguments from the executable at a space might have been incorrect, 36621 # since paths with space are more likely in Windows. Give it another try with the whole 36622 # argument. 36623 path="$complete" 36624 arguments="EOL" 36625 new_path=`$CYGPATH -u "$path"` 36626 new_path=`$WHICH "$new_path" 2> /dev/null` 36627 # bat and cmd files are not always considered executable in cygwin causing which 36628 # to not find them 36629 if test "x$new_path" = x \ 36630 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36631 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36632 new_path=`$CYGPATH -u "$path"` 36633 fi 36634 if test "x$new_path" = x; then 36635 # It's still not found. Now this is an unrecoverable error. 36636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36637 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36638 has_space=`$ECHO "$complete" | $GREP " "` 36639 if test "x$has_space" != x; then 36640 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36641 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36642 fi 36643 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36644 fi 36645 fi 36646 36647 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36648 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36649 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36650 # "foo.exe" is OK but "foo" is an error. 36651 # 36652 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36653 # It is also a way to make sure we got the proper file name for the real test later on. 36654 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36655 if test "x$test_shortpath" = x; then 36656 # Short path failed, file does not exist as specified. 36657 # Try adding .exe or .cmd 36658 if test -f "${new_path}.exe"; then 36659 input_to_shortpath="${new_path}.exe" 36660 elif test -f "${new_path}.cmd"; then 36661 input_to_shortpath="${new_path}.cmd" 36662 else 36663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 36664 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 36665 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36666 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36667 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36668 fi 36669 else 36670 input_to_shortpath="$new_path" 36671 fi 36672 36673 # Call helper function which possibly converts this using DOS-style short mode. 36674 # If so, the updated path is stored in $new_path. 36675 new_path="$input_to_shortpath" 36676 36677 input_path="$input_to_shortpath" 36678 # Check if we need to convert this using DOS-style short mode. If the path 36679 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36680 # take no chances and rewrite it. 36681 # Note: m4 eats our [], so we need to use [ and ] instead. 36682 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36683 if test "x$has_forbidden_chars" != x; then 36684 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36685 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36686 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36687 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36688 # Going to short mode and back again did indeed matter. Since short mode is 36689 # case insensitive, let's make it lowercase to improve readability. 36690 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36691 # Now convert it back to Unix-style (cygpath) 36692 input_path=`$CYGPATH -u "$shortmode_path"` 36693 new_path="$input_path" 36694 fi 36695 fi 36696 36697 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36698 if test "x$test_cygdrive_prefix" = x; then 36699 # As a simple fix, exclude /usr/bin since it's not a real path. 36700 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36701 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36702 # a path prefixed by /cygdrive for fixpath to work. 36703 new_path="$CYGWIN_ROOT_PATH$input_path" 36704 fi 36705 fi 36706 36707 # remove trailing .exe if any 36708 new_path="${new_path/%.exe/}" 36709 36710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36711 36712 # First separate the path from the arguments. This will split at the first 36713 # space. 36714 complete="$STRIP" 36715 path="${complete%% *}" 36716 tmp="$complete EOL" 36717 arguments="${tmp#* }" 36718 36719 # Input might be given as Windows format, start by converting to 36720 # unix format. 36721 new_path="$path" 36722 36723 windows_path="$new_path" 36724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36725 unix_path=`$CYGPATH -u "$windows_path"` 36726 new_path="$unix_path" 36727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36729 new_path="$unix_path" 36730 fi 36731 36732 36733 # Now try to locate executable using which 36734 new_path=`$WHICH "$new_path" 2> /dev/null` 36735 36736 if test "x$new_path" = x; then 36737 # Oops. Which didn't find the executable. 36738 # The splitting of arguments from the executable at a space might have been incorrect, 36739 # since paths with space are more likely in Windows. Give it another try with the whole 36740 # argument. 36741 path="$complete" 36742 arguments="EOL" 36743 new_path="$path" 36744 36745 windows_path="$new_path" 36746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36747 unix_path=`$CYGPATH -u "$windows_path"` 36748 new_path="$unix_path" 36749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36751 new_path="$unix_path" 36752 fi 36753 36754 36755 new_path=`$WHICH "$new_path" 2> /dev/null` 36756 # bat and cmd files are not always considered executable in MSYS causing which 36757 # to not find them 36758 if test "x$new_path" = x \ 36759 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36760 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36761 new_path="$path" 36762 36763 windows_path="$new_path" 36764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36765 unix_path=`$CYGPATH -u "$windows_path"` 36766 new_path="$unix_path" 36767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36768 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36769 new_path="$unix_path" 36770 fi 36771 36772 fi 36773 36774 if test "x$new_path" = x; then 36775 # It's still not found. Now this is an unrecoverable error. 36776 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36777 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36778 has_space=`$ECHO "$complete" | $GREP " "` 36779 if test "x$has_space" != x; then 36780 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36781 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36782 fi 36783 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36784 fi 36785 fi 36786 36787 # Now new_path has a complete unix path to the binary 36788 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36789 # Keep paths in /bin as-is, but remove trailing .exe if any 36790 new_path="${new_path/%.exe/}" 36791 # Do not save /bin paths to all_fixpath_prefixes! 36792 else 36793 # Not in mixed or Windows style, start by that. 36794 new_path=`cmd //c echo $new_path` 36795 36796 input_path="$new_path" 36797 # Check if we need to convert this using DOS-style short mode. If the path 36798 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36799 # take no chances and rewrite it. 36800 # Note: m4 eats our [], so we need to use [ and ] instead. 36801 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36802 if test "x$has_forbidden_chars" != x; then 36803 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36804 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36805 fi 36806 36807 # Output is in $new_path 36808 36809 windows_path="$new_path" 36810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36811 unix_path=`$CYGPATH -u "$windows_path"` 36812 new_path="$unix_path" 36813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36814 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36815 new_path="$unix_path" 36816 fi 36817 36818 # remove trailing .exe if any 36819 new_path="${new_path/%.exe/}" 36820 36821 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36822 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36823 fi 36824 36825 else 36826 # We're on a posix platform. Hooray! :) 36827 # First separate the path from the arguments. This will split at the first 36828 # space. 36829 complete="$STRIP" 36830 path="${complete%% *}" 36831 tmp="$complete EOL" 36832 arguments="${tmp#* }" 36833 36834 # Cannot rely on the command "which" here since it doesn't always work. 36835 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36836 if test -z "$is_absolute_path"; then 36837 # Path to executable is not absolute. Find it. 36838 IFS_save="$IFS" 36839 IFS=: 36840 for p in $PATH; do 36841 if test -f "$p/$path" && test -x "$p/$path"; then 36842 new_path="$p/$path" 36843 break 36844 fi 36845 done 36846 IFS="$IFS_save" 36847 else 36848 # This is an absolute path, we can use it without further modifications. 36849 new_path="$path" 36850 fi 36851 36852 if test "x$new_path" = x; then 36853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36854 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36855 has_space=`$ECHO "$complete" | $GREP " "` 36856 if test "x$has_space" != x; then 36857 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36858 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36859 fi 36860 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36861 fi 36862 fi 36863 36864 # Now join together the path and the arguments once again 36865 if test "x$arguments" != xEOL; then 36866 new_complete="$new_path ${arguments% *}" 36867 else 36868 new_complete="$new_path" 36869 fi 36870 36871 if test "x$complete" != "x$new_complete"; then 36872 STRIP="$new_complete" 36873 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 36874 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 36875 fi 36876 36877 # Extract the first word of "otool", so it can be a program name with args. 36878 set dummy otool; ac_word=$2 36879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36880 $as_echo_n "checking for $ac_word... " >&6; } 36881 if ${ac_cv_path_OTOOL+:} false; then : 36882 $as_echo_n "(cached) " >&6 36883 else 36884 case $OTOOL in 36885 [\\/]* | ?:[\\/]*) 36886 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 36887 ;; 36888 *) 36889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36890 for as_dir in $PATH 36891 do 36892 IFS=$as_save_IFS 36893 test -z "$as_dir" && as_dir=. 36894 for ac_exec_ext in '' $ac_executable_extensions; do 36895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36896 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 36897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36898 break 2 36899 fi 36900 done 36901 done 36902 IFS=$as_save_IFS 36903 36904 ;; 36905 esac 36906 fi 36907 OTOOL=$ac_cv_path_OTOOL 36908 if test -n "$OTOOL"; then 36909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 36910 $as_echo "$OTOOL" >&6; } 36911 else 36912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36913 $as_echo "no" >&6; } 36914 fi 36915 36916 36917 if test "x$OTOOL" = "x"; then 36918 OTOOL="true" 36919 fi 36920 36921 36922 # Publish this variable in the help. 36923 36924 36925 if test "x$NM" = x; then 36926 # The variable is not set by user, try to locate tool using the code snippet 36927 if test -n "$ac_tool_prefix"; then 36928 for ac_prog in nm 36929 do 36930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36933 $as_echo_n "checking for $ac_word... " >&6; } 36934 if ${ac_cv_prog_NM+:} false; then : 36935 $as_echo_n "(cached) " >&6 36936 else 36937 if test -n "$NM"; then 36938 ac_cv_prog_NM="$NM" # Let the user override the test. 36939 else 36940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36941 for as_dir in $PATH 36942 do 36943 IFS=$as_save_IFS 36944 test -z "$as_dir" && as_dir=. 36945 for ac_exec_ext in '' $ac_executable_extensions; do 36946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36947 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 36948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36949 break 2 36950 fi 36951 done 36952 done 36953 IFS=$as_save_IFS 36954 36955 fi 36956 fi 36957 NM=$ac_cv_prog_NM 36958 if test -n "$NM"; then 36959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36960 $as_echo "$NM" >&6; } 36961 else 36962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36963 $as_echo "no" >&6; } 36964 fi 36965 36966 36967 test -n "$NM" && break 36968 done 36969 fi 36970 if test -z "$NM"; then 36971 ac_ct_NM=$NM 36972 for ac_prog in nm 36973 do 36974 # Extract the first word of "$ac_prog", so it can be a program name with args. 36975 set dummy $ac_prog; ac_word=$2 36976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36977 $as_echo_n "checking for $ac_word... " >&6; } 36978 if ${ac_cv_prog_ac_ct_NM+:} false; then : 36979 $as_echo_n "(cached) " >&6 36980 else 36981 if test -n "$ac_ct_NM"; then 36982 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 36983 else 36984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36985 for as_dir in $PATH 36986 do 36987 IFS=$as_save_IFS 36988 test -z "$as_dir" && as_dir=. 36989 for ac_exec_ext in '' $ac_executable_extensions; do 36990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36991 ac_cv_prog_ac_ct_NM="$ac_prog" 36992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36993 break 2 36994 fi 36995 done 36996 done 36997 IFS=$as_save_IFS 36998 36999 fi 37000 fi 37001 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37002 if test -n "$ac_ct_NM"; then 37003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37004 $as_echo "$ac_ct_NM" >&6; } 37005 else 37006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37007 $as_echo "no" >&6; } 37008 fi 37009 37010 37011 test -n "$ac_ct_NM" && break 37012 done 37013 37014 if test "x$ac_ct_NM" = x; then 37015 NM="" 37016 else 37017 case $cross_compiling:$ac_tool_warned in 37018 yes:) 37019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37021 ac_tool_warned=yes ;; 37022 esac 37023 NM=$ac_ct_NM 37024 fi 37025 fi 37026 37027 else 37028 # The variable is set, but is it from the command line or the environment? 37029 37030 # Try to remove the string !NM! from our list. 37031 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37032 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37033 # If it failed, the variable was not from the command line. Ignore it, 37034 # but warn the user (except for BASH, which is always set by the calling BASH). 37035 if test "xNM" != xBASH; then 37036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37037 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37038 fi 37039 # Try to locate tool using the code snippet 37040 if test -n "$ac_tool_prefix"; then 37041 for ac_prog in nm 37042 do 37043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37046 $as_echo_n "checking for $ac_word... " >&6; } 37047 if ${ac_cv_prog_NM+:} false; then : 37048 $as_echo_n "(cached) " >&6 37049 else 37050 if test -n "$NM"; then 37051 ac_cv_prog_NM="$NM" # Let the user override the test. 37052 else 37053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37054 for as_dir in $PATH 37055 do 37056 IFS=$as_save_IFS 37057 test -z "$as_dir" && as_dir=. 37058 for ac_exec_ext in '' $ac_executable_extensions; do 37059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37060 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37062 break 2 37063 fi 37064 done 37065 done 37066 IFS=$as_save_IFS 37067 37068 fi 37069 fi 37070 NM=$ac_cv_prog_NM 37071 if test -n "$NM"; then 37072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37073 $as_echo "$NM" >&6; } 37074 else 37075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37076 $as_echo "no" >&6; } 37077 fi 37078 37079 37080 test -n "$NM" && break 37081 done 37082 fi 37083 if test -z "$NM"; then 37084 ac_ct_NM=$NM 37085 for ac_prog in nm 37086 do 37087 # Extract the first word of "$ac_prog", so it can be a program name with args. 37088 set dummy $ac_prog; ac_word=$2 37089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37090 $as_echo_n "checking for $ac_word... " >&6; } 37091 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37092 $as_echo_n "(cached) " >&6 37093 else 37094 if test -n "$ac_ct_NM"; then 37095 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37096 else 37097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37098 for as_dir in $PATH 37099 do 37100 IFS=$as_save_IFS 37101 test -z "$as_dir" && as_dir=. 37102 for ac_exec_ext in '' $ac_executable_extensions; do 37103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37104 ac_cv_prog_ac_ct_NM="$ac_prog" 37105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37106 break 2 37107 fi 37108 done 37109 done 37110 IFS=$as_save_IFS 37111 37112 fi 37113 fi 37114 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37115 if test -n "$ac_ct_NM"; then 37116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37117 $as_echo "$ac_ct_NM" >&6; } 37118 else 37119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37120 $as_echo "no" >&6; } 37121 fi 37122 37123 37124 test -n "$ac_ct_NM" && break 37125 done 37126 37127 if test "x$ac_ct_NM" = x; then 37128 NM="" 37129 else 37130 case $cross_compiling:$ac_tool_warned in 37131 yes:) 37132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37134 ac_tool_warned=yes ;; 37135 esac 37136 NM=$ac_ct_NM 37137 fi 37138 fi 37139 37140 else 37141 # If it succeeded, then it was overridden by the user. We will use it 37142 # for the tool. 37143 37144 # First remove it from the list of overridden variables, so we can test 37145 # for unknown variables in the end. 37146 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37147 37148 # Check if the provided tool contains a complete path. 37149 tool_specified="$NM" 37150 tool_basename="${tool_specified##*/}" 37151 if test "x$tool_basename" = "x$tool_specified"; then 37152 # A command without a complete path is provided, search $PATH. 37153 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37154 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37155 # Extract the first word of "$tool_basename", so it can be a program name with args. 37156 set dummy $tool_basename; ac_word=$2 37157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37158 $as_echo_n "checking for $ac_word... " >&6; } 37159 if ${ac_cv_path_NM+:} false; then : 37160 $as_echo_n "(cached) " >&6 37161 else 37162 case $NM in 37163 [\\/]* | ?:[\\/]*) 37164 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37165 ;; 37166 *) 37167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37168 for as_dir in $PATH 37169 do 37170 IFS=$as_save_IFS 37171 test -z "$as_dir" && as_dir=. 37172 for ac_exec_ext in '' $ac_executable_extensions; do 37173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37174 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37176 break 2 37177 fi 37178 done 37179 done 37180 IFS=$as_save_IFS 37181 37182 ;; 37183 esac 37184 fi 37185 NM=$ac_cv_path_NM 37186 if test -n "$NM"; then 37187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37188 $as_echo "$NM" >&6; } 37189 else 37190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37191 $as_echo "no" >&6; } 37192 fi 37193 37194 37195 if test "x$NM" = x; then 37196 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37197 fi 37198 else 37199 # Otherwise we believe it is a complete path. Use it as it is. 37200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37201 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37203 $as_echo_n "checking for NM... " >&6; } 37204 if test ! -x "$tool_specified"; then 37205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37206 $as_echo "not found" >&6; } 37207 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37208 fi 37209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37210 $as_echo "$tool_specified" >&6; } 37211 fi 37212 fi 37213 fi 37214 37215 37216 37217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37218 37219 # First separate the path from the arguments. This will split at the first 37220 # space. 37221 complete="$NM" 37222 path="${complete%% *}" 37223 tmp="$complete EOL" 37224 arguments="${tmp#* }" 37225 37226 # Input might be given as Windows format, start by converting to 37227 # unix format. 37228 new_path=`$CYGPATH -u "$path"` 37229 37230 # Now try to locate executable using which 37231 new_path=`$WHICH "$new_path" 2> /dev/null` 37232 # bat and cmd files are not always considered executable in cygwin causing which 37233 # to not find them 37234 if test "x$new_path" = x \ 37235 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37236 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37237 new_path=`$CYGPATH -u "$path"` 37238 fi 37239 if test "x$new_path" = x; then 37240 # Oops. Which didn't find the executable. 37241 # The splitting of arguments from the executable at a space might have been incorrect, 37242 # since paths with space are more likely in Windows. Give it another try with the whole 37243 # argument. 37244 path="$complete" 37245 arguments="EOL" 37246 new_path=`$CYGPATH -u "$path"` 37247 new_path=`$WHICH "$new_path" 2> /dev/null` 37248 # bat and cmd files are not always considered executable in cygwin causing which 37249 # to not find them 37250 if test "x$new_path" = x \ 37251 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37252 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37253 new_path=`$CYGPATH -u "$path"` 37254 fi 37255 if test "x$new_path" = x; then 37256 # It's still not found. Now this is an unrecoverable error. 37257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37258 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37259 has_space=`$ECHO "$complete" | $GREP " "` 37260 if test "x$has_space" != x; then 37261 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37262 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37263 fi 37264 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37265 fi 37266 fi 37267 37268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37271 # "foo.exe" is OK but "foo" is an error. 37272 # 37273 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37274 # It is also a way to make sure we got the proper file name for the real test later on. 37275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37276 if test "x$test_shortpath" = x; then 37277 # Short path failed, file does not exist as specified. 37278 # Try adding .exe or .cmd 37279 if test -f "${new_path}.exe"; then 37280 input_to_shortpath="${new_path}.exe" 37281 elif test -f "${new_path}.cmd"; then 37282 input_to_shortpath="${new_path}.cmd" 37283 else 37284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37285 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37286 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37287 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37288 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37289 fi 37290 else 37291 input_to_shortpath="$new_path" 37292 fi 37293 37294 # Call helper function which possibly converts this using DOS-style short mode. 37295 # If so, the updated path is stored in $new_path. 37296 new_path="$input_to_shortpath" 37297 37298 input_path="$input_to_shortpath" 37299 # Check if we need to convert this using DOS-style short mode. If the path 37300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37301 # take no chances and rewrite it. 37302 # Note: m4 eats our [], so we need to use [ and ] instead. 37303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37304 if test "x$has_forbidden_chars" != x; then 37305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37306 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37307 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37308 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37309 # Going to short mode and back again did indeed matter. Since short mode is 37310 # case insensitive, let's make it lowercase to improve readability. 37311 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37312 # Now convert it back to Unix-style (cygpath) 37313 input_path=`$CYGPATH -u "$shortmode_path"` 37314 new_path="$input_path" 37315 fi 37316 fi 37317 37318 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37319 if test "x$test_cygdrive_prefix" = x; then 37320 # As a simple fix, exclude /usr/bin since it's not a real path. 37321 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37322 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37323 # a path prefixed by /cygdrive for fixpath to work. 37324 new_path="$CYGWIN_ROOT_PATH$input_path" 37325 fi 37326 fi 37327 37328 # remove trailing .exe if any 37329 new_path="${new_path/%.exe/}" 37330 37331 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37332 37333 # First separate the path from the arguments. This will split at the first 37334 # space. 37335 complete="$NM" 37336 path="${complete%% *}" 37337 tmp="$complete EOL" 37338 arguments="${tmp#* }" 37339 37340 # Input might be given as Windows format, start by converting to 37341 # unix format. 37342 new_path="$path" 37343 37344 windows_path="$new_path" 37345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37346 unix_path=`$CYGPATH -u "$windows_path"` 37347 new_path="$unix_path" 37348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37350 new_path="$unix_path" 37351 fi 37352 37353 37354 # Now try to locate executable using which 37355 new_path=`$WHICH "$new_path" 2> /dev/null` 37356 37357 if test "x$new_path" = x; then 37358 # Oops. Which didn't find the executable. 37359 # The splitting of arguments from the executable at a space might have been incorrect, 37360 # since paths with space are more likely in Windows. Give it another try with the whole 37361 # argument. 37362 path="$complete" 37363 arguments="EOL" 37364 new_path="$path" 37365 37366 windows_path="$new_path" 37367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37368 unix_path=`$CYGPATH -u "$windows_path"` 37369 new_path="$unix_path" 37370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37372 new_path="$unix_path" 37373 fi 37374 37375 37376 new_path=`$WHICH "$new_path" 2> /dev/null` 37377 # bat and cmd files are not always considered executable in MSYS causing which 37378 # to not find them 37379 if test "x$new_path" = x \ 37380 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37381 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37382 new_path="$path" 37383 37384 windows_path="$new_path" 37385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37386 unix_path=`$CYGPATH -u "$windows_path"` 37387 new_path="$unix_path" 37388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37390 new_path="$unix_path" 37391 fi 37392 37393 fi 37394 37395 if test "x$new_path" = x; then 37396 # It's still not found. Now this is an unrecoverable error. 37397 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37398 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37399 has_space=`$ECHO "$complete" | $GREP " "` 37400 if test "x$has_space" != x; then 37401 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37402 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37403 fi 37404 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37405 fi 37406 fi 37407 37408 # Now new_path has a complete unix path to the binary 37409 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37410 # Keep paths in /bin as-is, but remove trailing .exe if any 37411 new_path="${new_path/%.exe/}" 37412 # Do not save /bin paths to all_fixpath_prefixes! 37413 else 37414 # Not in mixed or Windows style, start by that. 37415 new_path=`cmd //c echo $new_path` 37416 37417 input_path="$new_path" 37418 # Check if we need to convert this using DOS-style short mode. If the path 37419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37420 # take no chances and rewrite it. 37421 # Note: m4 eats our [], so we need to use [ and ] instead. 37422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37423 if test "x$has_forbidden_chars" != x; then 37424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37425 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37426 fi 37427 37428 # Output is in $new_path 37429 37430 windows_path="$new_path" 37431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37432 unix_path=`$CYGPATH -u "$windows_path"` 37433 new_path="$unix_path" 37434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37435 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37436 new_path="$unix_path" 37437 fi 37438 37439 # remove trailing .exe if any 37440 new_path="${new_path/%.exe/}" 37441 37442 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37443 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37444 fi 37445 37446 else 37447 # We're on a posix platform. Hooray! :) 37448 # First separate the path from the arguments. This will split at the first 37449 # space. 37450 complete="$NM" 37451 path="${complete%% *}" 37452 tmp="$complete EOL" 37453 arguments="${tmp#* }" 37454 37455 # Cannot rely on the command "which" here since it doesn't always work. 37456 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37457 if test -z "$is_absolute_path"; then 37458 # Path to executable is not absolute. Find it. 37459 IFS_save="$IFS" 37460 IFS=: 37461 for p in $PATH; do 37462 if test -f "$p/$path" && test -x "$p/$path"; then 37463 new_path="$p/$path" 37464 break 37465 fi 37466 done 37467 IFS="$IFS_save" 37468 else 37469 # This is an absolute path, we can use it without further modifications. 37470 new_path="$path" 37471 fi 37472 37473 if test "x$new_path" = x; then 37474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37475 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37476 has_space=`$ECHO "$complete" | $GREP " "` 37477 if test "x$has_space" != x; then 37478 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37479 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37480 fi 37481 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37482 fi 37483 fi 37484 37485 # Now join together the path and the arguments once again 37486 if test "x$arguments" != xEOL; then 37487 new_complete="$new_path ${arguments% *}" 37488 else 37489 new_complete="$new_path" 37490 fi 37491 37492 if test "x$complete" != "x$new_complete"; then 37493 NM="$new_complete" 37494 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 37495 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 37496 fi 37497 37498 GNM="$NM" 37499 37500 fi 37501 37502 # objcopy is used for moving debug symbols to separate files when 37503 # full debug symbols are enabled. 37504 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 37505 37506 37507 # Publish this variable in the help. 37508 37509 37510 if test "x$OBJCOPY" = x; then 37511 # The variable is not set by user, try to locate tool using the code snippet 37512 if test -n "$ac_tool_prefix"; then 37513 for ac_prog in gobjcopy objcopy 37514 do 37515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37518 $as_echo_n "checking for $ac_word... " >&6; } 37519 if ${ac_cv_prog_OBJCOPY+:} false; then : 37520 $as_echo_n "(cached) " >&6 37521 else 37522 if test -n "$OBJCOPY"; then 37523 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37524 else 37525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37526 for as_dir in $PATH 37527 do 37528 IFS=$as_save_IFS 37529 test -z "$as_dir" && as_dir=. 37530 for ac_exec_ext in '' $ac_executable_extensions; do 37531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37532 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37534 break 2 37535 fi 37536 done 37537 done 37538 IFS=$as_save_IFS 37539 37540 fi 37541 fi 37542 OBJCOPY=$ac_cv_prog_OBJCOPY 37543 if test -n "$OBJCOPY"; then 37544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37545 $as_echo "$OBJCOPY" >&6; } 37546 else 37547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37548 $as_echo "no" >&6; } 37549 fi 37550 37551 37552 test -n "$OBJCOPY" && break 37553 done 37554 fi 37555 if test -z "$OBJCOPY"; then 37556 ac_ct_OBJCOPY=$OBJCOPY 37557 for ac_prog in gobjcopy objcopy 37558 do 37559 # Extract the first word of "$ac_prog", so it can be a program name with args. 37560 set dummy $ac_prog; ac_word=$2 37561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37562 $as_echo_n "checking for $ac_word... " >&6; } 37563 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37564 $as_echo_n "(cached) " >&6 37565 else 37566 if test -n "$ac_ct_OBJCOPY"; then 37567 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37568 else 37569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37570 for as_dir in $PATH 37571 do 37572 IFS=$as_save_IFS 37573 test -z "$as_dir" && as_dir=. 37574 for ac_exec_ext in '' $ac_executable_extensions; do 37575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37576 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37578 break 2 37579 fi 37580 done 37581 done 37582 IFS=$as_save_IFS 37583 37584 fi 37585 fi 37586 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37587 if test -n "$ac_ct_OBJCOPY"; then 37588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37589 $as_echo "$ac_ct_OBJCOPY" >&6; } 37590 else 37591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37592 $as_echo "no" >&6; } 37593 fi 37594 37595 37596 test -n "$ac_ct_OBJCOPY" && break 37597 done 37598 37599 if test "x$ac_ct_OBJCOPY" = x; then 37600 OBJCOPY="" 37601 else 37602 case $cross_compiling:$ac_tool_warned in 37603 yes:) 37604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37606 ac_tool_warned=yes ;; 37607 esac 37608 OBJCOPY=$ac_ct_OBJCOPY 37609 fi 37610 fi 37611 37612 else 37613 # The variable is set, but is it from the command line or the environment? 37614 37615 # Try to remove the string !OBJCOPY! from our list. 37616 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 37617 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37618 # If it failed, the variable was not from the command line. Ignore it, 37619 # but warn the user (except for BASH, which is always set by the calling BASH). 37620 if test "xOBJCOPY" != xBASH; then 37621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 37622 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 37623 fi 37624 # Try to locate tool using the code snippet 37625 if test -n "$ac_tool_prefix"; then 37626 for ac_prog in gobjcopy objcopy 37627 do 37628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37631 $as_echo_n "checking for $ac_word... " >&6; } 37632 if ${ac_cv_prog_OBJCOPY+:} false; then : 37633 $as_echo_n "(cached) " >&6 37634 else 37635 if test -n "$OBJCOPY"; then 37636 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37637 else 37638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37639 for as_dir in $PATH 37640 do 37641 IFS=$as_save_IFS 37642 test -z "$as_dir" && as_dir=. 37643 for ac_exec_ext in '' $ac_executable_extensions; do 37644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37645 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37647 break 2 37648 fi 37649 done 37650 done 37651 IFS=$as_save_IFS 37652 37653 fi 37654 fi 37655 OBJCOPY=$ac_cv_prog_OBJCOPY 37656 if test -n "$OBJCOPY"; then 37657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37658 $as_echo "$OBJCOPY" >&6; } 37659 else 37660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37661 $as_echo "no" >&6; } 37662 fi 37663 37664 37665 test -n "$OBJCOPY" && break 37666 done 37667 fi 37668 if test -z "$OBJCOPY"; then 37669 ac_ct_OBJCOPY=$OBJCOPY 37670 for ac_prog in gobjcopy objcopy 37671 do 37672 # Extract the first word of "$ac_prog", so it can be a program name with args. 37673 set dummy $ac_prog; ac_word=$2 37674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37675 $as_echo_n "checking for $ac_word... " >&6; } 37676 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37677 $as_echo_n "(cached) " >&6 37678 else 37679 if test -n "$ac_ct_OBJCOPY"; then 37680 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37681 else 37682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37683 for as_dir in $PATH 37684 do 37685 IFS=$as_save_IFS 37686 test -z "$as_dir" && as_dir=. 37687 for ac_exec_ext in '' $ac_executable_extensions; do 37688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37689 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37691 break 2 37692 fi 37693 done 37694 done 37695 IFS=$as_save_IFS 37696 37697 fi 37698 fi 37699 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37700 if test -n "$ac_ct_OBJCOPY"; then 37701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37702 $as_echo "$ac_ct_OBJCOPY" >&6; } 37703 else 37704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37705 $as_echo "no" >&6; } 37706 fi 37707 37708 37709 test -n "$ac_ct_OBJCOPY" && break 37710 done 37711 37712 if test "x$ac_ct_OBJCOPY" = x; then 37713 OBJCOPY="" 37714 else 37715 case $cross_compiling:$ac_tool_warned in 37716 yes:) 37717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37719 ac_tool_warned=yes ;; 37720 esac 37721 OBJCOPY=$ac_ct_OBJCOPY 37722 fi 37723 fi 37724 37725 else 37726 # If it succeeded, then it was overridden by the user. We will use it 37727 # for the tool. 37728 37729 # First remove it from the list of overridden variables, so we can test 37730 # for unknown variables in the end. 37731 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37732 37733 # Check if the provided tool contains a complete path. 37734 tool_specified="$OBJCOPY" 37735 tool_basename="${tool_specified##*/}" 37736 if test "x$tool_basename" = "x$tool_specified"; then 37737 # A command without a complete path is provided, search $PATH. 37738 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 37739 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 37740 # Extract the first word of "$tool_basename", so it can be a program name with args. 37741 set dummy $tool_basename; ac_word=$2 37742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37743 $as_echo_n "checking for $ac_word... " >&6; } 37744 if ${ac_cv_path_OBJCOPY+:} false; then : 37745 $as_echo_n "(cached) " >&6 37746 else 37747 case $OBJCOPY in 37748 [\\/]* | ?:[\\/]*) 37749 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 37750 ;; 37751 *) 37752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37753 for as_dir in $PATH 37754 do 37755 IFS=$as_save_IFS 37756 test -z "$as_dir" && as_dir=. 37757 for ac_exec_ext in '' $ac_executable_extensions; do 37758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37759 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 37760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37761 break 2 37762 fi 37763 done 37764 done 37765 IFS=$as_save_IFS 37766 37767 ;; 37768 esac 37769 fi 37770 OBJCOPY=$ac_cv_path_OBJCOPY 37771 if test -n "$OBJCOPY"; then 37772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37773 $as_echo "$OBJCOPY" >&6; } 37774 else 37775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37776 $as_echo "no" >&6; } 37777 fi 37778 37779 37780 if test "x$OBJCOPY" = x; then 37781 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37782 fi 37783 else 37784 # Otherwise we believe it is a complete path. Use it as it is. 37785 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 37786 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 37787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 37788 $as_echo_n "checking for OBJCOPY... " >&6; } 37789 if test ! -x "$tool_specified"; then 37790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37791 $as_echo "not found" >&6; } 37792 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 37793 fi 37794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37795 $as_echo "$tool_specified" >&6; } 37796 fi 37797 fi 37798 fi 37799 37800 37801 # Only call fixup if objcopy was found. 37802 if test -n "$OBJCOPY"; then 37803 37804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37805 37806 # First separate the path from the arguments. This will split at the first 37807 # space. 37808 complete="$OBJCOPY" 37809 path="${complete%% *}" 37810 tmp="$complete EOL" 37811 arguments="${tmp#* }" 37812 37813 # Input might be given as Windows format, start by converting to 37814 # unix format. 37815 new_path=`$CYGPATH -u "$path"` 37816 37817 # Now try to locate executable using which 37818 new_path=`$WHICH "$new_path" 2> /dev/null` 37819 # bat and cmd files are not always considered executable in cygwin causing which 37820 # to not find them 37821 if test "x$new_path" = x \ 37822 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37823 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37824 new_path=`$CYGPATH -u "$path"` 37825 fi 37826 if test "x$new_path" = x; then 37827 # Oops. Which didn't find the executable. 37828 # The splitting of arguments from the executable at a space might have been incorrect, 37829 # since paths with space are more likely in Windows. Give it another try with the whole 37830 # argument. 37831 path="$complete" 37832 arguments="EOL" 37833 new_path=`$CYGPATH -u "$path"` 37834 new_path=`$WHICH "$new_path" 2> /dev/null` 37835 # bat and cmd files are not always considered executable in cygwin causing which 37836 # to not find them 37837 if test "x$new_path" = x \ 37838 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37839 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37840 new_path=`$CYGPATH -u "$path"` 37841 fi 37842 if test "x$new_path" = x; then 37843 # It's still not found. Now this is an unrecoverable error. 37844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37845 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37846 has_space=`$ECHO "$complete" | $GREP " "` 37847 if test "x$has_space" != x; then 37848 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37849 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37850 fi 37851 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37852 fi 37853 fi 37854 37855 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37856 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37857 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37858 # "foo.exe" is OK but "foo" is an error. 37859 # 37860 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37861 # It is also a way to make sure we got the proper file name for the real test later on. 37862 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37863 if test "x$test_shortpath" = x; then 37864 # Short path failed, file does not exist as specified. 37865 # Try adding .exe or .cmd 37866 if test -f "${new_path}.exe"; then 37867 input_to_shortpath="${new_path}.exe" 37868 elif test -f "${new_path}.cmd"; then 37869 input_to_shortpath="${new_path}.cmd" 37870 else 37871 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 37872 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 37873 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37874 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37875 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37876 fi 37877 else 37878 input_to_shortpath="$new_path" 37879 fi 37880 37881 # Call helper function which possibly converts this using DOS-style short mode. 37882 # If so, the updated path is stored in $new_path. 37883 new_path="$input_to_shortpath" 37884 37885 input_path="$input_to_shortpath" 37886 # Check if we need to convert this using DOS-style short mode. If the path 37887 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37888 # take no chances and rewrite it. 37889 # Note: m4 eats our [], so we need to use [ and ] instead. 37890 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37891 if test "x$has_forbidden_chars" != x; then 37892 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37893 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37894 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37895 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37896 # Going to short mode and back again did indeed matter. Since short mode is 37897 # case insensitive, let's make it lowercase to improve readability. 37898 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37899 # Now convert it back to Unix-style (cygpath) 37900 input_path=`$CYGPATH -u "$shortmode_path"` 37901 new_path="$input_path" 37902 fi 37903 fi 37904 37905 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37906 if test "x$test_cygdrive_prefix" = x; then 37907 # As a simple fix, exclude /usr/bin since it's not a real path. 37908 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37909 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37910 # a path prefixed by /cygdrive for fixpath to work. 37911 new_path="$CYGWIN_ROOT_PATH$input_path" 37912 fi 37913 fi 37914 37915 # remove trailing .exe if any 37916 new_path="${new_path/%.exe/}" 37917 37918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37919 37920 # First separate the path from the arguments. This will split at the first 37921 # space. 37922 complete="$OBJCOPY" 37923 path="${complete%% *}" 37924 tmp="$complete EOL" 37925 arguments="${tmp#* }" 37926 37927 # Input might be given as Windows format, start by converting to 37928 # unix format. 37929 new_path="$path" 37930 37931 windows_path="$new_path" 37932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37933 unix_path=`$CYGPATH -u "$windows_path"` 37934 new_path="$unix_path" 37935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37937 new_path="$unix_path" 37938 fi 37939 37940 37941 # Now try to locate executable using which 37942 new_path=`$WHICH "$new_path" 2> /dev/null` 37943 37944 if test "x$new_path" = x; then 37945 # Oops. Which didn't find the executable. 37946 # The splitting of arguments from the executable at a space might have been incorrect, 37947 # since paths with space are more likely in Windows. Give it another try with the whole 37948 # argument. 37949 path="$complete" 37950 arguments="EOL" 37951 new_path="$path" 37952 37953 windows_path="$new_path" 37954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37955 unix_path=`$CYGPATH -u "$windows_path"` 37956 new_path="$unix_path" 37957 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37958 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37959 new_path="$unix_path" 37960 fi 37961 37962 37963 new_path=`$WHICH "$new_path" 2> /dev/null` 37964 # bat and cmd files are not always considered executable in MSYS causing which 37965 # to not find them 37966 if test "x$new_path" = x \ 37967 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37968 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37969 new_path="$path" 37970 37971 windows_path="$new_path" 37972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37973 unix_path=`$CYGPATH -u "$windows_path"` 37974 new_path="$unix_path" 37975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37976 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37977 new_path="$unix_path" 37978 fi 37979 37980 fi 37981 37982 if test "x$new_path" = x; then 37983 # It's still not found. Now this is an unrecoverable error. 37984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37985 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37986 has_space=`$ECHO "$complete" | $GREP " "` 37987 if test "x$has_space" != x; then 37988 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37989 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37990 fi 37991 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37992 fi 37993 fi 37994 37995 # Now new_path has a complete unix path to the binary 37996 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37997 # Keep paths in /bin as-is, but remove trailing .exe if any 37998 new_path="${new_path/%.exe/}" 37999 # Do not save /bin paths to all_fixpath_prefixes! 38000 else 38001 # Not in mixed or Windows style, start by that. 38002 new_path=`cmd //c echo $new_path` 38003 38004 input_path="$new_path" 38005 # Check if we need to convert this using DOS-style short mode. If the path 38006 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38007 # take no chances and rewrite it. 38008 # Note: m4 eats our [], so we need to use [ and ] instead. 38009 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38010 if test "x$has_forbidden_chars" != x; then 38011 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38012 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38013 fi 38014 38015 # Output is in $new_path 38016 38017 windows_path="$new_path" 38018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38019 unix_path=`$CYGPATH -u "$windows_path"` 38020 new_path="$unix_path" 38021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38022 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38023 new_path="$unix_path" 38024 fi 38025 38026 # remove trailing .exe if any 38027 new_path="${new_path/%.exe/}" 38028 38029 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38030 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38031 fi 38032 38033 else 38034 # We're on a posix platform. Hooray! :) 38035 # First separate the path from the arguments. This will split at the first 38036 # space. 38037 complete="$OBJCOPY" 38038 path="${complete%% *}" 38039 tmp="$complete EOL" 38040 arguments="${tmp#* }" 38041 38042 # Cannot rely on the command "which" here since it doesn't always work. 38043 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38044 if test -z "$is_absolute_path"; then 38045 # Path to executable is not absolute. Find it. 38046 IFS_save="$IFS" 38047 IFS=: 38048 for p in $PATH; do 38049 if test -f "$p/$path" && test -x "$p/$path"; then 38050 new_path="$p/$path" 38051 break 38052 fi 38053 done 38054 IFS="$IFS_save" 38055 else 38056 # This is an absolute path, we can use it without further modifications. 38057 new_path="$path" 38058 fi 38059 38060 if test "x$new_path" = x; then 38061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38062 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38063 has_space=`$ECHO "$complete" | $GREP " "` 38064 if test "x$has_space" != x; then 38065 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38066 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38067 fi 38068 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38069 fi 38070 fi 38071 38072 # Now join together the path and the arguments once again 38073 if test "x$arguments" != xEOL; then 38074 new_complete="$new_path ${arguments% *}" 38075 else 38076 new_complete="$new_path" 38077 fi 38078 38079 if test "x$complete" != "x$new_complete"; then 38080 OBJCOPY="$new_complete" 38081 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38082 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38083 fi 38084 38085 fi 38086 fi 38087 38088 38089 38090 # Publish this variable in the help. 38091 38092 38093 if test "x$OBJDUMP" = x; then 38094 # The variable is not set by user, try to locate tool using the code snippet 38095 if test -n "$ac_tool_prefix"; then 38096 for ac_prog in gobjdump objdump 38097 do 38098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38101 $as_echo_n "checking for $ac_word... " >&6; } 38102 if ${ac_cv_prog_OBJDUMP+:} false; then : 38103 $as_echo_n "(cached) " >&6 38104 else 38105 if test -n "$OBJDUMP"; then 38106 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38107 else 38108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38109 for as_dir in $PATH 38110 do 38111 IFS=$as_save_IFS 38112 test -z "$as_dir" && as_dir=. 38113 for ac_exec_ext in '' $ac_executable_extensions; do 38114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38115 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38117 break 2 38118 fi 38119 done 38120 done 38121 IFS=$as_save_IFS 38122 38123 fi 38124 fi 38125 OBJDUMP=$ac_cv_prog_OBJDUMP 38126 if test -n "$OBJDUMP"; then 38127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38128 $as_echo "$OBJDUMP" >&6; } 38129 else 38130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38131 $as_echo "no" >&6; } 38132 fi 38133 38134 38135 test -n "$OBJDUMP" && break 38136 done 38137 fi 38138 if test -z "$OBJDUMP"; then 38139 ac_ct_OBJDUMP=$OBJDUMP 38140 for ac_prog in gobjdump objdump 38141 do 38142 # Extract the first word of "$ac_prog", so it can be a program name with args. 38143 set dummy $ac_prog; ac_word=$2 38144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38145 $as_echo_n "checking for $ac_word... " >&6; } 38146 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38147 $as_echo_n "(cached) " >&6 38148 else 38149 if test -n "$ac_ct_OBJDUMP"; then 38150 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38151 else 38152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38153 for as_dir in $PATH 38154 do 38155 IFS=$as_save_IFS 38156 test -z "$as_dir" && as_dir=. 38157 for ac_exec_ext in '' $ac_executable_extensions; do 38158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38159 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38161 break 2 38162 fi 38163 done 38164 done 38165 IFS=$as_save_IFS 38166 38167 fi 38168 fi 38169 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38170 if test -n "$ac_ct_OBJDUMP"; then 38171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38172 $as_echo "$ac_ct_OBJDUMP" >&6; } 38173 else 38174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38175 $as_echo "no" >&6; } 38176 fi 38177 38178 38179 test -n "$ac_ct_OBJDUMP" && break 38180 done 38181 38182 if test "x$ac_ct_OBJDUMP" = x; then 38183 OBJDUMP="" 38184 else 38185 case $cross_compiling:$ac_tool_warned in 38186 yes:) 38187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38189 ac_tool_warned=yes ;; 38190 esac 38191 OBJDUMP=$ac_ct_OBJDUMP 38192 fi 38193 fi 38194 38195 else 38196 # The variable is set, but is it from the command line or the environment? 38197 38198 # Try to remove the string !OBJDUMP! from our list. 38199 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38200 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38201 # If it failed, the variable was not from the command line. Ignore it, 38202 # but warn the user (except for BASH, which is always set by the calling BASH). 38203 if test "xOBJDUMP" != xBASH; then 38204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38205 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38206 fi 38207 # Try to locate tool using the code snippet 38208 if test -n "$ac_tool_prefix"; then 38209 for ac_prog in gobjdump objdump 38210 do 38211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38214 $as_echo_n "checking for $ac_word... " >&6; } 38215 if ${ac_cv_prog_OBJDUMP+:} false; then : 38216 $as_echo_n "(cached) " >&6 38217 else 38218 if test -n "$OBJDUMP"; then 38219 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38220 else 38221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38222 for as_dir in $PATH 38223 do 38224 IFS=$as_save_IFS 38225 test -z "$as_dir" && as_dir=. 38226 for ac_exec_ext in '' $ac_executable_extensions; do 38227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38228 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38230 break 2 38231 fi 38232 done 38233 done 38234 IFS=$as_save_IFS 38235 38236 fi 38237 fi 38238 OBJDUMP=$ac_cv_prog_OBJDUMP 38239 if test -n "$OBJDUMP"; then 38240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38241 $as_echo "$OBJDUMP" >&6; } 38242 else 38243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38244 $as_echo "no" >&6; } 38245 fi 38246 38247 38248 test -n "$OBJDUMP" && break 38249 done 38250 fi 38251 if test -z "$OBJDUMP"; then 38252 ac_ct_OBJDUMP=$OBJDUMP 38253 for ac_prog in gobjdump objdump 38254 do 38255 # Extract the first word of "$ac_prog", so it can be a program name with args. 38256 set dummy $ac_prog; ac_word=$2 38257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38258 $as_echo_n "checking for $ac_word... " >&6; } 38259 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38260 $as_echo_n "(cached) " >&6 38261 else 38262 if test -n "$ac_ct_OBJDUMP"; then 38263 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38264 else 38265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38266 for as_dir in $PATH 38267 do 38268 IFS=$as_save_IFS 38269 test -z "$as_dir" && as_dir=. 38270 for ac_exec_ext in '' $ac_executable_extensions; do 38271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38272 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38274 break 2 38275 fi 38276 done 38277 done 38278 IFS=$as_save_IFS 38279 38280 fi 38281 fi 38282 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38283 if test -n "$ac_ct_OBJDUMP"; then 38284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38285 $as_echo "$ac_ct_OBJDUMP" >&6; } 38286 else 38287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38288 $as_echo "no" >&6; } 38289 fi 38290 38291 38292 test -n "$ac_ct_OBJDUMP" && break 38293 done 38294 38295 if test "x$ac_ct_OBJDUMP" = x; then 38296 OBJDUMP="" 38297 else 38298 case $cross_compiling:$ac_tool_warned in 38299 yes:) 38300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38302 ac_tool_warned=yes ;; 38303 esac 38304 OBJDUMP=$ac_ct_OBJDUMP 38305 fi 38306 fi 38307 38308 else 38309 # If it succeeded, then it was overridden by the user. We will use it 38310 # for the tool. 38311 38312 # First remove it from the list of overridden variables, so we can test 38313 # for unknown variables in the end. 38314 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38315 38316 # Check if the provided tool contains a complete path. 38317 tool_specified="$OBJDUMP" 38318 tool_basename="${tool_specified##*/}" 38319 if test "x$tool_basename" = "x$tool_specified"; then 38320 # A command without a complete path is provided, search $PATH. 38321 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38322 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38323 # Extract the first word of "$tool_basename", so it can be a program name with args. 38324 set dummy $tool_basename; ac_word=$2 38325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38326 $as_echo_n "checking for $ac_word... " >&6; } 38327 if ${ac_cv_path_OBJDUMP+:} false; then : 38328 $as_echo_n "(cached) " >&6 38329 else 38330 case $OBJDUMP in 38331 [\\/]* | ?:[\\/]*) 38332 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38333 ;; 38334 *) 38335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38336 for as_dir in $PATH 38337 do 38338 IFS=$as_save_IFS 38339 test -z "$as_dir" && as_dir=. 38340 for ac_exec_ext in '' $ac_executable_extensions; do 38341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38342 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38344 break 2 38345 fi 38346 done 38347 done 38348 IFS=$as_save_IFS 38349 38350 ;; 38351 esac 38352 fi 38353 OBJDUMP=$ac_cv_path_OBJDUMP 38354 if test -n "$OBJDUMP"; then 38355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38356 $as_echo "$OBJDUMP" >&6; } 38357 else 38358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38359 $as_echo "no" >&6; } 38360 fi 38361 38362 38363 if test "x$OBJDUMP" = x; then 38364 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38365 fi 38366 else 38367 # Otherwise we believe it is a complete path. Use it as it is. 38368 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 38369 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 38370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 38371 $as_echo_n "checking for OBJDUMP... " >&6; } 38372 if test ! -x "$tool_specified"; then 38373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38374 $as_echo "not found" >&6; } 38375 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 38376 fi 38377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38378 $as_echo "$tool_specified" >&6; } 38379 fi 38380 fi 38381 fi 38382 38383 38384 if test "x$OBJDUMP" != x; then 38385 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 38386 # bails if argument is missing. 38387 38388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38389 38390 # First separate the path from the arguments. This will split at the first 38391 # space. 38392 complete="$OBJDUMP" 38393 path="${complete%% *}" 38394 tmp="$complete EOL" 38395 arguments="${tmp#* }" 38396 38397 # Input might be given as Windows format, start by converting to 38398 # unix format. 38399 new_path=`$CYGPATH -u "$path"` 38400 38401 # Now try to locate executable using which 38402 new_path=`$WHICH "$new_path" 2> /dev/null` 38403 # bat and cmd files are not always considered executable in cygwin causing which 38404 # to not find them 38405 if test "x$new_path" = x \ 38406 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38407 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38408 new_path=`$CYGPATH -u "$path"` 38409 fi 38410 if test "x$new_path" = x; then 38411 # Oops. Which didn't find the executable. 38412 # The splitting of arguments from the executable at a space might have been incorrect, 38413 # since paths with space are more likely in Windows. Give it another try with the whole 38414 # argument. 38415 path="$complete" 38416 arguments="EOL" 38417 new_path=`$CYGPATH -u "$path"` 38418 new_path=`$WHICH "$new_path" 2> /dev/null` 38419 # bat and cmd files are not always considered executable in cygwin causing which 38420 # to not find them 38421 if test "x$new_path" = x \ 38422 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38423 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38424 new_path=`$CYGPATH -u "$path"` 38425 fi 38426 if test "x$new_path" = x; then 38427 # It's still not found. Now this is an unrecoverable error. 38428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38429 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38430 has_space=`$ECHO "$complete" | $GREP " "` 38431 if test "x$has_space" != x; then 38432 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38433 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38434 fi 38435 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38436 fi 38437 fi 38438 38439 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38440 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38441 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38442 # "foo.exe" is OK but "foo" is an error. 38443 # 38444 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38445 # It is also a way to make sure we got the proper file name for the real test later on. 38446 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38447 if test "x$test_shortpath" = x; then 38448 # Short path failed, file does not exist as specified. 38449 # Try adding .exe or .cmd 38450 if test -f "${new_path}.exe"; then 38451 input_to_shortpath="${new_path}.exe" 38452 elif test -f "${new_path}.cmd"; then 38453 input_to_shortpath="${new_path}.cmd" 38454 else 38455 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 38456 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 38457 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38458 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38459 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38460 fi 38461 else 38462 input_to_shortpath="$new_path" 38463 fi 38464 38465 # Call helper function which possibly converts this using DOS-style short mode. 38466 # If so, the updated path is stored in $new_path. 38467 new_path="$input_to_shortpath" 38468 38469 input_path="$input_to_shortpath" 38470 # Check if we need to convert this using DOS-style short mode. If the path 38471 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38472 # take no chances and rewrite it. 38473 # Note: m4 eats our [], so we need to use [ and ] instead. 38474 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38475 if test "x$has_forbidden_chars" != x; then 38476 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38477 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38478 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38479 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38480 # Going to short mode and back again did indeed matter. Since short mode is 38481 # case insensitive, let's make it lowercase to improve readability. 38482 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38483 # Now convert it back to Unix-style (cygpath) 38484 input_path=`$CYGPATH -u "$shortmode_path"` 38485 new_path="$input_path" 38486 fi 38487 fi 38488 38489 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38490 if test "x$test_cygdrive_prefix" = x; then 38491 # As a simple fix, exclude /usr/bin since it's not a real path. 38492 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38493 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38494 # a path prefixed by /cygdrive for fixpath to work. 38495 new_path="$CYGWIN_ROOT_PATH$input_path" 38496 fi 38497 fi 38498 38499 # remove trailing .exe if any 38500 new_path="${new_path/%.exe/}" 38501 38502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38503 38504 # First separate the path from the arguments. This will split at the first 38505 # space. 38506 complete="$OBJDUMP" 38507 path="${complete%% *}" 38508 tmp="$complete EOL" 38509 arguments="${tmp#* }" 38510 38511 # Input might be given as Windows format, start by converting to 38512 # unix format. 38513 new_path="$path" 38514 38515 windows_path="$new_path" 38516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38517 unix_path=`$CYGPATH -u "$windows_path"` 38518 new_path="$unix_path" 38519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38520 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38521 new_path="$unix_path" 38522 fi 38523 38524 38525 # Now try to locate executable using which 38526 new_path=`$WHICH "$new_path" 2> /dev/null` 38527 38528 if test "x$new_path" = x; then 38529 # Oops. Which didn't find the executable. 38530 # The splitting of arguments from the executable at a space might have been incorrect, 38531 # since paths with space are more likely in Windows. Give it another try with the whole 38532 # argument. 38533 path="$complete" 38534 arguments="EOL" 38535 new_path="$path" 38536 38537 windows_path="$new_path" 38538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38539 unix_path=`$CYGPATH -u "$windows_path"` 38540 new_path="$unix_path" 38541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38543 new_path="$unix_path" 38544 fi 38545 38546 38547 new_path=`$WHICH "$new_path" 2> /dev/null` 38548 # bat and cmd files are not always considered executable in MSYS causing which 38549 # to not find them 38550 if test "x$new_path" = x \ 38551 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38552 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38553 new_path="$path" 38554 38555 windows_path="$new_path" 38556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38557 unix_path=`$CYGPATH -u "$windows_path"` 38558 new_path="$unix_path" 38559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38561 new_path="$unix_path" 38562 fi 38563 38564 fi 38565 38566 if test "x$new_path" = x; then 38567 # It's still not found. Now this is an unrecoverable error. 38568 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38569 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38570 has_space=`$ECHO "$complete" | $GREP " "` 38571 if test "x$has_space" != x; then 38572 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38573 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38574 fi 38575 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38576 fi 38577 fi 38578 38579 # Now new_path has a complete unix path to the binary 38580 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38581 # Keep paths in /bin as-is, but remove trailing .exe if any 38582 new_path="${new_path/%.exe/}" 38583 # Do not save /bin paths to all_fixpath_prefixes! 38584 else 38585 # Not in mixed or Windows style, start by that. 38586 new_path=`cmd //c echo $new_path` 38587 38588 input_path="$new_path" 38589 # Check if we need to convert this using DOS-style short mode. If the path 38590 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38591 # take no chances and rewrite it. 38592 # Note: m4 eats our [], so we need to use [ and ] instead. 38593 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38594 if test "x$has_forbidden_chars" != x; then 38595 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38596 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38597 fi 38598 38599 # Output is in $new_path 38600 38601 windows_path="$new_path" 38602 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38603 unix_path=`$CYGPATH -u "$windows_path"` 38604 new_path="$unix_path" 38605 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38606 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38607 new_path="$unix_path" 38608 fi 38609 38610 # remove trailing .exe if any 38611 new_path="${new_path/%.exe/}" 38612 38613 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38614 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38615 fi 38616 38617 else 38618 # We're on a posix platform. Hooray! :) 38619 # First separate the path from the arguments. This will split at the first 38620 # space. 38621 complete="$OBJDUMP" 38622 path="${complete%% *}" 38623 tmp="$complete EOL" 38624 arguments="${tmp#* }" 38625 38626 # Cannot rely on the command "which" here since it doesn't always work. 38627 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38628 if test -z "$is_absolute_path"; then 38629 # Path to executable is not absolute. Find it. 38630 IFS_save="$IFS" 38631 IFS=: 38632 for p in $PATH; do 38633 if test -f "$p/$path" && test -x "$p/$path"; then 38634 new_path="$p/$path" 38635 break 38636 fi 38637 done 38638 IFS="$IFS_save" 38639 else 38640 # This is an absolute path, we can use it without further modifications. 38641 new_path="$path" 38642 fi 38643 38644 if test "x$new_path" = x; then 38645 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38646 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38647 has_space=`$ECHO "$complete" | $GREP " "` 38648 if test "x$has_space" != x; then 38649 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38650 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38651 fi 38652 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38653 fi 38654 fi 38655 38656 # Now join together the path and the arguments once again 38657 if test "x$arguments" != xEOL; then 38658 new_complete="$new_path ${arguments% *}" 38659 else 38660 new_complete="$new_path" 38661 fi 38662 38663 if test "x$complete" != "x$new_complete"; then 38664 OBJDUMP="$new_complete" 38665 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 38666 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 38667 fi 38668 38669 fi 38670 38671 38672 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 38673 # to remain in place. Otherwise the compiler will not work in some situations 38674 # in later configure checks. 38675 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 38676 PATH="$OLD_PATH" 38677 fi 38678 38679 # Restore the flags to the user specified values. 38680 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 38681 CFLAGS="$ORG_CFLAGS" 38682 CXXFLAGS="$ORG_CXXFLAGS" 38683 OBJCFLAGS="$ORG_OBJCFLAGS" 38684 38685 38686 # Finally do some processing after the detection phase 38687 38688 if test "x$COMPILE_TYPE" = "xcross"; then 38689 # Now we need to find a C/C++ compiler that can build executables for the 38690 # build platform. We can't use the AC_PROG_CC macro, since it can only be 38691 # used once. Also, we need to do this without adding a tools dir to the 38692 # path, otherwise we might pick up cross-compilers which don't use standard 38693 # naming. 38694 38695 # FIXME: we should list the discovered compilers as an exclude pattern! 38696 # If we do that, we can do this detection before POST_DETECTION, and still 38697 # find the build compilers in the tools dir, if needed. 38698 38699 38700 # Publish this variable in the help. 38701 38702 38703 if test "x$BUILD_CC" = x; then 38704 # The variable is not set by user, try to locate tool using the code snippet 38705 for ac_prog in cl cc gcc 38706 do 38707 # Extract the first word of "$ac_prog", so it can be a program name with args. 38708 set dummy $ac_prog; ac_word=$2 38709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38710 $as_echo_n "checking for $ac_word... " >&6; } 38711 if ${ac_cv_path_BUILD_CC+:} false; then : 38712 $as_echo_n "(cached) " >&6 38713 else 38714 case $BUILD_CC in 38715 [\\/]* | ?:[\\/]*) 38716 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38717 ;; 38718 *) 38719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38720 for as_dir in $PATH 38721 do 38722 IFS=$as_save_IFS 38723 test -z "$as_dir" && as_dir=. 38724 for ac_exec_ext in '' $ac_executable_extensions; do 38725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38726 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38728 break 2 38729 fi 38730 done 38731 done 38732 IFS=$as_save_IFS 38733 38734 ;; 38735 esac 38736 fi 38737 BUILD_CC=$ac_cv_path_BUILD_CC 38738 if test -n "$BUILD_CC"; then 38739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38740 $as_echo "$BUILD_CC" >&6; } 38741 else 38742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38743 $as_echo "no" >&6; } 38744 fi 38745 38746 38747 test -n "$BUILD_CC" && break 38748 done 38749 38750 else 38751 # The variable is set, but is it from the command line or the environment? 38752 38753 # Try to remove the string !BUILD_CC! from our list. 38754 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 38755 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38756 # If it failed, the variable was not from the command line. Ignore it, 38757 # but warn the user (except for BASH, which is always set by the calling BASH). 38758 if test "xBUILD_CC" != xBASH; then 38759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 38760 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 38761 fi 38762 # Try to locate tool using the code snippet 38763 for ac_prog in cl cc gcc 38764 do 38765 # Extract the first word of "$ac_prog", so it can be a program name with args. 38766 set dummy $ac_prog; ac_word=$2 38767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38768 $as_echo_n "checking for $ac_word... " >&6; } 38769 if ${ac_cv_path_BUILD_CC+:} false; then : 38770 $as_echo_n "(cached) " >&6 38771 else 38772 case $BUILD_CC in 38773 [\\/]* | ?:[\\/]*) 38774 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38775 ;; 38776 *) 38777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38778 for as_dir in $PATH 38779 do 38780 IFS=$as_save_IFS 38781 test -z "$as_dir" && as_dir=. 38782 for ac_exec_ext in '' $ac_executable_extensions; do 38783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38784 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38786 break 2 38787 fi 38788 done 38789 done 38790 IFS=$as_save_IFS 38791 38792 ;; 38793 esac 38794 fi 38795 BUILD_CC=$ac_cv_path_BUILD_CC 38796 if test -n "$BUILD_CC"; then 38797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38798 $as_echo "$BUILD_CC" >&6; } 38799 else 38800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38801 $as_echo "no" >&6; } 38802 fi 38803 38804 38805 test -n "$BUILD_CC" && break 38806 done 38807 38808 else 38809 # If it succeeded, then it was overridden by the user. We will use it 38810 # for the tool. 38811 38812 # First remove it from the list of overridden variables, so we can test 38813 # for unknown variables in the end. 38814 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38815 38816 # Check if the provided tool contains a complete path. 38817 tool_specified="$BUILD_CC" 38818 tool_basename="${tool_specified##*/}" 38819 if test "x$tool_basename" = "x$tool_specified"; then 38820 # A command without a complete path is provided, search $PATH. 38821 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 38822 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 38823 # Extract the first word of "$tool_basename", so it can be a program name with args. 38824 set dummy $tool_basename; ac_word=$2 38825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38826 $as_echo_n "checking for $ac_word... " >&6; } 38827 if ${ac_cv_path_BUILD_CC+:} false; then : 38828 $as_echo_n "(cached) " >&6 38829 else 38830 case $BUILD_CC in 38831 [\\/]* | ?:[\\/]*) 38832 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38833 ;; 38834 *) 38835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38836 for as_dir in $PATH 38837 do 38838 IFS=$as_save_IFS 38839 test -z "$as_dir" && as_dir=. 38840 for ac_exec_ext in '' $ac_executable_extensions; do 38841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38842 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38844 break 2 38845 fi 38846 done 38847 done 38848 IFS=$as_save_IFS 38849 38850 ;; 38851 esac 38852 fi 38853 BUILD_CC=$ac_cv_path_BUILD_CC 38854 if test -n "$BUILD_CC"; then 38855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38856 $as_echo "$BUILD_CC" >&6; } 38857 else 38858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38859 $as_echo "no" >&6; } 38860 fi 38861 38862 38863 if test "x$BUILD_CC" = x; then 38864 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38865 fi 38866 else 38867 # Otherwise we believe it is a complete path. Use it as it is. 38868 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 38869 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 38870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 38871 $as_echo_n "checking for BUILD_CC... " >&6; } 38872 if test ! -x "$tool_specified"; then 38873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38874 $as_echo "not found" >&6; } 38875 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 38876 fi 38877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38878 $as_echo "$tool_specified" >&6; } 38879 fi 38880 fi 38881 fi 38882 38883 38884 38885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38886 38887 # First separate the path from the arguments. This will split at the first 38888 # space. 38889 complete="$BUILD_CC" 38890 path="${complete%% *}" 38891 tmp="$complete EOL" 38892 arguments="${tmp#* }" 38893 38894 # Input might be given as Windows format, start by converting to 38895 # unix format. 38896 new_path=`$CYGPATH -u "$path"` 38897 38898 # Now try to locate executable using which 38899 new_path=`$WHICH "$new_path" 2> /dev/null` 38900 # bat and cmd files are not always considered executable in cygwin causing which 38901 # to not find them 38902 if test "x$new_path" = x \ 38903 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38904 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38905 new_path=`$CYGPATH -u "$path"` 38906 fi 38907 if test "x$new_path" = x; then 38908 # Oops. Which didn't find the executable. 38909 # The splitting of arguments from the executable at a space might have been incorrect, 38910 # since paths with space are more likely in Windows. Give it another try with the whole 38911 # argument. 38912 path="$complete" 38913 arguments="EOL" 38914 new_path=`$CYGPATH -u "$path"` 38915 new_path=`$WHICH "$new_path" 2> /dev/null` 38916 # bat and cmd files are not always considered executable in cygwin causing which 38917 # to not find them 38918 if test "x$new_path" = x \ 38919 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38920 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38921 new_path=`$CYGPATH -u "$path"` 38922 fi 38923 if test "x$new_path" = x; then 38924 # It's still not found. Now this is an unrecoverable error. 38925 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 38926 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 38927 has_space=`$ECHO "$complete" | $GREP " "` 38928 if test "x$has_space" != x; then 38929 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38930 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38931 fi 38932 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 38933 fi 38934 fi 38935 38936 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38937 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38938 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38939 # "foo.exe" is OK but "foo" is an error. 38940 # 38941 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38942 # It is also a way to make sure we got the proper file name for the real test later on. 38943 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38944 if test "x$test_shortpath" = x; then 38945 # Short path failed, file does not exist as specified. 38946 # Try adding .exe or .cmd 38947 if test -f "${new_path}.exe"; then 38948 input_to_shortpath="${new_path}.exe" 38949 elif test -f "${new_path}.cmd"; then 38950 input_to_shortpath="${new_path}.cmd" 38951 else 38952 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 38953 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 38954 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38955 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38956 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 38957 fi 38958 else 38959 input_to_shortpath="$new_path" 38960 fi 38961 38962 # Call helper function which possibly converts this using DOS-style short mode. 38963 # If so, the updated path is stored in $new_path. 38964 new_path="$input_to_shortpath" 38965 38966 input_path="$input_to_shortpath" 38967 # Check if we need to convert this using DOS-style short mode. If the path 38968 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38969 # take no chances and rewrite it. 38970 # Note: m4 eats our [], so we need to use [ and ] instead. 38971 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38972 if test "x$has_forbidden_chars" != x; then 38973 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38974 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38975 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38976 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38977 # Going to short mode and back again did indeed matter. Since short mode is 38978 # case insensitive, let's make it lowercase to improve readability. 38979 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38980 # Now convert it back to Unix-style (cygpath) 38981 input_path=`$CYGPATH -u "$shortmode_path"` 38982 new_path="$input_path" 38983 fi 38984 fi 38985 38986 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38987 if test "x$test_cygdrive_prefix" = x; then 38988 # As a simple fix, exclude /usr/bin since it's not a real path. 38989 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38990 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38991 # a path prefixed by /cygdrive for fixpath to work. 38992 new_path="$CYGWIN_ROOT_PATH$input_path" 38993 fi 38994 fi 38995 38996 # remove trailing .exe if any 38997 new_path="${new_path/%.exe/}" 38998 38999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39000 39001 # First separate the path from the arguments. This will split at the first 39002 # space. 39003 complete="$BUILD_CC" 39004 path="${complete%% *}" 39005 tmp="$complete EOL" 39006 arguments="${tmp#* }" 39007 39008 # Input might be given as Windows format, start by converting to 39009 # unix format. 39010 new_path="$path" 39011 39012 windows_path="$new_path" 39013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39014 unix_path=`$CYGPATH -u "$windows_path"` 39015 new_path="$unix_path" 39016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39017 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39018 new_path="$unix_path" 39019 fi 39020 39021 39022 # Now try to locate executable using which 39023 new_path=`$WHICH "$new_path" 2> /dev/null` 39024 39025 if test "x$new_path" = x; then 39026 # Oops. Which didn't find the executable. 39027 # The splitting of arguments from the executable at a space might have been incorrect, 39028 # since paths with space are more likely in Windows. Give it another try with the whole 39029 # argument. 39030 path="$complete" 39031 arguments="EOL" 39032 new_path="$path" 39033 39034 windows_path="$new_path" 39035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39036 unix_path=`$CYGPATH -u "$windows_path"` 39037 new_path="$unix_path" 39038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39040 new_path="$unix_path" 39041 fi 39042 39043 39044 new_path=`$WHICH "$new_path" 2> /dev/null` 39045 # bat and cmd files are not always considered executable in MSYS causing which 39046 # to not find them 39047 if test "x$new_path" = x \ 39048 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39049 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39050 new_path="$path" 39051 39052 windows_path="$new_path" 39053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39054 unix_path=`$CYGPATH -u "$windows_path"` 39055 new_path="$unix_path" 39056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39057 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39058 new_path="$unix_path" 39059 fi 39060 39061 fi 39062 39063 if test "x$new_path" = x; then 39064 # It's still not found. Now this is an unrecoverable error. 39065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39066 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39067 has_space=`$ECHO "$complete" | $GREP " "` 39068 if test "x$has_space" != x; then 39069 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39070 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39071 fi 39072 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39073 fi 39074 fi 39075 39076 # Now new_path has a complete unix path to the binary 39077 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39078 # Keep paths in /bin as-is, but remove trailing .exe if any 39079 new_path="${new_path/%.exe/}" 39080 # Do not save /bin paths to all_fixpath_prefixes! 39081 else 39082 # Not in mixed or Windows style, start by that. 39083 new_path=`cmd //c echo $new_path` 39084 39085 input_path="$new_path" 39086 # Check if we need to convert this using DOS-style short mode. If the path 39087 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39088 # take no chances and rewrite it. 39089 # Note: m4 eats our [], so we need to use [ and ] instead. 39090 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39091 if test "x$has_forbidden_chars" != x; then 39092 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39093 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39094 fi 39095 39096 # Output is in $new_path 39097 39098 windows_path="$new_path" 39099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39100 unix_path=`$CYGPATH -u "$windows_path"` 39101 new_path="$unix_path" 39102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39103 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39104 new_path="$unix_path" 39105 fi 39106 39107 # remove trailing .exe if any 39108 new_path="${new_path/%.exe/}" 39109 39110 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39111 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39112 fi 39113 39114 else 39115 # We're on a posix platform. Hooray! :) 39116 # First separate the path from the arguments. This will split at the first 39117 # space. 39118 complete="$BUILD_CC" 39119 path="${complete%% *}" 39120 tmp="$complete EOL" 39121 arguments="${tmp#* }" 39122 39123 # Cannot rely on the command "which" here since it doesn't always work. 39124 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39125 if test -z "$is_absolute_path"; then 39126 # Path to executable is not absolute. Find it. 39127 IFS_save="$IFS" 39128 IFS=: 39129 for p in $PATH; do 39130 if test -f "$p/$path" && test -x "$p/$path"; then 39131 new_path="$p/$path" 39132 break 39133 fi 39134 done 39135 IFS="$IFS_save" 39136 else 39137 # This is an absolute path, we can use it without further modifications. 39138 new_path="$path" 39139 fi 39140 39141 if test "x$new_path" = x; then 39142 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39143 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39144 has_space=`$ECHO "$complete" | $GREP " "` 39145 if test "x$has_space" != x; then 39146 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39147 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39148 fi 39149 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39150 fi 39151 fi 39152 39153 # Now join together the path and the arguments once again 39154 if test "x$arguments" != xEOL; then 39155 new_complete="$new_path ${arguments% *}" 39156 else 39157 new_complete="$new_path" 39158 fi 39159 39160 if test "x$complete" != "x$new_complete"; then 39161 BUILD_CC="$new_complete" 39162 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39163 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39164 fi 39165 39166 39167 39168 # Publish this variable in the help. 39169 39170 39171 if test "x$BUILD_CXX" = x; then 39172 # The variable is not set by user, try to locate tool using the code snippet 39173 for ac_prog in cl CC g++ 39174 do 39175 # Extract the first word of "$ac_prog", so it can be a program name with args. 39176 set dummy $ac_prog; ac_word=$2 39177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39178 $as_echo_n "checking for $ac_word... " >&6; } 39179 if ${ac_cv_path_BUILD_CXX+:} false; then : 39180 $as_echo_n "(cached) " >&6 39181 else 39182 case $BUILD_CXX in 39183 [\\/]* | ?:[\\/]*) 39184 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39185 ;; 39186 *) 39187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39188 for as_dir in $PATH 39189 do 39190 IFS=$as_save_IFS 39191 test -z "$as_dir" && as_dir=. 39192 for ac_exec_ext in '' $ac_executable_extensions; do 39193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39194 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39196 break 2 39197 fi 39198 done 39199 done 39200 IFS=$as_save_IFS 39201 39202 ;; 39203 esac 39204 fi 39205 BUILD_CXX=$ac_cv_path_BUILD_CXX 39206 if test -n "$BUILD_CXX"; then 39207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39208 $as_echo "$BUILD_CXX" >&6; } 39209 else 39210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39211 $as_echo "no" >&6; } 39212 fi 39213 39214 39215 test -n "$BUILD_CXX" && break 39216 done 39217 39218 else 39219 # The variable is set, but is it from the command line or the environment? 39220 39221 # Try to remove the string !BUILD_CXX! from our list. 39222 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39223 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39224 # If it failed, the variable was not from the command line. Ignore it, 39225 # but warn the user (except for BASH, which is always set by the calling BASH). 39226 if test "xBUILD_CXX" != xBASH; then 39227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39228 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39229 fi 39230 # Try to locate tool using the code snippet 39231 for ac_prog in cl CC g++ 39232 do 39233 # Extract the first word of "$ac_prog", so it can be a program name with args. 39234 set dummy $ac_prog; ac_word=$2 39235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39236 $as_echo_n "checking for $ac_word... " >&6; } 39237 if ${ac_cv_path_BUILD_CXX+:} false; then : 39238 $as_echo_n "(cached) " >&6 39239 else 39240 case $BUILD_CXX in 39241 [\\/]* | ?:[\\/]*) 39242 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39243 ;; 39244 *) 39245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39246 for as_dir in $PATH 39247 do 39248 IFS=$as_save_IFS 39249 test -z "$as_dir" && as_dir=. 39250 for ac_exec_ext in '' $ac_executable_extensions; do 39251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39252 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39254 break 2 39255 fi 39256 done 39257 done 39258 IFS=$as_save_IFS 39259 39260 ;; 39261 esac 39262 fi 39263 BUILD_CXX=$ac_cv_path_BUILD_CXX 39264 if test -n "$BUILD_CXX"; then 39265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39266 $as_echo "$BUILD_CXX" >&6; } 39267 else 39268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39269 $as_echo "no" >&6; } 39270 fi 39271 39272 39273 test -n "$BUILD_CXX" && break 39274 done 39275 39276 else 39277 # If it succeeded, then it was overridden by the user. We will use it 39278 # for the tool. 39279 39280 # First remove it from the list of overridden variables, so we can test 39281 # for unknown variables in the end. 39282 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39283 39284 # Check if the provided tool contains a complete path. 39285 tool_specified="$BUILD_CXX" 39286 tool_basename="${tool_specified##*/}" 39287 if test "x$tool_basename" = "x$tool_specified"; then 39288 # A command without a complete path is provided, search $PATH. 39289 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39290 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39291 # Extract the first word of "$tool_basename", so it can be a program name with args. 39292 set dummy $tool_basename; ac_word=$2 39293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39294 $as_echo_n "checking for $ac_word... " >&6; } 39295 if ${ac_cv_path_BUILD_CXX+:} false; then : 39296 $as_echo_n "(cached) " >&6 39297 else 39298 case $BUILD_CXX in 39299 [\\/]* | ?:[\\/]*) 39300 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39301 ;; 39302 *) 39303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39304 for as_dir in $PATH 39305 do 39306 IFS=$as_save_IFS 39307 test -z "$as_dir" && as_dir=. 39308 for ac_exec_ext in '' $ac_executable_extensions; do 39309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39310 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39312 break 2 39313 fi 39314 done 39315 done 39316 IFS=$as_save_IFS 39317 39318 ;; 39319 esac 39320 fi 39321 BUILD_CXX=$ac_cv_path_BUILD_CXX 39322 if test -n "$BUILD_CXX"; then 39323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39324 $as_echo "$BUILD_CXX" >&6; } 39325 else 39326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39327 $as_echo "no" >&6; } 39328 fi 39329 39330 39331 if test "x$BUILD_CXX" = x; then 39332 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39333 fi 39334 else 39335 # Otherwise we believe it is a complete path. Use it as it is. 39336 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39337 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39339 $as_echo_n "checking for BUILD_CXX... " >&6; } 39340 if test ! -x "$tool_specified"; then 39341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39342 $as_echo "not found" >&6; } 39343 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39344 fi 39345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39346 $as_echo "$tool_specified" >&6; } 39347 fi 39348 fi 39349 fi 39350 39351 39352 39353 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39354 39355 # First separate the path from the arguments. This will split at the first 39356 # space. 39357 complete="$BUILD_CXX" 39358 path="${complete%% *}" 39359 tmp="$complete EOL" 39360 arguments="${tmp#* }" 39361 39362 # Input might be given as Windows format, start by converting to 39363 # unix format. 39364 new_path=`$CYGPATH -u "$path"` 39365 39366 # Now try to locate executable using which 39367 new_path=`$WHICH "$new_path" 2> /dev/null` 39368 # bat and cmd files are not always considered executable in cygwin causing which 39369 # to not find them 39370 if test "x$new_path" = x \ 39371 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39372 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39373 new_path=`$CYGPATH -u "$path"` 39374 fi 39375 if test "x$new_path" = x; then 39376 # Oops. Which didn't find the executable. 39377 # The splitting of arguments from the executable at a space might have been incorrect, 39378 # since paths with space are more likely in Windows. Give it another try with the whole 39379 # argument. 39380 path="$complete" 39381 arguments="EOL" 39382 new_path=`$CYGPATH -u "$path"` 39383 new_path=`$WHICH "$new_path" 2> /dev/null` 39384 # bat and cmd files are not always considered executable in cygwin causing which 39385 # to not find them 39386 if test "x$new_path" = x \ 39387 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39388 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39389 new_path=`$CYGPATH -u "$path"` 39390 fi 39391 if test "x$new_path" = x; then 39392 # It's still not found. Now this is an unrecoverable error. 39393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39394 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39395 has_space=`$ECHO "$complete" | $GREP " "` 39396 if test "x$has_space" != x; then 39397 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39398 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39399 fi 39400 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39401 fi 39402 fi 39403 39404 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39405 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39406 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39407 # "foo.exe" is OK but "foo" is an error. 39408 # 39409 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39410 # It is also a way to make sure we got the proper file name for the real test later on. 39411 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39412 if test "x$test_shortpath" = x; then 39413 # Short path failed, file does not exist as specified. 39414 # Try adding .exe or .cmd 39415 if test -f "${new_path}.exe"; then 39416 input_to_shortpath="${new_path}.exe" 39417 elif test -f "${new_path}.cmd"; then 39418 input_to_shortpath="${new_path}.cmd" 39419 else 39420 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 39421 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 39422 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39423 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39424 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39425 fi 39426 else 39427 input_to_shortpath="$new_path" 39428 fi 39429 39430 # Call helper function which possibly converts this using DOS-style short mode. 39431 # If so, the updated path is stored in $new_path. 39432 new_path="$input_to_shortpath" 39433 39434 input_path="$input_to_shortpath" 39435 # Check if we need to convert this using DOS-style short mode. If the path 39436 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39437 # take no chances and rewrite it. 39438 # Note: m4 eats our [], so we need to use [ and ] instead. 39439 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39440 if test "x$has_forbidden_chars" != x; then 39441 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39442 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39443 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39444 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39445 # Going to short mode and back again did indeed matter. Since short mode is 39446 # case insensitive, let's make it lowercase to improve readability. 39447 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39448 # Now convert it back to Unix-style (cygpath) 39449 input_path=`$CYGPATH -u "$shortmode_path"` 39450 new_path="$input_path" 39451 fi 39452 fi 39453 39454 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39455 if test "x$test_cygdrive_prefix" = x; then 39456 # As a simple fix, exclude /usr/bin since it's not a real path. 39457 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39458 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39459 # a path prefixed by /cygdrive for fixpath to work. 39460 new_path="$CYGWIN_ROOT_PATH$input_path" 39461 fi 39462 fi 39463 39464 # remove trailing .exe if any 39465 new_path="${new_path/%.exe/}" 39466 39467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39468 39469 # First separate the path from the arguments. This will split at the first 39470 # space. 39471 complete="$BUILD_CXX" 39472 path="${complete%% *}" 39473 tmp="$complete EOL" 39474 arguments="${tmp#* }" 39475 39476 # Input might be given as Windows format, start by converting to 39477 # unix format. 39478 new_path="$path" 39479 39480 windows_path="$new_path" 39481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39482 unix_path=`$CYGPATH -u "$windows_path"` 39483 new_path="$unix_path" 39484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39485 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39486 new_path="$unix_path" 39487 fi 39488 39489 39490 # Now try to locate executable using which 39491 new_path=`$WHICH "$new_path" 2> /dev/null` 39492 39493 if test "x$new_path" = x; then 39494 # Oops. Which didn't find the executable. 39495 # The splitting of arguments from the executable at a space might have been incorrect, 39496 # since paths with space are more likely in Windows. Give it another try with the whole 39497 # argument. 39498 path="$complete" 39499 arguments="EOL" 39500 new_path="$path" 39501 39502 windows_path="$new_path" 39503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39504 unix_path=`$CYGPATH -u "$windows_path"` 39505 new_path="$unix_path" 39506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39507 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39508 new_path="$unix_path" 39509 fi 39510 39511 39512 new_path=`$WHICH "$new_path" 2> /dev/null` 39513 # bat and cmd files are not always considered executable in MSYS causing which 39514 # to not find them 39515 if test "x$new_path" = x \ 39516 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39517 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39518 new_path="$path" 39519 39520 windows_path="$new_path" 39521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39522 unix_path=`$CYGPATH -u "$windows_path"` 39523 new_path="$unix_path" 39524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39525 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39526 new_path="$unix_path" 39527 fi 39528 39529 fi 39530 39531 if test "x$new_path" = x; then 39532 # It's still not found. Now this is an unrecoverable error. 39533 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39534 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39535 has_space=`$ECHO "$complete" | $GREP " "` 39536 if test "x$has_space" != x; then 39537 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39538 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39539 fi 39540 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39541 fi 39542 fi 39543 39544 # Now new_path has a complete unix path to the binary 39545 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39546 # Keep paths in /bin as-is, but remove trailing .exe if any 39547 new_path="${new_path/%.exe/}" 39548 # Do not save /bin paths to all_fixpath_prefixes! 39549 else 39550 # Not in mixed or Windows style, start by that. 39551 new_path=`cmd //c echo $new_path` 39552 39553 input_path="$new_path" 39554 # Check if we need to convert this using DOS-style short mode. If the path 39555 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39556 # take no chances and rewrite it. 39557 # Note: m4 eats our [], so we need to use [ and ] instead. 39558 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39559 if test "x$has_forbidden_chars" != x; then 39560 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39561 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39562 fi 39563 39564 # Output is in $new_path 39565 39566 windows_path="$new_path" 39567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39568 unix_path=`$CYGPATH -u "$windows_path"` 39569 new_path="$unix_path" 39570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39571 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39572 new_path="$unix_path" 39573 fi 39574 39575 # remove trailing .exe if any 39576 new_path="${new_path/%.exe/}" 39577 39578 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39579 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39580 fi 39581 39582 else 39583 # We're on a posix platform. Hooray! :) 39584 # First separate the path from the arguments. This will split at the first 39585 # space. 39586 complete="$BUILD_CXX" 39587 path="${complete%% *}" 39588 tmp="$complete EOL" 39589 arguments="${tmp#* }" 39590 39591 # Cannot rely on the command "which" here since it doesn't always work. 39592 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39593 if test -z "$is_absolute_path"; then 39594 # Path to executable is not absolute. Find it. 39595 IFS_save="$IFS" 39596 IFS=: 39597 for p in $PATH; do 39598 if test -f "$p/$path" && test -x "$p/$path"; then 39599 new_path="$p/$path" 39600 break 39601 fi 39602 done 39603 IFS="$IFS_save" 39604 else 39605 # This is an absolute path, we can use it without further modifications. 39606 new_path="$path" 39607 fi 39608 39609 if test "x$new_path" = x; then 39610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39611 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39612 has_space=`$ECHO "$complete" | $GREP " "` 39613 if test "x$has_space" != x; then 39614 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39615 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39616 fi 39617 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39618 fi 39619 fi 39620 39621 # Now join together the path and the arguments once again 39622 if test "x$arguments" != xEOL; then 39623 new_complete="$new_path ${arguments% *}" 39624 else 39625 new_complete="$new_path" 39626 fi 39627 39628 if test "x$complete" != "x$new_complete"; then 39629 BUILD_CXX="$new_complete" 39630 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 39631 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 39632 fi 39633 39634 39635 39636 # Publish this variable in the help. 39637 39638 39639 if test "x$BUILD_LD" = x; then 39640 # The variable is not set by user, try to locate tool using the code snippet 39641 for ac_prog in ld 39642 do 39643 # Extract the first word of "$ac_prog", so it can be a program name with args. 39644 set dummy $ac_prog; ac_word=$2 39645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39646 $as_echo_n "checking for $ac_word... " >&6; } 39647 if ${ac_cv_path_BUILD_LD+:} false; then : 39648 $as_echo_n "(cached) " >&6 39649 else 39650 case $BUILD_LD in 39651 [\\/]* | ?:[\\/]*) 39652 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39653 ;; 39654 *) 39655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39656 for as_dir in $PATH 39657 do 39658 IFS=$as_save_IFS 39659 test -z "$as_dir" && as_dir=. 39660 for ac_exec_ext in '' $ac_executable_extensions; do 39661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39662 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39664 break 2 39665 fi 39666 done 39667 done 39668 IFS=$as_save_IFS 39669 39670 ;; 39671 esac 39672 fi 39673 BUILD_LD=$ac_cv_path_BUILD_LD 39674 if test -n "$BUILD_LD"; then 39675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39676 $as_echo "$BUILD_LD" >&6; } 39677 else 39678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39679 $as_echo "no" >&6; } 39680 fi 39681 39682 39683 test -n "$BUILD_LD" && break 39684 done 39685 39686 else 39687 # The variable is set, but is it from the command line or the environment? 39688 39689 # Try to remove the string !BUILD_LD! from our list. 39690 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 39691 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39692 # If it failed, the variable was not from the command line. Ignore it, 39693 # but warn the user (except for BASH, which is always set by the calling BASH). 39694 if test "xBUILD_LD" != xBASH; then 39695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 39696 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 39697 fi 39698 # Try to locate tool using the code snippet 39699 for ac_prog in ld 39700 do 39701 # Extract the first word of "$ac_prog", so it can be a program name with args. 39702 set dummy $ac_prog; ac_word=$2 39703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39704 $as_echo_n "checking for $ac_word... " >&6; } 39705 if ${ac_cv_path_BUILD_LD+:} false; then : 39706 $as_echo_n "(cached) " >&6 39707 else 39708 case $BUILD_LD in 39709 [\\/]* | ?:[\\/]*) 39710 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39711 ;; 39712 *) 39713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39714 for as_dir in $PATH 39715 do 39716 IFS=$as_save_IFS 39717 test -z "$as_dir" && as_dir=. 39718 for ac_exec_ext in '' $ac_executable_extensions; do 39719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39720 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39722 break 2 39723 fi 39724 done 39725 done 39726 IFS=$as_save_IFS 39727 39728 ;; 39729 esac 39730 fi 39731 BUILD_LD=$ac_cv_path_BUILD_LD 39732 if test -n "$BUILD_LD"; then 39733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39734 $as_echo "$BUILD_LD" >&6; } 39735 else 39736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39737 $as_echo "no" >&6; } 39738 fi 39739 39740 39741 test -n "$BUILD_LD" && break 39742 done 39743 39744 else 39745 # If it succeeded, then it was overridden by the user. We will use it 39746 # for the tool. 39747 39748 # First remove it from the list of overridden variables, so we can test 39749 # for unknown variables in the end. 39750 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39751 39752 # Check if the provided tool contains a complete path. 39753 tool_specified="$BUILD_LD" 39754 tool_basename="${tool_specified##*/}" 39755 if test "x$tool_basename" = "x$tool_specified"; then 39756 # A command without a complete path is provided, search $PATH. 39757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 39758 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 39759 # Extract the first word of "$tool_basename", so it can be a program name with args. 39760 set dummy $tool_basename; ac_word=$2 39761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39762 $as_echo_n "checking for $ac_word... " >&6; } 39763 if ${ac_cv_path_BUILD_LD+:} false; then : 39764 $as_echo_n "(cached) " >&6 39765 else 39766 case $BUILD_LD in 39767 [\\/]* | ?:[\\/]*) 39768 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39769 ;; 39770 *) 39771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39772 for as_dir in $PATH 39773 do 39774 IFS=$as_save_IFS 39775 test -z "$as_dir" && as_dir=. 39776 for ac_exec_ext in '' $ac_executable_extensions; do 39777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39778 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39780 break 2 39781 fi 39782 done 39783 done 39784 IFS=$as_save_IFS 39785 39786 ;; 39787 esac 39788 fi 39789 BUILD_LD=$ac_cv_path_BUILD_LD 39790 if test -n "$BUILD_LD"; then 39791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39792 $as_echo "$BUILD_LD" >&6; } 39793 else 39794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39795 $as_echo "no" >&6; } 39796 fi 39797 39798 39799 if test "x$BUILD_LD" = x; then 39800 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39801 fi 39802 else 39803 # Otherwise we believe it is a complete path. Use it as it is. 39804 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 39805 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 39806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 39807 $as_echo_n "checking for BUILD_LD... " >&6; } 39808 if test ! -x "$tool_specified"; then 39809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39810 $as_echo "not found" >&6; } 39811 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 39812 fi 39813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39814 $as_echo "$tool_specified" >&6; } 39815 fi 39816 fi 39817 fi 39818 39819 39820 39821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39822 39823 # First separate the path from the arguments. This will split at the first 39824 # space. 39825 complete="$BUILD_LD" 39826 path="${complete%% *}" 39827 tmp="$complete EOL" 39828 arguments="${tmp#* }" 39829 39830 # Input might be given as Windows format, start by converting to 39831 # unix format. 39832 new_path=`$CYGPATH -u "$path"` 39833 39834 # Now try to locate executable using which 39835 new_path=`$WHICH "$new_path" 2> /dev/null` 39836 # bat and cmd files are not always considered executable in cygwin causing which 39837 # to not find them 39838 if test "x$new_path" = x \ 39839 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39840 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39841 new_path=`$CYGPATH -u "$path"` 39842 fi 39843 if test "x$new_path" = x; then 39844 # Oops. Which didn't find the executable. 39845 # The splitting of arguments from the executable at a space might have been incorrect, 39846 # since paths with space are more likely in Windows. Give it another try with the whole 39847 # argument. 39848 path="$complete" 39849 arguments="EOL" 39850 new_path=`$CYGPATH -u "$path"` 39851 new_path=`$WHICH "$new_path" 2> /dev/null` 39852 # bat and cmd files are not always considered executable in cygwin causing which 39853 # to not find them 39854 if test "x$new_path" = x \ 39855 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39856 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39857 new_path=`$CYGPATH -u "$path"` 39858 fi 39859 if test "x$new_path" = x; then 39860 # It's still not found. Now this is an unrecoverable error. 39861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 39862 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 39863 has_space=`$ECHO "$complete" | $GREP " "` 39864 if test "x$has_space" != x; then 39865 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39866 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39867 fi 39868 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39869 fi 39870 fi 39871 39872 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39873 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39874 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39875 # "foo.exe" is OK but "foo" is an error. 39876 # 39877 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39878 # It is also a way to make sure we got the proper file name for the real test later on. 39879 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39880 if test "x$test_shortpath" = x; then 39881 # Short path failed, file does not exist as specified. 39882 # Try adding .exe or .cmd 39883 if test -f "${new_path}.exe"; then 39884 input_to_shortpath="${new_path}.exe" 39885 elif test -f "${new_path}.cmd"; then 39886 input_to_shortpath="${new_path}.cmd" 39887 else 39888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 39889 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 39890 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39891 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39892 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39893 fi 39894 else 39895 input_to_shortpath="$new_path" 39896 fi 39897 39898 # Call helper function which possibly converts this using DOS-style short mode. 39899 # If so, the updated path is stored in $new_path. 39900 new_path="$input_to_shortpath" 39901 39902 input_path="$input_to_shortpath" 39903 # Check if we need to convert this using DOS-style short mode. If the path 39904 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39905 # take no chances and rewrite it. 39906 # Note: m4 eats our [], so we need to use [ and ] instead. 39907 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39908 if test "x$has_forbidden_chars" != x; then 39909 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39910 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39911 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39912 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39913 # Going to short mode and back again did indeed matter. Since short mode is 39914 # case insensitive, let's make it lowercase to improve readability. 39915 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39916 # Now convert it back to Unix-style (cygpath) 39917 input_path=`$CYGPATH -u "$shortmode_path"` 39918 new_path="$input_path" 39919 fi 39920 fi 39921 39922 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39923 if test "x$test_cygdrive_prefix" = x; then 39924 # As a simple fix, exclude /usr/bin since it's not a real path. 39925 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39926 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39927 # a path prefixed by /cygdrive for fixpath to work. 39928 new_path="$CYGWIN_ROOT_PATH$input_path" 39929 fi 39930 fi 39931 39932 # remove trailing .exe if any 39933 new_path="${new_path/%.exe/}" 39934 39935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39936 39937 # First separate the path from the arguments. This will split at the first 39938 # space. 39939 complete="$BUILD_LD" 39940 path="${complete%% *}" 39941 tmp="$complete EOL" 39942 arguments="${tmp#* }" 39943 39944 # Input might be given as Windows format, start by converting to 39945 # unix format. 39946 new_path="$path" 39947 39948 windows_path="$new_path" 39949 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39950 unix_path=`$CYGPATH -u "$windows_path"` 39951 new_path="$unix_path" 39952 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39953 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39954 new_path="$unix_path" 39955 fi 39956 39957 39958 # Now try to locate executable using which 39959 new_path=`$WHICH "$new_path" 2> /dev/null` 39960 39961 if test "x$new_path" = x; then 39962 # Oops. Which didn't find the executable. 39963 # The splitting of arguments from the executable at a space might have been incorrect, 39964 # since paths with space are more likely in Windows. Give it another try with the whole 39965 # argument. 39966 path="$complete" 39967 arguments="EOL" 39968 new_path="$path" 39969 39970 windows_path="$new_path" 39971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39972 unix_path=`$CYGPATH -u "$windows_path"` 39973 new_path="$unix_path" 39974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39975 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39976 new_path="$unix_path" 39977 fi 39978 39979 39980 new_path=`$WHICH "$new_path" 2> /dev/null` 39981 # bat and cmd files are not always considered executable in MSYS causing which 39982 # to not find them 39983 if test "x$new_path" = x \ 39984 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39985 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39986 new_path="$path" 39987 39988 windows_path="$new_path" 39989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39990 unix_path=`$CYGPATH -u "$windows_path"` 39991 new_path="$unix_path" 39992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39994 new_path="$unix_path" 39995 fi 39996 39997 fi 39998 39999 if test "x$new_path" = x; then 40000 # It's still not found. Now this is an unrecoverable error. 40001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40002 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40003 has_space=`$ECHO "$complete" | $GREP " "` 40004 if test "x$has_space" != x; then 40005 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40006 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40007 fi 40008 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40009 fi 40010 fi 40011 40012 # Now new_path has a complete unix path to the binary 40013 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40014 # Keep paths in /bin as-is, but remove trailing .exe if any 40015 new_path="${new_path/%.exe/}" 40016 # Do not save /bin paths to all_fixpath_prefixes! 40017 else 40018 # Not in mixed or Windows style, start by that. 40019 new_path=`cmd //c echo $new_path` 40020 40021 input_path="$new_path" 40022 # Check if we need to convert this using DOS-style short mode. If the path 40023 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40024 # take no chances and rewrite it. 40025 # Note: m4 eats our [], so we need to use [ and ] instead. 40026 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40027 if test "x$has_forbidden_chars" != x; then 40028 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40029 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40030 fi 40031 40032 # Output is in $new_path 40033 40034 windows_path="$new_path" 40035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40036 unix_path=`$CYGPATH -u "$windows_path"` 40037 new_path="$unix_path" 40038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40040 new_path="$unix_path" 40041 fi 40042 40043 # remove trailing .exe if any 40044 new_path="${new_path/%.exe/}" 40045 40046 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40047 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40048 fi 40049 40050 else 40051 # We're on a posix platform. Hooray! :) 40052 # First separate the path from the arguments. This will split at the first 40053 # space. 40054 complete="$BUILD_LD" 40055 path="${complete%% *}" 40056 tmp="$complete EOL" 40057 arguments="${tmp#* }" 40058 40059 # Cannot rely on the command "which" here since it doesn't always work. 40060 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40061 if test -z "$is_absolute_path"; then 40062 # Path to executable is not absolute. Find it. 40063 IFS_save="$IFS" 40064 IFS=: 40065 for p in $PATH; do 40066 if test -f "$p/$path" && test -x "$p/$path"; then 40067 new_path="$p/$path" 40068 break 40069 fi 40070 done 40071 IFS="$IFS_save" 40072 else 40073 # This is an absolute path, we can use it without further modifications. 40074 new_path="$path" 40075 fi 40076 40077 if test "x$new_path" = x; then 40078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40079 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40080 has_space=`$ECHO "$complete" | $GREP " "` 40081 if test "x$has_space" != x; then 40082 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40083 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40084 fi 40085 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40086 fi 40087 fi 40088 40089 # Now join together the path and the arguments once again 40090 if test "x$arguments" != xEOL; then 40091 new_complete="$new_path ${arguments% *}" 40092 else 40093 new_complete="$new_path" 40094 fi 40095 40096 if test "x$complete" != "x$new_complete"; then 40097 BUILD_LD="$new_complete" 40098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40099 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40100 fi 40101 40102 else 40103 # If we are not cross compiling, use the normal target compilers for 40104 # building the build platform executables. 40105 BUILD_CC="$CC" 40106 BUILD_CXX="$CXX" 40107 BUILD_LD="$LD" 40108 fi 40109 40110 40111 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40112 # For hotspot, we need these in Windows mixed path, 40113 # so rewrite them all. Need added .exe suffix. 40114 HOTSPOT_CXX="$CXX.exe" 40115 HOTSPOT_LD="$LD.exe" 40116 HOTSPOT_MT="$MT.exe" 40117 HOTSPOT_RC="$RC.exe" 40118 40119 unix_path="$HOTSPOT_CXX" 40120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40121 windows_path=`$CYGPATH -m "$unix_path"` 40122 HOTSPOT_CXX="$windows_path" 40123 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40124 windows_path=`cmd //c echo $unix_path` 40125 HOTSPOT_CXX="$windows_path" 40126 fi 40127 40128 40129 unix_path="$HOTSPOT_LD" 40130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40131 windows_path=`$CYGPATH -m "$unix_path"` 40132 HOTSPOT_LD="$windows_path" 40133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40134 windows_path=`cmd //c echo $unix_path` 40135 HOTSPOT_LD="$windows_path" 40136 fi 40137 40138 40139 unix_path="$HOTSPOT_MT" 40140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40141 windows_path=`$CYGPATH -m "$unix_path"` 40142 HOTSPOT_MT="$windows_path" 40143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40144 windows_path=`cmd //c echo $unix_path` 40145 HOTSPOT_MT="$windows_path" 40146 fi 40147 40148 40149 unix_path="$HOTSPOT_RC" 40150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40151 windows_path=`$CYGPATH -m "$unix_path"` 40152 HOTSPOT_RC="$windows_path" 40153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40154 windows_path=`cmd //c echo $unix_path` 40155 HOTSPOT_RC="$windows_path" 40156 fi 40157 40158 40159 40160 else 40161 HOTSPOT_CXX="$CXX" 40162 HOTSPOT_LD="$LD" 40163 fi 40164 40165 40166 40167 if test "x$TOOLCHAIN_TYPE" = xclang; then 40168 USE_CLANG=true 40169 fi 40170 40171 40172 # LDEXE is the linker to use, when creating executables. Not really used. 40173 # FIXME: These should just be removed! 40174 LDEXE="$LD" 40175 LDEXECXX="$LDCXX" 40176 40177 40178 40179 40180 # The package path is used only on macosx? 40181 # FIXME: clean this up, and/or move it elsewhere. 40182 PACKAGE_PATH=/opt/local 40183 40184 40185 # Check for extra potential brokenness. 40186 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40187 # On Windows, double-check that we got the right compiler. 40188 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40189 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40190 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40191 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 40192 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 40193 fi 40194 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40195 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40196 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40197 fi 40198 fi 40199 fi 40200 40201 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40202 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40203 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40204 # This is later checked when setting flags. 40205 fi 40206 40207 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 40208 # in executable.' 40209 USING_BROKEN_SUSE_LD=no 40210 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 40211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 40212 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 40213 echo "SUNWprivate_1.1 { local: *; };" > version-script.map 40214 echo "int main() { }" > main.c 40215 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 40216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40217 $as_echo "no" >&6; } 40218 USING_BROKEN_SUSE_LD=no 40219 else 40220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40221 $as_echo "yes" >&6; } 40222 USING_BROKEN_SUSE_LD=yes 40223 fi 40224 rm -rf version-script.map main.c 40225 fi 40226 40227 40228 40229 # Setup the JTReg Regression Test Harness. 40230 40231 40232 # Check whether --with-jtreg was given. 40233 if test "${with_jtreg+set}" = set; then : 40234 withval=$with_jtreg; 40235 else 40236 with_jtreg=no 40237 fi 40238 40239 40240 if test "x$with_jtreg" = xno; then 40241 # jtreg disabled 40242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40243 $as_echo_n "checking for jtreg... " >&6; } 40244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40245 $as_echo "no" >&6; } 40246 else 40247 if test "x$with_jtreg" != xyes; then 40248 # with path specified. 40249 JT_HOME="$with_jtreg" 40250 fi 40251 40252 if test "x$JT_HOME" != x; then 40253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40254 $as_echo_n "checking for jtreg... " >&6; } 40255 40256 # use JT_HOME enviroment var. 40257 40258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40259 40260 # Input might be given as Windows format, start by converting to 40261 # unix format. 40262 path="$JT_HOME" 40263 new_path=`$CYGPATH -u "$path"` 40264 40265 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40266 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40267 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40268 # "foo.exe" is OK but "foo" is an error. 40269 # 40270 # This test is therefore slightly more accurate than "test -f" to check for file precense. 40271 # It is also a way to make sure we got the proper file name for the real test later on. 40272 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40273 if test "x$test_shortpath" = x; then 40274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40275 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40276 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 40277 fi 40278 40279 # Call helper function which possibly converts this using DOS-style short mode. 40280 # If so, the updated path is stored in $new_path. 40281 40282 input_path="$new_path" 40283 # Check if we need to convert this using DOS-style short mode. If the path 40284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40285 # take no chances and rewrite it. 40286 # Note: m4 eats our [], so we need to use [ and ] instead. 40287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40288 if test "x$has_forbidden_chars" != x; then 40289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40290 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40291 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40292 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40293 # Going to short mode and back again did indeed matter. Since short mode is 40294 # case insensitive, let's make it lowercase to improve readability. 40295 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40296 # Now convert it back to Unix-style (cygpath) 40297 input_path=`$CYGPATH -u "$shortmode_path"` 40298 new_path="$input_path" 40299 fi 40300 fi 40301 40302 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40303 if test "x$test_cygdrive_prefix" = x; then 40304 # As a simple fix, exclude /usr/bin since it's not a real path. 40305 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 40306 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40307 # a path prefixed by /cygdrive for fixpath to work. 40308 new_path="$CYGWIN_ROOT_PATH$input_path" 40309 fi 40310 fi 40311 40312 40313 if test "x$path" != "x$new_path"; then 40314 JT_HOME="$new_path" 40315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40316 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40317 fi 40318 40319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40320 40321 path="$JT_HOME" 40322 has_colon=`$ECHO $path | $GREP ^.:` 40323 new_path="$path" 40324 if test "x$has_colon" = x; then 40325 # Not in mixed or Windows style, start by that. 40326 new_path=`cmd //c echo $path` 40327 fi 40328 40329 40330 input_path="$new_path" 40331 # Check if we need to convert this using DOS-style short mode. If the path 40332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40333 # take no chances and rewrite it. 40334 # Note: m4 eats our [], so we need to use [ and ] instead. 40335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40336 if test "x$has_forbidden_chars" != x; then 40337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40338 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40339 fi 40340 40341 40342 windows_path="$new_path" 40343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40344 unix_path=`$CYGPATH -u "$windows_path"` 40345 new_path="$unix_path" 40346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40348 new_path="$unix_path" 40349 fi 40350 40351 if test "x$path" != "x$new_path"; then 40352 JT_HOME="$new_path" 40353 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40354 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40355 fi 40356 40357 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40358 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40359 40360 else 40361 # We're on a posix platform. Hooray! :) 40362 path="$JT_HOME" 40363 has_space=`$ECHO "$path" | $GREP " "` 40364 if test "x$has_space" != x; then 40365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40366 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40367 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 40368 fi 40369 40370 # Use eval to expand a potential ~ 40371 eval path="$path" 40372 if test ! -f "$path" && test ! -d "$path"; then 40373 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 40374 fi 40375 40376 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 40377 fi 40378 40379 40380 # jtreg win32 script works for everybody 40381 JTREGEXE="$JT_HOME/bin/jtreg" 40382 40383 if test ! -f "$JTREGEXE"; then 40384 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 40385 fi 40386 40387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40388 $as_echo "$JTREGEXE" >&6; } 40389 else 40390 # try to find jtreg on path 40391 40392 40393 40394 # Publish this variable in the help. 40395 40396 40397 if test "x$JTREGEXE" = x; then 40398 # The variable is not set by user, try to locate tool using the code snippet 40399 for ac_prog in jtreg 40400 do 40401 # Extract the first word of "$ac_prog", so it can be a program name with args. 40402 set dummy $ac_prog; ac_word=$2 40403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40404 $as_echo_n "checking for $ac_word... " >&6; } 40405 if ${ac_cv_path_JTREGEXE+:} false; then : 40406 $as_echo_n "(cached) " >&6 40407 else 40408 case $JTREGEXE in 40409 [\\/]* | ?:[\\/]*) 40410 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40411 ;; 40412 *) 40413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40414 for as_dir in $PATH 40415 do 40416 IFS=$as_save_IFS 40417 test -z "$as_dir" && as_dir=. 40418 for ac_exec_ext in '' $ac_executable_extensions; do 40419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40420 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40422 break 2 40423 fi 40424 done 40425 done 40426 IFS=$as_save_IFS 40427 40428 ;; 40429 esac 40430 fi 40431 JTREGEXE=$ac_cv_path_JTREGEXE 40432 if test -n "$JTREGEXE"; then 40433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40434 $as_echo "$JTREGEXE" >&6; } 40435 else 40436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40437 $as_echo "no" >&6; } 40438 fi 40439 40440 40441 test -n "$JTREGEXE" && break 40442 done 40443 40444 else 40445 # The variable is set, but is it from the command line or the environment? 40446 40447 # Try to remove the string !JTREGEXE! from our list. 40448 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 40449 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40450 # If it failed, the variable was not from the command line. Ignore it, 40451 # but warn the user (except for BASH, which is always set by the calling BASH). 40452 if test "xJTREGEXE" != xBASH; then 40453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 40454 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 40455 fi 40456 # Try to locate tool using the code snippet 40457 for ac_prog in jtreg 40458 do 40459 # Extract the first word of "$ac_prog", so it can be a program name with args. 40460 set dummy $ac_prog; ac_word=$2 40461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40462 $as_echo_n "checking for $ac_word... " >&6; } 40463 if ${ac_cv_path_JTREGEXE+:} false; then : 40464 $as_echo_n "(cached) " >&6 40465 else 40466 case $JTREGEXE in 40467 [\\/]* | ?:[\\/]*) 40468 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40469 ;; 40470 *) 40471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40472 for as_dir in $PATH 40473 do 40474 IFS=$as_save_IFS 40475 test -z "$as_dir" && as_dir=. 40476 for ac_exec_ext in '' $ac_executable_extensions; do 40477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40478 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40480 break 2 40481 fi 40482 done 40483 done 40484 IFS=$as_save_IFS 40485 40486 ;; 40487 esac 40488 fi 40489 JTREGEXE=$ac_cv_path_JTREGEXE 40490 if test -n "$JTREGEXE"; then 40491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40492 $as_echo "$JTREGEXE" >&6; } 40493 else 40494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40495 $as_echo "no" >&6; } 40496 fi 40497 40498 40499 test -n "$JTREGEXE" && break 40500 done 40501 40502 else 40503 # If it succeeded, then it was overridden by the user. We will use it 40504 # for the tool. 40505 40506 # First remove it from the list of overridden variables, so we can test 40507 # for unknown variables in the end. 40508 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40509 40510 # Check if the provided tool contains a complete path. 40511 tool_specified="$JTREGEXE" 40512 tool_basename="${tool_specified##*/}" 40513 if test "x$tool_basename" = "x$tool_specified"; then 40514 # A command without a complete path is provided, search $PATH. 40515 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 40516 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 40517 # Extract the first word of "$tool_basename", so it can be a program name with args. 40518 set dummy $tool_basename; ac_word=$2 40519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40520 $as_echo_n "checking for $ac_word... " >&6; } 40521 if ${ac_cv_path_JTREGEXE+:} false; then : 40522 $as_echo_n "(cached) " >&6 40523 else 40524 case $JTREGEXE in 40525 [\\/]* | ?:[\\/]*) 40526 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40527 ;; 40528 *) 40529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40530 for as_dir in $PATH 40531 do 40532 IFS=$as_save_IFS 40533 test -z "$as_dir" && as_dir=. 40534 for ac_exec_ext in '' $ac_executable_extensions; do 40535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40536 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40538 break 2 40539 fi 40540 done 40541 done 40542 IFS=$as_save_IFS 40543 40544 ;; 40545 esac 40546 fi 40547 JTREGEXE=$ac_cv_path_JTREGEXE 40548 if test -n "$JTREGEXE"; then 40549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40550 $as_echo "$JTREGEXE" >&6; } 40551 else 40552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40553 $as_echo "no" >&6; } 40554 fi 40555 40556 40557 if test "x$JTREGEXE" = x; then 40558 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40559 fi 40560 else 40561 # Otherwise we believe it is a complete path. Use it as it is. 40562 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 40563 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 40564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 40565 $as_echo_n "checking for JTREGEXE... " >&6; } 40566 if test ! -x "$tool_specified"; then 40567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40568 $as_echo "not found" >&6; } 40569 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 40570 fi 40571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40572 $as_echo "$tool_specified" >&6; } 40573 fi 40574 fi 40575 fi 40576 40577 40578 40579 if test "x$JTREGEXE" = x; then 40580 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 40581 fi 40582 40583 40584 JT_HOME="`$DIRNAME $JTREGEXE`" 40585 fi 40586 fi 40587 40588 40589 40590 40591 40592 40593 # Option used to tell the compiler whether to create 32- or 64-bit executables 40594 if test "x$TOOLCHAIN_TYPE" = xxlc; then 40595 COMPILER_TARGET_BITS_FLAG="-q" 40596 else 40597 COMPILER_TARGET_BITS_FLAG="-m" 40598 fi 40599 40600 40601 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 40602 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40603 ARFLAGS="-r" 40604 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40605 ARFLAGS="-X64" 40606 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 40607 # lib.exe is used as AR to create static libraries. 40608 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 40609 else 40610 ARFLAGS="" 40611 fi 40612 40613 40614 ## Setup strip. 40615 # FIXME: should this really be per platform, or should it be per toolchain type? 40616 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 40617 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 40618 if test "x$OPENJDK_TARGET_OS" = xlinux; then 40619 STRIPFLAGS="-g" 40620 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 40621 STRIPFLAGS="-x" 40622 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 40623 STRIPFLAGS="-S" 40624 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40625 STRIPFLAGS="-X32_64" 40626 fi 40627 40628 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40629 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 40630 fi 40631 40632 40633 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40634 # FIXME: break out into MCSFLAGS 40635 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 40636 fi 40637 40638 40639 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40640 CC_OUT_OPTION=-Fo 40641 EXE_OUT_OPTION=-out: 40642 LD_OUT_OPTION=-out: 40643 AR_OUT_OPTION=-out: 40644 else 40645 # The option used to specify the target .o,.a or .so file. 40646 # When compiling, how to specify the to be created object file. 40647 CC_OUT_OPTION='-o$(SPACE)' 40648 # When linking, how to specify the to be created executable. 40649 EXE_OUT_OPTION='-o$(SPACE)' 40650 # When linking, how to specify the to be created dynamically linkable library. 40651 LD_OUT_OPTION='-o$(SPACE)' 40652 # When archiving, how to specify the to be create static archive for object files. 40653 AR_OUT_OPTION='rcs$(SPACE)' 40654 fi 40655 40656 40657 40658 40659 40660 # On Windows, we need to set RC flags. 40661 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40662 RC_FLAGS="-nologo -l 0x409 -r" 40663 if test "x$VARIANT" = xOPT; then 40664 RC_FLAGS="$RC_FLAGS -d NDEBUG" 40665 fi 40666 40667 # The version variables used to create RC_FLAGS may be overridden 40668 # in a custom configure script, or possibly the command line. 40669 # Let those variables be expanded at make time in spec.gmk. 40670 # The \$ are escaped to the shell, and the $(...) variables 40671 # are evaluated by make. 40672 RC_FLAGS="$RC_FLAGS \ 40673 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 40674 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 40675 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 40676 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(COOKED_JDK_UPDATE_VERSION).\$(COOKED_BUILD_NUMBER)\" \ 40677 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 40678 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 40679 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(COOKED_JDK_UPDATE_VERSION),\$(COOKED_JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 40680 fi 40681 40682 40683 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40684 # FIXME: likely bug, should be CCXXFLAGS_JDK? or one for C or CXX. 40685 CCXXFLAGS="$CCXXFLAGS -nologo" 40686 fi 40687 40688 if test "x$SYSROOT" != "x"; then 40689 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40690 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40691 # Solaris Studio does not have a concept of sysroot. Instead we must 40692 # make sure the default include and lib dirs are appended to each 40693 # compile and link command line. 40694 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 40695 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 40696 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 40697 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 40698 fi 40699 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 40700 SYSROOT_CFLAGS="--sysroot=\"$SYSROOT\"" 40701 SYSROOT_LDFLAGS="--sysroot=\"$SYSROOT\"" 40702 elif test "x$TOOLCHAIN_TYPE" = xclang; then 40703 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 40704 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 40705 fi 40706 # Propagate the sysroot args to hotspot 40707 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 40708 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 40709 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 40710 fi 40711 40712 40713 40714 40715 # FIXME: Currently we must test this after toolchain but before flags. Fix! 40716 40717 # Now we can test some aspects on the target using configure macros. 40718 40719 40720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 40721 $as_echo_n "checking for ANSI C header files... " >&6; } 40722 if ${ac_cv_header_stdc+:} false; then : 40723 $as_echo_n "(cached) " >&6 40724 else 40725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40726 /* end confdefs.h. */ 40727 #include <stdlib.h> 40728 #include <stdarg.h> 40729 #include <string.h> 40730 #include <float.h> 40731 40732 int 40733 main () 40734 { 40735 40736 ; 40737 return 0; 40738 } 40739 _ACEOF 40740 if ac_fn_cxx_try_compile "$LINENO"; then : 40741 ac_cv_header_stdc=yes 40742 else 40743 ac_cv_header_stdc=no 40744 fi 40745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40746 40747 if test $ac_cv_header_stdc = yes; then 40748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 40749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40750 /* end confdefs.h. */ 40751 #include <string.h> 40752 40753 _ACEOF 40754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40755 $EGREP "memchr" >/dev/null 2>&1; then : 40756 40757 else 40758 ac_cv_header_stdc=no 40759 fi 40760 rm -f conftest* 40761 40762 fi 40763 40764 if test $ac_cv_header_stdc = yes; then 40765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 40766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40767 /* end confdefs.h. */ 40768 #include <stdlib.h> 40769 40770 _ACEOF 40771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40772 $EGREP "free" >/dev/null 2>&1; then : 40773 40774 else 40775 ac_cv_header_stdc=no 40776 fi 40777 rm -f conftest* 40778 40779 fi 40780 40781 if test $ac_cv_header_stdc = yes; then 40782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 40783 if test "$cross_compiling" = yes; then : 40784 : 40785 else 40786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40787 /* end confdefs.h. */ 40788 #include <ctype.h> 40789 #include <stdlib.h> 40790 #if ((' ' & 0x0FF) == 0x020) 40791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 40792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 40793 #else 40794 # define ISLOWER(c) \ 40795 (('a' <= (c) && (c) <= 'i') \ 40796 || ('j' <= (c) && (c) <= 'r') \ 40797 || ('s' <= (c) && (c) <= 'z')) 40798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 40799 #endif 40800 40801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 40802 int 40803 main () 40804 { 40805 int i; 40806 for (i = 0; i < 256; i++) 40807 if (XOR (islower (i), ISLOWER (i)) 40808 || toupper (i) != TOUPPER (i)) 40809 return 2; 40810 return 0; 40811 } 40812 _ACEOF 40813 if ac_fn_cxx_try_run "$LINENO"; then : 40814 40815 else 40816 ac_cv_header_stdc=no 40817 fi 40818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40819 conftest.$ac_objext conftest.beam conftest.$ac_ext 40820 fi 40821 40822 fi 40823 fi 40824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 40825 $as_echo "$ac_cv_header_stdc" >&6; } 40826 if test $ac_cv_header_stdc = yes; then 40827 40828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 40829 40830 fi 40831 40832 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 40833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 40834 inttypes.h stdint.h unistd.h 40835 do : 40836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 40837 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 40838 " 40839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 40840 cat >>confdefs.h <<_ACEOF 40841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 40842 _ACEOF 40843 40844 fi 40845 40846 done 40847 40848 40849 40850 ############################################################################### 40851 # 40852 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 40853 # (The JVM can use 32 or 64 bit Java pointers but that decision 40854 # is made at runtime.) 40855 # 40856 40857 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 40858 # Always specify -m flag on Solaris 40859 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 40860 40861 # When we add flags to the "official" CFLAGS etc, we need to 40862 # keep track of these additions in ADDED_CFLAGS etc. These 40863 # will later be checked to make sure only controlled additions 40864 # have been made to CFLAGS etc. 40865 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40866 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40867 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40868 40869 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40870 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40871 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40872 40873 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40874 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40875 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40876 40877 elif test "x$COMPILE_TYPE" = xreduced; then 40878 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40879 # Specify -m if running reduced on other Posix platforms 40880 40881 # When we add flags to the "official" CFLAGS etc, we need to 40882 # keep track of these additions in ADDED_CFLAGS etc. These 40883 # will later be checked to make sure only controlled additions 40884 # have been made to CFLAGS etc. 40885 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40886 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40887 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40888 40889 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40890 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40891 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40892 40893 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40894 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40895 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40896 40897 fi 40898 fi 40899 40900 # Make compilation sanity check 40901 for ac_header in stdio.h 40902 do : 40903 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 40904 if test "x$ac_cv_header_stdio_h" = xyes; then : 40905 cat >>confdefs.h <<_ACEOF 40906 #define HAVE_STDIO_H 1 40907 _ACEOF 40908 40909 else 40910 40911 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 40912 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 40913 if test "x$COMPILE_TYPE" = xreduced; then 40914 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 40915 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 40916 elif test "x$COMPILE_TYPE" = xcross; then 40917 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 40918 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 40919 fi 40920 as_fn_error $? "Cannot continue." "$LINENO" 5 40921 40922 fi 40923 40924 done 40925 40926 40927 # The cast to long int works around a bug in the HP C Compiler 40928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 40929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 40930 # This bug is HP SR number 8606223364. 40931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 40932 $as_echo_n "checking size of int *... " >&6; } 40933 if ${ac_cv_sizeof_int_p+:} false; then : 40934 $as_echo_n "(cached) " >&6 40935 else 40936 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 40937 40938 else 40939 if test "$ac_cv_type_int_p" = yes; then 40940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 40942 as_fn_error 77 "cannot compute sizeof (int *) 40943 See \`config.log' for more details" "$LINENO" 5; } 40944 else 40945 ac_cv_sizeof_int_p=0 40946 fi 40947 fi 40948 40949 fi 40950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 40951 $as_echo "$ac_cv_sizeof_int_p" >&6; } 40952 40953 40954 40955 cat >>confdefs.h <<_ACEOF 40956 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 40957 _ACEOF 40958 40959 40960 40961 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 40962 if test "x$ac_cv_sizeof_int_p" = x; then 40963 # The test failed, lets stick to the assumed value. 40964 { $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 40965 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 40966 else 40967 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 40968 40969 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 40970 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 40971 # Let's try to implicitely set the compilers target architecture and retry the test 40972 { $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 40973 $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;} 40974 { $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 40975 $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;} 40976 40977 # When we add flags to the "official" CFLAGS etc, we need to 40978 # keep track of these additions in ADDED_CFLAGS etc. These 40979 # will later be checked to make sure only controlled additions 40980 # have been made to CFLAGS etc. 40981 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40982 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40983 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40984 40985 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40986 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40987 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40988 40989 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40990 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40991 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40992 40993 40994 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 40995 unset ac_cv_sizeof_int_p 40996 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 40997 cat >>confdefs.h <<_ACEOF 40998 #undef SIZEOF_INT_P 40999 _ACEOF 41000 41001 # The cast to long int works around a bug in the HP C Compiler 41002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41004 # This bug is HP SR number 8606223364. 41005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41006 $as_echo_n "checking size of int *... " >&6; } 41007 if ${ac_cv_sizeof_int_p+:} false; then : 41008 $as_echo_n "(cached) " >&6 41009 else 41010 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41011 41012 else 41013 if test "$ac_cv_type_int_p" = yes; then 41014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41016 as_fn_error 77 "cannot compute sizeof (int *) 41017 See \`config.log' for more details" "$LINENO" 5; } 41018 else 41019 ac_cv_sizeof_int_p=0 41020 fi 41021 fi 41022 41023 fi 41024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41025 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41026 41027 41028 41029 cat >>confdefs.h <<_ACEOF 41030 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41031 _ACEOF 41032 41033 41034 41035 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41036 41037 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41038 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 41039 fi 41040 fi 41041 fi 41042 41043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41044 $as_echo_n "checking for target address size... " >&6; } 41045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41046 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41047 41048 41049 ############################################################################### 41050 # 41051 # Is the target little of big endian? 41052 # 41053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41054 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41055 if ${ac_cv_c_bigendian+:} false; then : 41056 $as_echo_n "(cached) " >&6 41057 else 41058 ac_cv_c_bigendian=unknown 41059 # See if we're dealing with a universal compiler. 41060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41061 /* end confdefs.h. */ 41062 #ifndef __APPLE_CC__ 41063 not a universal capable compiler 41064 #endif 41065 typedef int dummy; 41066 41067 _ACEOF 41068 if ac_fn_cxx_try_compile "$LINENO"; then : 41069 41070 # Check for potential -arch flags. It is not universal unless 41071 # there are at least two -arch flags with different values. 41072 ac_arch= 41073 ac_prev= 41074 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41075 if test -n "$ac_prev"; then 41076 case $ac_word in 41077 i?86 | x86_64 | ppc | ppc64) 41078 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41079 ac_arch=$ac_word 41080 else 41081 ac_cv_c_bigendian=universal 41082 break 41083 fi 41084 ;; 41085 esac 41086 ac_prev= 41087 elif test "x$ac_word" = "x-arch"; then 41088 ac_prev=arch 41089 fi 41090 done 41091 fi 41092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41093 if test $ac_cv_c_bigendian = unknown; then 41094 # See if sys/param.h defines the BYTE_ORDER macro. 41095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41096 /* end confdefs.h. */ 41097 #include <sys/types.h> 41098 #include <sys/param.h> 41099 41100 int 41101 main () 41102 { 41103 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41104 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41105 && LITTLE_ENDIAN) 41106 bogus endian macros 41107 #endif 41108 41109 ; 41110 return 0; 41111 } 41112 _ACEOF 41113 if ac_fn_cxx_try_compile "$LINENO"; then : 41114 # It does; now see whether it defined to BIG_ENDIAN or not. 41115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41116 /* end confdefs.h. */ 41117 #include <sys/types.h> 41118 #include <sys/param.h> 41119 41120 int 41121 main () 41122 { 41123 #if BYTE_ORDER != BIG_ENDIAN 41124 not big endian 41125 #endif 41126 41127 ; 41128 return 0; 41129 } 41130 _ACEOF 41131 if ac_fn_cxx_try_compile "$LINENO"; then : 41132 ac_cv_c_bigendian=yes 41133 else 41134 ac_cv_c_bigendian=no 41135 fi 41136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41137 fi 41138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41139 fi 41140 if test $ac_cv_c_bigendian = unknown; then 41141 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41143 /* end confdefs.h. */ 41144 #include <limits.h> 41145 41146 int 41147 main () 41148 { 41149 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41150 bogus endian macros 41151 #endif 41152 41153 ; 41154 return 0; 41155 } 41156 _ACEOF 41157 if ac_fn_cxx_try_compile "$LINENO"; then : 41158 # It does; now see whether it defined to _BIG_ENDIAN or not. 41159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41160 /* end confdefs.h. */ 41161 #include <limits.h> 41162 41163 int 41164 main () 41165 { 41166 #ifndef _BIG_ENDIAN 41167 not big endian 41168 #endif 41169 41170 ; 41171 return 0; 41172 } 41173 _ACEOF 41174 if ac_fn_cxx_try_compile "$LINENO"; then : 41175 ac_cv_c_bigendian=yes 41176 else 41177 ac_cv_c_bigendian=no 41178 fi 41179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41180 fi 41181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41182 fi 41183 if test $ac_cv_c_bigendian = unknown; then 41184 # Compile a test program. 41185 if test "$cross_compiling" = yes; then : 41186 # Try to guess by grepping values from an object file. 41187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41188 /* end confdefs.h. */ 41189 short int ascii_mm[] = 41190 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 41191 short int ascii_ii[] = 41192 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 41193 int use_ascii (int i) { 41194 return ascii_mm[i] + ascii_ii[i]; 41195 } 41196 short int ebcdic_ii[] = 41197 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 41198 short int ebcdic_mm[] = 41199 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 41200 int use_ebcdic (int i) { 41201 return ebcdic_mm[i] + ebcdic_ii[i]; 41202 } 41203 extern int foo; 41204 41205 int 41206 main () 41207 { 41208 return use_ascii (foo) == use_ebcdic (foo); 41209 ; 41210 return 0; 41211 } 41212 _ACEOF 41213 if ac_fn_cxx_try_compile "$LINENO"; then : 41214 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 41215 ac_cv_c_bigendian=yes 41216 fi 41217 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 41218 if test "$ac_cv_c_bigendian" = unknown; then 41219 ac_cv_c_bigendian=no 41220 else 41221 # finding both strings is unlikely to happen, but who knows? 41222 ac_cv_c_bigendian=unknown 41223 fi 41224 fi 41225 fi 41226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41227 else 41228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41229 /* end confdefs.h. */ 41230 $ac_includes_default 41231 int 41232 main () 41233 { 41234 41235 /* Are we little or big endian? From Harbison&Steele. */ 41236 union 41237 { 41238 long int l; 41239 char c[sizeof (long int)]; 41240 } u; 41241 u.l = 1; 41242 return u.c[sizeof (long int) - 1] == 1; 41243 41244 ; 41245 return 0; 41246 } 41247 _ACEOF 41248 if ac_fn_cxx_try_run "$LINENO"; then : 41249 ac_cv_c_bigendian=no 41250 else 41251 ac_cv_c_bigendian=yes 41252 fi 41253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41254 conftest.$ac_objext conftest.beam conftest.$ac_ext 41255 fi 41256 41257 fi 41258 fi 41259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 41260 $as_echo "$ac_cv_c_bigendian" >&6; } 41261 case $ac_cv_c_bigendian in #( 41262 yes) 41263 ENDIAN="big";; #( 41264 no) 41265 ENDIAN="little" ;; #( 41266 universal) 41267 ENDIAN="universal_endianness" 41268 ;; #( 41269 *) 41270 ENDIAN="unknown" ;; 41271 esac 41272 41273 41274 if test "x$ENDIAN" = xuniversal_endianness; then 41275 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 41276 fi 41277 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 41278 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 41279 fi 41280 41281 41282 # Configure flags for the tools 41283 41284 ############################################################################### 41285 # 41286 # How to compile shared libraries. 41287 # 41288 41289 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41290 PICFLAG="-fPIC" 41291 PIEFLAG="-fPIE" 41292 C_FLAG_REORDER='' 41293 CXX_FLAG_REORDER='' 41294 41295 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41296 # Linking is different on MacOSX 41297 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41298 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41299 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41300 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41301 SET_SHARED_LIBRARY_MAPFILE='' 41302 else 41303 # Default works for linux, might work on other platforms as well. 41304 SHARED_LIBRARY_FLAGS='-shared' 41305 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41306 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41307 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41308 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41309 fi 41310 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41311 PICFLAG="-KPIC" 41312 PIEFLAG="" 41313 C_FLAG_REORDER='-xF' 41314 CXX_FLAG_REORDER='-xF' 41315 SHARED_LIBRARY_FLAGS="-G" 41316 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 41317 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41318 SET_SHARED_LIBRARY_NAME='' 41319 SET_SHARED_LIBRARY_MAPFILE='-M$1' 41320 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41321 PICFLAG="-qpic=large" 41322 PIEFLAG="" 41323 C_FLAG_REORDER='' 41324 CXX_FLAG_REORDER='' 41325 SHARED_LIBRARY_FLAGS="-qmkshrobj" 41326 SET_EXECUTABLE_ORIGIN="" 41327 SET_SHARED_LIBRARY_ORIGIN='' 41328 SET_SHARED_LIBRARY_NAME='' 41329 SET_SHARED_LIBRARY_MAPFILE='' 41330 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41331 PICFLAG="" 41332 PIEFLAG="" 41333 C_FLAG_REORDER='' 41334 CXX_FLAG_REORDER='' 41335 SHARED_LIBRARY_FLAGS="-LD" 41336 SET_EXECUTABLE_ORIGIN='' 41337 SET_SHARED_LIBRARY_ORIGIN='' 41338 SET_SHARED_LIBRARY_NAME='' 41339 SET_SHARED_LIBRARY_MAPFILE='' 41340 fi 41341 41342 41343 41344 41345 41346 41347 41348 41349 41350 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41351 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 41352 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 41353 CFLAGS_JDKLIB_EXTRA='-xstrconst' 41354 fi 41355 # The (cross) compiler is now configured, we can now test capabilities 41356 # of the target platform. 41357 41358 41359 41360 ############################################################################### 41361 # 41362 # Setup the opt flags for different compilers 41363 # and different operating systems. 41364 # 41365 41366 # FIXME: this was indirectly the old default, but just inherited. 41367 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41368 # C_FLAG_DEPS="-MMD -MF" 41369 # fi 41370 41371 # Generate make dependency files 41372 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41373 C_FLAG_DEPS="-MMD -MF" 41374 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41375 C_FLAG_DEPS="-xMMD -xMF" 41376 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41377 C_FLAG_DEPS="-qmakedep=gcc -MF" 41378 fi 41379 CXX_FLAG_DEPS="$C_FLAG_DEPS" 41380 41381 41382 41383 # Debug symbols 41384 # 41385 # By default don't set any specific assembler debug 41386 # info flags for toolchains unless we know they work. 41387 # See JDK-8207057. 41388 ASFLAGS_DEBUG_SYMBOLS="" 41389 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41390 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 41391 CFLAGS_DEBUG_SYMBOLS="-g1" 41392 CXXFLAGS_DEBUG_SYMBOLS="-g1" 41393 else 41394 CFLAGS_DEBUG_SYMBOLS="-g" 41395 CXXFLAGS_DEBUG_SYMBOLS="-g" 41396 fi 41397 ASFLAGS_DEBUG_SYMBOLS="-g" 41398 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41399 CFLAGS_DEBUG_SYMBOLS="-g -xs" 41400 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 41401 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41402 CFLAGS_DEBUG_SYMBOLS="-g" 41403 CXXFLAGS_DEBUG_SYMBOLS="-g" 41404 fi 41405 41406 41407 41408 41409 # Optimization levels 41410 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41411 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xalias_level=basic -xbuiltin=%all -xdepend -xrestrict -xlibmil" 41412 41413 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 41414 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 41415 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr" 41416 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 41417 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 41418 C_O_FLAG_NONE="-xregs=no%frameptr" 41419 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 41420 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 41421 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 41422 CXX_O_FLAG_NONE="-xregs=no%frameptr" 41423 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41424 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 41425 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 41426 fi 41427 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41428 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41429 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41430 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41431 C_O_FLAG_NONE="" 41432 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41433 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41434 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41435 CXX_O_FLAG_NONE="" 41436 fi 41437 else 41438 # The remaining toolchains share opt flags between CC and CXX; 41439 # setup for C and duplicate afterwards. 41440 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41441 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41442 # On MacOSX we optimize for size, something 41443 # we should do for all platforms? 41444 C_O_FLAG_HIGHEST="-Os" 41445 C_O_FLAG_HI="-Os" 41446 C_O_FLAG_NORM="-Os" 41447 C_O_FLAG_NONE="" 41448 else 41449 C_O_FLAG_HIGHEST="-O3" 41450 C_O_FLAG_HI="-O3" 41451 C_O_FLAG_NORM="-O2" 41452 C_O_FLAG_NONE="-O0" 41453 fi 41454 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41455 C_O_FLAG_HIGHEST="-O3" 41456 C_O_FLAG_HI="-O3 -qstrict" 41457 C_O_FLAG_NORM="-O2" 41458 C_O_FLAG_NONE="" 41459 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41460 C_O_FLAG_HIGHEST="-O2" 41461 C_O_FLAG_HI="-O1" 41462 C_O_FLAG_NORM="-O1" 41463 C_O_FLAG_NONE="-Od" 41464 fi 41465 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 41466 CXX_O_FLAG_HI="$C_O_FLAG_HI" 41467 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 41468 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 41469 fi 41470 41471 41472 41473 41474 41475 41476 41477 41478 41479 41480 41481 # Special extras... 41482 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41483 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41484 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41485 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41486 fi 41487 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41488 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 41489 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41490 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41491 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41492 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS -fstack-protector" 41493 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS -fstack-protector" 41494 if test "x$OPENJDK_TARGET_OS" != xmacosx; then 41495 LDFLAGS_JDK="$LDFLAGS_JDK -Wl,-z,relro" 41496 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS -Wl,-z,relro" 41497 fi 41498 CXXSTD_CXXFLAG="-std=gnu++98" 41499 41500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 41501 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 41502 supports=yes 41503 41504 saved_cxxflags="$CXXFLAGS" 41505 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 41506 ac_ext=cpp 41507 ac_cpp='$CXXCPP $CPPFLAGS' 41508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41511 41512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41513 /* end confdefs.h. */ 41514 int i; 41515 _ACEOF 41516 if ac_fn_cxx_try_compile "$LINENO"; then : 41517 41518 else 41519 supports=no 41520 fi 41521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41522 ac_ext=cpp 41523 ac_cpp='$CXXCPP $CPPFLAGS' 41524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41527 41528 CXXFLAGS="$saved_cxxflags" 41529 41530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41531 $as_echo "$supports" >&6; } 41532 if test "x$supports" = "xyes" ; then 41533 : 41534 else 41535 CXXSTD_CXXFLAG="" 41536 fi 41537 41538 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 41539 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 41540 41541 fi 41542 41543 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 41544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 41545 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 41546 fi 41547 41548 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 41549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 41550 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 41551 fi 41552 41553 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 41554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 41555 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 41556 fi 41557 41558 41559 if test "x$ASFLAGS" != "x"; then 41560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring ASFLAGS($ASFLAGS) found in environment. Use --with-extra-asflags" >&5 41561 $as_echo "$as_me: WARNING: Ignoring ASFLAGS($ASFLAGS) found in environment. Use --with-extra-asflags" >&2;} 41562 fi 41563 41564 41565 # Check whether --with-extra-cflags was given. 41566 if test "${with_extra_cflags+set}" = set; then : 41567 withval=$with_extra_cflags; 41568 fi 41569 41570 41571 41572 # Check whether --with-extra-cxxflags was given. 41573 if test "${with_extra_cxxflags+set}" = set; then : 41574 withval=$with_extra_cxxflags; 41575 fi 41576 41577 41578 41579 # Check whether --with-extra-ldflags was given. 41580 if test "${with_extra_ldflags+set}" = set; then : 41581 withval=$with_extra_ldflags; 41582 fi 41583 41584 41585 41586 # Check whether --with-extra-asflags was given. 41587 if test "${with_extra_asflags+set}" = set; then : 41588 withval=$with_extra_asflags; 41589 fi 41590 41591 41592 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 41593 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 41594 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 41595 41596 # Hotspot needs these set in their legacy form 41597 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 41598 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 41599 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 41600 LEGACY_EXTRA_ASFLAGS="$with_extra_asflags" 41601 41602 41603 41604 41605 41606 41607 ############################################################################### 41608 # 41609 # Now setup the CFLAGS and LDFLAGS for the JDK build. 41610 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 41611 # 41612 41613 FDLIBM_CFLAGS="" 41614 # Setup compiler/platform specific flags to CFLAGS_JDK, 41615 # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?) 41616 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41617 # these options are used for both C and C++ compiles 41618 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 41619 -pipe -fstack-protector -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 41620 case $OPENJDK_TARGET_CPU_ARCH in 41621 arm ) 41622 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 41623 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41624 ;; 41625 ppc ) 41626 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 41627 ;; 41628 * ) 41629 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 41630 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41631 ;; 41632 esac 41633 41634 REFERENCE_VERSION=6 41635 41636 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 41637 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 41638 fi 41639 41640 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 41641 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only parts < 99999 is supported" "$LINENO" 5 41642 fi 41643 41644 # Version comparison method inspired by http://stackoverflow.com/a/24067243 41645 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 41646 41647 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 41648 41649 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 41650 # runs afoul of the more aggressive versions of these optimisations. 41651 # Notably, value range propagation now assumes that the this pointer of C++ 41652 # member functions is non-null. 41653 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 41654 41655 41656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 41657 $as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 41658 supports=yes 41659 41660 saved_cflags="$CFLAGS" 41661 CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 41662 ac_ext=c 41663 ac_cpp='$CPP $CPPFLAGS' 41664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41666 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41667 41668 41669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41670 /* end confdefs.h. */ 41671 int i; 41672 _ACEOF 41673 if ac_fn_c_try_compile "$LINENO"; then : 41674 41675 else 41676 supports=no 41677 fi 41678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41679 ac_ext=cpp 41680 ac_cpp='$CXXCPP $CPPFLAGS' 41681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41684 41685 CFLAGS="$saved_cflags" 41686 41687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41688 $as_echo "$supports" >&6; } 41689 if test "x$supports" = "xyes" ; then 41690 C_COMP_SUPPORTS="yes" 41691 else 41692 C_COMP_SUPPORTS="no" 41693 fi 41694 41695 41696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 41697 $as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 41698 supports=yes 41699 41700 saved_cxxflags="$CXXFLAGS" 41701 CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 41702 ac_ext=cpp 41703 ac_cpp='$CXXCPP $CPPFLAGS' 41704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41707 41708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41709 /* end confdefs.h. */ 41710 int i; 41711 _ACEOF 41712 if ac_fn_cxx_try_compile "$LINENO"; then : 41713 41714 else 41715 supports=no 41716 fi 41717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41718 ac_ext=cpp 41719 ac_cpp='$CXXCPP $CPPFLAGS' 41720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41723 41724 CXXFLAGS="$saved_cxxflags" 41725 41726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41727 $as_echo "$supports" >&6; } 41728 if test "x$supports" = "xyes" ; then 41729 CXX_COMP_SUPPORTS="yes" 41730 else 41731 CXX_COMP_SUPPORTS="no" 41732 fi 41733 41734 41735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 41736 $as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 41737 supports=no 41738 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 41739 41740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41741 $as_echo "$supports" >&6; } 41742 if test "x$supports" = "xyes" ; then 41743 : 41744 else 41745 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="" 41746 fi 41747 41748 41749 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 41750 41751 41752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 41753 $as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 41754 supports=yes 41755 41756 saved_cflags="$CFLAGS" 41757 CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror" 41758 ac_ext=c 41759 ac_cpp='$CPP $CPPFLAGS' 41760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41762 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41763 41764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41765 /* end confdefs.h. */ 41766 int i; 41767 _ACEOF 41768 if ac_fn_c_try_compile "$LINENO"; then : 41769 41770 else 41771 supports=no 41772 fi 41773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41774 ac_ext=cpp 41775 ac_cpp='$CXXCPP $CPPFLAGS' 41776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41779 41780 CFLAGS="$saved_cflags" 41781 41782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41783 $as_echo "$supports" >&6; } 41784 if test "x$supports" = "xyes" ; then 41785 C_COMP_SUPPORTS="yes" 41786 else 41787 C_COMP_SUPPORTS="no" 41788 fi 41789 41790 41791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 41792 $as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 41793 supports=yes 41794 41795 saved_cxxflags="$CXXFLAGS" 41796 CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror" 41797 ac_ext=cpp 41798 ac_cpp='$CXXCPP $CPPFLAGS' 41799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41802 41803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41804 /* end confdefs.h. */ 41805 int i; 41806 _ACEOF 41807 if ac_fn_cxx_try_compile "$LINENO"; then : 41808 41809 else 41810 supports=no 41811 fi 41812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41813 ac_ext=cpp 41814 ac_cpp='$CXXCPP $CPPFLAGS' 41815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41818 41819 CXXFLAGS="$saved_cxxflags" 41820 41821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41822 $as_echo "$supports" >&6; } 41823 if test "x$supports" = "xyes" ; then 41824 CXX_COMP_SUPPORTS="yes" 41825 else 41826 CXX_COMP_SUPPORTS="no" 41827 fi 41828 41829 41830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 41831 $as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 41832 supports=no 41833 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 41834 41835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41836 $as_echo "$supports" >&6; } 41837 if test "x$supports" = "xyes" ; then 41838 : 41839 else 41840 NO_LIFETIME_DSE_CFLAG="" 41841 fi 41842 41843 CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 41844 41845 41846 41847 else 41848 : 41849 fi 41850 41851 41852 # Check that the compiler supports -ffp-contract=off flag 41853 # Set FDLIBM_CFLAGS to -ffp-contract=off if it does. 41854 # For GCC < 4.6, on x86, x86_64 and ppc check for 41855 # -mno-fused-madd and -fno-strict-aliasing. If they exist, 41856 # use them as a substitute for -ffp-contract=off. 41857 # 41858 # These flags are required for GCC-based builds of 41859 # fdlibm with optimization without losing precision. 41860 # Notably, -ffp-contract=off needs to be added for GCC >= 4.6, 41861 # -mno-fused-madd -fno-strict-aliasing for GCC < 4.6 41862 COMPILER_FP_CONTRACT_OFF_FLAG="-ffp-contract=off" 41863 41864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"" >&5 41865 $as_echo_n "checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"... " >&6; } 41866 supports=yes 41867 41868 saved_cxxflags="$CXXFLAGS" 41869 CXXFLAGS="$CXXFLAG $COMPILER_FP_CONTRACT_OFF_FLAG -Werror" 41870 ac_ext=cpp 41871 ac_cpp='$CXXCPP $CPPFLAGS' 41872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41875 41876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41877 /* end confdefs.h. */ 41878 int i; 41879 _ACEOF 41880 if ac_fn_cxx_try_compile "$LINENO"; then : 41881 41882 else 41883 supports=no 41884 fi 41885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41886 ac_ext=cpp 41887 ac_cpp='$CXXCPP $CPPFLAGS' 41888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41891 41892 CXXFLAGS="$saved_cxxflags" 41893 41894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41895 $as_echo "$supports" >&6; } 41896 if test "x$supports" = "xyes" ; then 41897 : 41898 else 41899 COMPILER_FP_CONTRACT_OFF_FLAG="" 41900 fi 41901 41902 if test "x$COMPILER_FP_CONTRACT_OFF_FLAG" = x; then 41903 if test "$OPENJDK_TARGET_CPU_ARCH" = "x86" || 41904 test "$OPENJDK_TARGET_CPU_ARCH" = "x86_64" || 41905 test "$OPENJDK_TARGET_CPU_ARCH" = "ppc"; then 41906 M_NO_FUSED_ADD_FLAG="-mno-fused-madd" 41907 41908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"" >&5 41909 $as_echo_n "checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"... " >&6; } 41910 supports=yes 41911 41912 saved_cxxflags="$CXXFLAGS" 41913 CXXFLAGS="$CXXFLAG $M_NO_FUSED_ADD_FLAG -Werror" 41914 ac_ext=cpp 41915 ac_cpp='$CXXCPP $CPPFLAGS' 41916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41919 41920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41921 /* end confdefs.h. */ 41922 int i; 41923 _ACEOF 41924 if ac_fn_cxx_try_compile "$LINENO"; then : 41925 41926 else 41927 supports=no 41928 fi 41929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41930 ac_ext=cpp 41931 ac_cpp='$CXXCPP $CPPFLAGS' 41932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41935 41936 CXXFLAGS="$saved_cxxflags" 41937 41938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41939 $as_echo "$supports" >&6; } 41940 if test "x$supports" = "xyes" ; then 41941 : 41942 else 41943 M_NO_FUSED_ADD_FLAG="" 41944 fi 41945 41946 NO_STRICT_ALIASING_FLAG="-fno-strict-aliasing" 41947 41948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"" >&5 41949 $as_echo_n "checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"... " >&6; } 41950 supports=yes 41951 41952 saved_cxxflags="$CXXFLAGS" 41953 CXXFLAGS="$CXXFLAG $NO_STRICT_ALIASING_FLAG -Werror" 41954 ac_ext=cpp 41955 ac_cpp='$CXXCPP $CPPFLAGS' 41956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41959 41960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41961 /* end confdefs.h. */ 41962 int i; 41963 _ACEOF 41964 if ac_fn_cxx_try_compile "$LINENO"; then : 41965 41966 else 41967 supports=no 41968 fi 41969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41970 ac_ext=cpp 41971 ac_cpp='$CXXCPP $CPPFLAGS' 41972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41975 41976 CXXFLAGS="$saved_cxxflags" 41977 41978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41979 $as_echo "$supports" >&6; } 41980 if test "x$supports" = "xyes" ; then 41981 : 41982 else 41983 NO_STRICT_ALIASING_FLAG="" 41984 fi 41985 41986 if test "x$M_NO_FUSED_ADD_FLAG" != "x" && test "x$NO_STRICT_ALIASING_FLAG" != "x"; then 41987 FDLIBM_CFLAGS="$M_NO_FUSED_ADD_FLAG $NO_STRICT_ALIASING_FLAG" 41988 fi 41989 fi 41990 else 41991 FDLIBM_CFLAGS="$COMPILER_FP_CONTRACT_OFF_FLAG" 41992 fi 41993 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41994 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 41995 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 41996 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 41997 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 41998 fi 41999 42000 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42001 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42002 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42003 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42004 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42005 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42006 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK \ 42007 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42008 -DWIN32_LEAN_AND_MEAN \ 42009 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42010 -DWIN32 -DIAL" 42011 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42012 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42013 else 42014 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 42015 fi 42016 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 42017 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 42018 # studio. 42019 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 42020 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 42021 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 42022 fi 42023 fi 42024 42025 42026 ############################################################################### 42027 42028 # Adjust flags according to debug level. 42029 case $DEBUG_LEVEL in 42030 fastdebug ) 42031 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 42032 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 42033 C_O_FLAG_HI="$C_O_FLAG_NORM" 42034 C_O_FLAG_NORM="$C_O_FLAG_NORM" 42035 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42036 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM" 42037 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42038 ;; 42039 slowdebug ) 42040 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 42041 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 42042 C_O_FLAG_HI="$C_O_FLAG_NONE" 42043 C_O_FLAG_NORM="$C_O_FLAG_NONE" 42044 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 42045 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 42046 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42047 ;; 42048 esac 42049 42050 # Setup LP64 42051 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 42052 42053 # Set some common defines. These works for all compilers, but assume 42054 # -D is universally accepted. 42055 42056 # Setup endianness 42057 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42058 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42059 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42060 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42061 # Note: -Dmacro is the same as #define macro 1 42062 # -Dmacro= is the same as #define macro 42063 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42064 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42065 else 42066 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42067 fi 42068 else 42069 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42070 # are defined in the system? 42071 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42072 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42073 else 42074 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 42075 fi 42076 fi 42077 if test "x$OPENJDK_TARGET_CPU" = xppc64le; then 42078 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2" 42079 fi 42080 42081 # Setup target OS define. Use OS target name but in upper case. 42082 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42083 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42084 42085 # Setup target CPU 42086 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42087 42088 # Setup debug/release defines 42089 if test "x$DEBUG_LEVEL" = xrelease; then 42090 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 42091 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42092 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 42093 fi 42094 else 42095 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 42096 fi 42097 42098 # Setup release name 42099 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42100 42101 42102 # Set some additional per-OS defines. 42103 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42104 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42105 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42106 # FIXME: PPC64 should not be here. 42107 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DPPC64" 42108 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42109 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42110 fi 42111 42112 # Additional macosx handling 42113 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42114 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42115 # FIXME: This needs to be exported in spec.gmk due to closed legacy code. 42116 # FIXME: clean this up, and/or move it elsewhere. 42117 42118 # Setting these parameters makes it an error to link to macosx APIs that are 42119 # newer than the given OS version and makes the linked binaries compatible 42120 # even if built on a newer version of the OS. 42121 # The expected format is X.Y.Z 42122 MACOSX_VERSION_MIN=10.7.0 42123 42124 42125 # The macro takes the version with no dots, ex: 1070 42126 # Let the flags variables get resolved in make for easier override on make 42127 # command line. 42128 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42129 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42130 fi 42131 fi 42132 42133 # Setup some hard coded includes 42134 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 42135 -I${JDK_OUTPUTDIR}/include \ 42136 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 42137 -I${JDK_TOPDIR}/src/share/javavm/export \ 42138 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 42139 -I${JDK_TOPDIR}/src/share/native/common \ 42140 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 42141 42142 # The shared libraries are compiled using the picflag. 42143 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42144 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42145 42146 # Executable flags 42147 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK $PIEFLAG" 42148 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PIEFLAG" 42149 42150 42151 42152 42153 42154 42155 # Setup LDFLAGS et al. 42156 # 42157 # Now this is odd. The JDK native libraries have to link against libjvm.so 42158 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42159 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42160 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42161 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42162 # libraries will link to whatever is in memory. Yuck. 42163 # 42164 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42165 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42166 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42167 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42168 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42169 fi 42170 # TODO: make -debug optional "--disable-full-debug-symbols" 42171 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42172 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 42173 LDFLAGS_JDKLIB_SUFFIX="" 42174 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42175 LDFLAGS_STACK_SIZE=1048576 42176 else 42177 LDFLAGS_STACK_SIZE=327680 42178 fi 42179 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 42180 else 42181 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42182 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42183 # We have previously set HAS_GNU_HASH if this is the case 42184 if test -n "$HAS_GNU_HASH"; then 42185 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 42186 fi 42187 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42188 # And since we now know that the linker is gnu, then add: 42189 # -z defs, to forbid undefined symbols in object files 42190 # -z noexecstack, to mark stack regions as non-executable 42191 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs -Xlinker -z -Xlinker noexecstack" 42192 if test "x$DEBUG_LEVEL" = "xrelease"; then 42193 # When building release libraries, tell the linker optimize them. 42194 # Should this be supplied to the OSS linker as well? 42195 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42196 fi 42197 fi 42198 fi 42199 42200 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42201 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42202 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42203 fi 42204 42205 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 42206 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 42207 42208 # On some platforms (mac) the linker warns about non existing -L dirs. 42209 # Add server first if available. Linking aginst client does not always produce the same results. 42210 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42211 # Default to server for other variants. 42212 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42213 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42214 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42215 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 42216 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42217 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42218 else 42219 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42220 fi 42221 42222 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42223 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42224 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42225 fi 42226 42227 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42228 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42229 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42230 fi 42231 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42232 # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous 42233 # java heap. 42234 if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then 42235 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -pie" 42236 fi 42237 fi 42238 fi 42239 42240 42241 42242 42243 42244 42245 42246 # Some Zero and Shark settings. 42247 # ZERO_ARCHFLAG tells the compiler which mode to build for 42248 case "${OPENJDK_TARGET_CPU}" in 42249 s390) 42250 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42251 ;; 42252 *) 42253 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42254 esac 42255 42256 42257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 42258 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42259 supports=yes 42260 42261 saved_cflags="$CFLAGS" 42262 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42263 ac_ext=c 42264 ac_cpp='$CPP $CPPFLAGS' 42265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42267 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42268 42269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42270 /* end confdefs.h. */ 42271 int i; 42272 _ACEOF 42273 if ac_fn_c_try_compile "$LINENO"; then : 42274 42275 else 42276 supports=no 42277 fi 42278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42279 ac_ext=cpp 42280 ac_cpp='$CXXCPP $CPPFLAGS' 42281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42284 42285 CFLAGS="$saved_cflags" 42286 42287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42288 $as_echo "$supports" >&6; } 42289 if test "x$supports" = "xyes" ; then 42290 C_COMP_SUPPORTS="yes" 42291 else 42292 C_COMP_SUPPORTS="no" 42293 fi 42294 42295 42296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 42297 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42298 supports=yes 42299 42300 saved_cxxflags="$CXXFLAGS" 42301 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42302 ac_ext=cpp 42303 ac_cpp='$CXXCPP $CPPFLAGS' 42304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42307 42308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42309 /* end confdefs.h. */ 42310 int i; 42311 _ACEOF 42312 if ac_fn_cxx_try_compile "$LINENO"; then : 42313 42314 else 42315 supports=no 42316 fi 42317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42318 ac_ext=cpp 42319 ac_cpp='$CXXCPP $CPPFLAGS' 42320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42323 42324 CXXFLAGS="$saved_cxxflags" 42325 42326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42327 $as_echo "$supports" >&6; } 42328 if test "x$supports" = "xyes" ; then 42329 CXX_COMP_SUPPORTS="yes" 42330 else 42331 CXX_COMP_SUPPORTS="no" 42332 fi 42333 42334 42335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 42336 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 42337 supports=no 42338 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 42339 42340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42341 $as_echo "$supports" >&6; } 42342 if test "x$supports" = "xyes" ; then 42343 : 42344 else 42345 ZERO_ARCHFLAG="" 42346 fi 42347 42348 42349 42350 # Check that the compiler supports -mX (or -qX on AIX) flags 42351 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42352 42353 42354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42355 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42356 supports=yes 42357 42358 saved_cflags="$CFLAGS" 42359 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42360 ac_ext=c 42361 ac_cpp='$CPP $CPPFLAGS' 42362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42364 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42365 42366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42367 /* end confdefs.h. */ 42368 int i; 42369 _ACEOF 42370 if ac_fn_c_try_compile "$LINENO"; then : 42371 42372 else 42373 supports=no 42374 fi 42375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42376 ac_ext=cpp 42377 ac_cpp='$CXXCPP $CPPFLAGS' 42378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42381 42382 CFLAGS="$saved_cflags" 42383 42384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42385 $as_echo "$supports" >&6; } 42386 if test "x$supports" = "xyes" ; then 42387 C_COMP_SUPPORTS="yes" 42388 else 42389 C_COMP_SUPPORTS="no" 42390 fi 42391 42392 42393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42394 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42395 supports=yes 42396 42397 saved_cxxflags="$CXXFLAGS" 42398 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42399 ac_ext=cpp 42400 ac_cpp='$CXXCPP $CPPFLAGS' 42401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42404 42405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42406 /* end confdefs.h. */ 42407 int i; 42408 _ACEOF 42409 if ac_fn_cxx_try_compile "$LINENO"; then : 42410 42411 else 42412 supports=no 42413 fi 42414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42415 ac_ext=cpp 42416 ac_cpp='$CXXCPP $CPPFLAGS' 42417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42420 42421 CXXFLAGS="$saved_cxxflags" 42422 42423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42424 $as_echo "$supports" >&6; } 42425 if test "x$supports" = "xyes" ; then 42426 CXX_COMP_SUPPORTS="yes" 42427 else 42428 CXX_COMP_SUPPORTS="no" 42429 fi 42430 42431 42432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42433 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42434 supports=no 42435 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 42436 42437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42438 $as_echo "$supports" >&6; } 42439 if test "x$supports" = "xyes" ; then 42440 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42441 else 42442 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42443 fi 42444 42445 42446 42447 42448 # Setup debug symbols (need objcopy from the toolchain for that) 42449 42450 # Backwards compatibility. --with-native-debug-symbols is preferred post JDK-8207234, 42451 # but if somebody does not specify it via configure, we still want to preserve old 42452 # behaviour of --disable-debug-symbols 42453 # 42454 # ENABLE_DEBUG_SYMBOLS 42455 # This must be done after the toolchain is setup, since we're looking at objcopy. 42456 # 42457 # Check whether --enable-debug-symbols was given. 42458 if test "${enable_debug_symbols+set}" = set; then : 42459 enableval=$enable_debug_symbols; 42460 fi 42461 42462 42463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 42464 $as_echo_n "checking if we should generate debug symbols... " >&6; } 42465 42466 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 42467 # explicit enabling of enable-debug-symbols and can't find objcopy 42468 # this is an error 42469 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 42470 fi 42471 42472 if test "x$enable_debug_symbols" = "xyes"; then 42473 ENABLE_DEBUG_SYMBOLS=true 42474 elif test "x$enable_debug_symbols" = "xno"; then 42475 ENABLE_DEBUG_SYMBOLS=false 42476 else 42477 # Default is on if objcopy is found 42478 if test "x$OBJCOPY" != x; then 42479 ENABLE_DEBUG_SYMBOLS=true 42480 # MacOS X and Windows don't use objcopy but default is on for those OSes 42481 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 42482 ENABLE_DEBUG_SYMBOLS=true 42483 else 42484 ENABLE_DEBUG_SYMBOLS=false 42485 fi 42486 fi 42487 42488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 42489 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 42490 42491 # Backwards compatibility. --with-native-debug-symbols is preferred post JDK-8207234, 42492 # but if somebody does not specify it via configure, we still want to preserve old 42493 # behaviour of --disable-zip-debug-info. 42494 # 42495 # ZIP_DEBUGINFO_FILES 42496 # 42497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 42498 $as_echo_n "checking if we should zip debug-info files... " >&6; } 42499 # Check whether --enable-zip-debug-info was given. 42500 if test "${enable_zip_debug_info+set}" = set; then : 42501 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 42502 else 42503 enable_zip_debug_info="yes" 42504 fi 42505 42506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 42507 $as_echo "${enable_zip_debug_info}" >&6; } 42508 42509 if test "x${enable_zip_debug_info}" = "xno"; then 42510 ZIP_DEBUGINFO_FILES=false 42511 elif test "x${enable_zip_debug_info}" = "xyes"; then 42512 ZIP_DEBUGINFO_FILES=true 42513 fi 42514 42515 # 42516 # NATIVE_DEBUG_SYMBOLS 42517 # This must be done after the toolchain is setup, since we're looking at objcopy. 42518 # In addition, this must be done after ENABLE_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES 42519 # checking in order to preserve backwards compatibility post JDK-8207234. 42520 # 42521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use (this will override previous settings)" >&5 42522 $as_echo_n "checking what type of native debug symbols to use (this will override previous settings)... " >&6; } 42523 42524 # Check whether --with-native-debug-symbols was given. 42525 if test "${with_native_debug_symbols+set}" = set; then : 42526 withval=$with_native_debug_symbols; 42527 if test "x$OPENJDK_TARGET_OS" = xaix; then 42528 if test "x$with_native_debug_symbols" = xexternal || test "x$with_native_debug_symbols" = xzipped; then 42529 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 42530 fi 42531 fi 42532 42533 else 42534 42535 # Default to unset for backwards compatibility 42536 with_native_debug_symbols="" 42537 42538 fi 42539 42540 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 42541 if test "x$NATIVE_DEBUG_SYMBOLS" = x; then 42542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified" >&5 42543 $as_echo "not specified" >&6; } 42544 else 42545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 42546 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 42547 fi 42548 # Default is empty 42549 DEBUG_BINARIES= 42550 # Default is min_strip. Possible values are min_strip, all_strip, no_strip 42551 STRIP_POLICY=min_strip 42552 42553 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 42554 42555 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42556 if test "x$OBJCOPY" = x; then 42557 # enabling of enable-debug-symbols and can't find objcopy 42558 # this is an error 42559 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 42560 fi 42561 fi 42562 42563 ENABLE_DEBUG_SYMBOLS=true 42564 STRIP_POLICY=min_strip 42565 ZIP_DEBUGINFO_FILES=true 42566 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 42567 ENABLE_DEBUG_SYMBOLS=false 42568 STRIP_POLICY=min_strip 42569 ZIP_DEBUGINFO_FILES=false 42570 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 42571 ENABLE_DEBUG_SYMBOLS=true 42572 STRIP_POLICY=no_strip 42573 ZIP_DEBUGINFO_FILES=false 42574 POST_STRIP_CMD= 42575 DEBUG_BINARIES=true 42576 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 42577 42578 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42579 if test "x$OBJCOPY" = x; then 42580 # enabling of enable-debug-symbols and can't find objcopy 42581 # this is an error 42582 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 42583 fi 42584 fi 42585 42586 ENABLE_DEBUG_SYMBOLS=true 42587 STRIP_POLICY=min_strip 42588 ZIP_DEBUGINFO_FILES=false 42589 elif test "x$NATIVE_DEBUG_SYMBOLS" != x; then 42590 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 42591 else 42592 { $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 42593 $as_echo "$as_me: --with-native-debug-symbols not specified. Using values from --disable-debug-symbols and --disable-zip-debug-info" >&6;} 42594 fi 42595 42596 42597 42598 42599 42600 42601 42602 42603 ############################################################################### 42604 # 42605 # Check dependencies for external and internal libraries. 42606 # 42607 ############################################################################### 42608 42609 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 42610 42611 # When using cygwin or msys, we need a wrapper binary that renames 42612 # /cygdrive/c/ arguments into c:/ arguments and peeks into 42613 # @files and rewrites these too! This wrapper binary is 42614 # called fixpath. 42615 FIXPATH= 42616 if test "x$OPENJDK_BUILD_OS" = xwindows; then 42617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 42618 $as_echo_n "checking if fixpath can be created... " >&6; } 42619 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 42620 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 42621 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 42622 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 42623 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 42624 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 42625 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 42626 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 42627 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 42628 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 42629 42630 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 42631 # @ was chosen as separator to minimize risk of other tools messing around with it 42632 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 42633 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 42634 42635 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 42636 fi 42637 rm -f $OUTPUT_ROOT/fixpath* 42638 cd $OUTPUT_ROOT 42639 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 42640 cd $CURDIR 42641 42642 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 42643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42644 $as_echo "no" >&6; } 42645 cat $OUTPUT_ROOT/fixpath1.log 42646 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 42647 fi 42648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42649 $as_echo "yes" >&6; } 42650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 42651 $as_echo_n "checking if fixpath.exe works... " >&6; } 42652 cd $OUTPUT_ROOT 42653 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 42654 cd $CURDIR 42655 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 42656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42657 $as_echo "no" >&6; } 42658 cat $OUTPUT_ROOT/fixpath2.log 42659 as_fn_error $? "fixpath did not work!" "$LINENO" 5 42660 fi 42661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42662 $as_echo "yes" >&6; } 42663 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 42664 fi 42665 42666 42667 42668 42669 42670 42671 ############################################################################### 42672 # 42673 # OS specific settings that we never will need to probe. 42674 # 42675 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 42677 $as_echo_n "checking what is not needed on Linux?... " >&6; } 42678 PULSE_NOT_NEEDED=yes 42679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 42680 $as_echo "pulse" >&6; } 42681 fi 42682 42683 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 42685 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 42686 ALSA_NOT_NEEDED=yes 42687 PULSE_NOT_NEEDED=yes 42688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42689 $as_echo "alsa pulse" >&6; } 42690 fi 42691 42692 if test "x$OPENJDK_TARGET_OS" = xaix; then 42693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 42694 $as_echo_n "checking what is not needed on AIX?... " >&6; } 42695 ALSA_NOT_NEEDED=yes 42696 PULSE_NOT_NEEDED=yes 42697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42698 $as_echo "alsa pulse" >&6; } 42699 fi 42700 42701 42702 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 42704 $as_echo_n "checking what is not needed on Windows?... " >&6; } 42705 CUPS_NOT_NEEDED=yes 42706 ALSA_NOT_NEEDED=yes 42707 PULSE_NOT_NEEDED=yes 42708 X11_NOT_NEEDED=yes 42709 FONTCONFIG_NOT_NEEDED=yes 42710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 42711 $as_echo "alsa cups pulse x11" >&6; } 42712 fi 42713 42714 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 42716 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 42717 ALSA_NOT_NEEDED=yes 42718 PULSE_NOT_NEEDED=yes 42719 X11_NOT_NEEDED=yes 42720 FONTCONFIG_NOT_NEEDED=yes 42721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 42722 $as_echo "alsa pulse x11" >&6; } 42723 fi 42724 42725 if test "x$OPENJDK_TARGET_OS" = xbsd; then 42726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 42727 $as_echo_n "checking what is not needed on bsd?... " >&6; } 42728 ALSA_NOT_NEEDED=yes 42729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 42730 $as_echo "alsa" >&6; } 42731 fi 42732 42733 if test "x$OPENJDK" = "xfalse"; then 42734 FREETYPE_NOT_NEEDED=yes 42735 fi 42736 42737 if test "x$SUPPORT_HEADFUL" = xno; then 42738 X11_NOT_NEEDED=yes 42739 fi 42740 42741 # Deprecated and now ignored 42742 42743 # Check whether --enable-macosx-runtime-support was given. 42744 if test "${enable_macosx_runtime_support+set}" = set; then : 42745 enableval=$enable_macosx_runtime_support; 42746 fi 42747 42748 if test "x$enable_macosx_runtime_support" != x; then 42749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5 42750 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;} 42751 fi 42752 42753 42754 42755 42756 ############################################################################### 42757 # 42758 # Check for X Windows 42759 # 42760 42761 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 42762 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 42763 # --x-libraries for the sysroot, if that seems to be correct. 42764 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 42765 if test "x$SYSROOT" != "x"; then 42766 if test "x$x_includes" = xNONE; then 42767 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 42768 x_includes="$SYSROOT/usr/X11R6/include" 42769 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 42770 x_includes="$SYSROOT/usr/include" 42771 fi 42772 fi 42773 if test "x$x_libraries" = xNONE; then 42774 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 42775 x_libraries="$SYSROOT/usr/X11R6/lib" 42776 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 42777 x_libraries="$SYSROOT/usr/lib64" 42778 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 42779 x_libraries="$SYSROOT/usr/lib" 42780 fi 42781 fi 42782 fi 42783 fi 42784 42785 # Now let autoconf do it's magic 42786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 42787 $as_echo_n "checking for X... " >&6; } 42788 42789 42790 # Check whether --with-x was given. 42791 if test "${with_x+set}" = set; then : 42792 withval=$with_x; 42793 fi 42794 42795 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 42796 if test "x$with_x" = xno; then 42797 # The user explicitly disabled X. 42798 have_x=disabled 42799 else 42800 case $x_includes,$x_libraries in #( 42801 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 42802 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 42803 $as_echo_n "(cached) " >&6 42804 else 42805 # One or both of the vars are not set, and there is no cached value. 42806 ac_x_includes=no ac_x_libraries=no 42807 rm -f -r conftest.dir 42808 if mkdir conftest.dir; then 42809 cd conftest.dir 42810 cat >Imakefile <<'_ACEOF' 42811 incroot: 42812 @echo incroot='${INCROOT}' 42813 usrlibdir: 42814 @echo usrlibdir='${USRLIBDIR}' 42815 libdir: 42816 @echo libdir='${LIBDIR}' 42817 _ACEOF 42818 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 42819 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 42820 for ac_var in incroot usrlibdir libdir; do 42821 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 42822 done 42823 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 42824 for ac_extension in a so sl dylib la dll; do 42825 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 42826 test -f "$ac_im_libdir/libX11.$ac_extension"; then 42827 ac_im_usrlibdir=$ac_im_libdir; break 42828 fi 42829 done 42830 # Screen out bogus values from the imake configuration. They are 42831 # bogus both because they are the default anyway, and because 42832 # using them would break gcc on systems where it needs fixed includes. 42833 case $ac_im_incroot in 42834 /usr/include) ac_x_includes= ;; 42835 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 42836 esac 42837 case $ac_im_usrlibdir in 42838 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 42839 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 42840 esac 42841 fi 42842 cd .. 42843 rm -f -r conftest.dir 42844 fi 42845 42846 # Standard set of common directories for X headers. 42847 # Check X11 before X11Rn because it is often a symlink to the current release. 42848 ac_x_header_dirs=' 42849 /usr/X11/include 42850 /usr/X11R7/include 42851 /usr/X11R6/include 42852 /usr/X11R5/include 42853 /usr/X11R4/include 42854 42855 /usr/include/X11 42856 /usr/include/X11R7 42857 /usr/include/X11R6 42858 /usr/include/X11R5 42859 /usr/include/X11R4 42860 42861 /usr/local/X11/include 42862 /usr/local/X11R7/include 42863 /usr/local/X11R6/include 42864 /usr/local/X11R5/include 42865 /usr/local/X11R4/include 42866 42867 /usr/local/include/X11 42868 /usr/local/include/X11R7 42869 /usr/local/include/X11R6 42870 /usr/local/include/X11R5 42871 /usr/local/include/X11R4 42872 42873 /usr/X386/include 42874 /usr/x386/include 42875 /usr/XFree86/include/X11 42876 42877 /usr/include 42878 /usr/local/include 42879 /usr/unsupported/include 42880 /usr/athena/include 42881 /usr/local/x11r5/include 42882 /usr/lpp/Xamples/include 42883 42884 /usr/openwin/include 42885 /usr/openwin/share/include' 42886 42887 if test "$ac_x_includes" = no; then 42888 # Guess where to find include files, by looking for Xlib.h. 42889 # First, try using that file with no special directory specified. 42890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42891 /* end confdefs.h. */ 42892 #include <X11/Xlib.h> 42893 _ACEOF 42894 if ac_fn_cxx_try_cpp "$LINENO"; then : 42895 # We can compile using X headers with no special include directory. 42896 ac_x_includes= 42897 else 42898 for ac_dir in $ac_x_header_dirs; do 42899 if test -r "$ac_dir/X11/Xlib.h"; then 42900 ac_x_includes=$ac_dir 42901 break 42902 fi 42903 done 42904 fi 42905 rm -f conftest.err conftest.i conftest.$ac_ext 42906 fi # $ac_x_includes = no 42907 42908 if test "$ac_x_libraries" = no; then 42909 # Check for the libraries. 42910 # See if we find them without any special options. 42911 # Don't add to $LIBS permanently. 42912 ac_save_LIBS=$LIBS 42913 LIBS="-lX11 $LIBS" 42914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42915 /* end confdefs.h. */ 42916 #include <X11/Xlib.h> 42917 int 42918 main () 42919 { 42920 XrmInitialize () 42921 ; 42922 return 0; 42923 } 42924 _ACEOF 42925 if ac_fn_cxx_try_link "$LINENO"; then : 42926 LIBS=$ac_save_LIBS 42927 # We can link X programs with no special library path. 42928 ac_x_libraries= 42929 else 42930 LIBS=$ac_save_LIBS 42931 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 42932 do 42933 # Don't even attempt the hair of trying to link an X program! 42934 for ac_extension in a so sl dylib la dll; do 42935 if test -r "$ac_dir/libX11.$ac_extension"; then 42936 ac_x_libraries=$ac_dir 42937 break 2 42938 fi 42939 done 42940 done 42941 fi 42942 rm -f core conftest.err conftest.$ac_objext \ 42943 conftest$ac_exeext conftest.$ac_ext 42944 fi # $ac_x_libraries = no 42945 42946 case $ac_x_includes,$ac_x_libraries in #( 42947 no,* | *,no | *\'*) 42948 # Didn't find X, or a directory has "'" in its name. 42949 ac_cv_have_x="have_x=no";; #( 42950 *) 42951 # Record where we found X for the cache. 42952 ac_cv_have_x="have_x=yes\ 42953 ac_x_includes='$ac_x_includes'\ 42954 ac_x_libraries='$ac_x_libraries'" 42955 esac 42956 fi 42957 ;; #( 42958 *) have_x=yes;; 42959 esac 42960 eval "$ac_cv_have_x" 42961 fi # $with_x != no 42962 42963 if test "$have_x" != yes; then 42964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 42965 $as_echo "$have_x" >&6; } 42966 no_x=yes 42967 else 42968 # If each of the values was on the command line, it overrides each guess. 42969 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 42970 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 42971 # Update the cache value to reflect the command line values. 42972 ac_cv_have_x="have_x=yes\ 42973 ac_x_includes='$x_includes'\ 42974 ac_x_libraries='$x_libraries'" 42975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 42976 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 42977 fi 42978 42979 if test "$no_x" = yes; then 42980 # Not all programs may use this symbol, but it does not hurt to define it. 42981 42982 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 42983 42984 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 42985 else 42986 if test -n "$x_includes"; then 42987 X_CFLAGS="$X_CFLAGS -I$x_includes" 42988 fi 42989 42990 # It would also be nice to do this for all -L options, not just this one. 42991 if test -n "$x_libraries"; then 42992 X_LIBS="$X_LIBS -L$x_libraries" 42993 # For Solaris; some versions of Sun CC require a space after -R and 42994 # others require no space. Words are not sufficient . . . . 42995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 42996 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 42997 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 42998 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 42999 ac_cxx_werror_flag=yes 43000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43001 /* end confdefs.h. */ 43002 43003 int 43004 main () 43005 { 43006 43007 ; 43008 return 0; 43009 } 43010 _ACEOF 43011 if ac_fn_cxx_try_link "$LINENO"; then : 43012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43013 $as_echo "no" >&6; } 43014 X_LIBS="$X_LIBS -R$x_libraries" 43015 else 43016 LIBS="$ac_xsave_LIBS -R $x_libraries" 43017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43018 /* end confdefs.h. */ 43019 43020 int 43021 main () 43022 { 43023 43024 ; 43025 return 0; 43026 } 43027 _ACEOF 43028 if ac_fn_cxx_try_link "$LINENO"; then : 43029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43030 $as_echo "yes" >&6; } 43031 X_LIBS="$X_LIBS -R $x_libraries" 43032 else 43033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43034 $as_echo "neither works" >&6; } 43035 fi 43036 rm -f core conftest.err conftest.$ac_objext \ 43037 conftest$ac_exeext conftest.$ac_ext 43038 fi 43039 rm -f core conftest.err conftest.$ac_objext \ 43040 conftest$ac_exeext conftest.$ac_ext 43041 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43042 LIBS=$ac_xsave_LIBS 43043 fi 43044 43045 # Check for system-dependent libraries X programs must link with. 43046 # Do this before checking for the system-independent R6 libraries 43047 # (-lICE), since we may need -lsocket or whatever for X linking. 43048 43049 if test "$ISC" = yes; then 43050 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43051 else 43052 # Martyn Johnson says this is needed for Ultrix, if the X 43053 # libraries were built with DECnet support. And Karl Berry says 43054 # the Alpha needs dnet_stub (dnet does not exist). 43055 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43057 /* end confdefs.h. */ 43058 43059 /* Override any GCC internal prototype to avoid an error. 43060 Use char because int might match the return type of a GCC 43061 builtin and then its argument prototype would still apply. */ 43062 #ifdef __cplusplus 43063 extern "C" 43064 #endif 43065 char XOpenDisplay (); 43066 int 43067 main () 43068 { 43069 return XOpenDisplay (); 43070 ; 43071 return 0; 43072 } 43073 _ACEOF 43074 if ac_fn_cxx_try_link "$LINENO"; then : 43075 43076 else 43077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43078 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43079 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43080 $as_echo_n "(cached) " >&6 43081 else 43082 ac_check_lib_save_LIBS=$LIBS 43083 LIBS="-ldnet $LIBS" 43084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43085 /* end confdefs.h. */ 43086 43087 /* Override any GCC internal prototype to avoid an error. 43088 Use char because int might match the return type of a GCC 43089 builtin and then its argument prototype would still apply. */ 43090 #ifdef __cplusplus 43091 extern "C" 43092 #endif 43093 char dnet_ntoa (); 43094 int 43095 main () 43096 { 43097 return dnet_ntoa (); 43098 ; 43099 return 0; 43100 } 43101 _ACEOF 43102 if ac_fn_cxx_try_link "$LINENO"; then : 43103 ac_cv_lib_dnet_dnet_ntoa=yes 43104 else 43105 ac_cv_lib_dnet_dnet_ntoa=no 43106 fi 43107 rm -f core conftest.err conftest.$ac_objext \ 43108 conftest$ac_exeext conftest.$ac_ext 43109 LIBS=$ac_check_lib_save_LIBS 43110 fi 43111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43112 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43113 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43114 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43115 fi 43116 43117 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43119 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43120 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43121 $as_echo_n "(cached) " >&6 43122 else 43123 ac_check_lib_save_LIBS=$LIBS 43124 LIBS="-ldnet_stub $LIBS" 43125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43126 /* end confdefs.h. */ 43127 43128 /* Override any GCC internal prototype to avoid an error. 43129 Use char because int might match the return type of a GCC 43130 builtin and then its argument prototype would still apply. */ 43131 #ifdef __cplusplus 43132 extern "C" 43133 #endif 43134 char dnet_ntoa (); 43135 int 43136 main () 43137 { 43138 return dnet_ntoa (); 43139 ; 43140 return 0; 43141 } 43142 _ACEOF 43143 if ac_fn_cxx_try_link "$LINENO"; then : 43144 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43145 else 43146 ac_cv_lib_dnet_stub_dnet_ntoa=no 43147 fi 43148 rm -f core conftest.err conftest.$ac_objext \ 43149 conftest$ac_exeext conftest.$ac_ext 43150 LIBS=$ac_check_lib_save_LIBS 43151 fi 43152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43153 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43154 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43155 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43156 fi 43157 43158 fi 43159 fi 43160 rm -f core conftest.err conftest.$ac_objext \ 43161 conftest$ac_exeext conftest.$ac_ext 43162 LIBS="$ac_xsave_LIBS" 43163 43164 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43165 # to get the SysV transport functions. 43166 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43167 # needs -lnsl. 43168 # The nsl library prevents programs from opening the X display 43169 # on Irix 5.2, according to T.E. Dickey. 43170 # The functions gethostbyname, getservbyname, and inet_addr are 43171 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43172 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43173 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43174 43175 fi 43176 43177 if test $ac_cv_func_gethostbyname = no; then 43178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43179 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43180 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43181 $as_echo_n "(cached) " >&6 43182 else 43183 ac_check_lib_save_LIBS=$LIBS 43184 LIBS="-lnsl $LIBS" 43185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43186 /* end confdefs.h. */ 43187 43188 /* Override any GCC internal prototype to avoid an error. 43189 Use char because int might match the return type of a GCC 43190 builtin and then its argument prototype would still apply. */ 43191 #ifdef __cplusplus 43192 extern "C" 43193 #endif 43194 char gethostbyname (); 43195 int 43196 main () 43197 { 43198 return gethostbyname (); 43199 ; 43200 return 0; 43201 } 43202 _ACEOF 43203 if ac_fn_cxx_try_link "$LINENO"; then : 43204 ac_cv_lib_nsl_gethostbyname=yes 43205 else 43206 ac_cv_lib_nsl_gethostbyname=no 43207 fi 43208 rm -f core conftest.err conftest.$ac_objext \ 43209 conftest$ac_exeext conftest.$ac_ext 43210 LIBS=$ac_check_lib_save_LIBS 43211 fi 43212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43213 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43214 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43216 fi 43217 43218 if test $ac_cv_lib_nsl_gethostbyname = no; then 43219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43220 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43221 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43222 $as_echo_n "(cached) " >&6 43223 else 43224 ac_check_lib_save_LIBS=$LIBS 43225 LIBS="-lbsd $LIBS" 43226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43227 /* end confdefs.h. */ 43228 43229 /* Override any GCC internal prototype to avoid an error. 43230 Use char because int might match the return type of a GCC 43231 builtin and then its argument prototype would still apply. */ 43232 #ifdef __cplusplus 43233 extern "C" 43234 #endif 43235 char gethostbyname (); 43236 int 43237 main () 43238 { 43239 return gethostbyname (); 43240 ; 43241 return 0; 43242 } 43243 _ACEOF 43244 if ac_fn_cxx_try_link "$LINENO"; then : 43245 ac_cv_lib_bsd_gethostbyname=yes 43246 else 43247 ac_cv_lib_bsd_gethostbyname=no 43248 fi 43249 rm -f core conftest.err conftest.$ac_objext \ 43250 conftest$ac_exeext conftest.$ac_ext 43251 LIBS=$ac_check_lib_save_LIBS 43252 fi 43253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43254 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43255 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43257 fi 43258 43259 fi 43260 fi 43261 43262 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43263 # socket/setsockopt and other routines are undefined under SCO ODT 43264 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43265 # on later versions), says Simon Leinen: it contains gethostby* 43266 # variants that don't use the name server (or something). -lsocket 43267 # must be given before -lnsl if both are needed. We assume that 43268 # if connect needs -lnsl, so does gethostbyname. 43269 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43270 if test "x$ac_cv_func_connect" = xyes; then : 43271 43272 fi 43273 43274 if test $ac_cv_func_connect = no; then 43275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43276 $as_echo_n "checking for connect in -lsocket... " >&6; } 43277 if ${ac_cv_lib_socket_connect+:} false; then : 43278 $as_echo_n "(cached) " >&6 43279 else 43280 ac_check_lib_save_LIBS=$LIBS 43281 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43283 /* end confdefs.h. */ 43284 43285 /* Override any GCC internal prototype to avoid an error. 43286 Use char because int might match the return type of a GCC 43287 builtin and then its argument prototype would still apply. */ 43288 #ifdef __cplusplus 43289 extern "C" 43290 #endif 43291 char connect (); 43292 int 43293 main () 43294 { 43295 return connect (); 43296 ; 43297 return 0; 43298 } 43299 _ACEOF 43300 if ac_fn_cxx_try_link "$LINENO"; then : 43301 ac_cv_lib_socket_connect=yes 43302 else 43303 ac_cv_lib_socket_connect=no 43304 fi 43305 rm -f core conftest.err conftest.$ac_objext \ 43306 conftest$ac_exeext conftest.$ac_ext 43307 LIBS=$ac_check_lib_save_LIBS 43308 fi 43309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43310 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43311 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43312 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43313 fi 43314 43315 fi 43316 43317 # Guillermo Gomez says -lposix is necessary on A/UX. 43318 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43319 if test "x$ac_cv_func_remove" = xyes; then : 43320 43321 fi 43322 43323 if test $ac_cv_func_remove = no; then 43324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43325 $as_echo_n "checking for remove in -lposix... " >&6; } 43326 if ${ac_cv_lib_posix_remove+:} false; then : 43327 $as_echo_n "(cached) " >&6 43328 else 43329 ac_check_lib_save_LIBS=$LIBS 43330 LIBS="-lposix $LIBS" 43331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43332 /* end confdefs.h. */ 43333 43334 /* Override any GCC internal prototype to avoid an error. 43335 Use char because int might match the return type of a GCC 43336 builtin and then its argument prototype would still apply. */ 43337 #ifdef __cplusplus 43338 extern "C" 43339 #endif 43340 char remove (); 43341 int 43342 main () 43343 { 43344 return remove (); 43345 ; 43346 return 0; 43347 } 43348 _ACEOF 43349 if ac_fn_cxx_try_link "$LINENO"; then : 43350 ac_cv_lib_posix_remove=yes 43351 else 43352 ac_cv_lib_posix_remove=no 43353 fi 43354 rm -f core conftest.err conftest.$ac_objext \ 43355 conftest$ac_exeext conftest.$ac_ext 43356 LIBS=$ac_check_lib_save_LIBS 43357 fi 43358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43359 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43360 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43361 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43362 fi 43363 43364 fi 43365 43366 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43367 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43368 if test "x$ac_cv_func_shmat" = xyes; then : 43369 43370 fi 43371 43372 if test $ac_cv_func_shmat = no; then 43373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43374 $as_echo_n "checking for shmat in -lipc... " >&6; } 43375 if ${ac_cv_lib_ipc_shmat+:} false; then : 43376 $as_echo_n "(cached) " >&6 43377 else 43378 ac_check_lib_save_LIBS=$LIBS 43379 LIBS="-lipc $LIBS" 43380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43381 /* end confdefs.h. */ 43382 43383 /* Override any GCC internal prototype to avoid an error. 43384 Use char because int might match the return type of a GCC 43385 builtin and then its argument prototype would still apply. */ 43386 #ifdef __cplusplus 43387 extern "C" 43388 #endif 43389 char shmat (); 43390 int 43391 main () 43392 { 43393 return shmat (); 43394 ; 43395 return 0; 43396 } 43397 _ACEOF 43398 if ac_fn_cxx_try_link "$LINENO"; then : 43399 ac_cv_lib_ipc_shmat=yes 43400 else 43401 ac_cv_lib_ipc_shmat=no 43402 fi 43403 rm -f core conftest.err conftest.$ac_objext \ 43404 conftest$ac_exeext conftest.$ac_ext 43405 LIBS=$ac_check_lib_save_LIBS 43406 fi 43407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43408 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43409 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43410 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43411 fi 43412 43413 fi 43414 fi 43415 43416 # Check for libraries that X11R6 Xt/Xaw programs need. 43417 ac_save_LDFLAGS=$LDFLAGS 43418 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43419 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43420 # check for ICE first), but we must link in the order -lSM -lICE or 43421 # we get undefined symbols. So assume we have SM if we have ICE. 43422 # These have to be linked with before -lX11, unlike the other 43423 # libraries we check for below, so use a different variable. 43424 # John Interrante, Karl Berry 43425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43426 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43427 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43428 $as_echo_n "(cached) " >&6 43429 else 43430 ac_check_lib_save_LIBS=$LIBS 43431 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43433 /* end confdefs.h. */ 43434 43435 /* Override any GCC internal prototype to avoid an error. 43436 Use char because int might match the return type of a GCC 43437 builtin and then its argument prototype would still apply. */ 43438 #ifdef __cplusplus 43439 extern "C" 43440 #endif 43441 char IceConnectionNumber (); 43442 int 43443 main () 43444 { 43445 return IceConnectionNumber (); 43446 ; 43447 return 0; 43448 } 43449 _ACEOF 43450 if ac_fn_cxx_try_link "$LINENO"; then : 43451 ac_cv_lib_ICE_IceConnectionNumber=yes 43452 else 43453 ac_cv_lib_ICE_IceConnectionNumber=no 43454 fi 43455 rm -f core conftest.err conftest.$ac_objext \ 43456 conftest$ac_exeext conftest.$ac_ext 43457 LIBS=$ac_check_lib_save_LIBS 43458 fi 43459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43460 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43461 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43462 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43463 fi 43464 43465 LDFLAGS=$ac_save_LDFLAGS 43466 43467 fi 43468 43469 43470 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43471 # this doesn't make sense so we remove it. 43472 if test "x$COMPILE_TYPE" = xcross; then 43473 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 43474 fi 43475 43476 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 43477 43478 # Print a helpful message on how to acquire the necessary build dependency. 43479 # x11 is the help tag: freetype, cups, pulse, alsa etc 43480 MISSING_DEPENDENCY=x11 43481 43482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43483 cygwin_help $MISSING_DEPENDENCY 43484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43485 msys_help $MISSING_DEPENDENCY 43486 else 43487 PKGHANDLER_COMMAND= 43488 43489 case $PKGHANDLER in 43490 apt-get) 43491 apt_help $MISSING_DEPENDENCY ;; 43492 yum) 43493 yum_help $MISSING_DEPENDENCY ;; 43494 port) 43495 port_help $MISSING_DEPENDENCY ;; 43496 pkgutil) 43497 pkgutil_help $MISSING_DEPENDENCY ;; 43498 pkgadd) 43499 pkgadd_help $MISSING_DEPENDENCY ;; 43500 esac 43501 43502 if test "x$PKGHANDLER_COMMAND" != x; then 43503 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43504 fi 43505 fi 43506 43507 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 43508 fi 43509 43510 43511 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43512 OPENWIN_HOME="/usr/openwin" 43513 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 43514 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43515 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 43516 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43517 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 43518 fi 43519 43520 # 43521 # Weird Sol10 something check...TODO change to try compile 43522 # 43523 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 43524 if test "`uname -r`" = "5.10"; then 43525 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 43526 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 43527 fi 43528 fi 43529 fi 43530 43531 ac_ext=c 43532 ac_cpp='$CPP $CPPFLAGS' 43533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43535 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43536 43537 OLD_CFLAGS="$CFLAGS" 43538 CFLAGS="$CFLAGS $X_CFLAGS" 43539 43540 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 43541 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 43542 do : 43543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43544 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 43545 # include <X11/Xlib.h> 43546 # include <X11/Xutil.h> 43547 43548 43549 " 43550 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43551 cat >>confdefs.h <<_ACEOF 43552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43553 _ACEOF 43554 X11_A_OK=yes 43555 else 43556 X11_A_OK=no; break 43557 fi 43558 43559 done 43560 43561 43562 CFLAGS="$OLD_CFLAGS" 43563 ac_ext=cpp 43564 ac_cpp='$CXXCPP $CPPFLAGS' 43565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43568 43569 43570 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 43571 43572 # Print a helpful message on how to acquire the necessary build dependency. 43573 # x11 is the help tag: freetype, cups, pulse, alsa etc 43574 MISSING_DEPENDENCY=x11 43575 43576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43577 cygwin_help $MISSING_DEPENDENCY 43578 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43579 msys_help $MISSING_DEPENDENCY 43580 else 43581 PKGHANDLER_COMMAND= 43582 43583 case $PKGHANDLER in 43584 apt-get) 43585 apt_help $MISSING_DEPENDENCY ;; 43586 yum) 43587 yum_help $MISSING_DEPENDENCY ;; 43588 port) 43589 port_help $MISSING_DEPENDENCY ;; 43590 pkgutil) 43591 pkgutil_help $MISSING_DEPENDENCY ;; 43592 pkgadd) 43593 pkgadd_help $MISSING_DEPENDENCY ;; 43594 esac 43595 43596 if test "x$PKGHANDLER_COMMAND" != x; then 43597 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43598 fi 43599 fi 43600 43601 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 43602 fi 43603 43604 43605 43606 43607 43608 43609 ############################################################################### 43610 # 43611 # The common unix printing system cups is used to print from java. 43612 # 43613 43614 # Check whether --with-cups was given. 43615 if test "${with_cups+set}" = set; then : 43616 withval=$with_cups; 43617 fi 43618 43619 43620 # Check whether --with-cups-include was given. 43621 if test "${with_cups_include+set}" = set; then : 43622 withval=$with_cups_include; 43623 fi 43624 43625 43626 if test "x$CUPS_NOT_NEEDED" = xyes; then 43627 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 43628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 43629 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 43630 fi 43631 CUPS_CFLAGS= 43632 else 43633 CUPS_FOUND=no 43634 43635 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 43636 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 43637 fi 43638 43639 if test "x${with_cups}" != x; then 43640 CUPS_CFLAGS="-I${with_cups}/include" 43641 CUPS_FOUND=yes 43642 fi 43643 if test "x${with_cups_include}" != x; then 43644 CUPS_CFLAGS="-I${with_cups_include}" 43645 CUPS_FOUND=yes 43646 fi 43647 if test "x$CUPS_FOUND" = xno; then 43648 43649 43650 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43651 # Source the builddeps file again, to make sure it uses the latest variables! 43652 . $builddepsfile 43653 # Look for a target and build machine specific resource! 43654 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43655 if test "x$resource" = x; then 43656 # Ok, lets instead look for a target specific resource 43657 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 43658 fi 43659 if test "x$resource" = x; then 43660 # Ok, lets instead look for a build specific resource 43661 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 43662 fi 43663 if test "x$resource" = x; then 43664 # Ok, lets instead look for a generic resource 43665 # (The cups comes from M4 and not the shell, thus no need for eval here.) 43666 resource=${builddep_cups} 43667 fi 43668 if test "x$resource" != x; then 43669 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 43670 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 43671 # If the resource in the builddeps.conf file is an existing directory, 43672 # for example /java/linux/cups 43673 if test -d ${resource}; then 43674 depdir=${resource} 43675 else 43676 43677 # cups is for example mymodule 43678 # $resource is for example libs/general/libmymod_1_2_3.zip 43679 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43680 # $with_builddeps_dir is for example /localhome/builddeps 43681 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43682 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43683 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43684 filename=`basename $resource` 43685 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43686 filebase=${filename%%.*} 43687 extension=${filename#*.} 43688 installdir=$with_builddeps_dir/$filebase 43689 if test ! -f $installdir/$filename.unpacked; then 43690 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 43691 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43692 if test ! -d $installdir; then 43693 mkdir -p $installdir 43694 fi 43695 if test ! -d $installdir; then 43696 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43697 fi 43698 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 43699 touch $tmpfile 43700 if test ! -f $tmpfile; then 43701 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43702 fi 43703 43704 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43705 # $tmpfile is the local file name for the downloaded file. 43706 VALID_TOOL=no 43707 if test "x$BDEPS_FTP" = xwget; then 43708 VALID_TOOL=yes 43709 wget -O $tmpfile $with_builddeps_server/$resource 43710 fi 43711 if test "x$BDEPS_FTP" = xlftp; then 43712 VALID_TOOL=yes 43713 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43714 fi 43715 if test "x$BDEPS_FTP" = xftp; then 43716 VALID_TOOL=yes 43717 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43718 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43719 FTPUSERPWD=${FTPSERVER%%@*} 43720 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43721 FTPUSER=${userpwd%%:*} 43722 FTPPWD=${userpwd#*@} 43723 FTPSERVER=${FTPSERVER#*@} 43724 else 43725 FTPUSER=ftp 43726 FTPPWD=ftp 43727 fi 43728 # the "pass" command does not work on some 43729 # ftp clients (read ftp.exe) but if it works, 43730 # passive mode is better! 43731 ( \ 43732 echo "user $FTPUSER $FTPPWD" ; \ 43733 echo "pass" ; \ 43734 echo "bin" ; \ 43735 echo "get $FTPPATH $tmpfile" ; \ 43736 ) | ftp -in $FTPSERVER 43737 fi 43738 if test "x$VALID_TOOL" != xyes; then 43739 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43740 fi 43741 43742 mv $tmpfile $installdir/$filename 43743 if test ! -s $installdir/$filename; then 43744 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43745 fi 43746 case "$extension" in 43747 zip) echo "Unzipping $installdir/$filename..." 43748 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43749 ;; 43750 tar.gz) echo "Untaring $installdir/$filename..." 43751 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43752 ;; 43753 tgz) echo "Untaring $installdir/$filename..." 43754 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43755 ;; 43756 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43757 ;; 43758 esac 43759 fi 43760 if test -f $installdir/$filename.unpacked; then 43761 depdir=$installdir 43762 fi 43763 43764 fi 43765 # Source the builddeps file again, because in the previous command, the depdir 43766 # was updated to point at the current build dependency install directory. 43767 . $builddepsfile 43768 # Now extract variables from the builddeps.conf files. 43769 theroot=${builddep_cups_ROOT} 43770 thecflags=${builddep_cups_CFLAGS} 43771 thelibs=${builddep_cups_LIBS} 43772 if test "x$depdir" = x; then 43773 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 43774 fi 43775 CUPS=$depdir 43776 if test "x$theroot" != x; then 43777 CUPS="$theroot" 43778 fi 43779 if test "x$thecflags" != x; then 43780 CUPS_CFLAGS="$thecflags" 43781 fi 43782 if test "x$thelibs" != x; then 43783 CUPS_LIBS="$thelibs" 43784 fi 43785 CUPS_FOUND=yes 43786 43787 fi 43788 43789 fi 43790 43791 fi 43792 if test "x$CUPS_FOUND" = xno; then 43793 # Are the cups headers installed in the default /usr/include location? 43794 for ac_header in cups/cups.h cups/ppd.h 43795 do : 43796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43797 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 43798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43799 cat >>confdefs.h <<_ACEOF 43800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43801 _ACEOF 43802 43803 CUPS_FOUND=yes 43804 CUPS_CFLAGS= 43805 DEFAULT_CUPS=yes 43806 43807 43808 fi 43809 43810 done 43811 43812 fi 43813 if test "x$CUPS_FOUND" = xno; then 43814 # Getting nervous now? Lets poke around for standard Solaris third-party 43815 # package installation locations. 43816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 43817 $as_echo_n "checking for cups headers... " >&6; } 43818 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 43819 # An SFW package seems to be installed! 43820 CUPS_FOUND=yes 43821 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 43822 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 43823 # A CSW package seems to be installed! 43824 CUPS_FOUND=yes 43825 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 43826 fi 43827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 43828 $as_echo "$CUPS_FOUND" >&6; } 43829 fi 43830 if test "x$CUPS_FOUND" = xno; then 43831 43832 # Print a helpful message on how to acquire the necessary build dependency. 43833 # cups is the help tag: freetype, cups, pulse, alsa etc 43834 MISSING_DEPENDENCY=cups 43835 43836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43837 cygwin_help $MISSING_DEPENDENCY 43838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43839 msys_help $MISSING_DEPENDENCY 43840 else 43841 PKGHANDLER_COMMAND= 43842 43843 case $PKGHANDLER in 43844 apt-get) 43845 apt_help $MISSING_DEPENDENCY ;; 43846 yum) 43847 yum_help $MISSING_DEPENDENCY ;; 43848 port) 43849 port_help $MISSING_DEPENDENCY ;; 43850 pkgutil) 43851 pkgutil_help $MISSING_DEPENDENCY ;; 43852 pkgadd) 43853 pkgadd_help $MISSING_DEPENDENCY ;; 43854 esac 43855 43856 if test "x$PKGHANDLER_COMMAND" != x; then 43857 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43858 fi 43859 fi 43860 43861 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 43862 fi 43863 fi 43864 43865 43866 43867 43868 43869 43870 ############################################################################### 43871 # 43872 # The ubiquitous freetype library is used to render fonts. 43873 # 43874 43875 # Check whether --with-freetype was given. 43876 if test "${with_freetype+set}" = set; then : 43877 withval=$with_freetype; 43878 fi 43879 43880 43881 # Check whether --with-freetype-include was given. 43882 if test "${with_freetype_include+set}" = set; then : 43883 withval=$with_freetype_include; 43884 fi 43885 43886 43887 # Check whether --with-freetype-lib was given. 43888 if test "${with_freetype_lib+set}" = set; then : 43889 withval=$with_freetype_lib; 43890 fi 43891 43892 43893 # Check whether --with-freetype-src was given. 43894 if test "${with_freetype_src+set}" = set; then : 43895 withval=$with_freetype_src; 43896 fi 43897 43898 # Check whether --enable-freetype-bundling was given. 43899 if test "${enable_freetype_bundling+set}" = set; then : 43900 enableval=$enable_freetype_bundling; 43901 fi 43902 43903 43904 FREETYPE_CFLAGS= 43905 FREETYPE_LIBS= 43906 FREETYPE_BUNDLE_LIB_PATH= 43907 43908 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 43909 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 43910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 43911 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 43912 fi 43913 if test "x$enable_freetype_bundling" != x; then 43914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 43915 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 43916 fi 43917 else 43918 # freetype is needed to build; go get it! 43919 43920 BUNDLE_FREETYPE="$enable_freetype_bundling" 43921 43922 if test "x$with_freetype_src" != x; then 43923 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43924 # Try to build freetype if --with-freetype-src was given on Windows 43925 43926 FREETYPE_SRC_PATH="$with_freetype_src" 43927 BUILD_FREETYPE=yes 43928 43929 # Check if the freetype sources are acessible.. 43930 if ! test -d $FREETYPE_SRC_PATH; then 43931 { $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 43932 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 43933 BUILD_FREETYPE=no 43934 fi 43935 # ..and contain a vc2010 project file 43936 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 43937 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 43938 { $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 43939 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 43940 BUILD_FREETYPE=no 43941 fi 43942 # Now check if configure found a version of 'msbuild.exe' 43943 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 43944 { $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 43945 $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;} 43946 BUILD_FREETYPE=no 43947 fi 43948 43949 # Ready to go.. 43950 if test "x$BUILD_FREETYPE" = xyes; then 43951 43952 # msbuild requires trailing slashes for output directories 43953 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 43954 freetype_lib_path_unix="$freetype_lib_path" 43955 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 43956 43957 unix_path="$vcxproj_path" 43958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43959 windows_path=`$CYGPATH -m "$unix_path"` 43960 vcxproj_path="$windows_path" 43961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43962 windows_path=`cmd //c echo $unix_path` 43963 vcxproj_path="$windows_path" 43964 fi 43965 43966 43967 unix_path="$freetype_lib_path" 43968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43969 windows_path=`$CYGPATH -m "$unix_path"` 43970 freetype_lib_path="$windows_path" 43971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43972 windows_path=`cmd //c echo $unix_path` 43973 freetype_lib_path="$windows_path" 43974 fi 43975 43976 43977 unix_path="$freetype_obj_path" 43978 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43979 windows_path=`$CYGPATH -m "$unix_path"` 43980 freetype_obj_path="$windows_path" 43981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43982 windows_path=`cmd //c echo $unix_path` 43983 freetype_obj_path="$windows_path" 43984 fi 43985 43986 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43987 freetype_platform=x64 43988 else 43989 freetype_platform=win32 43990 fi 43991 43992 # The original freetype project file is for VS 2010 (i.e. 'v100'), 43993 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 43994 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 43995 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 43996 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 43997 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 43998 43999 # First we try to build the freetype.dll 44000 $ECHO -e "@echo off\n"\ 44001 "$MSBUILD $vcxproj_path "\ 44002 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44003 "/p:Configuration=\"Release Multithreaded\" "\ 44004 "/p:Platform=$freetype_platform "\ 44005 "/p:ConfigurationType=DynamicLibrary "\ 44006 "/p:TargetName=freetype "\ 44007 "/p:OutDir=\"$freetype_lib_path\" "\ 44008 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44009 cmd /c freetype.bat 44010 44011 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44012 # If that succeeds we also build freetype.lib 44013 $ECHO -e "@echo off\n"\ 44014 "$MSBUILD $vcxproj_path "\ 44015 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44016 "/p:Configuration=\"Release Multithreaded\" "\ 44017 "/p:Platform=$freetype_platform "\ 44018 "/p:ConfigurationType=StaticLibrary "\ 44019 "/p:TargetName=freetype "\ 44020 "/p:OutDir=\"$freetype_lib_path\" "\ 44021 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44022 cmd /c freetype.bat 44023 44024 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44025 # Once we build both, lib and dll, set freetype lib and include path appropriately 44026 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44027 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44028 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44029 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44030 else 44031 BUILD_FREETYPE=no 44032 fi 44033 else 44034 BUILD_FREETYPE=no 44035 fi 44036 fi 44037 44038 if test "x$BUILD_FREETYPE" = xyes; then 44039 # Okay, we built it. Check that it works. 44040 44041 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44042 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44043 METHOD="--with-freetype-src" 44044 44045 # First check if the files exists. 44046 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44047 # We found an arbitrary include file. That's a good sign. 44048 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44049 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44050 FOUND_FREETYPE=yes 44051 44052 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44053 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44054 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44055 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44056 FOUND_FREETYPE=no 44057 else 44058 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44059 # On Windows, we will need both .lib and .dll file. 44060 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44061 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44062 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44063 FOUND_FREETYPE=no 44064 fi 44065 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 44066 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44067 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44068 fi 44069 fi 44070 fi 44071 44072 if test "x$FOUND_FREETYPE" = xyes; then 44073 44074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44075 44076 # Input might be given as Windows format, start by converting to 44077 # unix format. 44078 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44079 new_path=`$CYGPATH -u "$path"` 44080 44081 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44082 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44083 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44084 # "foo.exe" is OK but "foo" is an error. 44085 # 44086 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44087 # It is also a way to make sure we got the proper file name for the real test later on. 44088 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44089 if test "x$test_shortpath" = x; then 44090 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44091 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44092 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44093 fi 44094 44095 # Call helper function which possibly converts this using DOS-style short mode. 44096 # If so, the updated path is stored in $new_path. 44097 44098 input_path="$new_path" 44099 # Check if we need to convert this using DOS-style short mode. If the path 44100 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44101 # take no chances and rewrite it. 44102 # Note: m4 eats our [], so we need to use [ and ] instead. 44103 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44104 if test "x$has_forbidden_chars" != x; then 44105 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44106 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44107 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44108 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44109 # Going to short mode and back again did indeed matter. Since short mode is 44110 # case insensitive, let's make it lowercase to improve readability. 44111 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44112 # Now convert it back to Unix-style (cygpath) 44113 input_path=`$CYGPATH -u "$shortmode_path"` 44114 new_path="$input_path" 44115 fi 44116 fi 44117 44118 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44119 if test "x$test_cygdrive_prefix" = x; then 44120 # As a simple fix, exclude /usr/bin since it's not a real path. 44121 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44122 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44123 # a path prefixed by /cygdrive for fixpath to work. 44124 new_path="$CYGWIN_ROOT_PATH$input_path" 44125 fi 44126 fi 44127 44128 44129 if test "x$path" != "x$new_path"; then 44130 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44132 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44133 fi 44134 44135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44136 44137 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44138 has_colon=`$ECHO $path | $GREP ^.:` 44139 new_path="$path" 44140 if test "x$has_colon" = x; then 44141 # Not in mixed or Windows style, start by that. 44142 new_path=`cmd //c echo $path` 44143 fi 44144 44145 44146 input_path="$new_path" 44147 # Check if we need to convert this using DOS-style short mode. If the path 44148 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44149 # take no chances and rewrite it. 44150 # Note: m4 eats our [], so we need to use [ and ] instead. 44151 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44152 if test "x$has_forbidden_chars" != x; then 44153 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44154 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44155 fi 44156 44157 44158 windows_path="$new_path" 44159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44160 unix_path=`$CYGPATH -u "$windows_path"` 44161 new_path="$unix_path" 44162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44163 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44164 new_path="$unix_path" 44165 fi 44166 44167 if test "x$path" != "x$new_path"; then 44168 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44169 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44170 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44171 fi 44172 44173 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44174 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44175 44176 else 44177 # We're on a posix platform. Hooray! :) 44178 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44179 has_space=`$ECHO "$path" | $GREP " "` 44180 if test "x$has_space" != x; then 44181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44182 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44183 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44184 fi 44185 44186 # Use eval to expand a potential ~ 44187 eval path="$path" 44188 if test ! -f "$path" && test ! -d "$path"; then 44189 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44190 fi 44191 44192 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44193 fi 44194 44195 44196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44197 44198 # Input might be given as Windows format, start by converting to 44199 # unix format. 44200 path="$POTENTIAL_FREETYPE_LIB_PATH" 44201 new_path=`$CYGPATH -u "$path"` 44202 44203 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44204 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44205 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44206 # "foo.exe" is OK but "foo" is an error. 44207 # 44208 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44209 # It is also a way to make sure we got the proper file name for the real test later on. 44210 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44211 if test "x$test_shortpath" = x; then 44212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44213 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44214 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44215 fi 44216 44217 # Call helper function which possibly converts this using DOS-style short mode. 44218 # If so, the updated path is stored in $new_path. 44219 44220 input_path="$new_path" 44221 # Check if we need to convert this using DOS-style short mode. If the path 44222 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44223 # take no chances and rewrite it. 44224 # Note: m4 eats our [], so we need to use [ and ] instead. 44225 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44226 if test "x$has_forbidden_chars" != x; then 44227 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44228 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44229 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44230 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44231 # Going to short mode and back again did indeed matter. Since short mode is 44232 # case insensitive, let's make it lowercase to improve readability. 44233 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44234 # Now convert it back to Unix-style (cygpath) 44235 input_path=`$CYGPATH -u "$shortmode_path"` 44236 new_path="$input_path" 44237 fi 44238 fi 44239 44240 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44241 if test "x$test_cygdrive_prefix" = x; then 44242 # As a simple fix, exclude /usr/bin since it's not a real path. 44243 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44244 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44245 # a path prefixed by /cygdrive for fixpath to work. 44246 new_path="$CYGWIN_ROOT_PATH$input_path" 44247 fi 44248 fi 44249 44250 44251 if test "x$path" != "x$new_path"; then 44252 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44253 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44254 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44255 fi 44256 44257 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44258 44259 path="$POTENTIAL_FREETYPE_LIB_PATH" 44260 has_colon=`$ECHO $path | $GREP ^.:` 44261 new_path="$path" 44262 if test "x$has_colon" = x; then 44263 # Not in mixed or Windows style, start by that. 44264 new_path=`cmd //c echo $path` 44265 fi 44266 44267 44268 input_path="$new_path" 44269 # Check if we need to convert this using DOS-style short mode. If the path 44270 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44271 # take no chances and rewrite it. 44272 # Note: m4 eats our [], so we need to use [ and ] instead. 44273 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44274 if test "x$has_forbidden_chars" != x; then 44275 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44276 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44277 fi 44278 44279 44280 windows_path="$new_path" 44281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44282 unix_path=`$CYGPATH -u "$windows_path"` 44283 new_path="$unix_path" 44284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44286 new_path="$unix_path" 44287 fi 44288 44289 if test "x$path" != "x$new_path"; then 44290 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44291 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44292 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44293 fi 44294 44295 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44296 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44297 44298 else 44299 # We're on a posix platform. Hooray! :) 44300 path="$POTENTIAL_FREETYPE_LIB_PATH" 44301 has_space=`$ECHO "$path" | $GREP " "` 44302 if test "x$has_space" != x; then 44303 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44304 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44305 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44306 fi 44307 44308 # Use eval to expand a potential ~ 44309 eval path="$path" 44310 if test ! -f "$path" && test ! -d "$path"; then 44311 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44312 fi 44313 44314 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44315 fi 44316 44317 44318 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44320 $as_echo_n "checking for freetype includes... " >&6; } 44321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44322 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44323 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44325 $as_echo_n "checking for freetype libraries... " >&6; } 44326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44327 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44328 fi 44329 44330 if test "x$FOUND_FREETYPE" != xyes; then 44331 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44332 fi 44333 else 44334 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44335 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44336 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44337 fi 44338 else 44339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44340 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44341 fi 44342 fi 44343 44344 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44345 # User has specified settings 44346 44347 if test "x$BUNDLE_FREETYPE" = x; then 44348 # If not specified, default is to bundle freetype 44349 BUNDLE_FREETYPE=yes 44350 fi 44351 44352 if test "x$with_freetype" != x; then 44353 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44354 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44355 fi 44356 44357 # Allow --with-freetype-lib and --with-freetype-include to override 44358 if test "x$with_freetype_include" != x; then 44359 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44360 fi 44361 if test "x$with_freetype_lib" != x; then 44362 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44363 fi 44364 44365 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44366 # Okay, we got it. Check that it works. 44367 44368 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44369 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44370 METHOD="--with-freetype" 44371 44372 # First check if the files exists. 44373 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44374 # We found an arbitrary include file. That's a good sign. 44375 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44376 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44377 FOUND_FREETYPE=yes 44378 44379 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44380 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44381 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44382 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44383 FOUND_FREETYPE=no 44384 else 44385 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44386 # On Windows, we will need both .lib and .dll file. 44387 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44388 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44389 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44390 FOUND_FREETYPE=no 44391 fi 44392 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 44393 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44394 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44395 fi 44396 fi 44397 fi 44398 44399 if test "x$FOUND_FREETYPE" = xyes; then 44400 44401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44402 44403 # Input might be given as Windows format, start by converting to 44404 # unix format. 44405 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44406 new_path=`$CYGPATH -u "$path"` 44407 44408 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44409 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44410 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44411 # "foo.exe" is OK but "foo" is an error. 44412 # 44413 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44414 # It is also a way to make sure we got the proper file name for the real test later on. 44415 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44416 if test "x$test_shortpath" = x; then 44417 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44418 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44419 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44420 fi 44421 44422 # Call helper function which possibly converts this using DOS-style short mode. 44423 # If so, the updated path is stored in $new_path. 44424 44425 input_path="$new_path" 44426 # Check if we need to convert this using DOS-style short mode. If the path 44427 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44428 # take no chances and rewrite it. 44429 # Note: m4 eats our [], so we need to use [ and ] instead. 44430 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44431 if test "x$has_forbidden_chars" != x; then 44432 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44433 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44434 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44435 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44436 # Going to short mode and back again did indeed matter. Since short mode is 44437 # case insensitive, let's make it lowercase to improve readability. 44438 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44439 # Now convert it back to Unix-style (cygpath) 44440 input_path=`$CYGPATH -u "$shortmode_path"` 44441 new_path="$input_path" 44442 fi 44443 fi 44444 44445 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44446 if test "x$test_cygdrive_prefix" = x; then 44447 # As a simple fix, exclude /usr/bin since it's not a real path. 44448 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44449 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44450 # a path prefixed by /cygdrive for fixpath to work. 44451 new_path="$CYGWIN_ROOT_PATH$input_path" 44452 fi 44453 fi 44454 44455 44456 if test "x$path" != "x$new_path"; then 44457 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44458 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44459 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44460 fi 44461 44462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44463 44464 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44465 has_colon=`$ECHO $path | $GREP ^.:` 44466 new_path="$path" 44467 if test "x$has_colon" = x; then 44468 # Not in mixed or Windows style, start by that. 44469 new_path=`cmd //c echo $path` 44470 fi 44471 44472 44473 input_path="$new_path" 44474 # Check if we need to convert this using DOS-style short mode. If the path 44475 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44476 # take no chances and rewrite it. 44477 # Note: m4 eats our [], so we need to use [ and ] instead. 44478 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44479 if test "x$has_forbidden_chars" != x; then 44480 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44481 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44482 fi 44483 44484 44485 windows_path="$new_path" 44486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44487 unix_path=`$CYGPATH -u "$windows_path"` 44488 new_path="$unix_path" 44489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44490 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44491 new_path="$unix_path" 44492 fi 44493 44494 if test "x$path" != "x$new_path"; then 44495 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44496 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44497 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44498 fi 44499 44500 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44501 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44502 44503 else 44504 # We're on a posix platform. Hooray! :) 44505 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44506 has_space=`$ECHO "$path" | $GREP " "` 44507 if test "x$has_space" != x; then 44508 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44509 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44510 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44511 fi 44512 44513 # Use eval to expand a potential ~ 44514 eval path="$path" 44515 if test ! -f "$path" && test ! -d "$path"; then 44516 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44517 fi 44518 44519 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44520 fi 44521 44522 44523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44524 44525 # Input might be given as Windows format, start by converting to 44526 # unix format. 44527 path="$POTENTIAL_FREETYPE_LIB_PATH" 44528 new_path=`$CYGPATH -u "$path"` 44529 44530 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44531 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44532 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44533 # "foo.exe" is OK but "foo" is an error. 44534 # 44535 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44536 # It is also a way to make sure we got the proper file name for the real test later on. 44537 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44538 if test "x$test_shortpath" = x; then 44539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44540 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44541 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44542 fi 44543 44544 # Call helper function which possibly converts this using DOS-style short mode. 44545 # If so, the updated path is stored in $new_path. 44546 44547 input_path="$new_path" 44548 # Check if we need to convert this using DOS-style short mode. If the path 44549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44550 # take no chances and rewrite it. 44551 # Note: m4 eats our [], so we need to use [ and ] instead. 44552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44553 if test "x$has_forbidden_chars" != x; then 44554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44555 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44556 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44557 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44558 # Going to short mode and back again did indeed matter. Since short mode is 44559 # case insensitive, let's make it lowercase to improve readability. 44560 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44561 # Now convert it back to Unix-style (cygpath) 44562 input_path=`$CYGPATH -u "$shortmode_path"` 44563 new_path="$input_path" 44564 fi 44565 fi 44566 44567 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44568 if test "x$test_cygdrive_prefix" = x; then 44569 # As a simple fix, exclude /usr/bin since it's not a real path. 44570 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44571 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44572 # a path prefixed by /cygdrive for fixpath to work. 44573 new_path="$CYGWIN_ROOT_PATH$input_path" 44574 fi 44575 fi 44576 44577 44578 if test "x$path" != "x$new_path"; then 44579 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44580 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44581 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44582 fi 44583 44584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44585 44586 path="$POTENTIAL_FREETYPE_LIB_PATH" 44587 has_colon=`$ECHO $path | $GREP ^.:` 44588 new_path="$path" 44589 if test "x$has_colon" = x; then 44590 # Not in mixed or Windows style, start by that. 44591 new_path=`cmd //c echo $path` 44592 fi 44593 44594 44595 input_path="$new_path" 44596 # Check if we need to convert this using DOS-style short mode. If the path 44597 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44598 # take no chances and rewrite it. 44599 # Note: m4 eats our [], so we need to use [ and ] instead. 44600 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44601 if test "x$has_forbidden_chars" != x; then 44602 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44603 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44604 fi 44605 44606 44607 windows_path="$new_path" 44608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44609 unix_path=`$CYGPATH -u "$windows_path"` 44610 new_path="$unix_path" 44611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44613 new_path="$unix_path" 44614 fi 44615 44616 if test "x$path" != "x$new_path"; then 44617 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44619 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44620 fi 44621 44622 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44623 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44624 44625 else 44626 # We're on a posix platform. Hooray! :) 44627 path="$POTENTIAL_FREETYPE_LIB_PATH" 44628 has_space=`$ECHO "$path" | $GREP " "` 44629 if test "x$has_space" != x; then 44630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44631 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44632 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44633 fi 44634 44635 # Use eval to expand a potential ~ 44636 eval path="$path" 44637 if test ! -f "$path" && test ! -d "$path"; then 44638 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44639 fi 44640 44641 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44642 fi 44643 44644 44645 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44647 $as_echo_n "checking for freetype includes... " >&6; } 44648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44649 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44650 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44652 $as_echo_n "checking for freetype libraries... " >&6; } 44653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44654 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44655 fi 44656 44657 if test "x$FOUND_FREETYPE" != xyes; then 44658 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 44659 fi 44660 else 44661 # User specified only one of lib or include. This is an error. 44662 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 44663 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 44664 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 44665 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44666 else 44667 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 44668 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 44669 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44670 fi 44671 fi 44672 else 44673 # User did not specify settings, but we need freetype. Try to locate it. 44674 44675 if test "x$BUNDLE_FREETYPE" = x; then 44676 # If not specified, default is to bundle freetype only on windows 44677 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44678 BUNDLE_FREETYPE=yes 44679 else 44680 BUNDLE_FREETYPE=no 44681 fi 44682 fi 44683 44684 if test "x$FOUND_FREETYPE" != xyes; then 44685 # Check builddeps 44686 44687 44688 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44689 # Source the builddeps file again, to make sure it uses the latest variables! 44690 . $builddepsfile 44691 # Look for a target and build machine specific resource! 44692 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44693 if test "x$resource" = x; then 44694 # Ok, lets instead look for a target specific resource 44695 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 44696 fi 44697 if test "x$resource" = x; then 44698 # Ok, lets instead look for a build specific resource 44699 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 44700 fi 44701 if test "x$resource" = x; then 44702 # Ok, lets instead look for a generic resource 44703 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 44704 resource=${builddep_freetype2} 44705 fi 44706 if test "x$resource" != x; then 44707 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 44708 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 44709 # If the resource in the builddeps.conf file is an existing directory, 44710 # for example /java/linux/cups 44711 if test -d ${resource}; then 44712 depdir=${resource} 44713 else 44714 44715 # freetype2 is for example mymodule 44716 # $resource is for example libs/general/libmymod_1_2_3.zip 44717 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44718 # $with_builddeps_dir is for example /localhome/builddeps 44719 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44720 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44721 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44722 filename=`basename $resource` 44723 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44724 filebase=${filename%%.*} 44725 extension=${filename#*.} 44726 installdir=$with_builddeps_dir/$filebase 44727 if test ! -f $installdir/$filename.unpacked; then 44728 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 44729 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44730 if test ! -d $installdir; then 44731 mkdir -p $installdir 44732 fi 44733 if test ! -d $installdir; then 44734 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44735 fi 44736 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 44737 touch $tmpfile 44738 if test ! -f $tmpfile; then 44739 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44740 fi 44741 44742 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44743 # $tmpfile is the local file name for the downloaded file. 44744 VALID_TOOL=no 44745 if test "x$BDEPS_FTP" = xwget; then 44746 VALID_TOOL=yes 44747 wget -O $tmpfile $with_builddeps_server/$resource 44748 fi 44749 if test "x$BDEPS_FTP" = xlftp; then 44750 VALID_TOOL=yes 44751 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44752 fi 44753 if test "x$BDEPS_FTP" = xftp; then 44754 VALID_TOOL=yes 44755 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44756 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44757 FTPUSERPWD=${FTPSERVER%%@*} 44758 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44759 FTPUSER=${userpwd%%:*} 44760 FTPPWD=${userpwd#*@} 44761 FTPSERVER=${FTPSERVER#*@} 44762 else 44763 FTPUSER=ftp 44764 FTPPWD=ftp 44765 fi 44766 # the "pass" command does not work on some 44767 # ftp clients (read ftp.exe) but if it works, 44768 # passive mode is better! 44769 ( \ 44770 echo "user $FTPUSER $FTPPWD" ; \ 44771 echo "pass" ; \ 44772 echo "bin" ; \ 44773 echo "get $FTPPATH $tmpfile" ; \ 44774 ) | ftp -in $FTPSERVER 44775 fi 44776 if test "x$VALID_TOOL" != xyes; then 44777 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44778 fi 44779 44780 mv $tmpfile $installdir/$filename 44781 if test ! -s $installdir/$filename; then 44782 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44783 fi 44784 case "$extension" in 44785 zip) echo "Unzipping $installdir/$filename..." 44786 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44787 ;; 44788 tar.gz) echo "Untaring $installdir/$filename..." 44789 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44790 ;; 44791 tgz) echo "Untaring $installdir/$filename..." 44792 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44793 ;; 44794 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44795 ;; 44796 esac 44797 fi 44798 if test -f $installdir/$filename.unpacked; then 44799 depdir=$installdir 44800 fi 44801 44802 fi 44803 # Source the builddeps file again, because in the previous command, the depdir 44804 # was updated to point at the current build dependency install directory. 44805 . $builddepsfile 44806 # Now extract variables from the builddeps.conf files. 44807 theroot=${builddep_freetype2_ROOT} 44808 thecflags=${builddep_freetype2_CFLAGS} 44809 thelibs=${builddep_freetype2_LIBS} 44810 if test "x$depdir" = x; then 44811 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 44812 fi 44813 FREETYPE=$depdir 44814 if test "x$theroot" != x; then 44815 FREETYPE="$theroot" 44816 fi 44817 if test "x$thecflags" != x; then 44818 FREETYPE_CFLAGS="$thecflags" 44819 fi 44820 if test "x$thelibs" != x; then 44821 FREETYPE_LIBS="$thelibs" 44822 fi 44823 FOUND_FREETYPE=yes 44824 else FOUND_FREETYPE=no 44825 44826 fi 44827 else FOUND_FREETYPE=no 44828 44829 fi 44830 44831 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 44832 if test "x$FOUND_FREETYPE" = xyes; then 44833 if test "x$BUNDLE_FREETYPE" = xyes; then 44834 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 44835 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 44836 FOUND_FREETYPE=no 44837 else 44838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44839 $as_echo_n "checking for freetype... " >&6; } 44840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 44841 $as_echo "yes (using builddeps)" >&6; } 44842 fi 44843 fi 44844 fi 44845 44846 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 44847 if test "x$SYSROOT" = x; then 44848 if test "x$FOUND_FREETYPE" != xyes; then 44849 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 44850 if test "x$PKG_CONFIG" != x; then 44851 44852 pkg_failed=no 44853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 44854 $as_echo_n "checking for FREETYPE... " >&6; } 44855 44856 if test -n "$FREETYPE_CFLAGS"; then 44857 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 44858 elif test -n "$PKG_CONFIG"; then 44859 if test -n "$PKG_CONFIG" && \ 44860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 44861 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 44862 ac_status=$? 44863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44864 test $ac_status = 0; }; then 44865 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 44866 else 44867 pkg_failed=yes 44868 fi 44869 else 44870 pkg_failed=untried 44871 fi 44872 if test -n "$FREETYPE_LIBS"; then 44873 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 44874 elif test -n "$PKG_CONFIG"; then 44875 if test -n "$PKG_CONFIG" && \ 44876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 44877 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 44878 ac_status=$? 44879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44880 test $ac_status = 0; }; then 44881 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 44882 else 44883 pkg_failed=yes 44884 fi 44885 else 44886 pkg_failed=untried 44887 fi 44888 44889 44890 44891 if test $pkg_failed = yes; then 44892 44893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 44894 _pkg_short_errors_supported=yes 44895 else 44896 _pkg_short_errors_supported=no 44897 fi 44898 if test $_pkg_short_errors_supported = yes; then 44899 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 44900 else 44901 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 44902 fi 44903 # Put the nasty error message in config.log where it belongs 44904 echo "$FREETYPE_PKG_ERRORS" >&5 44905 44906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44907 $as_echo "no" >&6; } 44908 FOUND_FREETYPE=no 44909 elif test $pkg_failed = untried; then 44910 FOUND_FREETYPE=no 44911 else 44912 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 44913 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 44914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44915 $as_echo "yes" >&6; } 44916 FOUND_FREETYPE=yes 44917 fi 44918 if test "x$FOUND_FREETYPE" = xyes; then 44919 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 44920 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 44921 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 44922 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 44923 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 44924 fi 44925 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 44926 if test "x$BUNDLE_FREETYPE" = xyes; then 44927 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 44928 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 44929 FOUND_FREETYPE=no 44930 else 44931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44932 $as_echo_n "checking for freetype... " >&6; } 44933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 44934 $as_echo "yes (using pkg-config)" >&6; } 44935 fi 44936 fi 44937 fi 44938 fi 44939 fi 44940 44941 if test "x$FOUND_FREETYPE" != xyes; then 44942 # Check in well-known locations 44943 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44944 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 44945 44946 windows_path="$FREETYPE_BASE_DIR" 44947 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44948 unix_path=`$CYGPATH -u "$windows_path"` 44949 FREETYPE_BASE_DIR="$unix_path" 44950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44951 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44952 FREETYPE_BASE_DIR="$unix_path" 44953 fi 44954 44955 44956 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44957 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44958 METHOD="well-known location" 44959 44960 # First check if the files exists. 44961 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44962 # We found an arbitrary include file. That's a good sign. 44963 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44964 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44965 FOUND_FREETYPE=yes 44966 44967 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44968 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44969 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44970 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44971 FOUND_FREETYPE=no 44972 else 44973 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44974 # On Windows, we will need both .lib and .dll file. 44975 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44976 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44977 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44978 FOUND_FREETYPE=no 44979 fi 44980 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 44981 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44982 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44983 fi 44984 fi 44985 fi 44986 44987 if test "x$FOUND_FREETYPE" = xyes; then 44988 44989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44990 44991 # Input might be given as Windows format, start by converting to 44992 # unix format. 44993 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44994 new_path=`$CYGPATH -u "$path"` 44995 44996 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44997 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44998 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44999 # "foo.exe" is OK but "foo" is an error. 45000 # 45001 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45002 # It is also a way to make sure we got the proper file name for the real test later on. 45003 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45004 if test "x$test_shortpath" = x; then 45005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45006 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45007 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45008 fi 45009 45010 # Call helper function which possibly converts this using DOS-style short mode. 45011 # If so, the updated path is stored in $new_path. 45012 45013 input_path="$new_path" 45014 # Check if we need to convert this using DOS-style short mode. If the path 45015 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45016 # take no chances and rewrite it. 45017 # Note: m4 eats our [], so we need to use [ and ] instead. 45018 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45019 if test "x$has_forbidden_chars" != x; then 45020 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45021 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45022 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45023 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45024 # Going to short mode and back again did indeed matter. Since short mode is 45025 # case insensitive, let's make it lowercase to improve readability. 45026 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45027 # Now convert it back to Unix-style (cygpath) 45028 input_path=`$CYGPATH -u "$shortmode_path"` 45029 new_path="$input_path" 45030 fi 45031 fi 45032 45033 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45034 if test "x$test_cygdrive_prefix" = x; then 45035 # As a simple fix, exclude /usr/bin since it's not a real path. 45036 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45037 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45038 # a path prefixed by /cygdrive for fixpath to work. 45039 new_path="$CYGWIN_ROOT_PATH$input_path" 45040 fi 45041 fi 45042 45043 45044 if test "x$path" != "x$new_path"; then 45045 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45047 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45048 fi 45049 45050 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45051 45052 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45053 has_colon=`$ECHO $path | $GREP ^.:` 45054 new_path="$path" 45055 if test "x$has_colon" = x; then 45056 # Not in mixed or Windows style, start by that. 45057 new_path=`cmd //c echo $path` 45058 fi 45059 45060 45061 input_path="$new_path" 45062 # Check if we need to convert this using DOS-style short mode. If the path 45063 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45064 # take no chances and rewrite it. 45065 # Note: m4 eats our [], so we need to use [ and ] instead. 45066 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45067 if test "x$has_forbidden_chars" != x; then 45068 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45069 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45070 fi 45071 45072 45073 windows_path="$new_path" 45074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45075 unix_path=`$CYGPATH -u "$windows_path"` 45076 new_path="$unix_path" 45077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45078 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45079 new_path="$unix_path" 45080 fi 45081 45082 if test "x$path" != "x$new_path"; then 45083 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45084 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45085 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45086 fi 45087 45088 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45089 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45090 45091 else 45092 # We're on a posix platform. Hooray! :) 45093 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45094 has_space=`$ECHO "$path" | $GREP " "` 45095 if test "x$has_space" != x; then 45096 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45097 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45098 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45099 fi 45100 45101 # Use eval to expand a potential ~ 45102 eval path="$path" 45103 if test ! -f "$path" && test ! -d "$path"; then 45104 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45105 fi 45106 45107 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45108 fi 45109 45110 45111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45112 45113 # Input might be given as Windows format, start by converting to 45114 # unix format. 45115 path="$POTENTIAL_FREETYPE_LIB_PATH" 45116 new_path=`$CYGPATH -u "$path"` 45117 45118 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45119 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45120 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45121 # "foo.exe" is OK but "foo" is an error. 45122 # 45123 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45124 # It is also a way to make sure we got the proper file name for the real test later on. 45125 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45126 if test "x$test_shortpath" = x; then 45127 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45128 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45129 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45130 fi 45131 45132 # Call helper function which possibly converts this using DOS-style short mode. 45133 # If so, the updated path is stored in $new_path. 45134 45135 input_path="$new_path" 45136 # Check if we need to convert this using DOS-style short mode. If the path 45137 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45138 # take no chances and rewrite it. 45139 # Note: m4 eats our [], so we need to use [ and ] instead. 45140 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45141 if test "x$has_forbidden_chars" != x; then 45142 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45143 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45144 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45145 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45146 # Going to short mode and back again did indeed matter. Since short mode is 45147 # case insensitive, let's make it lowercase to improve readability. 45148 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45149 # Now convert it back to Unix-style (cygpath) 45150 input_path=`$CYGPATH -u "$shortmode_path"` 45151 new_path="$input_path" 45152 fi 45153 fi 45154 45155 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45156 if test "x$test_cygdrive_prefix" = x; then 45157 # As a simple fix, exclude /usr/bin since it's not a real path. 45158 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45159 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45160 # a path prefixed by /cygdrive for fixpath to work. 45161 new_path="$CYGWIN_ROOT_PATH$input_path" 45162 fi 45163 fi 45164 45165 45166 if test "x$path" != "x$new_path"; then 45167 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45168 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45169 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45170 fi 45171 45172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45173 45174 path="$POTENTIAL_FREETYPE_LIB_PATH" 45175 has_colon=`$ECHO $path | $GREP ^.:` 45176 new_path="$path" 45177 if test "x$has_colon" = x; then 45178 # Not in mixed or Windows style, start by that. 45179 new_path=`cmd //c echo $path` 45180 fi 45181 45182 45183 input_path="$new_path" 45184 # Check if we need to convert this using DOS-style short mode. If the path 45185 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45186 # take no chances and rewrite it. 45187 # Note: m4 eats our [], so we need to use [ and ] instead. 45188 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45189 if test "x$has_forbidden_chars" != x; then 45190 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45191 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45192 fi 45193 45194 45195 windows_path="$new_path" 45196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45197 unix_path=`$CYGPATH -u "$windows_path"` 45198 new_path="$unix_path" 45199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45200 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45201 new_path="$unix_path" 45202 fi 45203 45204 if test "x$path" != "x$new_path"; then 45205 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45207 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45208 fi 45209 45210 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45211 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45212 45213 else 45214 # We're on a posix platform. Hooray! :) 45215 path="$POTENTIAL_FREETYPE_LIB_PATH" 45216 has_space=`$ECHO "$path" | $GREP " "` 45217 if test "x$has_space" != x; then 45218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45219 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45220 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45221 fi 45222 45223 # Use eval to expand a potential ~ 45224 eval path="$path" 45225 if test ! -f "$path" && test ! -d "$path"; then 45226 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45227 fi 45228 45229 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45230 fi 45231 45232 45233 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45235 $as_echo_n "checking for freetype includes... " >&6; } 45236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45237 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45238 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45240 $as_echo_n "checking for freetype libraries... " >&6; } 45241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45242 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45243 fi 45244 45245 if test "x$FOUND_FREETYPE" != xyes; then 45246 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45247 45248 windows_path="$FREETYPE_BASE_DIR" 45249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45250 unix_path=`$CYGPATH -u "$windows_path"` 45251 FREETYPE_BASE_DIR="$unix_path" 45252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45254 FREETYPE_BASE_DIR="$unix_path" 45255 fi 45256 45257 45258 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45259 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45260 METHOD="well-known location" 45261 45262 # First check if the files exists. 45263 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45264 # We found an arbitrary include file. That's a good sign. 45265 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45266 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45267 FOUND_FREETYPE=yes 45268 45269 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45270 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45271 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45272 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45273 FOUND_FREETYPE=no 45274 else 45275 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45276 # On Windows, we will need both .lib and .dll file. 45277 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45278 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45279 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45280 FOUND_FREETYPE=no 45281 fi 45282 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 45283 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45284 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45285 fi 45286 fi 45287 fi 45288 45289 if test "x$FOUND_FREETYPE" = xyes; then 45290 45291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45292 45293 # Input might be given as Windows format, start by converting to 45294 # unix format. 45295 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45296 new_path=`$CYGPATH -u "$path"` 45297 45298 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45299 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45300 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45301 # "foo.exe" is OK but "foo" is an error. 45302 # 45303 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45304 # It is also a way to make sure we got the proper file name for the real test later on. 45305 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45306 if test "x$test_shortpath" = x; then 45307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45308 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45309 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45310 fi 45311 45312 # Call helper function which possibly converts this using DOS-style short mode. 45313 # If so, the updated path is stored in $new_path. 45314 45315 input_path="$new_path" 45316 # Check if we need to convert this using DOS-style short mode. If the path 45317 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45318 # take no chances and rewrite it. 45319 # Note: m4 eats our [], so we need to use [ and ] instead. 45320 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45321 if test "x$has_forbidden_chars" != x; then 45322 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45323 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45324 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45325 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45326 # Going to short mode and back again did indeed matter. Since short mode is 45327 # case insensitive, let's make it lowercase to improve readability. 45328 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45329 # Now convert it back to Unix-style (cygpath) 45330 input_path=`$CYGPATH -u "$shortmode_path"` 45331 new_path="$input_path" 45332 fi 45333 fi 45334 45335 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45336 if test "x$test_cygdrive_prefix" = x; then 45337 # As a simple fix, exclude /usr/bin since it's not a real path. 45338 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45339 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45340 # a path prefixed by /cygdrive for fixpath to work. 45341 new_path="$CYGWIN_ROOT_PATH$input_path" 45342 fi 45343 fi 45344 45345 45346 if test "x$path" != "x$new_path"; then 45347 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45348 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45349 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45350 fi 45351 45352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45353 45354 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45355 has_colon=`$ECHO $path | $GREP ^.:` 45356 new_path="$path" 45357 if test "x$has_colon" = x; then 45358 # Not in mixed or Windows style, start by that. 45359 new_path=`cmd //c echo $path` 45360 fi 45361 45362 45363 input_path="$new_path" 45364 # Check if we need to convert this using DOS-style short mode. If the path 45365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45366 # take no chances and rewrite it. 45367 # Note: m4 eats our [], so we need to use [ and ] instead. 45368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45369 if test "x$has_forbidden_chars" != x; then 45370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45371 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45372 fi 45373 45374 45375 windows_path="$new_path" 45376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45377 unix_path=`$CYGPATH -u "$windows_path"` 45378 new_path="$unix_path" 45379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45381 new_path="$unix_path" 45382 fi 45383 45384 if test "x$path" != "x$new_path"; then 45385 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45386 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45387 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45388 fi 45389 45390 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45391 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45392 45393 else 45394 # We're on a posix platform. Hooray! :) 45395 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45396 has_space=`$ECHO "$path" | $GREP " "` 45397 if test "x$has_space" != x; then 45398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45399 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45400 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45401 fi 45402 45403 # Use eval to expand a potential ~ 45404 eval path="$path" 45405 if test ! -f "$path" && test ! -d "$path"; then 45406 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45407 fi 45408 45409 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45410 fi 45411 45412 45413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45414 45415 # Input might be given as Windows format, start by converting to 45416 # unix format. 45417 path="$POTENTIAL_FREETYPE_LIB_PATH" 45418 new_path=`$CYGPATH -u "$path"` 45419 45420 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45421 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45422 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45423 # "foo.exe" is OK but "foo" is an error. 45424 # 45425 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45426 # It is also a way to make sure we got the proper file name for the real test later on. 45427 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45428 if test "x$test_shortpath" = x; then 45429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45430 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45431 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45432 fi 45433 45434 # Call helper function which possibly converts this using DOS-style short mode. 45435 # If so, the updated path is stored in $new_path. 45436 45437 input_path="$new_path" 45438 # Check if we need to convert this using DOS-style short mode. If the path 45439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45440 # take no chances and rewrite it. 45441 # Note: m4 eats our [], so we need to use [ and ] instead. 45442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45443 if test "x$has_forbidden_chars" != x; then 45444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45445 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45446 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45447 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45448 # Going to short mode and back again did indeed matter. Since short mode is 45449 # case insensitive, let's make it lowercase to improve readability. 45450 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45451 # Now convert it back to Unix-style (cygpath) 45452 input_path=`$CYGPATH -u "$shortmode_path"` 45453 new_path="$input_path" 45454 fi 45455 fi 45456 45457 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45458 if test "x$test_cygdrive_prefix" = x; then 45459 # As a simple fix, exclude /usr/bin since it's not a real path. 45460 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45461 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45462 # a path prefixed by /cygdrive for fixpath to work. 45463 new_path="$CYGWIN_ROOT_PATH$input_path" 45464 fi 45465 fi 45466 45467 45468 if test "x$path" != "x$new_path"; then 45469 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45470 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45471 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45472 fi 45473 45474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45475 45476 path="$POTENTIAL_FREETYPE_LIB_PATH" 45477 has_colon=`$ECHO $path | $GREP ^.:` 45478 new_path="$path" 45479 if test "x$has_colon" = x; then 45480 # Not in mixed or Windows style, start by that. 45481 new_path=`cmd //c echo $path` 45482 fi 45483 45484 45485 input_path="$new_path" 45486 # Check if we need to convert this using DOS-style short mode. If the path 45487 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45488 # take no chances and rewrite it. 45489 # Note: m4 eats our [], so we need to use [ and ] instead. 45490 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45491 if test "x$has_forbidden_chars" != x; then 45492 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45493 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45494 fi 45495 45496 45497 windows_path="$new_path" 45498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45499 unix_path=`$CYGPATH -u "$windows_path"` 45500 new_path="$unix_path" 45501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45502 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45503 new_path="$unix_path" 45504 fi 45505 45506 if test "x$path" != "x$new_path"; then 45507 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45508 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45509 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45510 fi 45511 45512 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45513 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45514 45515 else 45516 # We're on a posix platform. Hooray! :) 45517 path="$POTENTIAL_FREETYPE_LIB_PATH" 45518 has_space=`$ECHO "$path" | $GREP " "` 45519 if test "x$has_space" != x; then 45520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45521 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45522 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45523 fi 45524 45525 # Use eval to expand a potential ~ 45526 eval path="$path" 45527 if test ! -f "$path" && test ! -d "$path"; then 45528 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45529 fi 45530 45531 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45532 fi 45533 45534 45535 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45537 $as_echo_n "checking for freetype includes... " >&6; } 45538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45539 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45540 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45542 $as_echo_n "checking for freetype libraries... " >&6; } 45543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45544 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45545 fi 45546 45547 fi 45548 else 45549 FREETYPE_BASE_DIR="$SYSROOT/usr" 45550 45551 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45552 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45553 METHOD="well-known location" 45554 45555 # First check if the files exists. 45556 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45557 # We found an arbitrary include file. That's a good sign. 45558 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45559 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45560 FOUND_FREETYPE=yes 45561 45562 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45563 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45564 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45565 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45566 FOUND_FREETYPE=no 45567 else 45568 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45569 # On Windows, we will need both .lib and .dll file. 45570 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45571 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45572 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45573 FOUND_FREETYPE=no 45574 fi 45575 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 45576 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45577 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45578 fi 45579 fi 45580 fi 45581 45582 if test "x$FOUND_FREETYPE" = xyes; then 45583 45584 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45585 45586 # Input might be given as Windows format, start by converting to 45587 # unix format. 45588 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45589 new_path=`$CYGPATH -u "$path"` 45590 45591 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45592 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45593 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45594 # "foo.exe" is OK but "foo" is an error. 45595 # 45596 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45597 # It is also a way to make sure we got the proper file name for the real test later on. 45598 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45599 if test "x$test_shortpath" = x; then 45600 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45601 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45602 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45603 fi 45604 45605 # Call helper function which possibly converts this using DOS-style short mode. 45606 # If so, the updated path is stored in $new_path. 45607 45608 input_path="$new_path" 45609 # Check if we need to convert this using DOS-style short mode. If the path 45610 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45611 # take no chances and rewrite it. 45612 # Note: m4 eats our [], so we need to use [ and ] instead. 45613 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45614 if test "x$has_forbidden_chars" != x; then 45615 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45616 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45617 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45618 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45619 # Going to short mode and back again did indeed matter. Since short mode is 45620 # case insensitive, let's make it lowercase to improve readability. 45621 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45622 # Now convert it back to Unix-style (cygpath) 45623 input_path=`$CYGPATH -u "$shortmode_path"` 45624 new_path="$input_path" 45625 fi 45626 fi 45627 45628 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45629 if test "x$test_cygdrive_prefix" = x; then 45630 # As a simple fix, exclude /usr/bin since it's not a real path. 45631 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45632 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45633 # a path prefixed by /cygdrive for fixpath to work. 45634 new_path="$CYGWIN_ROOT_PATH$input_path" 45635 fi 45636 fi 45637 45638 45639 if test "x$path" != "x$new_path"; then 45640 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45641 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45642 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45643 fi 45644 45645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45646 45647 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45648 has_colon=`$ECHO $path | $GREP ^.:` 45649 new_path="$path" 45650 if test "x$has_colon" = x; then 45651 # Not in mixed or Windows style, start by that. 45652 new_path=`cmd //c echo $path` 45653 fi 45654 45655 45656 input_path="$new_path" 45657 # Check if we need to convert this using DOS-style short mode. If the path 45658 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45659 # take no chances and rewrite it. 45660 # Note: m4 eats our [], so we need to use [ and ] instead. 45661 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45662 if test "x$has_forbidden_chars" != x; then 45663 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45664 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45665 fi 45666 45667 45668 windows_path="$new_path" 45669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45670 unix_path=`$CYGPATH -u "$windows_path"` 45671 new_path="$unix_path" 45672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45673 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45674 new_path="$unix_path" 45675 fi 45676 45677 if test "x$path" != "x$new_path"; then 45678 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45679 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45680 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45681 fi 45682 45683 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45684 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45685 45686 else 45687 # We're on a posix platform. Hooray! :) 45688 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45689 has_space=`$ECHO "$path" | $GREP " "` 45690 if test "x$has_space" != x; then 45691 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45692 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45693 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45694 fi 45695 45696 # Use eval to expand a potential ~ 45697 eval path="$path" 45698 if test ! -f "$path" && test ! -d "$path"; then 45699 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45700 fi 45701 45702 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45703 fi 45704 45705 45706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45707 45708 # Input might be given as Windows format, start by converting to 45709 # unix format. 45710 path="$POTENTIAL_FREETYPE_LIB_PATH" 45711 new_path=`$CYGPATH -u "$path"` 45712 45713 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45714 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45715 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45716 # "foo.exe" is OK but "foo" is an error. 45717 # 45718 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45719 # It is also a way to make sure we got the proper file name for the real test later on. 45720 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45721 if test "x$test_shortpath" = x; then 45722 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45723 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45724 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45725 fi 45726 45727 # Call helper function which possibly converts this using DOS-style short mode. 45728 # If so, the updated path is stored in $new_path. 45729 45730 input_path="$new_path" 45731 # Check if we need to convert this using DOS-style short mode. If the path 45732 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45733 # take no chances and rewrite it. 45734 # Note: m4 eats our [], so we need to use [ and ] instead. 45735 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45736 if test "x$has_forbidden_chars" != x; then 45737 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45738 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45739 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45740 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45741 # Going to short mode and back again did indeed matter. Since short mode is 45742 # case insensitive, let's make it lowercase to improve readability. 45743 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45744 # Now convert it back to Unix-style (cygpath) 45745 input_path=`$CYGPATH -u "$shortmode_path"` 45746 new_path="$input_path" 45747 fi 45748 fi 45749 45750 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45751 if test "x$test_cygdrive_prefix" = x; then 45752 # As a simple fix, exclude /usr/bin since it's not a real path. 45753 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45754 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45755 # a path prefixed by /cygdrive for fixpath to work. 45756 new_path="$CYGWIN_ROOT_PATH$input_path" 45757 fi 45758 fi 45759 45760 45761 if test "x$path" != "x$new_path"; then 45762 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45763 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45764 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45765 fi 45766 45767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45768 45769 path="$POTENTIAL_FREETYPE_LIB_PATH" 45770 has_colon=`$ECHO $path | $GREP ^.:` 45771 new_path="$path" 45772 if test "x$has_colon" = x; then 45773 # Not in mixed or Windows style, start by that. 45774 new_path=`cmd //c echo $path` 45775 fi 45776 45777 45778 input_path="$new_path" 45779 # Check if we need to convert this using DOS-style short mode. If the path 45780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45781 # take no chances and rewrite it. 45782 # Note: m4 eats our [], so we need to use [ and ] instead. 45783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45784 if test "x$has_forbidden_chars" != x; then 45785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45786 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45787 fi 45788 45789 45790 windows_path="$new_path" 45791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45792 unix_path=`$CYGPATH -u "$windows_path"` 45793 new_path="$unix_path" 45794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45796 new_path="$unix_path" 45797 fi 45798 45799 if test "x$path" != "x$new_path"; then 45800 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45801 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45802 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45803 fi 45804 45805 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45806 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45807 45808 else 45809 # We're on a posix platform. Hooray! :) 45810 path="$POTENTIAL_FREETYPE_LIB_PATH" 45811 has_space=`$ECHO "$path" | $GREP " "` 45812 if test "x$has_space" != x; then 45813 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45814 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45815 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45816 fi 45817 45818 # Use eval to expand a potential ~ 45819 eval path="$path" 45820 if test ! -f "$path" && test ! -d "$path"; then 45821 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45822 fi 45823 45824 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45825 fi 45826 45827 45828 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45830 $as_echo_n "checking for freetype includes... " >&6; } 45831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45832 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45833 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45835 $as_echo_n "checking for freetype libraries... " >&6; } 45836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45837 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45838 fi 45839 45840 45841 if test "x$FOUND_FREETYPE" != xyes; then 45842 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 45843 45844 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45845 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45846 METHOD="well-known location" 45847 45848 # First check if the files exists. 45849 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45850 # We found an arbitrary include file. That's a good sign. 45851 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45852 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45853 FOUND_FREETYPE=yes 45854 45855 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45856 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45857 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45858 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45859 FOUND_FREETYPE=no 45860 else 45861 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45862 # On Windows, we will need both .lib and .dll file. 45863 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45864 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45865 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45866 FOUND_FREETYPE=no 45867 fi 45868 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 45869 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45870 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45871 fi 45872 fi 45873 fi 45874 45875 if test "x$FOUND_FREETYPE" = xyes; then 45876 45877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45878 45879 # Input might be given as Windows format, start by converting to 45880 # unix format. 45881 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45882 new_path=`$CYGPATH -u "$path"` 45883 45884 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45885 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45886 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45887 # "foo.exe" is OK but "foo" is an error. 45888 # 45889 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45890 # It is also a way to make sure we got the proper file name for the real test later on. 45891 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45892 if test "x$test_shortpath" = x; then 45893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45894 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45895 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45896 fi 45897 45898 # Call helper function which possibly converts this using DOS-style short mode. 45899 # If so, the updated path is stored in $new_path. 45900 45901 input_path="$new_path" 45902 # Check if we need to convert this using DOS-style short mode. If the path 45903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45904 # take no chances and rewrite it. 45905 # Note: m4 eats our [], so we need to use [ and ] instead. 45906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45907 if test "x$has_forbidden_chars" != x; then 45908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45909 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45910 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45911 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45912 # Going to short mode and back again did indeed matter. Since short mode is 45913 # case insensitive, let's make it lowercase to improve readability. 45914 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45915 # Now convert it back to Unix-style (cygpath) 45916 input_path=`$CYGPATH -u "$shortmode_path"` 45917 new_path="$input_path" 45918 fi 45919 fi 45920 45921 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45922 if test "x$test_cygdrive_prefix" = x; then 45923 # As a simple fix, exclude /usr/bin since it's not a real path. 45924 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45925 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45926 # a path prefixed by /cygdrive for fixpath to work. 45927 new_path="$CYGWIN_ROOT_PATH$input_path" 45928 fi 45929 fi 45930 45931 45932 if test "x$path" != "x$new_path"; then 45933 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45934 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45935 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45936 fi 45937 45938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45939 45940 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45941 has_colon=`$ECHO $path | $GREP ^.:` 45942 new_path="$path" 45943 if test "x$has_colon" = x; then 45944 # Not in mixed or Windows style, start by that. 45945 new_path=`cmd //c echo $path` 45946 fi 45947 45948 45949 input_path="$new_path" 45950 # Check if we need to convert this using DOS-style short mode. If the path 45951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45952 # take no chances and rewrite it. 45953 # Note: m4 eats our [], so we need to use [ and ] instead. 45954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45955 if test "x$has_forbidden_chars" != x; then 45956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45957 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45958 fi 45959 45960 45961 windows_path="$new_path" 45962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45963 unix_path=`$CYGPATH -u "$windows_path"` 45964 new_path="$unix_path" 45965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45967 new_path="$unix_path" 45968 fi 45969 45970 if test "x$path" != "x$new_path"; then 45971 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45972 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45973 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45974 fi 45975 45976 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45977 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45978 45979 else 45980 # We're on a posix platform. Hooray! :) 45981 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45982 has_space=`$ECHO "$path" | $GREP " "` 45983 if test "x$has_space" != x; then 45984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45985 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45986 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45987 fi 45988 45989 # Use eval to expand a potential ~ 45990 eval path="$path" 45991 if test ! -f "$path" && test ! -d "$path"; then 45992 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45993 fi 45994 45995 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45996 fi 45997 45998 45999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46000 46001 # Input might be given as Windows format, start by converting to 46002 # unix format. 46003 path="$POTENTIAL_FREETYPE_LIB_PATH" 46004 new_path=`$CYGPATH -u "$path"` 46005 46006 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46007 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46008 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46009 # "foo.exe" is OK but "foo" is an error. 46010 # 46011 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46012 # It is also a way to make sure we got the proper file name for the real test later on. 46013 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46014 if test "x$test_shortpath" = x; then 46015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46016 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46017 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46018 fi 46019 46020 # Call helper function which possibly converts this using DOS-style short mode. 46021 # If so, the updated path is stored in $new_path. 46022 46023 input_path="$new_path" 46024 # Check if we need to convert this using DOS-style short mode. If the path 46025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46026 # take no chances and rewrite it. 46027 # Note: m4 eats our [], so we need to use [ and ] instead. 46028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46029 if test "x$has_forbidden_chars" != x; then 46030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46031 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46032 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46033 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46034 # Going to short mode and back again did indeed matter. Since short mode is 46035 # case insensitive, let's make it lowercase to improve readability. 46036 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46037 # Now convert it back to Unix-style (cygpath) 46038 input_path=`$CYGPATH -u "$shortmode_path"` 46039 new_path="$input_path" 46040 fi 46041 fi 46042 46043 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46044 if test "x$test_cygdrive_prefix" = x; then 46045 # As a simple fix, exclude /usr/bin since it's not a real path. 46046 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46047 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46048 # a path prefixed by /cygdrive for fixpath to work. 46049 new_path="$CYGWIN_ROOT_PATH$input_path" 46050 fi 46051 fi 46052 46053 46054 if test "x$path" != "x$new_path"; then 46055 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46056 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46057 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46058 fi 46059 46060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46061 46062 path="$POTENTIAL_FREETYPE_LIB_PATH" 46063 has_colon=`$ECHO $path | $GREP ^.:` 46064 new_path="$path" 46065 if test "x$has_colon" = x; then 46066 # Not in mixed or Windows style, start by that. 46067 new_path=`cmd //c echo $path` 46068 fi 46069 46070 46071 input_path="$new_path" 46072 # Check if we need to convert this using DOS-style short mode. If the path 46073 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46074 # take no chances and rewrite it. 46075 # Note: m4 eats our [], so we need to use [ and ] instead. 46076 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46077 if test "x$has_forbidden_chars" != x; then 46078 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46079 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46080 fi 46081 46082 46083 windows_path="$new_path" 46084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46085 unix_path=`$CYGPATH -u "$windows_path"` 46086 new_path="$unix_path" 46087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46089 new_path="$unix_path" 46090 fi 46091 46092 if test "x$path" != "x$new_path"; then 46093 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46094 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46095 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46096 fi 46097 46098 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46099 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46100 46101 else 46102 # We're on a posix platform. Hooray! :) 46103 path="$POTENTIAL_FREETYPE_LIB_PATH" 46104 has_space=`$ECHO "$path" | $GREP " "` 46105 if test "x$has_space" != x; then 46106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46107 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46108 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46109 fi 46110 46111 # Use eval to expand a potential ~ 46112 eval path="$path" 46113 if test ! -f "$path" && test ! -d "$path"; then 46114 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46115 fi 46116 46117 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46118 fi 46119 46120 46121 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46123 $as_echo_n "checking for freetype includes... " >&6; } 46124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46125 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46126 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46128 $as_echo_n "checking for freetype libraries... " >&6; } 46129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46130 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46131 fi 46132 46133 fi 46134 46135 if test "x$FOUND_FREETYPE" != xyes; then 46136 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46137 46138 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46139 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46140 METHOD="well-known location" 46141 46142 # First check if the files exists. 46143 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46144 # We found an arbitrary include file. That's a good sign. 46145 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46146 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46147 FOUND_FREETYPE=yes 46148 46149 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46150 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46151 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46152 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46153 FOUND_FREETYPE=no 46154 else 46155 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46156 # On Windows, we will need both .lib and .dll file. 46157 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46158 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46159 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46160 FOUND_FREETYPE=no 46161 fi 46162 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 46163 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46164 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46165 fi 46166 fi 46167 fi 46168 46169 if test "x$FOUND_FREETYPE" = xyes; then 46170 46171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46172 46173 # Input might be given as Windows format, start by converting to 46174 # unix format. 46175 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46176 new_path=`$CYGPATH -u "$path"` 46177 46178 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46179 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46180 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46181 # "foo.exe" is OK but "foo" is an error. 46182 # 46183 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46184 # It is also a way to make sure we got the proper file name for the real test later on. 46185 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46186 if test "x$test_shortpath" = x; then 46187 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46188 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46189 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46190 fi 46191 46192 # Call helper function which possibly converts this using DOS-style short mode. 46193 # If so, the updated path is stored in $new_path. 46194 46195 input_path="$new_path" 46196 # Check if we need to convert this using DOS-style short mode. If the path 46197 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46198 # take no chances and rewrite it. 46199 # Note: m4 eats our [], so we need to use [ and ] instead. 46200 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46201 if test "x$has_forbidden_chars" != x; then 46202 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46203 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46204 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46205 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46206 # Going to short mode and back again did indeed matter. Since short mode is 46207 # case insensitive, let's make it lowercase to improve readability. 46208 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46209 # Now convert it back to Unix-style (cygpath) 46210 input_path=`$CYGPATH -u "$shortmode_path"` 46211 new_path="$input_path" 46212 fi 46213 fi 46214 46215 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46216 if test "x$test_cygdrive_prefix" = x; then 46217 # As a simple fix, exclude /usr/bin since it's not a real path. 46218 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46219 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46220 # a path prefixed by /cygdrive for fixpath to work. 46221 new_path="$CYGWIN_ROOT_PATH$input_path" 46222 fi 46223 fi 46224 46225 46226 if test "x$path" != "x$new_path"; then 46227 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46228 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46229 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46230 fi 46231 46232 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46233 46234 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46235 has_colon=`$ECHO $path | $GREP ^.:` 46236 new_path="$path" 46237 if test "x$has_colon" = x; then 46238 # Not in mixed or Windows style, start by that. 46239 new_path=`cmd //c echo $path` 46240 fi 46241 46242 46243 input_path="$new_path" 46244 # Check if we need to convert this using DOS-style short mode. If the path 46245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46246 # take no chances and rewrite it. 46247 # Note: m4 eats our [], so we need to use [ and ] instead. 46248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46249 if test "x$has_forbidden_chars" != x; then 46250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46251 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46252 fi 46253 46254 46255 windows_path="$new_path" 46256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46257 unix_path=`$CYGPATH -u "$windows_path"` 46258 new_path="$unix_path" 46259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46261 new_path="$unix_path" 46262 fi 46263 46264 if test "x$path" != "x$new_path"; then 46265 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46266 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46267 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46268 fi 46269 46270 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46271 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46272 46273 else 46274 # We're on a posix platform. Hooray! :) 46275 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46276 has_space=`$ECHO "$path" | $GREP " "` 46277 if test "x$has_space" != x; then 46278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46279 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46280 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46281 fi 46282 46283 # Use eval to expand a potential ~ 46284 eval path="$path" 46285 if test ! -f "$path" && test ! -d "$path"; then 46286 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46287 fi 46288 46289 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46290 fi 46291 46292 46293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46294 46295 # Input might be given as Windows format, start by converting to 46296 # unix format. 46297 path="$POTENTIAL_FREETYPE_LIB_PATH" 46298 new_path=`$CYGPATH -u "$path"` 46299 46300 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46301 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46302 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46303 # "foo.exe" is OK but "foo" is an error. 46304 # 46305 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46306 # It is also a way to make sure we got the proper file name for the real test later on. 46307 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46308 if test "x$test_shortpath" = x; then 46309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46310 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46311 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46312 fi 46313 46314 # Call helper function which possibly converts this using DOS-style short mode. 46315 # If so, the updated path is stored in $new_path. 46316 46317 input_path="$new_path" 46318 # Check if we need to convert this using DOS-style short mode. If the path 46319 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46320 # take no chances and rewrite it. 46321 # Note: m4 eats our [], so we need to use [ and ] instead. 46322 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46323 if test "x$has_forbidden_chars" != x; then 46324 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46325 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46326 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46327 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46328 # Going to short mode and back again did indeed matter. Since short mode is 46329 # case insensitive, let's make it lowercase to improve readability. 46330 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46331 # Now convert it back to Unix-style (cygpath) 46332 input_path=`$CYGPATH -u "$shortmode_path"` 46333 new_path="$input_path" 46334 fi 46335 fi 46336 46337 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46338 if test "x$test_cygdrive_prefix" = x; then 46339 # As a simple fix, exclude /usr/bin since it's not a real path. 46340 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46341 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46342 # a path prefixed by /cygdrive for fixpath to work. 46343 new_path="$CYGWIN_ROOT_PATH$input_path" 46344 fi 46345 fi 46346 46347 46348 if test "x$path" != "x$new_path"; then 46349 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46350 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46351 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46352 fi 46353 46354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46355 46356 path="$POTENTIAL_FREETYPE_LIB_PATH" 46357 has_colon=`$ECHO $path | $GREP ^.:` 46358 new_path="$path" 46359 if test "x$has_colon" = x; then 46360 # Not in mixed or Windows style, start by that. 46361 new_path=`cmd //c echo $path` 46362 fi 46363 46364 46365 input_path="$new_path" 46366 # Check if we need to convert this using DOS-style short mode. If the path 46367 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46368 # take no chances and rewrite it. 46369 # Note: m4 eats our [], so we need to use [ and ] instead. 46370 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46371 if test "x$has_forbidden_chars" != x; then 46372 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46373 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46374 fi 46375 46376 46377 windows_path="$new_path" 46378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46379 unix_path=`$CYGPATH -u "$windows_path"` 46380 new_path="$unix_path" 46381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46382 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46383 new_path="$unix_path" 46384 fi 46385 46386 if test "x$path" != "x$new_path"; then 46387 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46388 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46389 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46390 fi 46391 46392 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46393 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46394 46395 else 46396 # We're on a posix platform. Hooray! :) 46397 path="$POTENTIAL_FREETYPE_LIB_PATH" 46398 has_space=`$ECHO "$path" | $GREP " "` 46399 if test "x$has_space" != x; then 46400 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46401 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46402 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46403 fi 46404 46405 # Use eval to expand a potential ~ 46406 eval path="$path" 46407 if test ! -f "$path" && test ! -d "$path"; then 46408 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46409 fi 46410 46411 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46412 fi 46413 46414 46415 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46417 $as_echo_n "checking for freetype includes... " >&6; } 46418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46419 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46420 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46422 $as_echo_n "checking for freetype libraries... " >&6; } 46423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46424 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46425 fi 46426 46427 fi 46428 46429 if test "x$FOUND_FREETYPE" != xyes; then 46430 FREETYPE_BASE_DIR="$SYSROOT/usr" 46431 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46432 46433 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46434 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 46435 METHOD="well-known location" 46436 46437 # First check if the files exists. 46438 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46439 # We found an arbitrary include file. That's a good sign. 46440 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46441 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46442 FOUND_FREETYPE=yes 46443 46444 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46445 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46446 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46447 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46448 FOUND_FREETYPE=no 46449 else 46450 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46451 # On Windows, we will need both .lib and .dll file. 46452 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46453 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46454 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46455 FOUND_FREETYPE=no 46456 fi 46457 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 46458 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46459 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46460 fi 46461 fi 46462 fi 46463 46464 if test "x$FOUND_FREETYPE" = xyes; then 46465 46466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46467 46468 # Input might be given as Windows format, start by converting to 46469 # unix format. 46470 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46471 new_path=`$CYGPATH -u "$path"` 46472 46473 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46474 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46475 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46476 # "foo.exe" is OK but "foo" is an error. 46477 # 46478 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46479 # It is also a way to make sure we got the proper file name for the real test later on. 46480 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46481 if test "x$test_shortpath" = x; then 46482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46483 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46484 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46485 fi 46486 46487 # Call helper function which possibly converts this using DOS-style short mode. 46488 # If so, the updated path is stored in $new_path. 46489 46490 input_path="$new_path" 46491 # Check if we need to convert this using DOS-style short mode. If the path 46492 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46493 # take no chances and rewrite it. 46494 # Note: m4 eats our [], so we need to use [ and ] instead. 46495 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46496 if test "x$has_forbidden_chars" != x; then 46497 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46498 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46499 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46500 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46501 # Going to short mode and back again did indeed matter. Since short mode is 46502 # case insensitive, let's make it lowercase to improve readability. 46503 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46504 # Now convert it back to Unix-style (cygpath) 46505 input_path=`$CYGPATH -u "$shortmode_path"` 46506 new_path="$input_path" 46507 fi 46508 fi 46509 46510 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46511 if test "x$test_cygdrive_prefix" = x; then 46512 # As a simple fix, exclude /usr/bin since it's not a real path. 46513 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46514 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46515 # a path prefixed by /cygdrive for fixpath to work. 46516 new_path="$CYGWIN_ROOT_PATH$input_path" 46517 fi 46518 fi 46519 46520 46521 if test "x$path" != "x$new_path"; then 46522 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46523 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46524 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46525 fi 46526 46527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46528 46529 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46530 has_colon=`$ECHO $path | $GREP ^.:` 46531 new_path="$path" 46532 if test "x$has_colon" = x; then 46533 # Not in mixed or Windows style, start by that. 46534 new_path=`cmd //c echo $path` 46535 fi 46536 46537 46538 input_path="$new_path" 46539 # Check if we need to convert this using DOS-style short mode. If the path 46540 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46541 # take no chances and rewrite it. 46542 # Note: m4 eats our [], so we need to use [ and ] instead. 46543 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46544 if test "x$has_forbidden_chars" != x; then 46545 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46546 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46547 fi 46548 46549 46550 windows_path="$new_path" 46551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46552 unix_path=`$CYGPATH -u "$windows_path"` 46553 new_path="$unix_path" 46554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46556 new_path="$unix_path" 46557 fi 46558 46559 if test "x$path" != "x$new_path"; then 46560 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46561 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46562 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46563 fi 46564 46565 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46566 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46567 46568 else 46569 # We're on a posix platform. Hooray! :) 46570 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46571 has_space=`$ECHO "$path" | $GREP " "` 46572 if test "x$has_space" != x; then 46573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46574 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46575 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46576 fi 46577 46578 # Use eval to expand a potential ~ 46579 eval path="$path" 46580 if test ! -f "$path" && test ! -d "$path"; then 46581 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46582 fi 46583 46584 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46585 fi 46586 46587 46588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46589 46590 # Input might be given as Windows format, start by converting to 46591 # unix format. 46592 path="$POTENTIAL_FREETYPE_LIB_PATH" 46593 new_path=`$CYGPATH -u "$path"` 46594 46595 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46596 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46597 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46598 # "foo.exe" is OK but "foo" is an error. 46599 # 46600 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46601 # It is also a way to make sure we got the proper file name for the real test later on. 46602 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46603 if test "x$test_shortpath" = x; then 46604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46605 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46606 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46607 fi 46608 46609 # Call helper function which possibly converts this using DOS-style short mode. 46610 # If so, the updated path is stored in $new_path. 46611 46612 input_path="$new_path" 46613 # Check if we need to convert this using DOS-style short mode. If the path 46614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46615 # take no chances and rewrite it. 46616 # Note: m4 eats our [], so we need to use [ and ] instead. 46617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46618 if test "x$has_forbidden_chars" != x; then 46619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46620 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46621 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46622 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46623 # Going to short mode and back again did indeed matter. Since short mode is 46624 # case insensitive, let's make it lowercase to improve readability. 46625 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46626 # Now convert it back to Unix-style (cygpath) 46627 input_path=`$CYGPATH -u "$shortmode_path"` 46628 new_path="$input_path" 46629 fi 46630 fi 46631 46632 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46633 if test "x$test_cygdrive_prefix" = x; then 46634 # As a simple fix, exclude /usr/bin since it's not a real path. 46635 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46636 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46637 # a path prefixed by /cygdrive for fixpath to work. 46638 new_path="$CYGWIN_ROOT_PATH$input_path" 46639 fi 46640 fi 46641 46642 46643 if test "x$path" != "x$new_path"; then 46644 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46645 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46646 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46647 fi 46648 46649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46650 46651 path="$POTENTIAL_FREETYPE_LIB_PATH" 46652 has_colon=`$ECHO $path | $GREP ^.:` 46653 new_path="$path" 46654 if test "x$has_colon" = x; then 46655 # Not in mixed or Windows style, start by that. 46656 new_path=`cmd //c echo $path` 46657 fi 46658 46659 46660 input_path="$new_path" 46661 # Check if we need to convert this using DOS-style short mode. If the path 46662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46663 # take no chances and rewrite it. 46664 # Note: m4 eats our [], so we need to use [ and ] instead. 46665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46666 if test "x$has_forbidden_chars" != x; then 46667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46668 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46669 fi 46670 46671 46672 windows_path="$new_path" 46673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46674 unix_path=`$CYGPATH -u "$windows_path"` 46675 new_path="$unix_path" 46676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46678 new_path="$unix_path" 46679 fi 46680 46681 if test "x$path" != "x$new_path"; then 46682 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46684 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46685 fi 46686 46687 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46688 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46689 46690 else 46691 # We're on a posix platform. Hooray! :) 46692 path="$POTENTIAL_FREETYPE_LIB_PATH" 46693 has_space=`$ECHO "$path" | $GREP " "` 46694 if test "x$has_space" != x; then 46695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46696 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46697 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46698 fi 46699 46700 # Use eval to expand a potential ~ 46701 eval path="$path" 46702 if test ! -f "$path" && test ! -d "$path"; then 46703 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46704 fi 46705 46706 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46707 fi 46708 46709 46710 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46712 $as_echo_n "checking for freetype includes... " >&6; } 46713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46714 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46715 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46717 $as_echo_n "checking for freetype libraries... " >&6; } 46718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46719 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46720 fi 46721 46722 else 46723 46724 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46725 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 46726 METHOD="well-known location" 46727 46728 # First check if the files exists. 46729 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46730 # We found an arbitrary include file. That's a good sign. 46731 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46732 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46733 FOUND_FREETYPE=yes 46734 46735 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46736 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46737 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46738 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46739 FOUND_FREETYPE=no 46740 else 46741 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46742 # On Windows, we will need both .lib and .dll file. 46743 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46744 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46745 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46746 FOUND_FREETYPE=no 46747 fi 46748 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 46749 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46750 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46751 fi 46752 fi 46753 fi 46754 46755 if test "x$FOUND_FREETYPE" = xyes; then 46756 46757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46758 46759 # Input might be given as Windows format, start by converting to 46760 # unix format. 46761 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46762 new_path=`$CYGPATH -u "$path"` 46763 46764 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46765 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46766 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46767 # "foo.exe" is OK but "foo" is an error. 46768 # 46769 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46770 # It is also a way to make sure we got the proper file name for the real test later on. 46771 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46772 if test "x$test_shortpath" = x; then 46773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46774 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46775 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46776 fi 46777 46778 # Call helper function which possibly converts this using DOS-style short mode. 46779 # If so, the updated path is stored in $new_path. 46780 46781 input_path="$new_path" 46782 # Check if we need to convert this using DOS-style short mode. If the path 46783 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46784 # take no chances and rewrite it. 46785 # Note: m4 eats our [], so we need to use [ and ] instead. 46786 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46787 if test "x$has_forbidden_chars" != x; then 46788 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46789 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46790 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46791 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46792 # Going to short mode and back again did indeed matter. Since short mode is 46793 # case insensitive, let's make it lowercase to improve readability. 46794 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46795 # Now convert it back to Unix-style (cygpath) 46796 input_path=`$CYGPATH -u "$shortmode_path"` 46797 new_path="$input_path" 46798 fi 46799 fi 46800 46801 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46802 if test "x$test_cygdrive_prefix" = x; then 46803 # As a simple fix, exclude /usr/bin since it's not a real path. 46804 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46805 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46806 # a path prefixed by /cygdrive for fixpath to work. 46807 new_path="$CYGWIN_ROOT_PATH$input_path" 46808 fi 46809 fi 46810 46811 46812 if test "x$path" != "x$new_path"; then 46813 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46815 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46816 fi 46817 46818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46819 46820 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46821 has_colon=`$ECHO $path | $GREP ^.:` 46822 new_path="$path" 46823 if test "x$has_colon" = x; then 46824 # Not in mixed or Windows style, start by that. 46825 new_path=`cmd //c echo $path` 46826 fi 46827 46828 46829 input_path="$new_path" 46830 # Check if we need to convert this using DOS-style short mode. If the path 46831 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46832 # take no chances and rewrite it. 46833 # Note: m4 eats our [], so we need to use [ and ] instead. 46834 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46835 if test "x$has_forbidden_chars" != x; then 46836 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46837 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46838 fi 46839 46840 46841 windows_path="$new_path" 46842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46843 unix_path=`$CYGPATH -u "$windows_path"` 46844 new_path="$unix_path" 46845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46846 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46847 new_path="$unix_path" 46848 fi 46849 46850 if test "x$path" != "x$new_path"; then 46851 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46852 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46853 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46854 fi 46855 46856 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46857 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46858 46859 else 46860 # We're on a posix platform. Hooray! :) 46861 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46862 has_space=`$ECHO "$path" | $GREP " "` 46863 if test "x$has_space" != x; then 46864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46865 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46866 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46867 fi 46868 46869 # Use eval to expand a potential ~ 46870 eval path="$path" 46871 if test ! -f "$path" && test ! -d "$path"; then 46872 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46873 fi 46874 46875 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46876 fi 46877 46878 46879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46880 46881 # Input might be given as Windows format, start by converting to 46882 # unix format. 46883 path="$POTENTIAL_FREETYPE_LIB_PATH" 46884 new_path=`$CYGPATH -u "$path"` 46885 46886 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46887 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46888 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46889 # "foo.exe" is OK but "foo" is an error. 46890 # 46891 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46892 # It is also a way to make sure we got the proper file name for the real test later on. 46893 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46894 if test "x$test_shortpath" = x; then 46895 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46896 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46897 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46898 fi 46899 46900 # Call helper function which possibly converts this using DOS-style short mode. 46901 # If so, the updated path is stored in $new_path. 46902 46903 input_path="$new_path" 46904 # Check if we need to convert this using DOS-style short mode. If the path 46905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46906 # take no chances and rewrite it. 46907 # Note: m4 eats our [], so we need to use [ and ] instead. 46908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46909 if test "x$has_forbidden_chars" != x; then 46910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46911 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46912 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46913 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46914 # Going to short mode and back again did indeed matter. Since short mode is 46915 # case insensitive, let's make it lowercase to improve readability. 46916 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46917 # Now convert it back to Unix-style (cygpath) 46918 input_path=`$CYGPATH -u "$shortmode_path"` 46919 new_path="$input_path" 46920 fi 46921 fi 46922 46923 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46924 if test "x$test_cygdrive_prefix" = x; then 46925 # As a simple fix, exclude /usr/bin since it's not a real path. 46926 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46927 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46928 # a path prefixed by /cygdrive for fixpath to work. 46929 new_path="$CYGWIN_ROOT_PATH$input_path" 46930 fi 46931 fi 46932 46933 46934 if test "x$path" != "x$new_path"; then 46935 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46937 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46938 fi 46939 46940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46941 46942 path="$POTENTIAL_FREETYPE_LIB_PATH" 46943 has_colon=`$ECHO $path | $GREP ^.:` 46944 new_path="$path" 46945 if test "x$has_colon" = x; then 46946 # Not in mixed or Windows style, start by that. 46947 new_path=`cmd //c echo $path` 46948 fi 46949 46950 46951 input_path="$new_path" 46952 # Check if we need to convert this using DOS-style short mode. If the path 46953 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46954 # take no chances and rewrite it. 46955 # Note: m4 eats our [], so we need to use [ and ] instead. 46956 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46957 if test "x$has_forbidden_chars" != x; then 46958 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46959 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46960 fi 46961 46962 46963 windows_path="$new_path" 46964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46965 unix_path=`$CYGPATH -u "$windows_path"` 46966 new_path="$unix_path" 46967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46968 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46969 new_path="$unix_path" 46970 fi 46971 46972 if test "x$path" != "x$new_path"; then 46973 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46974 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46975 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46976 fi 46977 46978 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46979 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46980 46981 else 46982 # We're on a posix platform. Hooray! :) 46983 path="$POTENTIAL_FREETYPE_LIB_PATH" 46984 has_space=`$ECHO "$path" | $GREP " "` 46985 if test "x$has_space" != x; then 46986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46987 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46988 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46989 fi 46990 46991 # Use eval to expand a potential ~ 46992 eval path="$path" 46993 if test ! -f "$path" && test ! -d "$path"; then 46994 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46995 fi 46996 46997 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46998 fi 46999 47000 47001 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47003 $as_echo_n "checking for freetype includes... " >&6; } 47004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47005 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47006 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47008 $as_echo_n "checking for freetype libraries... " >&6; } 47009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47010 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47011 fi 47012 47013 if test "x$FOUND_FREETYPE" != xyes; then 47014 47015 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47016 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47017 METHOD="well-known location" 47018 47019 # First check if the files exists. 47020 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47021 # We found an arbitrary include file. That's a good sign. 47022 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47023 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47024 FOUND_FREETYPE=yes 47025 47026 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 47027 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47028 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47029 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47030 FOUND_FREETYPE=no 47031 else 47032 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47033 # On Windows, we will need both .lib and .dll file. 47034 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 47035 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 47036 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 47037 FOUND_FREETYPE=no 47038 fi 47039 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 47040 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 47041 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 47042 fi 47043 fi 47044 fi 47045 47046 if test "x$FOUND_FREETYPE" = xyes; then 47047 47048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47049 47050 # Input might be given as Windows format, start by converting to 47051 # unix format. 47052 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47053 new_path=`$CYGPATH -u "$path"` 47054 47055 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47056 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47057 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47058 # "foo.exe" is OK but "foo" is an error. 47059 # 47060 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47061 # It is also a way to make sure we got the proper file name for the real test later on. 47062 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47063 if test "x$test_shortpath" = x; then 47064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47065 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47066 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47067 fi 47068 47069 # Call helper function which possibly converts this using DOS-style short mode. 47070 # If so, the updated path is stored in $new_path. 47071 47072 input_path="$new_path" 47073 # Check if we need to convert this using DOS-style short mode. If the path 47074 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47075 # take no chances and rewrite it. 47076 # Note: m4 eats our [], so we need to use [ and ] instead. 47077 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47078 if test "x$has_forbidden_chars" != x; then 47079 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47080 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47081 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47082 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47083 # Going to short mode and back again did indeed matter. Since short mode is 47084 # case insensitive, let's make it lowercase to improve readability. 47085 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47086 # Now convert it back to Unix-style (cygpath) 47087 input_path=`$CYGPATH -u "$shortmode_path"` 47088 new_path="$input_path" 47089 fi 47090 fi 47091 47092 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47093 if test "x$test_cygdrive_prefix" = x; then 47094 # As a simple fix, exclude /usr/bin since it's not a real path. 47095 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47096 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47097 # a path prefixed by /cygdrive for fixpath to work. 47098 new_path="$CYGWIN_ROOT_PATH$input_path" 47099 fi 47100 fi 47101 47102 47103 if test "x$path" != "x$new_path"; then 47104 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47105 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47106 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47107 fi 47108 47109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47110 47111 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47112 has_colon=`$ECHO $path | $GREP ^.:` 47113 new_path="$path" 47114 if test "x$has_colon" = x; then 47115 # Not in mixed or Windows style, start by that. 47116 new_path=`cmd //c echo $path` 47117 fi 47118 47119 47120 input_path="$new_path" 47121 # Check if we need to convert this using DOS-style short mode. If the path 47122 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47123 # take no chances and rewrite it. 47124 # Note: m4 eats our [], so we need to use [ and ] instead. 47125 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47126 if test "x$has_forbidden_chars" != x; then 47127 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47128 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47129 fi 47130 47131 47132 windows_path="$new_path" 47133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47134 unix_path=`$CYGPATH -u "$windows_path"` 47135 new_path="$unix_path" 47136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47137 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47138 new_path="$unix_path" 47139 fi 47140 47141 if test "x$path" != "x$new_path"; then 47142 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47143 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47144 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47145 fi 47146 47147 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47148 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47149 47150 else 47151 # We're on a posix platform. Hooray! :) 47152 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47153 has_space=`$ECHO "$path" | $GREP " "` 47154 if test "x$has_space" != x; then 47155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47156 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47157 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47158 fi 47159 47160 # Use eval to expand a potential ~ 47161 eval path="$path" 47162 if test ! -f "$path" && test ! -d "$path"; then 47163 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47164 fi 47165 47166 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47167 fi 47168 47169 47170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47171 47172 # Input might be given as Windows format, start by converting to 47173 # unix format. 47174 path="$POTENTIAL_FREETYPE_LIB_PATH" 47175 new_path=`$CYGPATH -u "$path"` 47176 47177 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47178 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47179 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47180 # "foo.exe" is OK but "foo" is an error. 47181 # 47182 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47183 # It is also a way to make sure we got the proper file name for the real test later on. 47184 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47185 if test "x$test_shortpath" = x; then 47186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47187 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47188 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47189 fi 47190 47191 # Call helper function which possibly converts this using DOS-style short mode. 47192 # If so, the updated path is stored in $new_path. 47193 47194 input_path="$new_path" 47195 # Check if we need to convert this using DOS-style short mode. If the path 47196 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47197 # take no chances and rewrite it. 47198 # Note: m4 eats our [], so we need to use [ and ] instead. 47199 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47200 if test "x$has_forbidden_chars" != x; then 47201 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47202 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47203 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47204 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47205 # Going to short mode and back again did indeed matter. Since short mode is 47206 # case insensitive, let's make it lowercase to improve readability. 47207 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47208 # Now convert it back to Unix-style (cygpath) 47209 input_path=`$CYGPATH -u "$shortmode_path"` 47210 new_path="$input_path" 47211 fi 47212 fi 47213 47214 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47215 if test "x$test_cygdrive_prefix" = x; then 47216 # As a simple fix, exclude /usr/bin since it's not a real path. 47217 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47218 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47219 # a path prefixed by /cygdrive for fixpath to work. 47220 new_path="$CYGWIN_ROOT_PATH$input_path" 47221 fi 47222 fi 47223 47224 47225 if test "x$path" != "x$new_path"; then 47226 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47228 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47229 fi 47230 47231 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47232 47233 path="$POTENTIAL_FREETYPE_LIB_PATH" 47234 has_colon=`$ECHO $path | $GREP ^.:` 47235 new_path="$path" 47236 if test "x$has_colon" = x; then 47237 # Not in mixed or Windows style, start by that. 47238 new_path=`cmd //c echo $path` 47239 fi 47240 47241 47242 input_path="$new_path" 47243 # Check if we need to convert this using DOS-style short mode. If the path 47244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47245 # take no chances and rewrite it. 47246 # Note: m4 eats our [], so we need to use [ and ] instead. 47247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47248 if test "x$has_forbidden_chars" != x; then 47249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47250 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47251 fi 47252 47253 47254 windows_path="$new_path" 47255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47256 unix_path=`$CYGPATH -u "$windows_path"` 47257 new_path="$unix_path" 47258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47260 new_path="$unix_path" 47261 fi 47262 47263 if test "x$path" != "x$new_path"; then 47264 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47265 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47266 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47267 fi 47268 47269 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47270 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47271 47272 else 47273 # We're on a posix platform. Hooray! :) 47274 path="$POTENTIAL_FREETYPE_LIB_PATH" 47275 has_space=`$ECHO "$path" | $GREP " "` 47276 if test "x$has_space" != x; then 47277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47278 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47279 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47280 fi 47281 47282 # Use eval to expand a potential ~ 47283 eval path="$path" 47284 if test ! -f "$path" && test ! -d "$path"; then 47285 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47286 fi 47287 47288 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47289 fi 47290 47291 47292 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47294 $as_echo_n "checking for freetype includes... " >&6; } 47295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47296 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47297 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47299 $as_echo_n "checking for freetype libraries... " >&6; } 47300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47301 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47302 fi 47303 47304 fi 47305 fi 47306 fi 47307 fi 47308 fi # end check in well-known locations 47309 47310 if test "x$FOUND_FREETYPE" != xyes; then 47311 47312 # Print a helpful message on how to acquire the necessary build dependency. 47313 # freetype is the help tag: freetype, cups, pulse, alsa etc 47314 MISSING_DEPENDENCY=freetype 47315 47316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47317 cygwin_help $MISSING_DEPENDENCY 47318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47319 msys_help $MISSING_DEPENDENCY 47320 else 47321 PKGHANDLER_COMMAND= 47322 47323 case $PKGHANDLER in 47324 apt-get) 47325 apt_help $MISSING_DEPENDENCY ;; 47326 yum) 47327 yum_help $MISSING_DEPENDENCY ;; 47328 port) 47329 port_help $MISSING_DEPENDENCY ;; 47330 pkgutil) 47331 pkgutil_help $MISSING_DEPENDENCY ;; 47332 pkgadd) 47333 pkgadd_help $MISSING_DEPENDENCY ;; 47334 esac 47335 47336 if test "x$PKGHANDLER_COMMAND" != x; then 47337 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47338 fi 47339 fi 47340 47341 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 47342 fi 47343 fi # end user specified settings 47344 47345 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 47346 if test "x$FREETYPE_CFLAGS" = x; then 47347 47348 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47349 47350 # Input might be given as Windows format, start by converting to 47351 # unix format. 47352 path="$FREETYPE_INCLUDE_PATH" 47353 new_path=`$CYGPATH -u "$path"` 47354 47355 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47356 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47357 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47358 # "foo.exe" is OK but "foo" is an error. 47359 # 47360 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47361 # It is also a way to make sure we got the proper file name for the real test later on. 47362 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47363 if test "x$test_shortpath" = x; then 47364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47365 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47366 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 47367 fi 47368 47369 # Call helper function which possibly converts this using DOS-style short mode. 47370 # If so, the updated path is stored in $new_path. 47371 47372 input_path="$new_path" 47373 # Check if we need to convert this using DOS-style short mode. If the path 47374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47375 # take no chances and rewrite it. 47376 # Note: m4 eats our [], so we need to use [ and ] instead. 47377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47378 if test "x$has_forbidden_chars" != x; then 47379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47380 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47381 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47382 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47383 # Going to short mode and back again did indeed matter. Since short mode is 47384 # case insensitive, let's make it lowercase to improve readability. 47385 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47386 # Now convert it back to Unix-style (cygpath) 47387 input_path=`$CYGPATH -u "$shortmode_path"` 47388 new_path="$input_path" 47389 fi 47390 fi 47391 47392 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47393 if test "x$test_cygdrive_prefix" = x; then 47394 # As a simple fix, exclude /usr/bin since it's not a real path. 47395 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47396 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47397 # a path prefixed by /cygdrive for fixpath to work. 47398 new_path="$CYGWIN_ROOT_PATH$input_path" 47399 fi 47400 fi 47401 47402 47403 if test "x$path" != "x$new_path"; then 47404 FREETYPE_INCLUDE_PATH="$new_path" 47405 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47406 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47407 fi 47408 47409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47410 47411 path="$FREETYPE_INCLUDE_PATH" 47412 has_colon=`$ECHO $path | $GREP ^.:` 47413 new_path="$path" 47414 if test "x$has_colon" = x; then 47415 # Not in mixed or Windows style, start by that. 47416 new_path=`cmd //c echo $path` 47417 fi 47418 47419 47420 input_path="$new_path" 47421 # Check if we need to convert this using DOS-style short mode. If the path 47422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47423 # take no chances and rewrite it. 47424 # Note: m4 eats our [], so we need to use [ and ] instead. 47425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47426 if test "x$has_forbidden_chars" != x; then 47427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47428 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47429 fi 47430 47431 47432 windows_path="$new_path" 47433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47434 unix_path=`$CYGPATH -u "$windows_path"` 47435 new_path="$unix_path" 47436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47437 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47438 new_path="$unix_path" 47439 fi 47440 47441 if test "x$path" != "x$new_path"; then 47442 FREETYPE_INCLUDE_PATH="$new_path" 47443 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47444 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47445 fi 47446 47447 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47448 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47449 47450 else 47451 # We're on a posix platform. Hooray! :) 47452 path="$FREETYPE_INCLUDE_PATH" 47453 has_space=`$ECHO "$path" | $GREP " "` 47454 if test "x$has_space" != x; then 47455 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47456 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47457 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47458 fi 47459 47460 # Use eval to expand a potential ~ 47461 eval path="$path" 47462 if test ! -f "$path" && test ! -d "$path"; then 47463 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47464 fi 47465 47466 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47467 fi 47468 47469 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 47470 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 47471 else 47472 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 47473 fi 47474 fi 47475 47476 if test "x$FREETYPE_LIBS" = x; then 47477 47478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47479 47480 # Input might be given as Windows format, start by converting to 47481 # unix format. 47482 path="$FREETYPE_LIB_PATH" 47483 new_path=`$CYGPATH -u "$path"` 47484 47485 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47486 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47487 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47488 # "foo.exe" is OK but "foo" is an error. 47489 # 47490 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47491 # It is also a way to make sure we got the proper file name for the real test later on. 47492 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47493 if test "x$test_shortpath" = x; then 47494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47495 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47496 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 47497 fi 47498 47499 # Call helper function which possibly converts this using DOS-style short mode. 47500 # If so, the updated path is stored in $new_path. 47501 47502 input_path="$new_path" 47503 # Check if we need to convert this using DOS-style short mode. If the path 47504 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47505 # take no chances and rewrite it. 47506 # Note: m4 eats our [], so we need to use [ and ] instead. 47507 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47508 if test "x$has_forbidden_chars" != x; then 47509 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47510 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47511 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47512 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47513 # Going to short mode and back again did indeed matter. Since short mode is 47514 # case insensitive, let's make it lowercase to improve readability. 47515 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47516 # Now convert it back to Unix-style (cygpath) 47517 input_path=`$CYGPATH -u "$shortmode_path"` 47518 new_path="$input_path" 47519 fi 47520 fi 47521 47522 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47523 if test "x$test_cygdrive_prefix" = x; then 47524 # As a simple fix, exclude /usr/bin since it's not a real path. 47525 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47526 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47527 # a path prefixed by /cygdrive for fixpath to work. 47528 new_path="$CYGWIN_ROOT_PATH$input_path" 47529 fi 47530 fi 47531 47532 47533 if test "x$path" != "x$new_path"; then 47534 FREETYPE_LIB_PATH="$new_path" 47535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47536 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47537 fi 47538 47539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47540 47541 path="$FREETYPE_LIB_PATH" 47542 has_colon=`$ECHO $path | $GREP ^.:` 47543 new_path="$path" 47544 if test "x$has_colon" = x; then 47545 # Not in mixed or Windows style, start by that. 47546 new_path=`cmd //c echo $path` 47547 fi 47548 47549 47550 input_path="$new_path" 47551 # Check if we need to convert this using DOS-style short mode. If the path 47552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47553 # take no chances and rewrite it. 47554 # Note: m4 eats our [], so we need to use [ and ] instead. 47555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47556 if test "x$has_forbidden_chars" != x; then 47557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47558 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47559 fi 47560 47561 47562 windows_path="$new_path" 47563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47564 unix_path=`$CYGPATH -u "$windows_path"` 47565 new_path="$unix_path" 47566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47567 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47568 new_path="$unix_path" 47569 fi 47570 47571 if test "x$path" != "x$new_path"; then 47572 FREETYPE_LIB_PATH="$new_path" 47573 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47574 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47575 fi 47576 47577 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47578 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47579 47580 else 47581 # We're on a posix platform. Hooray! :) 47582 path="$FREETYPE_LIB_PATH" 47583 has_space=`$ECHO "$path" | $GREP " "` 47584 if test "x$has_space" != x; then 47585 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47586 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47587 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47588 fi 47589 47590 # Use eval to expand a potential ~ 47591 eval path="$path" 47592 if test ! -f "$path" && test ! -d "$path"; then 47593 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47594 fi 47595 47596 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47597 fi 47598 47599 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47600 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 47601 else 47602 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 47603 fi 47604 fi 47605 47606 # Try to compile it 47607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 47608 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 47609 ac_ext=cpp 47610 ac_cpp='$CXXCPP $CPPFLAGS' 47611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47614 47615 PREV_CXXCFLAGS="$CXXFLAGS" 47616 PREV_LIBS="$LIBS" 47617 PREV_CXX="$CXX" 47618 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 47619 LIBS="$LIBS $FREETYPE_LIBS" 47620 CXX="$FIXPATH $CXX" 47621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47622 /* end confdefs.h. */ 47623 47624 #include<ft2build.h> 47625 #include FT_FREETYPE_H 47626 int main () { 47627 FT_Init_FreeType(NULL); 47628 return 0; 47629 } 47630 47631 _ACEOF 47632 if ac_fn_cxx_try_link "$LINENO"; then : 47633 47634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47635 $as_echo "yes" >&6; } 47636 47637 else 47638 47639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47640 $as_echo "no" >&6; } 47641 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 47642 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 47643 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 47644 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 47645 47646 47647 # Print a helpful message on how to acquire the necessary build dependency. 47648 # freetype is the help tag: freetype, cups, pulse, alsa etc 47649 MISSING_DEPENDENCY=freetype 47650 47651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47652 cygwin_help $MISSING_DEPENDENCY 47653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47654 msys_help $MISSING_DEPENDENCY 47655 else 47656 PKGHANDLER_COMMAND= 47657 47658 case $PKGHANDLER in 47659 apt-get) 47660 apt_help $MISSING_DEPENDENCY ;; 47661 yum) 47662 yum_help $MISSING_DEPENDENCY ;; 47663 port) 47664 port_help $MISSING_DEPENDENCY ;; 47665 pkgutil) 47666 pkgutil_help $MISSING_DEPENDENCY ;; 47667 pkgadd) 47668 pkgadd_help $MISSING_DEPENDENCY ;; 47669 esac 47670 47671 if test "x$PKGHANDLER_COMMAND" != x; then 47672 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47673 fi 47674 fi 47675 47676 47677 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 47678 47679 47680 fi 47681 rm -f core conftest.err conftest.$ac_objext \ 47682 conftest$ac_exeext conftest.$ac_ext 47683 CXXCFLAGS="$PREV_CXXFLAGS" 47684 LIBS="$PREV_LIBS" 47685 CXX="$PREV_CXX" 47686 ac_ext=cpp 47687 ac_cpp='$CXXCPP $CPPFLAGS' 47688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47691 47692 47693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 47694 $as_echo_n "checking if we should bundle freetype... " >&6; } 47695 if test "x$BUNDLE_FREETYPE" = xyes; then 47696 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 47697 fi 47698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 47699 $as_echo "$BUNDLE_FREETYPE" >&6; } 47700 47701 fi # end freetype needed 47702 47703 47704 47705 47706 47707 47708 47709 ############################################################################### 47710 # 47711 # Check for alsa headers and libraries. Used on Linux/GNU systems. 47712 # 47713 47714 # Check whether --with-alsa was given. 47715 if test "${with_alsa+set}" = set; then : 47716 withval=$with_alsa; 47717 fi 47718 47719 47720 # Check whether --with-alsa-include was given. 47721 if test "${with_alsa_include+set}" = set; then : 47722 withval=$with_alsa_include; 47723 fi 47724 47725 47726 # Check whether --with-alsa-lib was given. 47727 if test "${with_alsa_lib+set}" = set; then : 47728 withval=$with_alsa_lib; 47729 fi 47730 47731 47732 if test "x$ALSA_NOT_NEEDED" = xyes; then 47733 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 47734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 47735 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 47736 fi 47737 ALSA_CFLAGS= 47738 ALSA_LIBS= 47739 else 47740 ALSA_FOUND=no 47741 47742 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 47743 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 47744 fi 47745 47746 if test "x${with_alsa}" != x; then 47747 ALSA_LIBS="-L${with_alsa}/lib -lasound" 47748 ALSA_CFLAGS="-I${with_alsa}/include" 47749 ALSA_FOUND=yes 47750 fi 47751 if test "x${with_alsa_include}" != x; then 47752 ALSA_CFLAGS="-I${with_alsa_include}" 47753 ALSA_FOUND=yes 47754 fi 47755 if test "x${with_alsa_lib}" != x; then 47756 ALSA_LIBS="-L${with_alsa_lib} -lasound" 47757 ALSA_FOUND=yes 47758 fi 47759 if test "x$ALSA_FOUND" = xno; then 47760 47761 47762 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 47763 # Source the builddeps file again, to make sure it uses the latest variables! 47764 . $builddepsfile 47765 # Look for a target and build machine specific resource! 47766 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 47767 if test "x$resource" = x; then 47768 # Ok, lets instead look for a target specific resource 47769 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 47770 fi 47771 if test "x$resource" = x; then 47772 # Ok, lets instead look for a build specific resource 47773 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 47774 fi 47775 if test "x$resource" = x; then 47776 # Ok, lets instead look for a generic resource 47777 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 47778 resource=${builddep_alsa} 47779 fi 47780 if test "x$resource" != x; then 47781 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 47782 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 47783 # If the resource in the builddeps.conf file is an existing directory, 47784 # for example /java/linux/cups 47785 if test -d ${resource}; then 47786 depdir=${resource} 47787 else 47788 47789 # alsa is for example mymodule 47790 # $resource is for example libs/general/libmymod_1_2_3.zip 47791 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 47792 # $with_builddeps_dir is for example /localhome/builddeps 47793 # depdir is the name of the variable into which we store the depdir, eg MYMOD 47794 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 47795 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 47796 filename=`basename $resource` 47797 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 47798 filebase=${filename%%.*} 47799 extension=${filename#*.} 47800 installdir=$with_builddeps_dir/$filebase 47801 if test ! -f $installdir/$filename.unpacked; then 47802 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 47803 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 47804 if test ! -d $installdir; then 47805 mkdir -p $installdir 47806 fi 47807 if test ! -d $installdir; then 47808 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 47809 fi 47810 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 47811 touch $tmpfile 47812 if test ! -f $tmpfile; then 47813 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 47814 fi 47815 47816 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 47817 # $tmpfile is the local file name for the downloaded file. 47818 VALID_TOOL=no 47819 if test "x$BDEPS_FTP" = xwget; then 47820 VALID_TOOL=yes 47821 wget -O $tmpfile $with_builddeps_server/$resource 47822 fi 47823 if test "x$BDEPS_FTP" = xlftp; then 47824 VALID_TOOL=yes 47825 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 47826 fi 47827 if test "x$BDEPS_FTP" = xftp; then 47828 VALID_TOOL=yes 47829 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 47830 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 47831 FTPUSERPWD=${FTPSERVER%%@*} 47832 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 47833 FTPUSER=${userpwd%%:*} 47834 FTPPWD=${userpwd#*@} 47835 FTPSERVER=${FTPSERVER#*@} 47836 else 47837 FTPUSER=ftp 47838 FTPPWD=ftp 47839 fi 47840 # the "pass" command does not work on some 47841 # ftp clients (read ftp.exe) but if it works, 47842 # passive mode is better! 47843 ( \ 47844 echo "user $FTPUSER $FTPPWD" ; \ 47845 echo "pass" ; \ 47846 echo "bin" ; \ 47847 echo "get $FTPPATH $tmpfile" ; \ 47848 ) | ftp -in $FTPSERVER 47849 fi 47850 if test "x$VALID_TOOL" != xyes; then 47851 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 47852 fi 47853 47854 mv $tmpfile $installdir/$filename 47855 if test ! -s $installdir/$filename; then 47856 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 47857 fi 47858 case "$extension" in 47859 zip) echo "Unzipping $installdir/$filename..." 47860 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 47861 ;; 47862 tar.gz) echo "Untaring $installdir/$filename..." 47863 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 47864 ;; 47865 tgz) echo "Untaring $installdir/$filename..." 47866 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 47867 ;; 47868 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 47869 ;; 47870 esac 47871 fi 47872 if test -f $installdir/$filename.unpacked; then 47873 depdir=$installdir 47874 fi 47875 47876 fi 47877 # Source the builddeps file again, because in the previous command, the depdir 47878 # was updated to point at the current build dependency install directory. 47879 . $builddepsfile 47880 # Now extract variables from the builddeps.conf files. 47881 theroot=${builddep_alsa_ROOT} 47882 thecflags=${builddep_alsa_CFLAGS} 47883 thelibs=${builddep_alsa_LIBS} 47884 if test "x$depdir" = x; then 47885 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 47886 fi 47887 ALSA=$depdir 47888 if test "x$theroot" != x; then 47889 ALSA="$theroot" 47890 fi 47891 if test "x$thecflags" != x; then 47892 ALSA_CFLAGS="$thecflags" 47893 fi 47894 if test "x$thelibs" != x; then 47895 ALSA_LIBS="$thelibs" 47896 fi 47897 ALSA_FOUND=yes 47898 else ALSA_FOUND=no 47899 47900 fi 47901 else ALSA_FOUND=no 47902 47903 fi 47904 47905 fi 47906 # Do not try pkg-config if we have a sysroot set. 47907 if test "x$SYSROOT" = x; then 47908 if test "x$ALSA_FOUND" = xno; then 47909 47910 pkg_failed=no 47911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 47912 $as_echo_n "checking for ALSA... " >&6; } 47913 47914 if test -n "$ALSA_CFLAGS"; then 47915 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 47916 elif test -n "$PKG_CONFIG"; then 47917 if test -n "$PKG_CONFIG" && \ 47918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 47919 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 47920 ac_status=$? 47921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47922 test $ac_status = 0; }; then 47923 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 47924 else 47925 pkg_failed=yes 47926 fi 47927 else 47928 pkg_failed=untried 47929 fi 47930 if test -n "$ALSA_LIBS"; then 47931 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 47932 elif test -n "$PKG_CONFIG"; then 47933 if test -n "$PKG_CONFIG" && \ 47934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 47935 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 47936 ac_status=$? 47937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47938 test $ac_status = 0; }; then 47939 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 47940 else 47941 pkg_failed=yes 47942 fi 47943 else 47944 pkg_failed=untried 47945 fi 47946 47947 47948 47949 if test $pkg_failed = yes; then 47950 47951 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47952 _pkg_short_errors_supported=yes 47953 else 47954 _pkg_short_errors_supported=no 47955 fi 47956 if test $_pkg_short_errors_supported = yes; then 47957 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 47958 else 47959 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 47960 fi 47961 # Put the nasty error message in config.log where it belongs 47962 echo "$ALSA_PKG_ERRORS" >&5 47963 47964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47965 $as_echo "no" >&6; } 47966 ALSA_FOUND=no 47967 elif test $pkg_failed = untried; then 47968 ALSA_FOUND=no 47969 else 47970 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 47971 ALSA_LIBS=$pkg_cv_ALSA_LIBS 47972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47973 $as_echo "yes" >&6; } 47974 ALSA_FOUND=yes 47975 fi 47976 fi 47977 fi 47978 if test "x$ALSA_FOUND" = xno; then 47979 for ac_header in alsa/asoundlib.h 47980 do : 47981 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 47982 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 47983 cat >>confdefs.h <<_ACEOF 47984 #define HAVE_ALSA_ASOUNDLIB_H 1 47985 _ACEOF 47986 47987 ALSA_FOUND=yes 47988 ALSA_CFLAGS=-Iignoreme 47989 ALSA_LIBS=-lasound 47990 DEFAULT_ALSA=yes 47991 47992 else 47993 ALSA_FOUND=no 47994 fi 47995 47996 done 47997 47998 fi 47999 if test "x$ALSA_FOUND" = xno; then 48000 48001 # Print a helpful message on how to acquire the necessary build dependency. 48002 # alsa is the help tag: freetype, cups, pulse, alsa etc 48003 MISSING_DEPENDENCY=alsa 48004 48005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48006 cygwin_help $MISSING_DEPENDENCY 48007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48008 msys_help $MISSING_DEPENDENCY 48009 else 48010 PKGHANDLER_COMMAND= 48011 48012 case $PKGHANDLER in 48013 apt-get) 48014 apt_help $MISSING_DEPENDENCY ;; 48015 yum) 48016 yum_help $MISSING_DEPENDENCY ;; 48017 port) 48018 port_help $MISSING_DEPENDENCY ;; 48019 pkgutil) 48020 pkgutil_help $MISSING_DEPENDENCY ;; 48021 pkgadd) 48022 pkgadd_help $MISSING_DEPENDENCY ;; 48023 esac 48024 48025 if test "x$PKGHANDLER_COMMAND" != x; then 48026 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48027 fi 48028 fi 48029 48030 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48031 fi 48032 fi 48033 48034 48035 48036 48037 48038 48039 # Check whether --with-fontconfig was given. 48040 if test "${with_fontconfig+set}" = set; then : 48041 withval=$with_fontconfig; 48042 fi 48043 48044 48045 # Check whether --with-fontconfig-include was given. 48046 if test "${with_fontconfig_include+set}" = set; then : 48047 withval=$with_fontconfig_include; 48048 fi 48049 48050 48051 if test "x$FONTCONFIG_NOT_NEEDED" = xyes; then 48052 if (test "x${with_fontconfig}" != x && test "x${with_fontconfig}" != xno) || \ 48053 (test "x${with_fontconfig_include}" != x && test "x${with_fontconfig_include}" != xno); then 48054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&5 48055 $as_echo "$as_me: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&2;} 48056 fi 48057 FONTCONFIG_CFLAGS= 48058 else 48059 FONTCONFIG_FOUND=no 48060 48061 if test "x${with_fontconfig}" = xno || test "x${with_fontconfig_include}" = xno; then 48062 as_fn_error $? "It is not possible to disable the use of fontconfig. Remove the --without-fontconfig option." "$LINENO" 5 48063 fi 48064 48065 if test "x${with_fontconfig}" != x; then 48066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 48067 $as_echo_n "checking for fontconfig headers... " >&6; } 48068 if test -s "${with_fontconfig}/include/fontconfig/fontconfig.h"; then 48069 FONTCONFIG_CFLAGS="-I${with_fontconfig}/include" 48070 FONTCONFIG_FOUND=yes 48071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 48072 $as_echo "$FONTCONFIG_FOUND" >&6; } 48073 else 48074 as_fn_error $? "Can't find 'include/fontconfig/fontconfig.h' under ${with_fontconfig} given with the --with-fontconfig option." "$LINENO" 5 48075 fi 48076 fi 48077 if test "x${with_fontconfig_include}" != x; then 48078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 48079 $as_echo_n "checking for fontconfig headers... " >&6; } 48080 if test -s "${with_fontconfig_include}/fontconfig/fontconfig.h"; then 48081 FONTCONFIG_CFLAGS="-I${with_fontconfig_include}" 48082 FONTCONFIG_FOUND=yes 48083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 48084 $as_echo "$FONTCONFIG_FOUND" >&6; } 48085 else 48086 as_fn_error $? "Can't find 'fontconfig/fontconfig.h' under ${with_fontconfig_include} given with the --with-fontconfig-include option." "$LINENO" 5 48087 fi 48088 fi 48089 if test "x$FONTCONFIG_FOUND" = xno; then 48090 # Are the fontconfig headers installed in the default /usr/include location? 48091 for ac_header in fontconfig/fontconfig.h 48092 do : 48093 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" 48094 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : 48095 cat >>confdefs.h <<_ACEOF 48096 #define HAVE_FONTCONFIG_FONTCONFIG_H 1 48097 _ACEOF 48098 48099 FONTCONFIG_FOUND=yes 48100 FONTCONFIG_CFLAGS= 48101 DEFAULT_FONTCONFIG=yes 48102 48103 fi 48104 48105 done 48106 48107 fi 48108 if test "x$FONTCONFIG_FOUND" = xno; then 48109 48110 # Print a helpful message on how to acquire the necessary build dependency. 48111 # fontconfig is the help tag: freetype, cups, pulse, alsa etc 48112 MISSING_DEPENDENCY=fontconfig 48113 48114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48115 cygwin_help $MISSING_DEPENDENCY 48116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48117 msys_help $MISSING_DEPENDENCY 48118 else 48119 PKGHANDLER_COMMAND= 48120 48121 case $PKGHANDLER in 48122 apt-get) 48123 apt_help $MISSING_DEPENDENCY ;; 48124 yum) 48125 yum_help $MISSING_DEPENDENCY ;; 48126 port) 48127 port_help $MISSING_DEPENDENCY ;; 48128 pkgutil) 48129 pkgutil_help $MISSING_DEPENDENCY ;; 48130 pkgadd) 48131 pkgadd_help $MISSING_DEPENDENCY ;; 48132 esac 48133 48134 if test "x$PKGHANDLER_COMMAND" != x; then 48135 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48136 fi 48137 fi 48138 48139 as_fn_error $? "Could not find fontconfig! $HELP_MSG " "$LINENO" 5 48140 fi 48141 fi 48142 48143 48144 48145 48146 48147 ############################################################################### 48148 # 48149 # Check for the jpeg library 48150 # 48151 48152 USE_EXTERNAL_LIBJPEG=true 48153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 48154 $as_echo_n "checking for main in -ljpeg... " >&6; } 48155 if ${ac_cv_lib_jpeg_main+:} false; then : 48156 $as_echo_n "(cached) " >&6 48157 else 48158 ac_check_lib_save_LIBS=$LIBS 48159 LIBS="-ljpeg $LIBS" 48160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48161 /* end confdefs.h. */ 48162 48163 48164 int 48165 main () 48166 { 48167 return main (); 48168 ; 48169 return 0; 48170 } 48171 _ACEOF 48172 if ac_fn_cxx_try_link "$LINENO"; then : 48173 ac_cv_lib_jpeg_main=yes 48174 else 48175 ac_cv_lib_jpeg_main=no 48176 fi 48177 rm -f core conftest.err conftest.$ac_objext \ 48178 conftest$ac_exeext conftest.$ac_ext 48179 LIBS=$ac_check_lib_save_LIBS 48180 fi 48181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 48182 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 48183 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 48184 cat >>confdefs.h <<_ACEOF 48185 #define HAVE_LIBJPEG 1 48186 _ACEOF 48187 48188 LIBS="-ljpeg $LIBS" 48189 48190 else 48191 USE_EXTERNAL_LIBJPEG=false 48192 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 48193 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 48194 48195 fi 48196 48197 48198 48199 ############################################################################### 48200 # 48201 # Check for the gif library 48202 # 48203 48204 48205 # Check whether --with-giflib was given. 48206 if test "${with_giflib+set}" = set; then : 48207 withval=$with_giflib; 48208 fi 48209 48210 48211 48212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 48213 $as_echo_n "checking for which giflib to use... " >&6; } 48214 48215 # default is bundled 48216 DEFAULT_GIFLIB=bundled 48217 48218 # 48219 # if user didn't specify, use DEFAULT_GIFLIB 48220 # 48221 if test "x${with_giflib}" = "x"; then 48222 with_giflib=${DEFAULT_GIFLIB} 48223 fi 48224 48225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 48226 $as_echo "${with_giflib}" >&6; } 48227 48228 if test "x${with_giflib}" = "xbundled"; then 48229 USE_EXTERNAL_LIBGIF=false 48230 elif test "x${with_giflib}" = "xsystem"; then 48231 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 48232 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 48233 48234 else 48235 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 48236 fi 48237 48238 48239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 48240 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 48241 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 48242 $as_echo_n "(cached) " >&6 48243 else 48244 ac_check_lib_save_LIBS=$LIBS 48245 LIBS="-lgif $LIBS" 48246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48247 /* end confdefs.h. */ 48248 48249 /* Override any GCC internal prototype to avoid an error. 48250 Use char because int might match the return type of a GCC 48251 builtin and then its argument prototype would still apply. */ 48252 #ifdef __cplusplus 48253 extern "C" 48254 #endif 48255 char DGifGetCode (); 48256 int 48257 main () 48258 { 48259 return DGifGetCode (); 48260 ; 48261 return 0; 48262 } 48263 _ACEOF 48264 if ac_fn_cxx_try_link "$LINENO"; then : 48265 ac_cv_lib_gif_DGifGetCode=yes 48266 else 48267 ac_cv_lib_gif_DGifGetCode=no 48268 fi 48269 rm -f core conftest.err conftest.$ac_objext \ 48270 conftest$ac_exeext conftest.$ac_ext 48271 LIBS=$ac_check_lib_save_LIBS 48272 fi 48273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 48274 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 48275 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 48276 cat >>confdefs.h <<_ACEOF 48277 #define HAVE_LIBGIF 1 48278 _ACEOF 48279 48280 LIBS="-lgif $LIBS" 48281 48282 else 48283 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 48284 fi 48285 48286 48287 USE_EXTERNAL_LIBGIF=true 48288 else 48289 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 48290 fi 48291 48292 48293 ############################################################################### 48294 # 48295 # Check for the zlib library 48296 # 48297 48298 48299 # Check whether --with-zlib was given. 48300 if test "${with_zlib+set}" = set; then : 48301 withval=$with_zlib; 48302 fi 48303 48304 48305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 48306 $as_echo_n "checking for compress in -lz... " >&6; } 48307 if ${ac_cv_lib_z_compress+:} false; then : 48308 $as_echo_n "(cached) " >&6 48309 else 48310 ac_check_lib_save_LIBS=$LIBS 48311 LIBS="-lz $LIBS" 48312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48313 /* end confdefs.h. */ 48314 48315 /* Override any GCC internal prototype to avoid an error. 48316 Use char because int might match the return type of a GCC 48317 builtin and then its argument prototype would still apply. */ 48318 #ifdef __cplusplus 48319 extern "C" 48320 #endif 48321 char compress (); 48322 int 48323 main () 48324 { 48325 return compress (); 48326 ; 48327 return 0; 48328 } 48329 _ACEOF 48330 if ac_fn_cxx_try_link "$LINENO"; then : 48331 ac_cv_lib_z_compress=yes 48332 else 48333 ac_cv_lib_z_compress=no 48334 fi 48335 rm -f core conftest.err conftest.$ac_objext \ 48336 conftest$ac_exeext conftest.$ac_ext 48337 LIBS=$ac_check_lib_save_LIBS 48338 fi 48339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 48340 $as_echo "$ac_cv_lib_z_compress" >&6; } 48341 if test "x$ac_cv_lib_z_compress" = xyes; then : 48342 ZLIB_FOUND=yes 48343 else 48344 ZLIB_FOUND=no 48345 fi 48346 48347 48348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 48349 $as_echo_n "checking for which zlib to use... " >&6; } 48350 48351 DEFAULT_ZLIB=bundled 48352 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48353 # 48354 # On macosx default is system...on others default is 48355 # 48356 DEFAULT_ZLIB=system 48357 fi 48358 48359 if test "x${ZLIB_FOUND}" != "xyes"; then 48360 # 48361 # If we don't find any system...set default to bundled 48362 # 48363 DEFAULT_ZLIB=bundled 48364 fi 48365 48366 # 48367 # If user didn't specify, use DEFAULT_ZLIB 48368 # 48369 if test "x${with_zlib}" = "x"; then 48370 with_zlib=${DEFAULT_ZLIB} 48371 fi 48372 48373 if test "x${with_zlib}" = "xbundled"; then 48374 USE_EXTERNAL_LIBZ=false 48375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48376 $as_echo "bundled" >&6; } 48377 elif test "x${with_zlib}" = "xsystem"; then 48378 if test "x${ZLIB_FOUND}" = "xyes"; then 48379 USE_EXTERNAL_LIBZ=true 48380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48381 $as_echo "system" >&6; } 48382 else 48383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 48384 $as_echo "system not found" >&6; } 48385 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 48386 fi 48387 else 48388 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 48389 fi 48390 48391 48392 48393 ############################################################################### 48394 LIBZIP_CAN_USE_MMAP=true 48395 48396 48397 48398 ############################################################################### 48399 # 48400 # Check if altzone exists in time.h 48401 # 48402 48403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48404 /* end confdefs.h. */ 48405 #include <time.h> 48406 int 48407 main () 48408 { 48409 return (int)altzone; 48410 ; 48411 return 0; 48412 } 48413 _ACEOF 48414 if ac_fn_cxx_try_link "$LINENO"; then : 48415 has_altzone=yes 48416 else 48417 has_altzone=no 48418 fi 48419 rm -f core conftest.err conftest.$ac_objext \ 48420 conftest$ac_exeext conftest.$ac_ext 48421 if test "x$has_altzone" = xyes; then 48422 48423 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 48424 48425 fi 48426 48427 ############################################################################### 48428 # 48429 # Check the maths library 48430 # 48431 48432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 48433 $as_echo_n "checking for cos in -lm... " >&6; } 48434 if ${ac_cv_lib_m_cos+:} false; then : 48435 $as_echo_n "(cached) " >&6 48436 else 48437 ac_check_lib_save_LIBS=$LIBS 48438 LIBS="-lm $LIBS" 48439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48440 /* end confdefs.h. */ 48441 48442 /* Override any GCC internal prototype to avoid an error. 48443 Use char because int might match the return type of a GCC 48444 builtin and then its argument prototype would still apply. */ 48445 #ifdef __cplusplus 48446 extern "C" 48447 #endif 48448 char cos (); 48449 int 48450 main () 48451 { 48452 return cos (); 48453 ; 48454 return 0; 48455 } 48456 _ACEOF 48457 if ac_fn_cxx_try_link "$LINENO"; then : 48458 ac_cv_lib_m_cos=yes 48459 else 48460 ac_cv_lib_m_cos=no 48461 fi 48462 rm -f core conftest.err conftest.$ac_objext \ 48463 conftest$ac_exeext conftest.$ac_ext 48464 LIBS=$ac_check_lib_save_LIBS 48465 fi 48466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 48467 $as_echo "$ac_cv_lib_m_cos" >&6; } 48468 if test "x$ac_cv_lib_m_cos" = xyes; then : 48469 cat >>confdefs.h <<_ACEOF 48470 #define HAVE_LIBM 1 48471 _ACEOF 48472 48473 LIBS="-lm $LIBS" 48474 48475 else 48476 48477 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 48478 $as_echo "$as_me: Maths library was not found" >&6;} 48479 48480 48481 fi 48482 48483 48484 48485 ############################################################################### 48486 # 48487 # Check for libdl.so 48488 48489 save_LIBS="$LIBS" 48490 LIBS="" 48491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 48492 $as_echo_n "checking for dlopen in -ldl... " >&6; } 48493 if ${ac_cv_lib_dl_dlopen+:} false; then : 48494 $as_echo_n "(cached) " >&6 48495 else 48496 ac_check_lib_save_LIBS=$LIBS 48497 LIBS="-ldl $LIBS" 48498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48499 /* end confdefs.h. */ 48500 48501 /* Override any GCC internal prototype to avoid an error. 48502 Use char because int might match the return type of a GCC 48503 builtin and then its argument prototype would still apply. */ 48504 #ifdef __cplusplus 48505 extern "C" 48506 #endif 48507 char dlopen (); 48508 int 48509 main () 48510 { 48511 return dlopen (); 48512 ; 48513 return 0; 48514 } 48515 _ACEOF 48516 if ac_fn_cxx_try_link "$LINENO"; then : 48517 ac_cv_lib_dl_dlopen=yes 48518 else 48519 ac_cv_lib_dl_dlopen=no 48520 fi 48521 rm -f core conftest.err conftest.$ac_objext \ 48522 conftest$ac_exeext conftest.$ac_ext 48523 LIBS=$ac_check_lib_save_LIBS 48524 fi 48525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 48526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 48527 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 48528 cat >>confdefs.h <<_ACEOF 48529 #define HAVE_LIBDL 1 48530 _ACEOF 48531 48532 LIBS="-ldl $LIBS" 48533 48534 fi 48535 48536 LIBDL="$LIBS" 48537 48538 LIBS="$save_LIBS" 48539 48540 48541 ############################################################################### 48542 # 48543 # statically link libstdc++ before C++ ABI is stablized on Linux unless 48544 # dynamic build is configured on command line. 48545 # 48546 48547 # Check whether --with-stdc++lib was given. 48548 if test "${with_stdc__lib+set}" = set; then : 48549 withval=$with_stdc__lib; 48550 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 48551 && test "x$with_stdc__lib" != xdefault; then 48552 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 48553 fi 48554 48555 else 48556 with_stdc__lib=default 48557 48558 fi 48559 48560 48561 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48562 # Test if -lstdc++ works. 48563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 48564 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 48565 ac_ext=cpp 48566 ac_cpp='$CXXCPP $CPPFLAGS' 48567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48570 48571 OLD_CXXFLAGS="$CXXFLAGS" 48572 CXXFLAGS="$CXXFLAGS -lstdc++" 48573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48574 /* end confdefs.h. */ 48575 48576 int 48577 main () 48578 { 48579 return 0; 48580 ; 48581 return 0; 48582 } 48583 _ACEOF 48584 if ac_fn_cxx_try_link "$LINENO"; then : 48585 has_dynamic_libstdcxx=yes 48586 else 48587 has_dynamic_libstdcxx=no 48588 fi 48589 rm -f core conftest.err conftest.$ac_objext \ 48590 conftest$ac_exeext conftest.$ac_ext 48591 CXXFLAGS="$OLD_CXXFLAGS" 48592 ac_ext=cpp 48593 ac_cpp='$CXXCPP $CPPFLAGS' 48594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48597 48598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 48599 $as_echo "$has_dynamic_libstdcxx" >&6; } 48600 48601 # Test if stdc++ can be linked statically. 48602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 48603 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 48604 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 48605 ac_ext=cpp 48606 ac_cpp='$CXXCPP $CPPFLAGS' 48607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48610 48611 OLD_LIBS="$LIBS" 48612 OLD_CXX="$CXX" 48613 LIBS="$STATIC_STDCXX_FLAGS" 48614 CXX="$CC" 48615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48616 /* end confdefs.h. */ 48617 48618 int 48619 main () 48620 { 48621 return 0; 48622 ; 48623 return 0; 48624 } 48625 _ACEOF 48626 if ac_fn_cxx_try_link "$LINENO"; then : 48627 has_static_libstdcxx=yes 48628 else 48629 has_static_libstdcxx=no 48630 fi 48631 rm -f core conftest.err conftest.$ac_objext \ 48632 conftest$ac_exeext conftest.$ac_ext 48633 LIBS="$OLD_LIBS" 48634 CXX="$OLD_CXX" 48635 ac_ext=cpp 48636 ac_cpp='$CXXCPP $CPPFLAGS' 48637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48640 48641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 48642 $as_echo "$has_static_libstdcxx" >&6; } 48643 48644 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 48645 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 48646 fi 48647 48648 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 48649 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 48650 fi 48651 48652 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 48653 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 48654 fi 48655 48656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 48657 $as_echo_n "checking how to link with libstdc++... " >&6; } 48658 # If dynamic was requested, it's available since it would fail above otherwise. 48659 # If dynamic wasn't requested, go with static unless it isn't available. 48660 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48661 LIBCXX="$LIBCXX -lstdc++" 48662 LDCXX="$CXX" 48663 STATIC_CXX_SETTING="STATIC_CXX=false" 48664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 48665 $as_echo "dynamic" >&6; } 48666 else 48667 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 48668 LDCXX="$CC" 48669 STATIC_CXX_SETTING="STATIC_CXX=true" 48670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 48671 $as_echo "static" >&6; } 48672 fi 48673 fi 48674 48675 48676 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48677 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 48678 48679 pkg_failed=no 48680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 48681 $as_echo_n "checking for LIBFFI... " >&6; } 48682 48683 if test -n "$LIBFFI_CFLAGS"; then 48684 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 48685 elif test -n "$PKG_CONFIG"; then 48686 if test -n "$PKG_CONFIG" && \ 48687 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 48688 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 48689 ac_status=$? 48690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48691 test $ac_status = 0; }; then 48692 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 48693 else 48694 pkg_failed=yes 48695 fi 48696 else 48697 pkg_failed=untried 48698 fi 48699 if test -n "$LIBFFI_LIBS"; then 48700 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 48701 elif test -n "$PKG_CONFIG"; then 48702 if test -n "$PKG_CONFIG" && \ 48703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 48704 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 48705 ac_status=$? 48706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48707 test $ac_status = 0; }; then 48708 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 48709 else 48710 pkg_failed=yes 48711 fi 48712 else 48713 pkg_failed=untried 48714 fi 48715 48716 48717 48718 if test $pkg_failed = yes; then 48719 48720 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48721 _pkg_short_errors_supported=yes 48722 else 48723 _pkg_short_errors_supported=no 48724 fi 48725 if test $_pkg_short_errors_supported = yes; then 48726 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 48727 else 48728 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 48729 fi 48730 # Put the nasty error message in config.log where it belongs 48731 echo "$LIBFFI_PKG_ERRORS" >&5 48732 48733 as_fn_error $? "Package requirements (libffi) were not met: 48734 48735 $LIBFFI_PKG_ERRORS 48736 48737 Consider adjusting the PKG_CONFIG_PATH environment variable if you 48738 installed software in a non-standard prefix. 48739 48740 Alternatively, you may set the environment variables LIBFFI_CFLAGS 48741 and LIBFFI_LIBS to avoid the need to call pkg-config. 48742 See the pkg-config man page for more details. 48743 " "$LINENO" 5 48744 elif test $pkg_failed = untried; then 48745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48747 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 48748 is in your PATH or set the PKG_CONFIG environment variable to the full 48749 path to pkg-config. 48750 48751 Alternatively, you may set the environment variables LIBFFI_CFLAGS 48752 and LIBFFI_LIBS to avoid the need to call pkg-config. 48753 See the pkg-config man page for more details. 48754 48755 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 48756 See \`config.log' for more details" "$LINENO" 5; } 48757 else 48758 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 48759 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 48760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48761 $as_echo "yes" >&6; } 48762 : 48763 fi 48764 48765 fi 48766 48767 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 48768 # Extract the first word of "llvm-config", so it can be a program name with args. 48769 set dummy llvm-config; ac_word=$2 48770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48771 $as_echo_n "checking for $ac_word... " >&6; } 48772 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 48773 $as_echo_n "(cached) " >&6 48774 else 48775 if test -n "$LLVM_CONFIG"; then 48776 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 48777 else 48778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48779 for as_dir in $PATH 48780 do 48781 IFS=$as_save_IFS 48782 test -z "$as_dir" && as_dir=. 48783 for ac_exec_ext in '' $ac_executable_extensions; do 48784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48785 ac_cv_prog_LLVM_CONFIG="llvm-config" 48786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48787 break 2 48788 fi 48789 done 48790 done 48791 IFS=$as_save_IFS 48792 48793 fi 48794 fi 48795 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 48796 if test -n "$LLVM_CONFIG"; then 48797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 48798 $as_echo "$LLVM_CONFIG" >&6; } 48799 else 48800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48801 $as_echo "no" >&6; } 48802 fi 48803 48804 48805 48806 if test "x$LLVM_CONFIG" != xllvm-config; then 48807 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 48808 fi 48809 48810 llvm_components="jit mcjit engine nativecodegen native" 48811 unset LLVM_CFLAGS 48812 for flag in $("$LLVM_CONFIG" --cxxflags); do 48813 if echo "${flag}" | grep -q '^-[ID]'; then 48814 if test "${flag}" != "-D_DEBUG" ; then 48815 if test "${LLVM_CFLAGS}" != "" ; then 48816 LLVM_CFLAGS="${LLVM_CFLAGS} " 48817 fi 48818 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 48819 fi 48820 fi 48821 done 48822 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 48823 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 48824 48825 unset LLVM_LDFLAGS 48826 for flag in $("${LLVM_CONFIG}" --ldflags); do 48827 if echo "${flag}" | grep -q '^-L'; then 48828 if test "${LLVM_LDFLAGS}" != ""; then 48829 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 48830 fi 48831 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 48832 fi 48833 done 48834 48835 unset LLVM_LIBS 48836 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 48837 if echo "${flag}" | grep -q '^-l'; then 48838 if test "${LLVM_LIBS}" != ""; then 48839 LLVM_LIBS="${LLVM_LIBS} " 48840 fi 48841 LLVM_LIBS="${LLVM_LIBS}${flag}" 48842 fi 48843 done 48844 48845 48846 48847 48848 fi 48849 48850 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 48851 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 48852 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 48853 fi 48854 48855 # TODO better (platform agnostic) test 48856 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 48857 LIBCXX="-lstdc++" 48858 fi 48859 48860 48861 48862 48863 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 48864 48865 48866 # Check whether --with-msvcr-dll was given. 48867 if test "${with_msvcr_dll+set}" = set; then : 48868 withval=$with_msvcr_dll; 48869 fi 48870 48871 48872 if test "x$with_msvcr_dll" != x; then 48873 # If given explicitely by user, do not probe. If not present, fail directly. 48874 48875 DLL_NAME="$MSVCR_NAME" 48876 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 48877 METHOD="--with-msvcr-dll" 48878 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 48879 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 48880 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 48881 48882 # Need to check if the found msvcr is correct architecture 48883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 48884 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 48885 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 48886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48887 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 48888 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 48889 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48890 CORRECT_MSVCR_ARCH="PE32 executable" 48891 else 48892 CORRECT_MSVCR_ARCH="PE32+ executable" 48893 fi 48894 else 48895 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 48896 CORRECT_MSVCR_ARCH=386 48897 else 48898 CORRECT_MSVCR_ARCH=x86-64 48899 fi 48900 fi 48901 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 48902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 48903 $as_echo "ok" >&6; } 48904 MSVC_DLL="$POSSIBLE_MSVC_DLL" 48905 48906 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48907 48908 # Input might be given as Windows format, start by converting to 48909 # unix format. 48910 path="$MSVC_DLL" 48911 new_path=`$CYGPATH -u "$path"` 48912 48913 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48914 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48915 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48916 # "foo.exe" is OK but "foo" is an error. 48917 # 48918 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48919 # It is also a way to make sure we got the proper file name for the real test later on. 48920 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48921 if test "x$test_shortpath" = x; then 48922 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 48923 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 48924 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 48925 fi 48926 48927 # Call helper function which possibly converts this using DOS-style short mode. 48928 # If so, the updated path is stored in $new_path. 48929 48930 input_path="$new_path" 48931 # Check if we need to convert this using DOS-style short mode. If the path 48932 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48933 # take no chances and rewrite it. 48934 # Note: m4 eats our [], so we need to use [ and ] instead. 48935 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48936 if test "x$has_forbidden_chars" != x; then 48937 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48938 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48939 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48940 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48941 # Going to short mode and back again did indeed matter. Since short mode is 48942 # case insensitive, let's make it lowercase to improve readability. 48943 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48944 # Now convert it back to Unix-style (cygpath) 48945 input_path=`$CYGPATH -u "$shortmode_path"` 48946 new_path="$input_path" 48947 fi 48948 fi 48949 48950 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48951 if test "x$test_cygdrive_prefix" = x; then 48952 # As a simple fix, exclude /usr/bin since it's not a real path. 48953 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48954 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48955 # a path prefixed by /cygdrive for fixpath to work. 48956 new_path="$CYGWIN_ROOT_PATH$input_path" 48957 fi 48958 fi 48959 48960 48961 if test "x$path" != "x$new_path"; then 48962 MSVC_DLL="$new_path" 48963 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 48964 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 48965 fi 48966 48967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48968 48969 path="$MSVC_DLL" 48970 has_colon=`$ECHO $path | $GREP ^.:` 48971 new_path="$path" 48972 if test "x$has_colon" = x; then 48973 # Not in mixed or Windows style, start by that. 48974 new_path=`cmd //c echo $path` 48975 fi 48976 48977 48978 input_path="$new_path" 48979 # Check if we need to convert this using DOS-style short mode. If the path 48980 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48981 # take no chances and rewrite it. 48982 # Note: m4 eats our [], so we need to use [ and ] instead. 48983 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48984 if test "x$has_forbidden_chars" != x; then 48985 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48986 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48987 fi 48988 48989 48990 windows_path="$new_path" 48991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48992 unix_path=`$CYGPATH -u "$windows_path"` 48993 new_path="$unix_path" 48994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48995 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48996 new_path="$unix_path" 48997 fi 48998 48999 if test "x$path" != "x$new_path"; then 49000 MSVC_DLL="$new_path" 49001 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49002 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49003 fi 49004 49005 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49006 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49007 49008 else 49009 # We're on a posix platform. Hooray! :) 49010 path="$MSVC_DLL" 49011 has_space=`$ECHO "$path" | $GREP " "` 49012 if test "x$has_space" != x; then 49013 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49014 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49015 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49016 fi 49017 49018 # Use eval to expand a potential ~ 49019 eval path="$path" 49020 if test ! -f "$path" && test ! -d "$path"; then 49021 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49022 fi 49023 49024 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49025 fi 49026 49027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49028 $as_echo_n "checking for $DLL_NAME... " >&6; } 49029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49030 $as_echo "$MSVC_DLL" >&6; } 49031 else 49032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49033 $as_echo "incorrect, ignoring" >&6; } 49034 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49035 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49036 fi 49037 fi 49038 49039 if test "x$MSVC_DLL" = x; then 49040 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 49041 fi 49042 MSVCR_DLL="$MSVC_DLL" 49043 elif test "x$DEVKIT_MSVCR_DLL" != x; then 49044 49045 DLL_NAME="$MSVCR_NAME" 49046 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 49047 METHOD="devkit" 49048 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49049 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49050 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49051 49052 # Need to check if the found msvcr is correct architecture 49053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49054 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49055 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49057 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49058 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49059 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49060 CORRECT_MSVCR_ARCH="PE32 executable" 49061 else 49062 CORRECT_MSVCR_ARCH="PE32+ executable" 49063 fi 49064 else 49065 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49066 CORRECT_MSVCR_ARCH=386 49067 else 49068 CORRECT_MSVCR_ARCH=x86-64 49069 fi 49070 fi 49071 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49073 $as_echo "ok" >&6; } 49074 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49075 49076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49077 49078 # Input might be given as Windows format, start by converting to 49079 # unix format. 49080 path="$MSVC_DLL" 49081 new_path=`$CYGPATH -u "$path"` 49082 49083 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49084 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49085 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49086 # "foo.exe" is OK but "foo" is an error. 49087 # 49088 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49089 # It is also a way to make sure we got the proper file name for the real test later on. 49090 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49091 if test "x$test_shortpath" = x; then 49092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49093 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49094 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49095 fi 49096 49097 # Call helper function which possibly converts this using DOS-style short mode. 49098 # If so, the updated path is stored in $new_path. 49099 49100 input_path="$new_path" 49101 # Check if we need to convert this using DOS-style short mode. If the path 49102 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49103 # take no chances and rewrite it. 49104 # Note: m4 eats our [], so we need to use [ and ] instead. 49105 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49106 if test "x$has_forbidden_chars" != x; then 49107 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49108 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49109 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49110 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49111 # Going to short mode and back again did indeed matter. Since short mode is 49112 # case insensitive, let's make it lowercase to improve readability. 49113 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49114 # Now convert it back to Unix-style (cygpath) 49115 input_path=`$CYGPATH -u "$shortmode_path"` 49116 new_path="$input_path" 49117 fi 49118 fi 49119 49120 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49121 if test "x$test_cygdrive_prefix" = x; then 49122 # As a simple fix, exclude /usr/bin since it's not a real path. 49123 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49124 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49125 # a path prefixed by /cygdrive for fixpath to work. 49126 new_path="$CYGWIN_ROOT_PATH$input_path" 49127 fi 49128 fi 49129 49130 49131 if test "x$path" != "x$new_path"; then 49132 MSVC_DLL="$new_path" 49133 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49134 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49135 fi 49136 49137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49138 49139 path="$MSVC_DLL" 49140 has_colon=`$ECHO $path | $GREP ^.:` 49141 new_path="$path" 49142 if test "x$has_colon" = x; then 49143 # Not in mixed or Windows style, start by that. 49144 new_path=`cmd //c echo $path` 49145 fi 49146 49147 49148 input_path="$new_path" 49149 # Check if we need to convert this using DOS-style short mode. If the path 49150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49151 # take no chances and rewrite it. 49152 # Note: m4 eats our [], so we need to use [ and ] instead. 49153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49154 if test "x$has_forbidden_chars" != x; then 49155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49156 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49157 fi 49158 49159 49160 windows_path="$new_path" 49161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49162 unix_path=`$CYGPATH -u "$windows_path"` 49163 new_path="$unix_path" 49164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49166 new_path="$unix_path" 49167 fi 49168 49169 if test "x$path" != "x$new_path"; then 49170 MSVC_DLL="$new_path" 49171 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49172 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49173 fi 49174 49175 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49176 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49177 49178 else 49179 # We're on a posix platform. Hooray! :) 49180 path="$MSVC_DLL" 49181 has_space=`$ECHO "$path" | $GREP " "` 49182 if test "x$has_space" != x; then 49183 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49184 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49185 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49186 fi 49187 49188 # Use eval to expand a potential ~ 49189 eval path="$path" 49190 if test ! -f "$path" && test ! -d "$path"; then 49191 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49192 fi 49193 49194 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49195 fi 49196 49197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49198 $as_echo_n "checking for $DLL_NAME... " >&6; } 49199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49200 $as_echo "$MSVC_DLL" >&6; } 49201 else 49202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49203 $as_echo "incorrect, ignoring" >&6; } 49204 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49205 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49206 fi 49207 fi 49208 49209 if test "x$MSVC_DLL" = x; then 49210 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 49211 fi 49212 MSVCR_DLL="$MSVC_DLL" 49213 else 49214 49215 DLL_NAME="${MSVCR_NAME}" 49216 MSVC_DLL= 49217 49218 if test "x$MSVC_DLL" = x; then 49219 if test "x$VCINSTALLDIR" != x; then 49220 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49221 49222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49223 49224 # Input might be given as Windows format, start by converting to 49225 # unix format. 49226 path="$CYGWIN_VC_INSTALL_DIR" 49227 new_path=`$CYGPATH -u "$path"` 49228 49229 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49230 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49231 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49232 # "foo.exe" is OK but "foo" is an error. 49233 # 49234 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49235 # It is also a way to make sure we got the proper file name for the real test later on. 49236 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49237 if test "x$test_shortpath" = x; then 49238 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 49239 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 49240 as_fn_error $? "Cannot locate the the path of CYGWIN_VC_INSTALL_DIR" "$LINENO" 5 49241 fi 49242 49243 # Call helper function which possibly converts this using DOS-style short mode. 49244 # If so, the updated path is stored in $new_path. 49245 49246 input_path="$new_path" 49247 # Check if we need to convert this using DOS-style short mode. If the path 49248 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49249 # take no chances and rewrite it. 49250 # Note: m4 eats our [], so we need to use [ and ] instead. 49251 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49252 if test "x$has_forbidden_chars" != x; then 49253 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49254 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49255 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49256 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49257 # Going to short mode and back again did indeed matter. Since short mode is 49258 # case insensitive, let's make it lowercase to improve readability. 49259 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49260 # Now convert it back to Unix-style (cygpath) 49261 input_path=`$CYGPATH -u "$shortmode_path"` 49262 new_path="$input_path" 49263 fi 49264 fi 49265 49266 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49267 if test "x$test_cygdrive_prefix" = x; then 49268 # As a simple fix, exclude /usr/bin since it's not a real path. 49269 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49270 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49271 # a path prefixed by /cygdrive for fixpath to work. 49272 new_path="$CYGWIN_ROOT_PATH$input_path" 49273 fi 49274 fi 49275 49276 49277 if test "x$path" != "x$new_path"; then 49278 CYGWIN_VC_INSTALL_DIR="$new_path" 49279 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 49280 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 49281 fi 49282 49283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49284 49285 path="$CYGWIN_VC_INSTALL_DIR" 49286 has_colon=`$ECHO $path | $GREP ^.:` 49287 new_path="$path" 49288 if test "x$has_colon" = x; then 49289 # Not in mixed or Windows style, start by that. 49290 new_path=`cmd //c echo $path` 49291 fi 49292 49293 49294 input_path="$new_path" 49295 # Check if we need to convert this using DOS-style short mode. If the path 49296 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49297 # take no chances and rewrite it. 49298 # Note: m4 eats our [], so we need to use [ and ] instead. 49299 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49300 if test "x$has_forbidden_chars" != x; then 49301 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49302 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49303 fi 49304 49305 49306 windows_path="$new_path" 49307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49308 unix_path=`$CYGPATH -u "$windows_path"` 49309 new_path="$unix_path" 49310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49311 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49312 new_path="$unix_path" 49313 fi 49314 49315 if test "x$path" != "x$new_path"; then 49316 CYGWIN_VC_INSTALL_DIR="$new_path" 49317 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 49318 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 49319 fi 49320 49321 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49322 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49323 49324 else 49325 # We're on a posix platform. Hooray! :) 49326 path="$CYGWIN_VC_INSTALL_DIR" 49327 has_space=`$ECHO "$path" | $GREP " "` 49328 if test "x$has_space" != x; then 49329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 49330 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 49331 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49332 fi 49333 49334 # Use eval to expand a potential ~ 49335 eval path="$path" 49336 if test ! -f "$path" && test ! -d "$path"; then 49337 as_fn_error $? "The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 49338 fi 49339 49340 CYGWIN_VC_INSTALL_DIR="`cd "$path"; $THEPWDCMD -L`" 49341 fi 49342 49343 if test "$VS_VERSION" -lt 2017; then 49344 # Probe: Using well-known location from Visual Studio 12.0 and older 49345 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49346 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49347 else 49348 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49349 fi 49350 else 49351 # Probe: Using well-known location from VS 2017 49352 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49353 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 49354 else 49355 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 49356 fi 49357 fi 49358 # In case any of the above finds more than one file, loop over them. 49359 for possible_msvc_dll in $POSSIBLE_MSVC_DLL; do 49360 $ECHO "POSSIBLE_MSVC_DLL $possible_msvc_dll" 49361 49362 DLL_NAME="$DLL_NAME" 49363 POSSIBLE_MSVC_DLL="$possible_msvc_dll" 49364 METHOD="well-known location in VCINSTALLDIR" 49365 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49366 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49367 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49368 49369 # Need to check if the found msvcr is correct architecture 49370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49371 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49372 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49374 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49375 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49376 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49377 CORRECT_MSVCR_ARCH="PE32 executable" 49378 else 49379 CORRECT_MSVCR_ARCH="PE32+ executable" 49380 fi 49381 else 49382 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49383 CORRECT_MSVCR_ARCH=386 49384 else 49385 CORRECT_MSVCR_ARCH=x86-64 49386 fi 49387 fi 49388 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49390 $as_echo "ok" >&6; } 49391 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49392 49393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49394 49395 # Input might be given as Windows format, start by converting to 49396 # unix format. 49397 path="$MSVC_DLL" 49398 new_path=`$CYGPATH -u "$path"` 49399 49400 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49401 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49402 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49403 # "foo.exe" is OK but "foo" is an error. 49404 # 49405 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49406 # It is also a way to make sure we got the proper file name for the real test later on. 49407 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49408 if test "x$test_shortpath" = x; then 49409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49410 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49411 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49412 fi 49413 49414 # Call helper function which possibly converts this using DOS-style short mode. 49415 # If so, the updated path is stored in $new_path. 49416 49417 input_path="$new_path" 49418 # Check if we need to convert this using DOS-style short mode. If the path 49419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49420 # take no chances and rewrite it. 49421 # Note: m4 eats our [], so we need to use [ and ] instead. 49422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49423 if test "x$has_forbidden_chars" != x; then 49424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49425 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49426 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49427 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49428 # Going to short mode and back again did indeed matter. Since short mode is 49429 # case insensitive, let's make it lowercase to improve readability. 49430 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49431 # Now convert it back to Unix-style (cygpath) 49432 input_path=`$CYGPATH -u "$shortmode_path"` 49433 new_path="$input_path" 49434 fi 49435 fi 49436 49437 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49438 if test "x$test_cygdrive_prefix" = x; then 49439 # As a simple fix, exclude /usr/bin since it's not a real path. 49440 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49441 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49442 # a path prefixed by /cygdrive for fixpath to work. 49443 new_path="$CYGWIN_ROOT_PATH$input_path" 49444 fi 49445 fi 49446 49447 49448 if test "x$path" != "x$new_path"; then 49449 MSVC_DLL="$new_path" 49450 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49451 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49452 fi 49453 49454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49455 49456 path="$MSVC_DLL" 49457 has_colon=`$ECHO $path | $GREP ^.:` 49458 new_path="$path" 49459 if test "x$has_colon" = x; then 49460 # Not in mixed or Windows style, start by that. 49461 new_path=`cmd //c echo $path` 49462 fi 49463 49464 49465 input_path="$new_path" 49466 # Check if we need to convert this using DOS-style short mode. If the path 49467 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49468 # take no chances and rewrite it. 49469 # Note: m4 eats our [], so we need to use [ and ] instead. 49470 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49471 if test "x$has_forbidden_chars" != x; then 49472 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49473 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49474 fi 49475 49476 49477 windows_path="$new_path" 49478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49479 unix_path=`$CYGPATH -u "$windows_path"` 49480 new_path="$unix_path" 49481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49482 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49483 new_path="$unix_path" 49484 fi 49485 49486 if test "x$path" != "x$new_path"; then 49487 MSVC_DLL="$new_path" 49488 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49489 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49490 fi 49491 49492 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49493 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49494 49495 else 49496 # We're on a posix platform. Hooray! :) 49497 path="$MSVC_DLL" 49498 has_space=`$ECHO "$path" | $GREP " "` 49499 if test "x$has_space" != x; then 49500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49501 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49502 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49503 fi 49504 49505 # Use eval to expand a potential ~ 49506 eval path="$path" 49507 if test ! -f "$path" && test ! -d "$path"; then 49508 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49509 fi 49510 49511 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49512 fi 49513 49514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49515 $as_echo_n "checking for $DLL_NAME... " >&6; } 49516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49517 $as_echo "$MSVC_DLL" >&6; } 49518 else 49519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49520 $as_echo "incorrect, ignoring" >&6; } 49521 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49522 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49523 fi 49524 fi 49525 49526 done 49527 fi 49528 fi 49529 49530 if test "x$MSVC_DLL" = x; then 49531 # Probe: Check in the Boot JDK directory. 49532 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 49533 49534 DLL_NAME="$DLL_NAME" 49535 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49536 METHOD="well-known location in Boot JDK" 49537 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49538 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49539 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49540 49541 # Need to check if the found msvcr is correct architecture 49542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49543 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49544 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49546 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49547 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49548 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49549 CORRECT_MSVCR_ARCH="PE32 executable" 49550 else 49551 CORRECT_MSVCR_ARCH="PE32+ executable" 49552 fi 49553 else 49554 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49555 CORRECT_MSVCR_ARCH=386 49556 else 49557 CORRECT_MSVCR_ARCH=x86-64 49558 fi 49559 fi 49560 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49562 $as_echo "ok" >&6; } 49563 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49564 49565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49566 49567 # Input might be given as Windows format, start by converting to 49568 # unix format. 49569 path="$MSVC_DLL" 49570 new_path=`$CYGPATH -u "$path"` 49571 49572 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49573 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49574 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49575 # "foo.exe" is OK but "foo" is an error. 49576 # 49577 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49578 # It is also a way to make sure we got the proper file name for the real test later on. 49579 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49580 if test "x$test_shortpath" = x; then 49581 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49582 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49583 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49584 fi 49585 49586 # Call helper function which possibly converts this using DOS-style short mode. 49587 # If so, the updated path is stored in $new_path. 49588 49589 input_path="$new_path" 49590 # Check if we need to convert this using DOS-style short mode. If the path 49591 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49592 # take no chances and rewrite it. 49593 # Note: m4 eats our [], so we need to use [ and ] instead. 49594 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49595 if test "x$has_forbidden_chars" != x; then 49596 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49597 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49598 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49599 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49600 # Going to short mode and back again did indeed matter. Since short mode is 49601 # case insensitive, let's make it lowercase to improve readability. 49602 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49603 # Now convert it back to Unix-style (cygpath) 49604 input_path=`$CYGPATH -u "$shortmode_path"` 49605 new_path="$input_path" 49606 fi 49607 fi 49608 49609 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49610 if test "x$test_cygdrive_prefix" = x; then 49611 # As a simple fix, exclude /usr/bin since it's not a real path. 49612 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49613 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49614 # a path prefixed by /cygdrive for fixpath to work. 49615 new_path="$CYGWIN_ROOT_PATH$input_path" 49616 fi 49617 fi 49618 49619 49620 if test "x$path" != "x$new_path"; then 49621 MSVC_DLL="$new_path" 49622 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49623 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49624 fi 49625 49626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49627 49628 path="$MSVC_DLL" 49629 has_colon=`$ECHO $path | $GREP ^.:` 49630 new_path="$path" 49631 if test "x$has_colon" = x; then 49632 # Not in mixed or Windows style, start by that. 49633 new_path=`cmd //c echo $path` 49634 fi 49635 49636 49637 input_path="$new_path" 49638 # Check if we need to convert this using DOS-style short mode. If the path 49639 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49640 # take no chances and rewrite it. 49641 # Note: m4 eats our [], so we need to use [ and ] instead. 49642 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49643 if test "x$has_forbidden_chars" != x; then 49644 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49645 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49646 fi 49647 49648 49649 windows_path="$new_path" 49650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49651 unix_path=`$CYGPATH -u "$windows_path"` 49652 new_path="$unix_path" 49653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49654 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49655 new_path="$unix_path" 49656 fi 49657 49658 if test "x$path" != "x$new_path"; then 49659 MSVC_DLL="$new_path" 49660 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49661 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49662 fi 49663 49664 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49665 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49666 49667 else 49668 # We're on a posix platform. Hooray! :) 49669 path="$MSVC_DLL" 49670 has_space=`$ECHO "$path" | $GREP " "` 49671 if test "x$has_space" != x; then 49672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49673 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49674 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49675 fi 49676 49677 # Use eval to expand a potential ~ 49678 eval path="$path" 49679 if test ! -f "$path" && test ! -d "$path"; then 49680 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49681 fi 49682 49683 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49684 fi 49685 49686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49687 $as_echo_n "checking for $DLL_NAME... " >&6; } 49688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49689 $as_echo "$MSVC_DLL" >&6; } 49690 else 49691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49692 $as_echo "incorrect, ignoring" >&6; } 49693 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49694 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49695 fi 49696 fi 49697 49698 fi 49699 49700 if test "x$MSVC_DLL" = x; then 49701 # Probe: Look in the Windows system32 directory 49702 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 49703 49704 windows_path="$CYGWIN_SYSTEMROOT" 49705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49706 unix_path=`$CYGPATH -u "$windows_path"` 49707 CYGWIN_SYSTEMROOT="$unix_path" 49708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49709 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49710 CYGWIN_SYSTEMROOT="$unix_path" 49711 fi 49712 49713 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 49714 49715 DLL_NAME="$DLL_NAME" 49716 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49717 METHOD="well-known location in SYSTEMROOT" 49718 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49719 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49720 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49721 49722 # Need to check if the found msvcr is correct architecture 49723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49724 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49725 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49727 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49728 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49729 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49730 CORRECT_MSVCR_ARCH="PE32 executable" 49731 else 49732 CORRECT_MSVCR_ARCH="PE32+ executable" 49733 fi 49734 else 49735 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49736 CORRECT_MSVCR_ARCH=386 49737 else 49738 CORRECT_MSVCR_ARCH=x86-64 49739 fi 49740 fi 49741 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49743 $as_echo "ok" >&6; } 49744 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49745 49746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49747 49748 # Input might be given as Windows format, start by converting to 49749 # unix format. 49750 path="$MSVC_DLL" 49751 new_path=`$CYGPATH -u "$path"` 49752 49753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49756 # "foo.exe" is OK but "foo" is an error. 49757 # 49758 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49759 # It is also a way to make sure we got the proper file name for the real test later on. 49760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49761 if test "x$test_shortpath" = x; then 49762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49763 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49764 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49765 fi 49766 49767 # Call helper function which possibly converts this using DOS-style short mode. 49768 # If so, the updated path is stored in $new_path. 49769 49770 input_path="$new_path" 49771 # Check if we need to convert this using DOS-style short mode. If the path 49772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49773 # take no chances and rewrite it. 49774 # Note: m4 eats our [], so we need to use [ and ] instead. 49775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49776 if test "x$has_forbidden_chars" != x; then 49777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49778 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49779 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49780 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49781 # Going to short mode and back again did indeed matter. Since short mode is 49782 # case insensitive, let's make it lowercase to improve readability. 49783 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49784 # Now convert it back to Unix-style (cygpath) 49785 input_path=`$CYGPATH -u "$shortmode_path"` 49786 new_path="$input_path" 49787 fi 49788 fi 49789 49790 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49791 if test "x$test_cygdrive_prefix" = x; then 49792 # As a simple fix, exclude /usr/bin since it's not a real path. 49793 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49794 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49795 # a path prefixed by /cygdrive for fixpath to work. 49796 new_path="$CYGWIN_ROOT_PATH$input_path" 49797 fi 49798 fi 49799 49800 49801 if test "x$path" != "x$new_path"; then 49802 MSVC_DLL="$new_path" 49803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49804 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49805 fi 49806 49807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49808 49809 path="$MSVC_DLL" 49810 has_colon=`$ECHO $path | $GREP ^.:` 49811 new_path="$path" 49812 if test "x$has_colon" = x; then 49813 # Not in mixed or Windows style, start by that. 49814 new_path=`cmd //c echo $path` 49815 fi 49816 49817 49818 input_path="$new_path" 49819 # Check if we need to convert this using DOS-style short mode. If the path 49820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49821 # take no chances and rewrite it. 49822 # Note: m4 eats our [], so we need to use [ and ] instead. 49823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49824 if test "x$has_forbidden_chars" != x; then 49825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49826 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49827 fi 49828 49829 49830 windows_path="$new_path" 49831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49832 unix_path=`$CYGPATH -u "$windows_path"` 49833 new_path="$unix_path" 49834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49836 new_path="$unix_path" 49837 fi 49838 49839 if test "x$path" != "x$new_path"; then 49840 MSVC_DLL="$new_path" 49841 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49842 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49843 fi 49844 49845 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49846 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49847 49848 else 49849 # We're on a posix platform. Hooray! :) 49850 path="$MSVC_DLL" 49851 has_space=`$ECHO "$path" | $GREP " "` 49852 if test "x$has_space" != x; then 49853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49854 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49855 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49856 fi 49857 49858 # Use eval to expand a potential ~ 49859 eval path="$path" 49860 if test ! -f "$path" && test ! -d "$path"; then 49861 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49862 fi 49863 49864 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 49865 fi 49866 49867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49868 $as_echo_n "checking for $DLL_NAME... " >&6; } 49869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49870 $as_echo "$MSVC_DLL" >&6; } 49871 else 49872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49873 $as_echo "incorrect, ignoring" >&6; } 49874 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49875 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49876 fi 49877 fi 49878 49879 fi 49880 49881 if test "x$MSVC_DLL" = x; then 49882 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 49883 if test "x$VS100COMNTOOLS" != x; then 49884 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 49885 49886 windows_path="$CYGWIN_VS_TOOLS_DIR" 49887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49888 unix_path=`$CYGPATH -u "$windows_path"` 49889 CYGWIN_VS_TOOLS_DIR="$unix_path" 49890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49892 CYGWIN_VS_TOOLS_DIR="$unix_path" 49893 fi 49894 49895 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49896 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 49897 | $GREP -i /x64/ | $HEAD --lines 1` 49898 else 49899 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 49900 | $GREP -i /x86/ | $HEAD --lines 1` 49901 fi 49902 49903 DLL_NAME="$DLL_NAME" 49904 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49905 METHOD="search of VS100COMNTOOLS" 49906 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49907 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49908 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49909 49910 # Need to check if the found msvcr is correct architecture 49911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49912 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49913 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49915 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49916 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49917 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49918 CORRECT_MSVCR_ARCH="PE32 executable" 49919 else 49920 CORRECT_MSVCR_ARCH="PE32+ executable" 49921 fi 49922 else 49923 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49924 CORRECT_MSVCR_ARCH=386 49925 else 49926 CORRECT_MSVCR_ARCH=x86-64 49927 fi 49928 fi 49929 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49931 $as_echo "ok" >&6; } 49932 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49933 49934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49935 49936 # Input might be given as Windows format, start by converting to 49937 # unix format. 49938 path="$MSVC_DLL" 49939 new_path=`$CYGPATH -u "$path"` 49940 49941 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49942 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49943 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49944 # "foo.exe" is OK but "foo" is an error. 49945 # 49946 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49947 # It is also a way to make sure we got the proper file name for the real test later on. 49948 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49949 if test "x$test_shortpath" = x; then 49950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 49951 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 49952 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 49953 fi 49954 49955 # Call helper function which possibly converts this using DOS-style short mode. 49956 # If so, the updated path is stored in $new_path. 49957 49958 input_path="$new_path" 49959 # Check if we need to convert this using DOS-style short mode. If the path 49960 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49961 # take no chances and rewrite it. 49962 # Note: m4 eats our [], so we need to use [ and ] instead. 49963 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49964 if test "x$has_forbidden_chars" != x; then 49965 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49966 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49967 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49968 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49969 # Going to short mode and back again did indeed matter. Since short mode is 49970 # case insensitive, let's make it lowercase to improve readability. 49971 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49972 # Now convert it back to Unix-style (cygpath) 49973 input_path=`$CYGPATH -u "$shortmode_path"` 49974 new_path="$input_path" 49975 fi 49976 fi 49977 49978 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49979 if test "x$test_cygdrive_prefix" = x; then 49980 # As a simple fix, exclude /usr/bin since it's not a real path. 49981 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49982 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49983 # a path prefixed by /cygdrive for fixpath to work. 49984 new_path="$CYGWIN_ROOT_PATH$input_path" 49985 fi 49986 fi 49987 49988 49989 if test "x$path" != "x$new_path"; then 49990 MSVC_DLL="$new_path" 49991 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 49992 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 49993 fi 49994 49995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49996 49997 path="$MSVC_DLL" 49998 has_colon=`$ECHO $path | $GREP ^.:` 49999 new_path="$path" 50000 if test "x$has_colon" = x; then 50001 # Not in mixed or Windows style, start by that. 50002 new_path=`cmd //c echo $path` 50003 fi 50004 50005 50006 input_path="$new_path" 50007 # Check if we need to convert this using DOS-style short mode. If the path 50008 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50009 # take no chances and rewrite it. 50010 # Note: m4 eats our [], so we need to use [ and ] instead. 50011 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50012 if test "x$has_forbidden_chars" != x; then 50013 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50014 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50015 fi 50016 50017 50018 windows_path="$new_path" 50019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50020 unix_path=`$CYGPATH -u "$windows_path"` 50021 new_path="$unix_path" 50022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50024 new_path="$unix_path" 50025 fi 50026 50027 if test "x$path" != "x$new_path"; then 50028 MSVC_DLL="$new_path" 50029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50030 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50031 fi 50032 50033 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50034 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50035 50036 else 50037 # We're on a posix platform. Hooray! :) 50038 path="$MSVC_DLL" 50039 has_space=`$ECHO "$path" | $GREP " "` 50040 if test "x$has_space" != x; then 50041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50042 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50043 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50044 fi 50045 50046 # Use eval to expand a potential ~ 50047 eval path="$path" 50048 if test ! -f "$path" && test ! -d "$path"; then 50049 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50050 fi 50051 50052 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50053 fi 50054 50055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50056 $as_echo_n "checking for $DLL_NAME... " >&6; } 50057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50058 $as_echo "$MSVC_DLL" >&6; } 50059 else 50060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50061 $as_echo "incorrect, ignoring" >&6; } 50062 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50063 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50064 fi 50065 fi 50066 50067 fi 50068 fi 50069 50070 if test "x$MSVC_DLL" = x; then 50071 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50072 # (This was the original behaviour; kept since it might turn something up) 50073 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50074 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50075 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50076 | $GREP x64 | $HEAD --lines 1` 50077 else 50078 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50079 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50080 if test "x$POSSIBLE_MSVC_DLL" = x; then 50081 # We're grasping at straws now... 50082 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50083 | $HEAD --lines 1` 50084 fi 50085 fi 50086 50087 50088 DLL_NAME="$DLL_NAME" 50089 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50090 METHOD="search of VCINSTALLDIR" 50091 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50092 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50093 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50094 50095 # Need to check if the found msvcr is correct architecture 50096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50097 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50098 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50100 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50101 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50102 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50103 CORRECT_MSVCR_ARCH="PE32 executable" 50104 else 50105 CORRECT_MSVCR_ARCH="PE32+ executable" 50106 fi 50107 else 50108 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50109 CORRECT_MSVCR_ARCH=386 50110 else 50111 CORRECT_MSVCR_ARCH=x86-64 50112 fi 50113 fi 50114 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50116 $as_echo "ok" >&6; } 50117 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50118 50119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50120 50121 # Input might be given as Windows format, start by converting to 50122 # unix format. 50123 path="$MSVC_DLL" 50124 new_path=`$CYGPATH -u "$path"` 50125 50126 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50127 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50128 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50129 # "foo.exe" is OK but "foo" is an error. 50130 # 50131 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50132 # It is also a way to make sure we got the proper file name for the real test later on. 50133 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50134 if test "x$test_shortpath" = x; then 50135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50136 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50137 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50138 fi 50139 50140 # Call helper function which possibly converts this using DOS-style short mode. 50141 # If so, the updated path is stored in $new_path. 50142 50143 input_path="$new_path" 50144 # Check if we need to convert this using DOS-style short mode. If the path 50145 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50146 # take no chances and rewrite it. 50147 # Note: m4 eats our [], so we need to use [ and ] instead. 50148 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50149 if test "x$has_forbidden_chars" != x; then 50150 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50151 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50152 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50153 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50154 # Going to short mode and back again did indeed matter. Since short mode is 50155 # case insensitive, let's make it lowercase to improve readability. 50156 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50157 # Now convert it back to Unix-style (cygpath) 50158 input_path=`$CYGPATH -u "$shortmode_path"` 50159 new_path="$input_path" 50160 fi 50161 fi 50162 50163 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50164 if test "x$test_cygdrive_prefix" = x; then 50165 # As a simple fix, exclude /usr/bin since it's not a real path. 50166 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50167 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50168 # a path prefixed by /cygdrive for fixpath to work. 50169 new_path="$CYGWIN_ROOT_PATH$input_path" 50170 fi 50171 fi 50172 50173 50174 if test "x$path" != "x$new_path"; then 50175 MSVC_DLL="$new_path" 50176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50177 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50178 fi 50179 50180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50181 50182 path="$MSVC_DLL" 50183 has_colon=`$ECHO $path | $GREP ^.:` 50184 new_path="$path" 50185 if test "x$has_colon" = x; then 50186 # Not in mixed or Windows style, start by that. 50187 new_path=`cmd //c echo $path` 50188 fi 50189 50190 50191 input_path="$new_path" 50192 # Check if we need to convert this using DOS-style short mode. If the path 50193 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50194 # take no chances and rewrite it. 50195 # Note: m4 eats our [], so we need to use [ and ] instead. 50196 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50197 if test "x$has_forbidden_chars" != x; then 50198 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50199 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50200 fi 50201 50202 50203 windows_path="$new_path" 50204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50205 unix_path=`$CYGPATH -u "$windows_path"` 50206 new_path="$unix_path" 50207 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50208 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50209 new_path="$unix_path" 50210 fi 50211 50212 if test "x$path" != "x$new_path"; then 50213 MSVC_DLL="$new_path" 50214 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50215 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50216 fi 50217 50218 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50219 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50220 50221 else 50222 # We're on a posix platform. Hooray! :) 50223 path="$MSVC_DLL" 50224 has_space=`$ECHO "$path" | $GREP " "` 50225 if test "x$has_space" != x; then 50226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50227 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50228 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50229 fi 50230 50231 # Use eval to expand a potential ~ 50232 eval path="$path" 50233 if test ! -f "$path" && test ! -d "$path"; then 50234 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50235 fi 50236 50237 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50238 fi 50239 50240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50241 $as_echo_n "checking for $DLL_NAME... " >&6; } 50242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50243 $as_echo "$MSVC_DLL" >&6; } 50244 else 50245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50246 $as_echo "incorrect, ignoring" >&6; } 50247 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50248 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50249 fi 50250 fi 50251 50252 fi 50253 fi 50254 50255 if test "x$MSVC_DLL" = x; then 50256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50257 $as_echo_n "checking for $DLL_NAME... " >&6; } 50258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50259 $as_echo "no" >&6; } 50260 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50261 fi 50262 50263 MSVCR_DLL="$MSVC_DLL" 50264 fi 50265 50266 50267 50268 # Check whether --with-msvcp-dll was given. 50269 if test "${with_msvcp_dll+set}" = set; then : 50270 withval=$with_msvcp_dll; 50271 fi 50272 50273 50274 if test "x$MSVCP_NAME" != "x"; then 50275 if test "x$with_msvcp_dll" != x; then 50276 # If given explicitely by user, do not probe. If not present, fail directly. 50277 50278 DLL_NAME="$MSVCP_NAME" 50279 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 50280 METHOD="--with-msvcp-dll" 50281 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50282 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50283 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50284 50285 # Need to check if the found msvcr is correct architecture 50286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50287 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50288 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50290 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50291 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50292 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50293 CORRECT_MSVCR_ARCH="PE32 executable" 50294 else 50295 CORRECT_MSVCR_ARCH="PE32+ executable" 50296 fi 50297 else 50298 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50299 CORRECT_MSVCR_ARCH=386 50300 else 50301 CORRECT_MSVCR_ARCH=x86-64 50302 fi 50303 fi 50304 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50306 $as_echo "ok" >&6; } 50307 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50308 50309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50310 50311 # Input might be given as Windows format, start by converting to 50312 # unix format. 50313 path="$MSVC_DLL" 50314 new_path=`$CYGPATH -u "$path"` 50315 50316 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50317 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50318 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50319 # "foo.exe" is OK but "foo" is an error. 50320 # 50321 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50322 # It is also a way to make sure we got the proper file name for the real test later on. 50323 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50324 if test "x$test_shortpath" = x; then 50325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50326 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50327 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50328 fi 50329 50330 # Call helper function which possibly converts this using DOS-style short mode. 50331 # If so, the updated path is stored in $new_path. 50332 50333 input_path="$new_path" 50334 # Check if we need to convert this using DOS-style short mode. If the path 50335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50336 # take no chances and rewrite it. 50337 # Note: m4 eats our [], so we need to use [ and ] instead. 50338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50339 if test "x$has_forbidden_chars" != x; then 50340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50341 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50342 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50343 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50344 # Going to short mode and back again did indeed matter. Since short mode is 50345 # case insensitive, let's make it lowercase to improve readability. 50346 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50347 # Now convert it back to Unix-style (cygpath) 50348 input_path=`$CYGPATH -u "$shortmode_path"` 50349 new_path="$input_path" 50350 fi 50351 fi 50352 50353 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50354 if test "x$test_cygdrive_prefix" = x; then 50355 # As a simple fix, exclude /usr/bin since it's not a real path. 50356 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50357 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50358 # a path prefixed by /cygdrive for fixpath to work. 50359 new_path="$CYGWIN_ROOT_PATH$input_path" 50360 fi 50361 fi 50362 50363 50364 if test "x$path" != "x$new_path"; then 50365 MSVC_DLL="$new_path" 50366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50367 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50368 fi 50369 50370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50371 50372 path="$MSVC_DLL" 50373 has_colon=`$ECHO $path | $GREP ^.:` 50374 new_path="$path" 50375 if test "x$has_colon" = x; then 50376 # Not in mixed or Windows style, start by that. 50377 new_path=`cmd //c echo $path` 50378 fi 50379 50380 50381 input_path="$new_path" 50382 # Check if we need to convert this using DOS-style short mode. If the path 50383 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50384 # take no chances and rewrite it. 50385 # Note: m4 eats our [], so we need to use [ and ] instead. 50386 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50387 if test "x$has_forbidden_chars" != x; then 50388 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50389 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50390 fi 50391 50392 50393 windows_path="$new_path" 50394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50395 unix_path=`$CYGPATH -u "$windows_path"` 50396 new_path="$unix_path" 50397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50399 new_path="$unix_path" 50400 fi 50401 50402 if test "x$path" != "x$new_path"; then 50403 MSVC_DLL="$new_path" 50404 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50405 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50406 fi 50407 50408 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50409 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50410 50411 else 50412 # We're on a posix platform. Hooray! :) 50413 path="$MSVC_DLL" 50414 has_space=`$ECHO "$path" | $GREP " "` 50415 if test "x$has_space" != x; then 50416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50417 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50418 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50419 fi 50420 50421 # Use eval to expand a potential ~ 50422 eval path="$path" 50423 if test ! -f "$path" && test ! -d "$path"; then 50424 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50425 fi 50426 50427 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50428 fi 50429 50430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50431 $as_echo_n "checking for $DLL_NAME... " >&6; } 50432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50433 $as_echo "$MSVC_DLL" >&6; } 50434 else 50435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50436 $as_echo "incorrect, ignoring" >&6; } 50437 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50438 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50439 fi 50440 fi 50441 50442 if test "x$MSVC_DLL" = x; then 50443 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 50444 fi 50445 MSVCP_DLL="$MSVC_DLL" 50446 elif test "x$DEVKIT_MSVCP_DLL" != x; then 50447 50448 DLL_NAME="$MSVCP_NAME" 50449 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 50450 METHOD="devkit" 50451 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50452 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50453 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50454 50455 # Need to check if the found msvcr is correct architecture 50456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50457 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50458 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50460 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50461 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50462 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50463 CORRECT_MSVCR_ARCH="PE32 executable" 50464 else 50465 CORRECT_MSVCR_ARCH="PE32+ executable" 50466 fi 50467 else 50468 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50469 CORRECT_MSVCR_ARCH=386 50470 else 50471 CORRECT_MSVCR_ARCH=x86-64 50472 fi 50473 fi 50474 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50476 $as_echo "ok" >&6; } 50477 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50478 50479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50480 50481 # Input might be given as Windows format, start by converting to 50482 # unix format. 50483 path="$MSVC_DLL" 50484 new_path=`$CYGPATH -u "$path"` 50485 50486 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50487 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50488 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50489 # "foo.exe" is OK but "foo" is an error. 50490 # 50491 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50492 # It is also a way to make sure we got the proper file name for the real test later on. 50493 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50494 if test "x$test_shortpath" = x; then 50495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50496 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50497 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50498 fi 50499 50500 # Call helper function which possibly converts this using DOS-style short mode. 50501 # If so, the updated path is stored in $new_path. 50502 50503 input_path="$new_path" 50504 # Check if we need to convert this using DOS-style short mode. If the path 50505 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50506 # take no chances and rewrite it. 50507 # Note: m4 eats our [], so we need to use [ and ] instead. 50508 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50509 if test "x$has_forbidden_chars" != x; then 50510 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50511 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50512 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50513 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50514 # Going to short mode and back again did indeed matter. Since short mode is 50515 # case insensitive, let's make it lowercase to improve readability. 50516 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50517 # Now convert it back to Unix-style (cygpath) 50518 input_path=`$CYGPATH -u "$shortmode_path"` 50519 new_path="$input_path" 50520 fi 50521 fi 50522 50523 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50524 if test "x$test_cygdrive_prefix" = x; then 50525 # As a simple fix, exclude /usr/bin since it's not a real path. 50526 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50527 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50528 # a path prefixed by /cygdrive for fixpath to work. 50529 new_path="$CYGWIN_ROOT_PATH$input_path" 50530 fi 50531 fi 50532 50533 50534 if test "x$path" != "x$new_path"; then 50535 MSVC_DLL="$new_path" 50536 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50537 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50538 fi 50539 50540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50541 50542 path="$MSVC_DLL" 50543 has_colon=`$ECHO $path | $GREP ^.:` 50544 new_path="$path" 50545 if test "x$has_colon" = x; then 50546 # Not in mixed or Windows style, start by that. 50547 new_path=`cmd //c echo $path` 50548 fi 50549 50550 50551 input_path="$new_path" 50552 # Check if we need to convert this using DOS-style short mode. If the path 50553 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50554 # take no chances and rewrite it. 50555 # Note: m4 eats our [], so we need to use [ and ] instead. 50556 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50557 if test "x$has_forbidden_chars" != x; then 50558 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50559 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50560 fi 50561 50562 50563 windows_path="$new_path" 50564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50565 unix_path=`$CYGPATH -u "$windows_path"` 50566 new_path="$unix_path" 50567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50568 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50569 new_path="$unix_path" 50570 fi 50571 50572 if test "x$path" != "x$new_path"; then 50573 MSVC_DLL="$new_path" 50574 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50575 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50576 fi 50577 50578 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50579 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50580 50581 else 50582 # We're on a posix platform. Hooray! :) 50583 path="$MSVC_DLL" 50584 has_space=`$ECHO "$path" | $GREP " "` 50585 if test "x$has_space" != x; then 50586 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50587 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50588 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50589 fi 50590 50591 # Use eval to expand a potential ~ 50592 eval path="$path" 50593 if test ! -f "$path" && test ! -d "$path"; then 50594 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50595 fi 50596 50597 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50598 fi 50599 50600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50601 $as_echo_n "checking for $DLL_NAME... " >&6; } 50602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50603 $as_echo "$MSVC_DLL" >&6; } 50604 else 50605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50606 $as_echo "incorrect, ignoring" >&6; } 50607 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50608 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50609 fi 50610 fi 50611 50612 if test "x$MSVC_DLL" = x; then 50613 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 50614 fi 50615 MSVCP_DLL="$MSVC_DLL" 50616 else 50617 50618 DLL_NAME="${MSVCP_NAME}" 50619 MSVC_DLL= 50620 50621 if test "x$MSVC_DLL" = x; then 50622 if test "x$VCINSTALLDIR" != x; then 50623 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 50624 50625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50626 50627 # Input might be given as Windows format, start by converting to 50628 # unix format. 50629 path="$CYGWIN_VC_INSTALL_DIR" 50630 new_path=`$CYGPATH -u "$path"` 50631 50632 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50633 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50634 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50635 # "foo.exe" is OK but "foo" is an error. 50636 # 50637 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50638 # It is also a way to make sure we got the proper file name for the real test later on. 50639 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50640 if test "x$test_shortpath" = x; then 50641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 50642 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 50643 as_fn_error $? "Cannot locate the the path of CYGWIN_VC_INSTALL_DIR" "$LINENO" 5 50644 fi 50645 50646 # Call helper function which possibly converts this using DOS-style short mode. 50647 # If so, the updated path is stored in $new_path. 50648 50649 input_path="$new_path" 50650 # Check if we need to convert this using DOS-style short mode. If the path 50651 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50652 # take no chances and rewrite it. 50653 # Note: m4 eats our [], so we need to use [ and ] instead. 50654 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50655 if test "x$has_forbidden_chars" != x; then 50656 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50657 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50658 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50659 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50660 # Going to short mode and back again did indeed matter. Since short mode is 50661 # case insensitive, let's make it lowercase to improve readability. 50662 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50663 # Now convert it back to Unix-style (cygpath) 50664 input_path=`$CYGPATH -u "$shortmode_path"` 50665 new_path="$input_path" 50666 fi 50667 fi 50668 50669 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50670 if test "x$test_cygdrive_prefix" = x; then 50671 # As a simple fix, exclude /usr/bin since it's not a real path. 50672 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50673 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50674 # a path prefixed by /cygdrive for fixpath to work. 50675 new_path="$CYGWIN_ROOT_PATH$input_path" 50676 fi 50677 fi 50678 50679 50680 if test "x$path" != "x$new_path"; then 50681 CYGWIN_VC_INSTALL_DIR="$new_path" 50682 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 50683 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 50684 fi 50685 50686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50687 50688 path="$CYGWIN_VC_INSTALL_DIR" 50689 has_colon=`$ECHO $path | $GREP ^.:` 50690 new_path="$path" 50691 if test "x$has_colon" = x; then 50692 # Not in mixed or Windows style, start by that. 50693 new_path=`cmd //c echo $path` 50694 fi 50695 50696 50697 input_path="$new_path" 50698 # Check if we need to convert this using DOS-style short mode. If the path 50699 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50700 # take no chances and rewrite it. 50701 # Note: m4 eats our [], so we need to use [ and ] instead. 50702 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50703 if test "x$has_forbidden_chars" != x; then 50704 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50705 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50706 fi 50707 50708 50709 windows_path="$new_path" 50710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50711 unix_path=`$CYGPATH -u "$windows_path"` 50712 new_path="$unix_path" 50713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50714 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50715 new_path="$unix_path" 50716 fi 50717 50718 if test "x$path" != "x$new_path"; then 50719 CYGWIN_VC_INSTALL_DIR="$new_path" 50720 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&5 50721 $as_echo "$as_me: Rewriting CYGWIN_VC_INSTALL_DIR to \"$new_path\"" >&6;} 50722 fi 50723 50724 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50725 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50726 50727 else 50728 # We're on a posix platform. Hooray! :) 50729 path="$CYGWIN_VC_INSTALL_DIR" 50730 has_space=`$ECHO "$path" | $GREP " "` 50731 if test "x$has_space" != x; then 50732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&5 50733 $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is invalid." >&6;} 50734 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50735 fi 50736 50737 # Use eval to expand a potential ~ 50738 eval path="$path" 50739 if test ! -f "$path" && test ! -d "$path"; then 50740 as_fn_error $? "The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 50741 fi 50742 50743 CYGWIN_VC_INSTALL_DIR="`cd "$path"; $THEPWDCMD -L`" 50744 fi 50745 50746 if test "$VS_VERSION" -lt 2017; then 50747 # Probe: Using well-known location from Visual Studio 12.0 and older 50748 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50749 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50750 else 50751 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50752 fi 50753 else 50754 # Probe: Using well-known location from VS 2017 50755 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50756 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 50757 else 50758 POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`" 50759 fi 50760 fi 50761 # In case any of the above finds more than one file, loop over them. 50762 for possible_msvc_dll in $POSSIBLE_MSVC_DLL; do 50763 $ECHO "POSSIBLE_MSVC_DLL $possible_msvc_dll" 50764 50765 DLL_NAME="$DLL_NAME" 50766 POSSIBLE_MSVC_DLL="$possible_msvc_dll" 50767 METHOD="well-known location in VCINSTALLDIR" 50768 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50769 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50770 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50771 50772 # Need to check if the found msvcr is correct architecture 50773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50774 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50775 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50777 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50778 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50779 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50780 CORRECT_MSVCR_ARCH="PE32 executable" 50781 else 50782 CORRECT_MSVCR_ARCH="PE32+ executable" 50783 fi 50784 else 50785 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50786 CORRECT_MSVCR_ARCH=386 50787 else 50788 CORRECT_MSVCR_ARCH=x86-64 50789 fi 50790 fi 50791 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50793 $as_echo "ok" >&6; } 50794 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50795 50796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50797 50798 # Input might be given as Windows format, start by converting to 50799 # unix format. 50800 path="$MSVC_DLL" 50801 new_path=`$CYGPATH -u "$path"` 50802 50803 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50804 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50805 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50806 # "foo.exe" is OK but "foo" is an error. 50807 # 50808 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50809 # It is also a way to make sure we got the proper file name for the real test later on. 50810 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50811 if test "x$test_shortpath" = x; then 50812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50813 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50814 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50815 fi 50816 50817 # Call helper function which possibly converts this using DOS-style short mode. 50818 # If so, the updated path is stored in $new_path. 50819 50820 input_path="$new_path" 50821 # Check if we need to convert this using DOS-style short mode. If the path 50822 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50823 # take no chances and rewrite it. 50824 # Note: m4 eats our [], so we need to use [ and ] instead. 50825 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50826 if test "x$has_forbidden_chars" != x; then 50827 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50828 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50829 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50830 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50831 # Going to short mode and back again did indeed matter. Since short mode is 50832 # case insensitive, let's make it lowercase to improve readability. 50833 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50834 # Now convert it back to Unix-style (cygpath) 50835 input_path=`$CYGPATH -u "$shortmode_path"` 50836 new_path="$input_path" 50837 fi 50838 fi 50839 50840 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50841 if test "x$test_cygdrive_prefix" = x; then 50842 # As a simple fix, exclude /usr/bin since it's not a real path. 50843 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50844 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50845 # a path prefixed by /cygdrive for fixpath to work. 50846 new_path="$CYGWIN_ROOT_PATH$input_path" 50847 fi 50848 fi 50849 50850 50851 if test "x$path" != "x$new_path"; then 50852 MSVC_DLL="$new_path" 50853 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50854 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50855 fi 50856 50857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50858 50859 path="$MSVC_DLL" 50860 has_colon=`$ECHO $path | $GREP ^.:` 50861 new_path="$path" 50862 if test "x$has_colon" = x; then 50863 # Not in mixed or Windows style, start by that. 50864 new_path=`cmd //c echo $path` 50865 fi 50866 50867 50868 input_path="$new_path" 50869 # Check if we need to convert this using DOS-style short mode. If the path 50870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50871 # take no chances and rewrite it. 50872 # Note: m4 eats our [], so we need to use [ and ] instead. 50873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50874 if test "x$has_forbidden_chars" != x; then 50875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50876 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50877 fi 50878 50879 50880 windows_path="$new_path" 50881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50882 unix_path=`$CYGPATH -u "$windows_path"` 50883 new_path="$unix_path" 50884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50886 new_path="$unix_path" 50887 fi 50888 50889 if test "x$path" != "x$new_path"; then 50890 MSVC_DLL="$new_path" 50891 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 50892 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 50893 fi 50894 50895 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50896 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50897 50898 else 50899 # We're on a posix platform. Hooray! :) 50900 path="$MSVC_DLL" 50901 has_space=`$ECHO "$path" | $GREP " "` 50902 if test "x$has_space" != x; then 50903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50904 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50905 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50906 fi 50907 50908 # Use eval to expand a potential ~ 50909 eval path="$path" 50910 if test ! -f "$path" && test ! -d "$path"; then 50911 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50912 fi 50913 50914 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 50915 fi 50916 50917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50918 $as_echo_n "checking for $DLL_NAME... " >&6; } 50919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50920 $as_echo "$MSVC_DLL" >&6; } 50921 else 50922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50923 $as_echo "incorrect, ignoring" >&6; } 50924 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50925 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50926 fi 50927 fi 50928 50929 done 50930 fi 50931 fi 50932 50933 if test "x$MSVC_DLL" = x; then 50934 # Probe: Check in the Boot JDK directory. 50935 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50936 50937 DLL_NAME="$DLL_NAME" 50938 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50939 METHOD="well-known location in Boot JDK" 50940 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50942 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50943 50944 # Need to check if the found msvcr is correct architecture 50945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50946 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50947 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50949 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50950 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50951 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50952 CORRECT_MSVCR_ARCH="PE32 executable" 50953 else 50954 CORRECT_MSVCR_ARCH="PE32+ executable" 50955 fi 50956 else 50957 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50958 CORRECT_MSVCR_ARCH=386 50959 else 50960 CORRECT_MSVCR_ARCH=x86-64 50961 fi 50962 fi 50963 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50965 $as_echo "ok" >&6; } 50966 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50967 50968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50969 50970 # Input might be given as Windows format, start by converting to 50971 # unix format. 50972 path="$MSVC_DLL" 50973 new_path=`$CYGPATH -u "$path"` 50974 50975 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50976 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50977 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50978 # "foo.exe" is OK but "foo" is an error. 50979 # 50980 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50981 # It is also a way to make sure we got the proper file name for the real test later on. 50982 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50983 if test "x$test_shortpath" = x; then 50984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 50985 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 50986 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 50987 fi 50988 50989 # Call helper function which possibly converts this using DOS-style short mode. 50990 # If so, the updated path is stored in $new_path. 50991 50992 input_path="$new_path" 50993 # Check if we need to convert this using DOS-style short mode. If the path 50994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50995 # take no chances and rewrite it. 50996 # Note: m4 eats our [], so we need to use [ and ] instead. 50997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50998 if test "x$has_forbidden_chars" != x; then 50999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51000 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51001 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51002 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51003 # Going to short mode and back again did indeed matter. Since short mode is 51004 # case insensitive, let's make it lowercase to improve readability. 51005 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51006 # Now convert it back to Unix-style (cygpath) 51007 input_path=`$CYGPATH -u "$shortmode_path"` 51008 new_path="$input_path" 51009 fi 51010 fi 51011 51012 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51013 if test "x$test_cygdrive_prefix" = x; then 51014 # As a simple fix, exclude /usr/bin since it's not a real path. 51015 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51016 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51017 # a path prefixed by /cygdrive for fixpath to work. 51018 new_path="$CYGWIN_ROOT_PATH$input_path" 51019 fi 51020 fi 51021 51022 51023 if test "x$path" != "x$new_path"; then 51024 MSVC_DLL="$new_path" 51025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51026 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51027 fi 51028 51029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51030 51031 path="$MSVC_DLL" 51032 has_colon=`$ECHO $path | $GREP ^.:` 51033 new_path="$path" 51034 if test "x$has_colon" = x; then 51035 # Not in mixed or Windows style, start by that. 51036 new_path=`cmd //c echo $path` 51037 fi 51038 51039 51040 input_path="$new_path" 51041 # Check if we need to convert this using DOS-style short mode. If the path 51042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51043 # take no chances and rewrite it. 51044 # Note: m4 eats our [], so we need to use [ and ] instead. 51045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51046 if test "x$has_forbidden_chars" != x; then 51047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51048 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51049 fi 51050 51051 51052 windows_path="$new_path" 51053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51054 unix_path=`$CYGPATH -u "$windows_path"` 51055 new_path="$unix_path" 51056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51057 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51058 new_path="$unix_path" 51059 fi 51060 51061 if test "x$path" != "x$new_path"; then 51062 MSVC_DLL="$new_path" 51063 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51064 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51065 fi 51066 51067 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51068 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51069 51070 else 51071 # We're on a posix platform. Hooray! :) 51072 path="$MSVC_DLL" 51073 has_space=`$ECHO "$path" | $GREP " "` 51074 if test "x$has_space" != x; then 51075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51076 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51077 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51078 fi 51079 51080 # Use eval to expand a potential ~ 51081 eval path="$path" 51082 if test ! -f "$path" && test ! -d "$path"; then 51083 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51084 fi 51085 51086 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51087 fi 51088 51089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51090 $as_echo_n "checking for $DLL_NAME... " >&6; } 51091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51092 $as_echo "$MSVC_DLL" >&6; } 51093 else 51094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51095 $as_echo "incorrect, ignoring" >&6; } 51096 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51097 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51098 fi 51099 fi 51100 51101 fi 51102 51103 if test "x$MSVC_DLL" = x; then 51104 # Probe: Look in the Windows system32 directory 51105 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 51106 51107 windows_path="$CYGWIN_SYSTEMROOT" 51108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51109 unix_path=`$CYGPATH -u "$windows_path"` 51110 CYGWIN_SYSTEMROOT="$unix_path" 51111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51112 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51113 CYGWIN_SYSTEMROOT="$unix_path" 51114 fi 51115 51116 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 51117 51118 DLL_NAME="$DLL_NAME" 51119 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51120 METHOD="well-known location in SYSTEMROOT" 51121 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51122 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51123 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51124 51125 # Need to check if the found msvcr is correct architecture 51126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51127 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51128 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51130 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51131 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51132 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51133 CORRECT_MSVCR_ARCH="PE32 executable" 51134 else 51135 CORRECT_MSVCR_ARCH="PE32+ executable" 51136 fi 51137 else 51138 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51139 CORRECT_MSVCR_ARCH=386 51140 else 51141 CORRECT_MSVCR_ARCH=x86-64 51142 fi 51143 fi 51144 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51146 $as_echo "ok" >&6; } 51147 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51148 51149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51150 51151 # Input might be given as Windows format, start by converting to 51152 # unix format. 51153 path="$MSVC_DLL" 51154 new_path=`$CYGPATH -u "$path"` 51155 51156 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51157 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51158 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51159 # "foo.exe" is OK but "foo" is an error. 51160 # 51161 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51162 # It is also a way to make sure we got the proper file name for the real test later on. 51163 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51164 if test "x$test_shortpath" = x; then 51165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51166 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51167 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51168 fi 51169 51170 # Call helper function which possibly converts this using DOS-style short mode. 51171 # If so, the updated path is stored in $new_path. 51172 51173 input_path="$new_path" 51174 # Check if we need to convert this using DOS-style short mode. If the path 51175 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51176 # take no chances and rewrite it. 51177 # Note: m4 eats our [], so we need to use [ and ] instead. 51178 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51179 if test "x$has_forbidden_chars" != x; then 51180 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51181 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51182 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51183 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51184 # Going to short mode and back again did indeed matter. Since short mode is 51185 # case insensitive, let's make it lowercase to improve readability. 51186 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51187 # Now convert it back to Unix-style (cygpath) 51188 input_path=`$CYGPATH -u "$shortmode_path"` 51189 new_path="$input_path" 51190 fi 51191 fi 51192 51193 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51194 if test "x$test_cygdrive_prefix" = x; then 51195 # As a simple fix, exclude /usr/bin since it's not a real path. 51196 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51197 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51198 # a path prefixed by /cygdrive for fixpath to work. 51199 new_path="$CYGWIN_ROOT_PATH$input_path" 51200 fi 51201 fi 51202 51203 51204 if test "x$path" != "x$new_path"; then 51205 MSVC_DLL="$new_path" 51206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51207 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51208 fi 51209 51210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51211 51212 path="$MSVC_DLL" 51213 has_colon=`$ECHO $path | $GREP ^.:` 51214 new_path="$path" 51215 if test "x$has_colon" = x; then 51216 # Not in mixed or Windows style, start by that. 51217 new_path=`cmd //c echo $path` 51218 fi 51219 51220 51221 input_path="$new_path" 51222 # Check if we need to convert this using DOS-style short mode. If the path 51223 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51224 # take no chances and rewrite it. 51225 # Note: m4 eats our [], so we need to use [ and ] instead. 51226 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51227 if test "x$has_forbidden_chars" != x; then 51228 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51229 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51230 fi 51231 51232 51233 windows_path="$new_path" 51234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51235 unix_path=`$CYGPATH -u "$windows_path"` 51236 new_path="$unix_path" 51237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51239 new_path="$unix_path" 51240 fi 51241 51242 if test "x$path" != "x$new_path"; then 51243 MSVC_DLL="$new_path" 51244 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51245 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51246 fi 51247 51248 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51249 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51250 51251 else 51252 # We're on a posix platform. Hooray! :) 51253 path="$MSVC_DLL" 51254 has_space=`$ECHO "$path" | $GREP " "` 51255 if test "x$has_space" != x; then 51256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51257 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51258 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51259 fi 51260 51261 # Use eval to expand a potential ~ 51262 eval path="$path" 51263 if test ! -f "$path" && test ! -d "$path"; then 51264 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51265 fi 51266 51267 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51268 fi 51269 51270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51271 $as_echo_n "checking for $DLL_NAME... " >&6; } 51272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51273 $as_echo "$MSVC_DLL" >&6; } 51274 else 51275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51276 $as_echo "incorrect, ignoring" >&6; } 51277 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51278 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51279 fi 51280 fi 51281 51282 fi 51283 51284 if test "x$MSVC_DLL" = x; then 51285 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 51286 if test "x$VS100COMNTOOLS" != x; then 51287 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 51288 51289 windows_path="$CYGWIN_VS_TOOLS_DIR" 51290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51291 unix_path=`$CYGPATH -u "$windows_path"` 51292 CYGWIN_VS_TOOLS_DIR="$unix_path" 51293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51294 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51295 CYGWIN_VS_TOOLS_DIR="$unix_path" 51296 fi 51297 51298 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51299 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 51300 | $GREP -i /x64/ | $HEAD --lines 1` 51301 else 51302 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 51303 | $GREP -i /x86/ | $HEAD --lines 1` 51304 fi 51305 51306 DLL_NAME="$DLL_NAME" 51307 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51308 METHOD="search of VS100COMNTOOLS" 51309 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51310 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51311 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51312 51313 # Need to check if the found msvcr is correct architecture 51314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51315 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51316 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51318 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51319 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51320 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51321 CORRECT_MSVCR_ARCH="PE32 executable" 51322 else 51323 CORRECT_MSVCR_ARCH="PE32+ executable" 51324 fi 51325 else 51326 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51327 CORRECT_MSVCR_ARCH=386 51328 else 51329 CORRECT_MSVCR_ARCH=x86-64 51330 fi 51331 fi 51332 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51334 $as_echo "ok" >&6; } 51335 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51336 51337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51338 51339 # Input might be given as Windows format, start by converting to 51340 # unix format. 51341 path="$MSVC_DLL" 51342 new_path=`$CYGPATH -u "$path"` 51343 51344 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51345 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51346 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51347 # "foo.exe" is OK but "foo" is an error. 51348 # 51349 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51350 # It is also a way to make sure we got the proper file name for the real test later on. 51351 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51352 if test "x$test_shortpath" = x; then 51353 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51354 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51355 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51356 fi 51357 51358 # Call helper function which possibly converts this using DOS-style short mode. 51359 # If so, the updated path is stored in $new_path. 51360 51361 input_path="$new_path" 51362 # Check if we need to convert this using DOS-style short mode. If the path 51363 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51364 # take no chances and rewrite it. 51365 # Note: m4 eats our [], so we need to use [ and ] instead. 51366 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51367 if test "x$has_forbidden_chars" != x; then 51368 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51369 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51370 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51371 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51372 # Going to short mode and back again did indeed matter. Since short mode is 51373 # case insensitive, let's make it lowercase to improve readability. 51374 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51375 # Now convert it back to Unix-style (cygpath) 51376 input_path=`$CYGPATH -u "$shortmode_path"` 51377 new_path="$input_path" 51378 fi 51379 fi 51380 51381 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51382 if test "x$test_cygdrive_prefix" = x; then 51383 # As a simple fix, exclude /usr/bin since it's not a real path. 51384 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51385 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51386 # a path prefixed by /cygdrive for fixpath to work. 51387 new_path="$CYGWIN_ROOT_PATH$input_path" 51388 fi 51389 fi 51390 51391 51392 if test "x$path" != "x$new_path"; then 51393 MSVC_DLL="$new_path" 51394 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51395 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51396 fi 51397 51398 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51399 51400 path="$MSVC_DLL" 51401 has_colon=`$ECHO $path | $GREP ^.:` 51402 new_path="$path" 51403 if test "x$has_colon" = x; then 51404 # Not in mixed or Windows style, start by that. 51405 new_path=`cmd //c echo $path` 51406 fi 51407 51408 51409 input_path="$new_path" 51410 # Check if we need to convert this using DOS-style short mode. If the path 51411 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51412 # take no chances and rewrite it. 51413 # Note: m4 eats our [], so we need to use [ and ] instead. 51414 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51415 if test "x$has_forbidden_chars" != x; then 51416 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51417 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51418 fi 51419 51420 51421 windows_path="$new_path" 51422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51423 unix_path=`$CYGPATH -u "$windows_path"` 51424 new_path="$unix_path" 51425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51426 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51427 new_path="$unix_path" 51428 fi 51429 51430 if test "x$path" != "x$new_path"; then 51431 MSVC_DLL="$new_path" 51432 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51433 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51434 fi 51435 51436 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51437 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51438 51439 else 51440 # We're on a posix platform. Hooray! :) 51441 path="$MSVC_DLL" 51442 has_space=`$ECHO "$path" | $GREP " "` 51443 if test "x$has_space" != x; then 51444 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51445 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51446 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51447 fi 51448 51449 # Use eval to expand a potential ~ 51450 eval path="$path" 51451 if test ! -f "$path" && test ! -d "$path"; then 51452 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51453 fi 51454 51455 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51456 fi 51457 51458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51459 $as_echo_n "checking for $DLL_NAME... " >&6; } 51460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51461 $as_echo "$MSVC_DLL" >&6; } 51462 else 51463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51464 $as_echo "incorrect, ignoring" >&6; } 51465 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51466 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51467 fi 51468 fi 51469 51470 fi 51471 fi 51472 51473 if test "x$MSVC_DLL" = x; then 51474 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 51475 # (This was the original behaviour; kept since it might turn something up) 51476 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 51477 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51478 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51479 | $GREP x64 | $HEAD --lines 1` 51480 else 51481 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51482 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 51483 if test "x$POSSIBLE_MSVC_DLL" = x; then 51484 # We're grasping at straws now... 51485 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 51486 | $HEAD --lines 1` 51487 fi 51488 fi 51489 51490 51491 DLL_NAME="$DLL_NAME" 51492 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 51493 METHOD="search of VCINSTALLDIR" 51494 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 51495 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 51496 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 51497 51498 # Need to check if the found msvcr is correct architecture 51499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 51500 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 51501 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 51502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51503 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 51504 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 51505 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51506 CORRECT_MSVCR_ARCH="PE32 executable" 51507 else 51508 CORRECT_MSVCR_ARCH="PE32+ executable" 51509 fi 51510 else 51511 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 51512 CORRECT_MSVCR_ARCH=386 51513 else 51514 CORRECT_MSVCR_ARCH=x86-64 51515 fi 51516 fi 51517 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 51518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 51519 $as_echo "ok" >&6; } 51520 MSVC_DLL="$POSSIBLE_MSVC_DLL" 51521 51522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51523 51524 # Input might be given as Windows format, start by converting to 51525 # unix format. 51526 path="$MSVC_DLL" 51527 new_path=`$CYGPATH -u "$path"` 51528 51529 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51530 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51531 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51532 # "foo.exe" is OK but "foo" is an error. 51533 # 51534 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51535 # It is also a way to make sure we got the proper file name for the real test later on. 51536 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51537 if test "x$test_shortpath" = x; then 51538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51539 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51540 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 51541 fi 51542 51543 # Call helper function which possibly converts this using DOS-style short mode. 51544 # If so, the updated path is stored in $new_path. 51545 51546 input_path="$new_path" 51547 # Check if we need to convert this using DOS-style short mode. If the path 51548 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51549 # take no chances and rewrite it. 51550 # Note: m4 eats our [], so we need to use [ and ] instead. 51551 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51552 if test "x$has_forbidden_chars" != x; then 51553 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51554 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51555 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51556 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51557 # Going to short mode and back again did indeed matter. Since short mode is 51558 # case insensitive, let's make it lowercase to improve readability. 51559 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51560 # Now convert it back to Unix-style (cygpath) 51561 input_path=`$CYGPATH -u "$shortmode_path"` 51562 new_path="$input_path" 51563 fi 51564 fi 51565 51566 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51567 if test "x$test_cygdrive_prefix" = x; then 51568 # As a simple fix, exclude /usr/bin since it's not a real path. 51569 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51570 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51571 # a path prefixed by /cygdrive for fixpath to work. 51572 new_path="$CYGWIN_ROOT_PATH$input_path" 51573 fi 51574 fi 51575 51576 51577 if test "x$path" != "x$new_path"; then 51578 MSVC_DLL="$new_path" 51579 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51580 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51581 fi 51582 51583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51584 51585 path="$MSVC_DLL" 51586 has_colon=`$ECHO $path | $GREP ^.:` 51587 new_path="$path" 51588 if test "x$has_colon" = x; then 51589 # Not in mixed or Windows style, start by that. 51590 new_path=`cmd //c echo $path` 51591 fi 51592 51593 51594 input_path="$new_path" 51595 # Check if we need to convert this using DOS-style short mode. If the path 51596 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51597 # take no chances and rewrite it. 51598 # Note: m4 eats our [], so we need to use [ and ] instead. 51599 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51600 if test "x$has_forbidden_chars" != x; then 51601 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51602 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51603 fi 51604 51605 51606 windows_path="$new_path" 51607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51608 unix_path=`$CYGPATH -u "$windows_path"` 51609 new_path="$unix_path" 51610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51611 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51612 new_path="$unix_path" 51613 fi 51614 51615 if test "x$path" != "x$new_path"; then 51616 MSVC_DLL="$new_path" 51617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 51618 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 51619 fi 51620 51621 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51622 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51623 51624 else 51625 # We're on a posix platform. Hooray! :) 51626 path="$MSVC_DLL" 51627 has_space=`$ECHO "$path" | $GREP " "` 51628 if test "x$has_space" != x; then 51629 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 51630 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 51631 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51632 fi 51633 51634 # Use eval to expand a potential ~ 51635 eval path="$path" 51636 if test ! -f "$path" && test ! -d "$path"; then 51637 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 51638 fi 51639 51640 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 51641 fi 51642 51643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51644 $as_echo_n "checking for $DLL_NAME... " >&6; } 51645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 51646 $as_echo "$MSVC_DLL" >&6; } 51647 else 51648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 51649 $as_echo "incorrect, ignoring" >&6; } 51650 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 51651 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 51652 fi 51653 fi 51654 51655 fi 51656 fi 51657 51658 if test "x$MSVC_DLL" = x; then 51659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 51660 $as_echo_n "checking for $DLL_NAME... " >&6; } 51661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51662 $as_echo "no" >&6; } 51663 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 51664 fi 51665 51666 MSVCP_DLL="$MSVC_DLL" 51667 fi 51668 51669 fi 51670 51671 51672 # Check whether --with-ucrt-dll-dir was given. 51673 if test "${with_ucrt_dll_dir+set}" = set; then : 51674 withval=$with_ucrt_dll_dir; 51675 fi 51676 51677 51678 if test "x$USE_UCRT" = "xtrue"; then 51679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCRT DLL dir" >&5 51680 $as_echo_n "checking for UCRT DLL dir... " >&6; } 51681 if test "x$with_ucrt_dll_dir" != x; then 51682 if test -z "$(ls -d "$with_ucrt_dll_dir/"*.dll 2> /dev/null)"; then 51683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51684 $as_echo "no" >&6; } 51685 as_fn_error $? "Could not find any dlls in $with_ucrt_dll_dir" "$LINENO" 5 51686 else 51687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ucrt_dll_dir" >&5 51688 $as_echo "$with_ucrt_dll_dir" >&6; } 51689 UCRT_DLL_DIR="$with_ucrt_dll_dir" 51690 51691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51692 51693 # Input might be given as Windows format, start by converting to 51694 # unix format. 51695 path="$UCRT_DLL_DIR" 51696 new_path=`$CYGPATH -u "$path"` 51697 51698 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51699 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51700 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51701 # "foo.exe" is OK but "foo" is an error. 51702 # 51703 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51704 # It is also a way to make sure we got the proper file name for the real test later on. 51705 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51706 if test "x$test_shortpath" = x; then 51707 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&5 51708 $as_echo "$as_me: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&6;} 51709 as_fn_error $? "Cannot locate the the path of UCRT_DLL_DIR" "$LINENO" 5 51710 fi 51711 51712 # Call helper function which possibly converts this using DOS-style short mode. 51713 # If so, the updated path is stored in $new_path. 51714 51715 input_path="$new_path" 51716 # Check if we need to convert this using DOS-style short mode. If the path 51717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51718 # take no chances and rewrite it. 51719 # Note: m4 eats our [], so we need to use [ and ] instead. 51720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51721 if test "x$has_forbidden_chars" != x; then 51722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51723 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51724 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51725 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51726 # Going to short mode and back again did indeed matter. Since short mode is 51727 # case insensitive, let's make it lowercase to improve readability. 51728 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51729 # Now convert it back to Unix-style (cygpath) 51730 input_path=`$CYGPATH -u "$shortmode_path"` 51731 new_path="$input_path" 51732 fi 51733 fi 51734 51735 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51736 if test "x$test_cygdrive_prefix" = x; then 51737 # As a simple fix, exclude /usr/bin since it's not a real path. 51738 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51739 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51740 # a path prefixed by /cygdrive for fixpath to work. 51741 new_path="$CYGWIN_ROOT_PATH$input_path" 51742 fi 51743 fi 51744 51745 51746 if test "x$path" != "x$new_path"; then 51747 UCRT_DLL_DIR="$new_path" 51748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&5 51749 $as_echo "$as_me: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&6;} 51750 fi 51751 51752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51753 51754 path="$UCRT_DLL_DIR" 51755 has_colon=`$ECHO $path | $GREP ^.:` 51756 new_path="$path" 51757 if test "x$has_colon" = x; then 51758 # Not in mixed or Windows style, start by that. 51759 new_path=`cmd //c echo $path` 51760 fi 51761 51762 51763 input_path="$new_path" 51764 # Check if we need to convert this using DOS-style short mode. If the path 51765 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51766 # take no chances and rewrite it. 51767 # Note: m4 eats our [], so we need to use [ and ] instead. 51768 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51769 if test "x$has_forbidden_chars" != x; then 51770 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51771 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51772 fi 51773 51774 51775 windows_path="$new_path" 51776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51777 unix_path=`$CYGPATH -u "$windows_path"` 51778 new_path="$unix_path" 51779 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51780 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51781 new_path="$unix_path" 51782 fi 51783 51784 if test "x$path" != "x$new_path"; then 51785 UCRT_DLL_DIR="$new_path" 51786 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&5 51787 $as_echo "$as_me: Rewriting UCRT_DLL_DIR to \"$new_path\"" >&6;} 51788 fi 51789 51790 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51791 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51792 51793 else 51794 # We're on a posix platform. Hooray! :) 51795 path="$UCRT_DLL_DIR" 51796 has_space=`$ECHO "$path" | $GREP " "` 51797 if test "x$has_space" != x; then 51798 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&5 51799 $as_echo "$as_me: The path of UCRT_DLL_DIR, which resolves as \"$path\", is invalid." >&6;} 51800 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51801 fi 51802 51803 # Use eval to expand a potential ~ 51804 eval path="$path" 51805 if test ! -f "$path" && test ! -d "$path"; then 51806 as_fn_error $? "The path of UCRT_DLL_DIR, which resolves as \"$path\", is not found." "$LINENO" 5 51807 fi 51808 51809 UCRT_DLL_DIR="`cd "$path"; $THEPWDCMD -L`" 51810 fi 51811 51812 fi 51813 elif test "x$DEVKIT_UCRT_DLL_DIR" != "x"; then 51814 UCRT_DLL_DIR="$DEVKIT_UCRT_DLL_DIR" 51815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 51816 $as_echo "$UCRT_DLL_DIR" >&6; } 51817 else 51818 CYGWIN_WINDOWSSDKDIR="${WINDOWSSDKDIR}" 51819 51820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51821 51822 # Input might be given as Windows format, start by converting to 51823 # unix format. 51824 path="$CYGWIN_WINDOWSSDKDIR" 51825 new_path=`$CYGPATH -u "$path"` 51826 51827 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51828 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51829 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51830 # "foo.exe" is OK but "foo" is an error. 51831 # 51832 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51833 # It is also a way to make sure we got the proper file name for the real test later on. 51834 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51835 if test "x$test_shortpath" = x; then 51836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&5 51837 $as_echo "$as_me: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&6;} 51838 as_fn_error $? "Cannot locate the the path of CYGWIN_WINDOWSSDKDIR" "$LINENO" 5 51839 fi 51840 51841 # Call helper function which possibly converts this using DOS-style short mode. 51842 # If so, the updated path is stored in $new_path. 51843 51844 input_path="$new_path" 51845 # Check if we need to convert this using DOS-style short mode. If the path 51846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51847 # take no chances and rewrite it. 51848 # Note: m4 eats our [], so we need to use [ and ] instead. 51849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51850 if test "x$has_forbidden_chars" != x; then 51851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51852 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51853 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51854 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51855 # Going to short mode and back again did indeed matter. Since short mode is 51856 # case insensitive, let's make it lowercase to improve readability. 51857 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51858 # Now convert it back to Unix-style (cygpath) 51859 input_path=`$CYGPATH -u "$shortmode_path"` 51860 new_path="$input_path" 51861 fi 51862 fi 51863 51864 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51865 if test "x$test_cygdrive_prefix" = x; then 51866 # As a simple fix, exclude /usr/bin since it's not a real path. 51867 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51868 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51869 # a path prefixed by /cygdrive for fixpath to work. 51870 new_path="$CYGWIN_ROOT_PATH$input_path" 51871 fi 51872 fi 51873 51874 51875 if test "x$path" != "x$new_path"; then 51876 CYGWIN_WINDOWSSDKDIR="$new_path" 51877 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&5 51878 $as_echo "$as_me: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&6;} 51879 fi 51880 51881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51882 51883 path="$CYGWIN_WINDOWSSDKDIR" 51884 has_colon=`$ECHO $path | $GREP ^.:` 51885 new_path="$path" 51886 if test "x$has_colon" = x; then 51887 # Not in mixed or Windows style, start by that. 51888 new_path=`cmd //c echo $path` 51889 fi 51890 51891 51892 input_path="$new_path" 51893 # Check if we need to convert this using DOS-style short mode. If the path 51894 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51895 # take no chances and rewrite it. 51896 # Note: m4 eats our [], so we need to use [ and ] instead. 51897 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51898 if test "x$has_forbidden_chars" != x; then 51899 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51900 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51901 fi 51902 51903 51904 windows_path="$new_path" 51905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51906 unix_path=`$CYGPATH -u "$windows_path"` 51907 new_path="$unix_path" 51908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51910 new_path="$unix_path" 51911 fi 51912 51913 if test "x$path" != "x$new_path"; then 51914 CYGWIN_WINDOWSSDKDIR="$new_path" 51915 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&5 51916 $as_echo "$as_me: Rewriting CYGWIN_WINDOWSSDKDIR to \"$new_path\"" >&6;} 51917 fi 51918 51919 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51920 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51921 51922 else 51923 # We're on a posix platform. Hooray! :) 51924 path="$CYGWIN_WINDOWSSDKDIR" 51925 has_space=`$ECHO "$path" | $GREP " "` 51926 if test "x$has_space" != x; then 51927 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&5 51928 $as_echo "$as_me: The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is invalid." >&6;} 51929 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51930 fi 51931 51932 # Use eval to expand a potential ~ 51933 eval path="$path" 51934 if test ! -f "$path" && test ! -d "$path"; then 51935 as_fn_error $? "The path of CYGWIN_WINDOWSSDKDIR, which resolves as \"$path\", is not found." "$LINENO" 5 51936 fi 51937 51938 CYGWIN_WINDOWSSDKDIR="`cd "$path"; $THEPWDCMD -L`" 51939 fi 51940 51941 dll_subdir=$OPENJDK_TARGET_CPU 51942 if test "x$dll_subdir" = "xx86_64"; then 51943 dll_subdir="x64" 51944 fi 51945 UCRT_DLL_DIR="$CYGWIN_WINDOWSSDKDIR/Redist/ucrt/DLLs/$dll_subdir" 51946 if test -z "$(ls -d "$UCRT_DLL_DIR/"*.dll 2> /dev/null)"; then 51947 # Try with version subdir 51948 UCRT_DLL_DIR="`ls -d $CYGWIN_WINDOWSSDKDIR/Redist/*/ucrt/DLLs/$dll_subdir \ 51949 2> /dev/null | $SORT -d | $HEAD -n1`" 51950 if test -z "$UCRT_DLL_DIR" \ 51951 || test -z "$(ls -d "$UCRT_DLL_DIR/"*.dll 2> /dev/null)"; then 51952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51953 $as_echo "no" >&6; } 51954 as_fn_error $? "Could not find any dlls in $UCRT_DLL_DIR" "$LINENO" 5 51955 else 51956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 51957 $as_echo "$UCRT_DLL_DIR" >&6; } 51958 fi 51959 else 51960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCRT_DLL_DIR" >&5 51961 $as_echo "$UCRT_DLL_DIR" >&6; } 51962 fi 51963 fi 51964 else 51965 UCRT_DLL_DIR= 51966 fi 51967 51968 51969 51970 51971 # Check whether --with-dxsdk was given. 51972 if test "${with_dxsdk+set}" = set; then : 51973 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 51974 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 51975 fi 51976 51977 51978 51979 51980 # Check whether --with-dxsdk-lib was given. 51981 if test "${with_dxsdk_lib+set}" = set; then : 51982 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 51983 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 51984 fi 51985 51986 51987 51988 51989 # Check whether --with-dxsdk-include was given. 51990 if test "${with_dxsdk_include+set}" = set; then : 51991 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 51992 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 51993 fi 51994 51995 51996 fi 51997 51998 51999 ############################################################################### 52000 # 52001 # We need to do some final tweaking, when everything else is done. 52002 # 52003 ############################################################################### 52004 52005 52006 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 52007 52008 52009 # The name of the Service Agent jar. 52010 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 52011 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 52012 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 52013 fi 52014 52015 52016 52017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 52018 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 52019 52020 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 52021 ENABLE_INTREE_EC=yes 52022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52023 $as_echo "yes" >&6; } 52024 else 52025 ENABLE_INTREE_EC=no 52026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52027 $as_echo "no" >&6; } 52028 fi 52029 52030 52031 52032 52033 ############################################################################### 52034 # 52035 # Configure parts of the build that only affect the build performance, 52036 # not the result. 52037 # 52038 ############################################################################### 52039 52040 52041 # How many cores do we have on this build system? 52042 52043 # Check whether --with-num-cores was given. 52044 if test "${with_num_cores+set}" = set; then : 52045 withval=$with_num_cores; 52046 fi 52047 52048 if test "x$with_num_cores" = x; then 52049 # The number of cores were not specified, try to probe them. 52050 52051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 52052 $as_echo_n "checking for number of cores... " >&6; } 52053 NUM_CORES=1 52054 FOUND_CORES=no 52055 52056 if test -f /proc/cpuinfo; then 52057 # Looks like a Linux (or cygwin) system 52058 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 52059 FOUND_CORES=yes 52060 elif test -x /usr/sbin/psrinfo; then 52061 # Looks like a Solaris system 52062 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 52063 FOUND_CORES=yes 52064 elif test -x /usr/sbin/system_profiler; then 52065 # Looks like a MacOSX system 52066 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 52067 FOUND_CORES=yes 52068 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 52069 NUM_LCPU=`lparstat -m 2> /dev/null | $GREP -o "lcpu=[0-9]*" | $CUT -d "=" -f 2` 52070 if test -n "$NUM_LCPU"; then 52071 NUM_CORES=$NUM_LCPU 52072 FOUND_CORES=yes 52073 fi 52074 elif test -n "$NUMBER_OF_PROCESSORS"; then 52075 # On windows, look in the env 52076 NUM_CORES=$NUMBER_OF_PROCESSORS 52077 FOUND_CORES=yes 52078 fi 52079 52080 if test "x$FOUND_CORES" = xyes; then 52081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 52082 $as_echo "$NUM_CORES" >&6; } 52083 else 52084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 52085 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 52086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 52087 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 52088 fi 52089 52090 else 52091 NUM_CORES=$with_num_cores 52092 fi 52093 52094 52095 52096 # How much memory do we have on this build system? 52097 52098 # Check whether --with-memory-size was given. 52099 if test "${with_memory_size+set}" = set; then : 52100 withval=$with_memory_size; 52101 fi 52102 52103 if test "x$with_memory_size" = x; then 52104 # The memory size was not specified, try to probe it. 52105 52106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 52107 $as_echo_n "checking for memory size... " >&6; } 52108 # Default to 1024 MB 52109 MEMORY_SIZE=1024 52110 FOUND_MEM=no 52111 52112 if test -f /proc/meminfo; then 52113 # Looks like a Linux (or cygwin) system 52114 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 52115 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 52116 FOUND_MEM=yes 52117 elif test -x /usr/sbin/prtconf; then 52118 # Looks like a Solaris or AIX system 52119 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 52120 FOUND_MEM=yes 52121 elif test -x /usr/sbin/system_profiler; then 52122 # Looks like a MacOSX system 52123 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 52124 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 52125 FOUND_MEM=yes 52126 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52127 # Windows, but without cygwin 52128 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 52129 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 52130 FOUND_MEM=yes 52131 fi 52132 52133 if test "x$FOUND_MEM" = xyes; then 52134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 52135 $as_echo "$MEMORY_SIZE MB" >&6; } 52136 else 52137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 52138 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 52139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 52140 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 52141 fi 52142 52143 else 52144 MEMORY_SIZE=$with_memory_size 52145 fi 52146 52147 52148 52149 # Provide a decent default number of parallel jobs for make depending on 52150 # number of cores, amount of memory and machine architecture. 52151 52152 # Check whether --with-jobs was given. 52153 if test "${with_jobs+set}" = set; then : 52154 withval=$with_jobs; 52155 fi 52156 52157 if test "x$with_jobs" = x; then 52158 # Number of jobs was not specified, calculate. 52159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 52160 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 52161 # Approximate memory in GB, rounding up a bit. 52162 memory_gb=`expr $MEMORY_SIZE / 1100` 52163 # Pick the lowest of memory in gb and number of cores. 52164 if test "$memory_gb" -lt "$NUM_CORES"; then 52165 JOBS="$memory_gb" 52166 else 52167 JOBS="$NUM_CORES" 52168 # On bigger machines, leave some room for other processes to run 52169 if test "$JOBS" -gt "4"; then 52170 JOBS=`expr $JOBS '*' 90 / 100` 52171 fi 52172 fi 52173 # Cap number of jobs to 16 52174 if test "$JOBS" -gt "16"; then 52175 JOBS=16 52176 fi 52177 if test "$JOBS" -eq "0"; then 52178 JOBS=1 52179 fi 52180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 52181 $as_echo "$JOBS" >&6; } 52182 else 52183 JOBS=$with_jobs 52184 fi 52185 52186 52187 52188 # Setup smart javac (after cores and memory have been setup) 52189 52190 52191 # Check whether --with-sjavac-server-java was given. 52192 if test "${with_sjavac_server_java+set}" = set; then : 52193 withval=$with_sjavac_server_java; 52194 fi 52195 52196 52197 if test "x$with_sjavac_server_java" != x; then 52198 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 52199 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 52200 if test "x$FOUND_VERSION" = x; then 52201 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 52202 fi 52203 else 52204 SJAVAC_SERVER_JAVA="" 52205 # Hotspot specific options. 52206 52207 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 52208 $ECHO "Command: $JAVA -verbosegc -version" >&5 52209 OUTPUT=`$JAVA -verbosegc -version 2>&1` 52210 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52211 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52212 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52213 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 52214 JVM_ARG_OK=true 52215 else 52216 $ECHO "Arg failed:" >&5 52217 $ECHO "$OUTPUT" >&5 52218 JVM_ARG_OK=false 52219 fi 52220 52221 # JRockit specific options. 52222 52223 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 52224 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 52225 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 52226 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52227 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52228 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52229 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 52230 JVM_ARG_OK=true 52231 else 52232 $ECHO "Arg failed:" >&5 52233 $ECHO "$OUTPUT" >&5 52234 JVM_ARG_OK=false 52235 fi 52236 52237 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 52238 fi 52239 52240 52241 if test "$MEMORY_SIZE" -gt "2500"; then 52242 52243 $ECHO "Check if jvm arg is ok: -d64" >&5 52244 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 52245 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 52246 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52247 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52248 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52249 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 52250 JVM_ARG_OK=true 52251 else 52252 $ECHO "Arg failed:" >&5 52253 $ECHO "$OUTPUT" >&5 52254 JVM_ARG_OK=false 52255 fi 52256 52257 if test "$JVM_ARG_OK" = true; then 52258 JVM_64BIT=true 52259 JVM_ARG_OK=false 52260 fi 52261 fi 52262 52263 if test "$JVM_64BIT" = true; then 52264 if test "$MEMORY_SIZE" -gt "17000"; then 52265 52266 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 52267 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 52268 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 52269 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52270 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52271 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52272 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 52273 JVM_ARG_OK=true 52274 else 52275 $ECHO "Arg failed:" >&5 52276 $ECHO "$OUTPUT" >&5 52277 JVM_ARG_OK=false 52278 fi 52279 52280 fi 52281 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 52282 52283 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 52284 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 52285 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 52286 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52287 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52288 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52289 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 52290 JVM_ARG_OK=true 52291 else 52292 $ECHO "Arg failed:" >&5 52293 $ECHO "$OUTPUT" >&5 52294 JVM_ARG_OK=false 52295 fi 52296 52297 fi 52298 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 52299 52300 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 52301 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 52302 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 52303 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52304 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52305 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52306 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 52307 JVM_ARG_OK=true 52308 else 52309 $ECHO "Arg failed:" >&5 52310 $ECHO "$OUTPUT" >&5 52311 JVM_ARG_OK=false 52312 fi 52313 52314 fi 52315 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 52316 52317 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 52318 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 52319 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 52320 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52321 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52322 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52323 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 52324 JVM_ARG_OK=true 52325 else 52326 $ECHO "Arg failed:" >&5 52327 $ECHO "$OUTPUT" >&5 52328 JVM_ARG_OK=false 52329 fi 52330 52331 fi 52332 fi 52333 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 52334 52335 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 52336 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 52337 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 52338 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52339 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52340 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52341 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 52342 JVM_ARG_OK=true 52343 else 52344 $ECHO "Arg failed:" >&5 52345 $ECHO "$OUTPUT" >&5 52346 JVM_ARG_OK=false 52347 fi 52348 52349 fi 52350 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 52351 52352 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 52353 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 52354 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 52355 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52356 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52357 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52358 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 52359 JVM_ARG_OK=true 52360 else 52361 $ECHO "Arg failed:" >&5 52362 $ECHO "$OUTPUT" >&5 52363 JVM_ARG_OK=false 52364 fi 52365 52366 fi 52367 if test "$JVM_ARG_OK" = false; then 52368 52369 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 52370 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 52371 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 52372 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 52373 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 52374 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 52375 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 52376 JVM_ARG_OK=true 52377 else 52378 $ECHO "Arg failed:" >&5 52379 $ECHO "$OUTPUT" >&5 52380 JVM_ARG_OK=false 52381 fi 52382 52383 fi 52384 52385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 52386 $as_echo_n "checking whether to use sjavac... " >&6; } 52387 # Check whether --enable-sjavac was given. 52388 if test "${enable_sjavac+set}" = set; then : 52389 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 52390 else 52391 ENABLE_SJAVAC='no' 52392 fi 52393 52394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 52395 $as_echo "$ENABLE_SJAVAC" >&6; } 52396 52397 52398 if test "x$ENABLE_SJAVAC" = xyes; then 52399 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 52400 else 52401 SJAVAC_SERVER_DIR= 52402 fi 52403 52404 52405 52406 # Can the C/C++ compiler use precompiled headers? 52407 52408 52409 ############################################################################### 52410 # 52411 # Can the C/C++ compiler use precompiled headers? 52412 # 52413 # Check whether --enable-precompiled-headers was given. 52414 if test "${enable_precompiled_headers+set}" = set; then : 52415 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 52416 else 52417 ENABLE_PRECOMPH=yes 52418 fi 52419 52420 52421 USE_PRECOMPILED_HEADER=1 52422 if test "x$ENABLE_PRECOMPH" = xno; then 52423 USE_PRECOMPILED_HEADER=0 52424 fi 52425 52426 if test "x$ENABLE_PRECOMPH" = xyes; then 52427 # Check that the compiler actually supports precomp headers. 52428 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 52430 $as_echo_n "checking that precompiled headers work... " >&6; } 52431 echo "int alfa();" > conftest.h 52432 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 52433 if test ! -f conftest.hpp.gch; then 52434 USE_PRECOMPILED_HEADER=0 52435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52436 $as_echo "no" >&6; } 52437 else 52438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52439 $as_echo "yes" >&6; } 52440 fi 52441 rm -f conftest.h conftest.hpp.gch 52442 fi 52443 fi 52444 52445 52446 52447 52448 # Setup use of ccache, if available 52449 52450 # Check whether --enable-ccache was given. 52451 if test "${enable_ccache+set}" = set; then : 52452 enableval=$enable_ccache; 52453 fi 52454 52455 52456 CCACHE= 52457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 52458 $as_echo_n "checking is ccache enabled... " >&6; } 52459 ENABLE_CCACHE=$enable_ccache 52460 if test "x$enable_ccache" = xyes; then 52461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52462 $as_echo "yes" >&6; } 52463 OLD_PATH="$PATH" 52464 if test "x$TOOLCHAIN_PATH" != x; then 52465 PATH=$TOOLCHAIN_PATH:$PATH 52466 fi 52467 52468 52469 52470 # Publish this variable in the help. 52471 52472 52473 if test "x$CCACHE" = x; then 52474 # The variable is not set by user, try to locate tool using the code snippet 52475 for ac_prog in ccache 52476 do 52477 # Extract the first word of "$ac_prog", so it can be a program name with args. 52478 set dummy $ac_prog; ac_word=$2 52479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52480 $as_echo_n "checking for $ac_word... " >&6; } 52481 if ${ac_cv_path_CCACHE+:} false; then : 52482 $as_echo_n "(cached) " >&6 52483 else 52484 case $CCACHE in 52485 [\\/]* | ?:[\\/]*) 52486 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52487 ;; 52488 *) 52489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52490 for as_dir in $PATH 52491 do 52492 IFS=$as_save_IFS 52493 test -z "$as_dir" && as_dir=. 52494 for ac_exec_ext in '' $ac_executable_extensions; do 52495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52496 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 52497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52498 break 2 52499 fi 52500 done 52501 done 52502 IFS=$as_save_IFS 52503 52504 ;; 52505 esac 52506 fi 52507 CCACHE=$ac_cv_path_CCACHE 52508 if test -n "$CCACHE"; then 52509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 52510 $as_echo "$CCACHE" >&6; } 52511 else 52512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52513 $as_echo "no" >&6; } 52514 fi 52515 52516 52517 test -n "$CCACHE" && break 52518 done 52519 52520 else 52521 # The variable is set, but is it from the command line or the environment? 52522 52523 # Try to remove the string !CCACHE! from our list. 52524 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 52525 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 52526 # If it failed, the variable was not from the command line. Ignore it, 52527 # but warn the user (except for BASH, which is always set by the calling BASH). 52528 if test "xCCACHE" != xBASH; then 52529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 52530 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 52531 fi 52532 # Try to locate tool using the code snippet 52533 for ac_prog in ccache 52534 do 52535 # Extract the first word of "$ac_prog", so it can be a program name with args. 52536 set dummy $ac_prog; ac_word=$2 52537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52538 $as_echo_n "checking for $ac_word... " >&6; } 52539 if ${ac_cv_path_CCACHE+:} false; then : 52540 $as_echo_n "(cached) " >&6 52541 else 52542 case $CCACHE in 52543 [\\/]* | ?:[\\/]*) 52544 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52545 ;; 52546 *) 52547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52548 for as_dir in $PATH 52549 do 52550 IFS=$as_save_IFS 52551 test -z "$as_dir" && as_dir=. 52552 for ac_exec_ext in '' $ac_executable_extensions; do 52553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52554 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 52555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52556 break 2 52557 fi 52558 done 52559 done 52560 IFS=$as_save_IFS 52561 52562 ;; 52563 esac 52564 fi 52565 CCACHE=$ac_cv_path_CCACHE 52566 if test -n "$CCACHE"; then 52567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 52568 $as_echo "$CCACHE" >&6; } 52569 else 52570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52571 $as_echo "no" >&6; } 52572 fi 52573 52574 52575 test -n "$CCACHE" && break 52576 done 52577 52578 else 52579 # If it succeeded, then it was overridden by the user. We will use it 52580 # for the tool. 52581 52582 # First remove it from the list of overridden variables, so we can test 52583 # for unknown variables in the end. 52584 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 52585 52586 # Check if the provided tool contains a complete path. 52587 tool_specified="$CCACHE" 52588 tool_basename="${tool_specified##*/}" 52589 if test "x$tool_basename" = "x$tool_specified"; then 52590 # A command without a complete path is provided, search $PATH. 52591 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 52592 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 52593 # Extract the first word of "$tool_basename", so it can be a program name with args. 52594 set dummy $tool_basename; ac_word=$2 52595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52596 $as_echo_n "checking for $ac_word... " >&6; } 52597 if ${ac_cv_path_CCACHE+:} false; then : 52598 $as_echo_n "(cached) " >&6 52599 else 52600 case $CCACHE in 52601 [\\/]* | ?:[\\/]*) 52602 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 52603 ;; 52604 *) 52605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52606 for as_dir in $PATH 52607 do 52608 IFS=$as_save_IFS 52609 test -z "$as_dir" && as_dir=. 52610 for ac_exec_ext in '' $ac_executable_extensions; do 52611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52612 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 52613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52614 break 2 52615 fi 52616 done 52617 done 52618 IFS=$as_save_IFS 52619 52620 ;; 52621 esac 52622 fi 52623 CCACHE=$ac_cv_path_CCACHE 52624 if test -n "$CCACHE"; then 52625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 52626 $as_echo "$CCACHE" >&6; } 52627 else 52628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52629 $as_echo "no" >&6; } 52630 fi 52631 52632 52633 if test "x$CCACHE" = x; then 52634 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 52635 fi 52636 else 52637 # Otherwise we believe it is a complete path. Use it as it is. 52638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 52639 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 52640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 52641 $as_echo_n "checking for CCACHE... " >&6; } 52642 if test ! -x "$tool_specified"; then 52643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 52644 $as_echo "not found" >&6; } 52645 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 52646 fi 52647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 52648 $as_echo "$tool_specified" >&6; } 52649 fi 52650 fi 52651 fi 52652 52653 52654 52655 if test "x$CCACHE" = x; then 52656 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 52657 fi 52658 52659 52660 CCACHE_STATUS="enabled" 52661 PATH="$OLD_PATH" 52662 elif test "x$enable_ccache" = xno; then 52663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 52664 $as_echo "no, explicitly disabled" >&6; } 52665 elif test "x$enable_ccache" = x; then 52666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52667 $as_echo "no" >&6; } 52668 else 52669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 52670 $as_echo "unknown" >&6; } 52671 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 52672 fi 52673 52674 52675 52676 # Check whether --with-ccache-dir was given. 52677 if test "${with_ccache_dir+set}" = set; then : 52678 withval=$with_ccache_dir; 52679 fi 52680 52681 52682 if test "x$with_ccache_dir" != x; then 52683 # When using a non home ccache directory, assume the use is to share ccache files 52684 # with other users. Thus change the umask. 52685 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 52686 if test "x$CCACHE" = x; then 52687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 52688 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 52689 fi 52690 fi 52691 52692 if test "x$CCACHE" != x; then 52693 52694 if test "x$CCACHE" != x; then 52695 # Only use ccache if it is 3.1.4 or later, which supports 52696 # precompiled headers. 52697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 52698 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 52699 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 52700 if test "x$HAS_GOOD_CCACHE" = x; then 52701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 52702 $as_echo "no, disabling ccache" >&6; } 52703 CCACHE= 52704 CCACHE_STATUS="disabled" 52705 else 52706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52707 $as_echo "yes" >&6; } 52708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 52709 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 52710 PUSHED_FLAGS="$CXXFLAGS" 52711 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 52712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52713 /* end confdefs.h. */ 52714 52715 int 52716 main () 52717 { 52718 52719 ; 52720 return 0; 52721 } 52722 _ACEOF 52723 if ac_fn_cxx_try_compile "$LINENO"; then : 52724 CC_KNOWS_CCACHE_TRICK=yes 52725 else 52726 CC_KNOWS_CCACHE_TRICK=no 52727 fi 52728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52729 CXXFLAGS="$PUSHED_FLAGS" 52730 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 52731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52732 $as_echo "yes" >&6; } 52733 else 52734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 52735 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 52736 CCACHE= 52737 CCACHE_STATUS="disabled" 52738 fi 52739 fi 52740 fi 52741 52742 if test "x$CCACHE" != x; then 52743 CCACHE_SLOPPINESS=time_macros 52744 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 52745 CCACHE_FLAGS=-fpch-preprocess 52746 52747 if test "x$SET_CCACHE_DIR" != x; then 52748 mkdir -p $CCACHE_DIR > /dev/null 2>&1 52749 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 52750 fi 52751 fi 52752 52753 fi 52754 52755 52756 ############################################################################### 52757 # 52758 # And now the finish... 52759 # 52760 ############################################################################### 52761 52762 # Check for some common pitfalls 52763 52764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52765 file_to_test="$SRC_ROOT/LICENSE" 52766 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 52767 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 52768 fi 52769 fi 52770 52771 52772 # Did user specify any unknown variables? 52773 52774 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 52775 # Replace the separating ! with spaces before presenting for end user. 52776 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 52777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 52778 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 52779 fi 52780 52781 52782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 52783 $as_echo_n "checking if build directory is on local disk... " >&6; } 52784 52785 # df -l lists only local disks; if the given directory is not found then 52786 # a non-zero exit code is given 52787 if test "x$DF" = x; then 52788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52789 # msys does not have df; use Windows "net use" instead. 52790 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 52791 if test "x$IS_NETWORK_DISK" = x; then 52792 OUTPUT_DIR_IS_LOCAL="yes" 52793 else 52794 OUTPUT_DIR_IS_LOCAL="no" 52795 fi 52796 else 52797 # No df here, say it's local 52798 OUTPUT_DIR_IS_LOCAL="yes" 52799 fi 52800 else 52801 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 52802 OUTPUT_DIR_IS_LOCAL="yes" 52803 else 52804 OUTPUT_DIR_IS_LOCAL="no" 52805 fi 52806 fi 52807 52808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 52809 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 52810 52811 52812 52813 # Check if the user has any old-style ALT_ variables set. 52814 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 52815 52816 # Before generating output files, test if they exist. If they do, this is a reconfigure. 52817 # Since we can't properly handle the dependencies for this, warn the user about the situation 52818 if test -e $OUTPUT_ROOT/spec.gmk; then 52819 IS_RECONFIGURE=yes 52820 else 52821 IS_RECONFIGURE=no 52822 fi 52823 52824 52825 # At the end, call the custom hook. (Dummy macro if no custom sources available) 52826 52827 52828 # We're messing a bit with internal autoconf variables to put the config.status 52829 # in the output directory instead of the current directory. 52830 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 52831 52832 # Create the actual output files. Now the main work of configure is done. 52833 cat >confcache <<\_ACEOF 52834 # This file is a shell script that caches the results of configure 52835 # tests run on this system so they can be shared between configure 52836 # scripts and configure runs, see configure's option --config-cache. 52837 # It is not useful on other systems. If it contains results you don't 52838 # want to keep, you may remove or edit it. 52839 # 52840 # config.status only pays attention to the cache file if you give it 52841 # the --recheck option to rerun configure. 52842 # 52843 # `ac_cv_env_foo' variables (set or unset) will be overridden when 52844 # loading this file, other *unset* `ac_cv_foo' will be assigned the 52845 # following values. 52846 52847 _ACEOF 52848 52849 # The following way of writing the cache mishandles newlines in values, 52850 # but we know of no workaround that is simple, portable, and efficient. 52851 # So, we kill variables containing newlines. 52852 # Ultrix sh set writes to stderr and can't be redirected directly, 52853 # and sets the high bit in the cache file unless we assign to the vars. 52854 ( 52855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 52856 eval ac_val=\$$ac_var 52857 case $ac_val in #( 52858 *${as_nl}*) 52859 case $ac_var in #( 52860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 52861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 52862 esac 52863 case $ac_var in #( 52864 _ | IFS | as_nl) ;; #( 52865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 52866 *) { eval $ac_var=; unset $ac_var;} ;; 52867 esac ;; 52868 esac 52869 done 52870 52871 (set) 2>&1 | 52872 case $as_nl`(ac_space=' '; set) 2>&1` in #( 52873 *${as_nl}ac_space=\ *) 52874 # `set' does not quote correctly, so add quotes: double-quote 52875 # substitution turns \\\\ into \\, and sed turns \\ into \. 52876 sed -n \ 52877 "s/'/'\\\\''/g; 52878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 52879 ;; #( 52880 *) 52881 # `set' quotes correctly as required by POSIX, so do not add quotes. 52882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 52883 ;; 52884 esac | 52885 sort 52886 ) | 52887 sed ' 52888 /^ac_cv_env_/b end 52889 t clear 52890 :clear 52891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 52892 t end 52893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 52894 :end' >>confcache 52895 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 52896 if test -w "$cache_file"; then 52897 if test "x$cache_file" != "x/dev/null"; then 52898 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 52899 $as_echo "$as_me: updating cache $cache_file" >&6;} 52900 if test ! -f "$cache_file" || test -h "$cache_file"; then 52901 cat confcache >"$cache_file" 52902 else 52903 case $cache_file in #( 52904 */* | ?:*) 52905 mv -f confcache "$cache_file"$$ && 52906 mv -f "$cache_file"$$ "$cache_file" ;; #( 52907 *) 52908 mv -f confcache "$cache_file" ;; 52909 esac 52910 fi 52911 fi 52912 else 52913 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 52914 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 52915 fi 52916 fi 52917 rm -f confcache 52918 52919 test "x$prefix" = xNONE && prefix=$ac_default_prefix 52920 # Let make expand exec_prefix. 52921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 52922 52923 DEFS=-DHAVE_CONFIG_H 52924 52925 ac_libobjs= 52926 ac_ltlibobjs= 52927 U= 52928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 52929 # 1. Remove the extension, and $U if already installed. 52930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 52931 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 52932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 52933 # will be set to the directory where LIBOBJS objects are built. 52934 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 52935 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 52936 done 52937 LIBOBJS=$ac_libobjs 52938 52939 LTLIBOBJS=$ac_ltlibobjs 52940 52941 52942 52943 : "${CONFIG_STATUS=./config.status}" 52944 ac_write_fail=0 52945 ac_clean_files_save=$ac_clean_files 52946 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 52947 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 52948 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 52949 as_write_fail=0 52950 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 52951 #! $SHELL 52952 # Generated by $as_me. 52953 # Run this file to recreate the current configuration. 52954 # Compiler output produced by configure, useful for debugging 52955 # configure, is in config.log if it exists. 52956 52957 debug=false 52958 ac_cs_recheck=false 52959 ac_cs_silent=false 52960 52961 SHELL=\${CONFIG_SHELL-$SHELL} 52962 export SHELL 52963 _ASEOF 52964 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 52965 ## -------------------- ## 52966 ## M4sh Initialization. ## 52967 ## -------------------- ## 52968 52969 # Be more Bourne compatible 52970 DUALCASE=1; export DUALCASE # for MKS sh 52971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 52972 emulate sh 52973 NULLCMD=: 52974 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 52975 # is contrary to our usage. Disable this feature. 52976 alias -g '${1+"$@"}'='"$@"' 52977 setopt NO_GLOB_SUBST 52978 else 52979 case `(set -o) 2>/dev/null` in #( 52980 *posix*) : 52981 set -o posix ;; #( 52982 *) : 52983 ;; 52984 esac 52985 fi 52986 52987 52988 as_nl=' 52989 ' 52990 export as_nl 52991 # Printing a long string crashes Solaris 7 /usr/bin/printf. 52992 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 52993 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 52994 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 52995 # Prefer a ksh shell builtin over an external printf program on Solaris, 52996 # but without wasting forks for bash or zsh. 52997 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52998 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 52999 as_echo='print -r --' 53000 as_echo_n='print -rn --' 53001 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 53002 as_echo='printf %s\n' 53003 as_echo_n='printf %s' 53004 else 53005 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53006 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53007 as_echo_n='/usr/ucb/echo -n' 53008 else 53009 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 53010 as_echo_n_body='eval 53011 arg=$1; 53012 case $arg in #( 53013 *"$as_nl"*) 53014 expr "X$arg" : "X\\(.*\\)$as_nl"; 53015 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 53016 esac; 53017 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 53018 ' 53019 export as_echo_n_body 53020 as_echo_n='sh -c $as_echo_n_body as_echo' 53021 fi 53022 export as_echo_body 53023 as_echo='sh -c $as_echo_body as_echo' 53024 fi 53025 53026 # The user is always right. 53027 if test "${PATH_SEPARATOR+set}" != set; then 53028 PATH_SEPARATOR=: 53029 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 53030 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 53031 PATH_SEPARATOR=';' 53032 } 53033 fi 53034 53035 53036 # IFS 53037 # We need space, tab and new line, in precisely that order. Quoting is 53038 # there to prevent editors from complaining about space-tab. 53039 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 53040 # splitting by setting IFS to empty value.) 53041 IFS=" "" $as_nl" 53042 53043 # Find who we are. Look in the path if we contain no directory separator. 53044 as_myself= 53045 case $0 in #(( 53046 *[\\/]* ) as_myself=$0 ;; 53047 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53048 for as_dir in $PATH 53049 do 53050 IFS=$as_save_IFS 53051 test -z "$as_dir" && as_dir=. 53052 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 53053 done 53054 IFS=$as_save_IFS 53055 53056 ;; 53057 esac 53058 # We did not find ourselves, most probably we were run as `sh COMMAND' 53059 # in which case we are not to be found in the path. 53060 if test "x$as_myself" = x; then 53061 as_myself=$0 53062 fi 53063 if test ! -f "$as_myself"; then 53064 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 53065 exit 1 53066 fi 53067 53068 # Unset variables that we do not need and which cause bugs (e.g. in 53069 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 53070 # suppresses any "Segmentation fault" message there. '((' could 53071 # trigger a bug in pdksh 5.2.14. 53072 for as_var in BASH_ENV ENV MAIL MAILPATH 53073 do eval test x\${$as_var+set} = xset \ 53074 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 53075 done 53076 PS1='$ ' 53077 PS2='> ' 53078 PS4='+ ' 53079 53080 # NLS nuisances. 53081 LC_ALL=C 53082 export LC_ALL 53083 LANGUAGE=C 53084 export LANGUAGE 53085 53086 # CDPATH. 53087 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 53088 53089 53090 # as_fn_error STATUS ERROR [LINENO LOG_FD] 53091 # ---------------------------------------- 53092 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 53093 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 53094 # script with STATUS, using 1 if that was 0. 53095 as_fn_error () 53096 { 53097 as_status=$1; test $as_status -eq 0 && as_status=1 53098 if test "$4"; then 53099 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 53100 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 53101 fi 53102 $as_echo "$as_me: error: $2" >&2 53103 as_fn_exit $as_status 53104 } # as_fn_error 53105 53106 53107 # as_fn_set_status STATUS 53108 # ----------------------- 53109 # Set $? to STATUS, without forking. 53110 as_fn_set_status () 53111 { 53112 return $1 53113 } # as_fn_set_status 53114 53115 # as_fn_exit STATUS 53116 # ----------------- 53117 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 53118 as_fn_exit () 53119 { 53120 set +e 53121 as_fn_set_status $1 53122 exit $1 53123 } # as_fn_exit 53124 53125 # as_fn_unset VAR 53126 # --------------- 53127 # Portably unset VAR. 53128 as_fn_unset () 53129 { 53130 { eval $1=; unset $1;} 53131 } 53132 as_unset=as_fn_unset 53133 # as_fn_append VAR VALUE 53134 # ---------------------- 53135 # Append the text in VALUE to the end of the definition contained in VAR. Take 53136 # advantage of any shell optimizations that allow amortized linear growth over 53137 # repeated appends, instead of the typical quadratic growth present in naive 53138 # implementations. 53139 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 53140 eval 'as_fn_append () 53141 { 53142 eval $1+=\$2 53143 }' 53144 else 53145 as_fn_append () 53146 { 53147 eval $1=\$$1\$2 53148 } 53149 fi # as_fn_append 53150 53151 # as_fn_arith ARG... 53152 # ------------------ 53153 # Perform arithmetic evaluation on the ARGs, and store the result in the 53154 # global $as_val. Take advantage of shells that can avoid forks. The arguments 53155 # must be portable across $(()) and expr. 53156 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 53157 eval 'as_fn_arith () 53158 { 53159 as_val=$(( $* )) 53160 }' 53161 else 53162 as_fn_arith () 53163 { 53164 as_val=`expr "$@" || test $? -eq 1` 53165 } 53166 fi # as_fn_arith 53167 53168 53169 if expr a : '\(a\)' >/dev/null 2>&1 && 53170 test "X`expr 00001 : '.*\(...\)'`" = X001; then 53171 as_expr=expr 53172 else 53173 as_expr=false 53174 fi 53175 53176 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 53177 as_basename=basename 53178 else 53179 as_basename=false 53180 fi 53181 53182 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 53183 as_dirname=dirname 53184 else 53185 as_dirname=false 53186 fi 53187 53188 as_me=`$as_basename -- "$0" || 53189 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 53190 X"$0" : 'X\(//\)$' \| \ 53191 X"$0" : 'X\(/\)' \| . 2>/dev/null || 53192 $as_echo X/"$0" | 53193 sed '/^.*\/\([^/][^/]*\)\/*$/{ 53194 s//\1/ 53195 q 53196 } 53197 /^X\/\(\/\/\)$/{ 53198 s//\1/ 53199 q 53200 } 53201 /^X\/\(\/\).*/{ 53202 s//\1/ 53203 q 53204 } 53205 s/.*/./; q'` 53206 53207 # Avoid depending upon Character Ranges. 53208 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 53209 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 53210 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 53211 as_cr_digits='0123456789' 53212 as_cr_alnum=$as_cr_Letters$as_cr_digits 53213 53214 ECHO_C= ECHO_N= ECHO_T= 53215 case `echo -n x` in #((((( 53216 -n*) 53217 case `echo 'xy\c'` in 53218 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 53219 xy) ECHO_C='\c';; 53220 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 53221 ECHO_T=' ';; 53222 esac;; 53223 *) 53224 ECHO_N='-n';; 53225 esac 53226 53227 rm -f conf$$ conf$$.exe conf$$.file 53228 if test -d conf$$.dir; then 53229 rm -f conf$$.dir/conf$$.file 53230 else 53231 rm -f conf$$.dir 53232 mkdir conf$$.dir 2>/dev/null 53233 fi 53234 if (echo >conf$$.file) 2>/dev/null; then 53235 if ln -s conf$$.file conf$$ 2>/dev/null; then 53236 as_ln_s='ln -s' 53237 # ... but there are two gotchas: 53238 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 53239 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 53240 # In both cases, we have to default to `cp -pR'. 53241 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53242 as_ln_s='cp -pR' 53243 elif ln conf$$.file conf$$ 2>/dev/null; then 53244 as_ln_s=ln 53245 else 53246 as_ln_s='cp -pR' 53247 fi 53248 else 53249 as_ln_s='cp -pR' 53250 fi 53251 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 53252 rmdir conf$$.dir 2>/dev/null 53253 53254 53255 # as_fn_mkdir_p 53256 # ------------- 53257 # Create "$as_dir" as a directory, including parents if necessary. 53258 as_fn_mkdir_p () 53259 { 53260 53261 case $as_dir in #( 53262 -*) as_dir=./$as_dir;; 53263 esac 53264 test -d "$as_dir" || eval $as_mkdir_p || { 53265 as_dirs= 53266 while :; do 53267 case $as_dir in #( 53268 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 53269 *) as_qdir=$as_dir;; 53270 esac 53271 as_dirs="'$as_qdir' $as_dirs" 53272 as_dir=`$as_dirname -- "$as_dir" || 53273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53274 X"$as_dir" : 'X\(//\)[^/]' \| \ 53275 X"$as_dir" : 'X\(//\)$' \| \ 53276 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 53277 $as_echo X"$as_dir" | 53278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 53279 s//\1/ 53280 q 53281 } 53282 /^X\(\/\/\)[^/].*/{ 53283 s//\1/ 53284 q 53285 } 53286 /^X\(\/\/\)$/{ 53287 s//\1/ 53288 q 53289 } 53290 /^X\(\/\).*/{ 53291 s//\1/ 53292 q 53293 } 53294 s/.*/./; q'` 53295 test -d "$as_dir" && break 53296 done 53297 test -z "$as_dirs" || eval "mkdir $as_dirs" 53298 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 53299 53300 53301 } # as_fn_mkdir_p 53302 if mkdir -p . 2>/dev/null; then 53303 as_mkdir_p='mkdir -p "$as_dir"' 53304 else 53305 test -d ./-p && rmdir ./-p 53306 as_mkdir_p=false 53307 fi 53308 53309 53310 # as_fn_executable_p FILE 53311 # ----------------------- 53312 # Test if FILE is an executable regular file. 53313 as_fn_executable_p () 53314 { 53315 test -f "$1" && test -x "$1" 53316 } # as_fn_executable_p 53317 as_test_x='test -x' 53318 as_executable_p=as_fn_executable_p 53319 53320 # Sed expression to map a string onto a valid CPP name. 53321 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 53322 53323 # Sed expression to map a string onto a valid variable name. 53324 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 53325 53326 53327 exec 6>&1 53328 ## ----------------------------------- ## 53329 ## Main body of $CONFIG_STATUS script. ## 53330 ## ----------------------------------- ## 53331 _ASEOF 53332 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 53333 53334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53335 # Save the log message, to keep $0 and so on meaningful, and to 53336 # report actual input values of CONFIG_FILES etc. instead of their 53337 # values after options handling. 53338 ac_log=" 53339 This file was extended by OpenJDK $as_me jdk8, which was 53340 generated by GNU Autoconf 2.69. Invocation command line was 53341 53342 CONFIG_FILES = $CONFIG_FILES 53343 CONFIG_HEADERS = $CONFIG_HEADERS 53344 CONFIG_LINKS = $CONFIG_LINKS 53345 CONFIG_COMMANDS = $CONFIG_COMMANDS 53346 $ $0 $@ 53347 53348 on `(hostname || uname -n) 2>/dev/null | sed 1q` 53349 " 53350 53351 _ACEOF 53352 53353 case $ac_config_files in *" 53354 "*) set x $ac_config_files; shift; ac_config_files=$*;; 53355 esac 53356 53357 case $ac_config_headers in *" 53358 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 53359 esac 53360 53361 53362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53363 # Files that config.status was made for. 53364 config_files="$ac_config_files" 53365 config_headers="$ac_config_headers" 53366 53367 _ACEOF 53368 53369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53370 ac_cs_usage="\ 53371 \`$as_me' instantiates files and other configuration actions 53372 from templates according to the current configuration. Unless the files 53373 and actions are specified as TAGs, all are instantiated by default. 53374 53375 Usage: $0 [OPTION]... [TAG]... 53376 53377 -h, --help print this help, then exit 53378 -V, --version print version number and configuration settings, then exit 53379 --config print configuration, then exit 53380 -q, --quiet, --silent 53381 do not print progress messages 53382 -d, --debug don't remove temporary files 53383 --recheck update $as_me by reconfiguring in the same conditions 53384 --file=FILE[:TEMPLATE] 53385 instantiate the configuration file FILE 53386 --header=FILE[:TEMPLATE] 53387 instantiate the configuration header FILE 53388 53389 Configuration files: 53390 $config_files 53391 53392 Configuration headers: 53393 $config_headers 53394 53395 Report bugs to <build-dev@openjdk.java.net>. 53396 OpenJDK home page: <http://openjdk.java.net>." 53397 53398 _ACEOF 53399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53400 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 53401 ac_cs_version="\\ 53402 OpenJDK config.status jdk8 53403 configured by $0, generated by GNU Autoconf 2.69, 53404 with options \\"\$ac_cs_config\\" 53405 53406 Copyright (C) 2012 Free Software Foundation, Inc. 53407 This config.status script is free software; the Free Software Foundation 53408 gives unlimited permission to copy, distribute and modify it." 53409 53410 ac_pwd='$ac_pwd' 53411 srcdir='$srcdir' 53412 AWK='$AWK' 53413 test -n "\$AWK" || AWK=awk 53414 _ACEOF 53415 53416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53417 # The default lists apply if the user does not specify any file. 53418 ac_need_defaults=: 53419 while test $# != 0 53420 do 53421 case $1 in 53422 --*=?*) 53423 ac_option=`expr "X$1" : 'X\([^=]*\)='` 53424 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 53425 ac_shift=: 53426 ;; 53427 --*=) 53428 ac_option=`expr "X$1" : 'X\([^=]*\)='` 53429 ac_optarg= 53430 ac_shift=: 53431 ;; 53432 *) 53433 ac_option=$1 53434 ac_optarg=$2 53435 ac_shift=shift 53436 ;; 53437 esac 53438 53439 case $ac_option in 53440 # Handling of the options. 53441 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 53442 ac_cs_recheck=: ;; 53443 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 53444 $as_echo "$ac_cs_version"; exit ;; 53445 --config | --confi | --conf | --con | --co | --c ) 53446 $as_echo "$ac_cs_config"; exit ;; 53447 --debug | --debu | --deb | --de | --d | -d ) 53448 debug=: ;; 53449 --file | --fil | --fi | --f ) 53450 $ac_shift 53451 case $ac_optarg in 53452 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 53453 '') as_fn_error $? "missing file argument" ;; 53454 esac 53455 as_fn_append CONFIG_FILES " '$ac_optarg'" 53456 ac_need_defaults=false;; 53457 --header | --heade | --head | --hea ) 53458 $ac_shift 53459 case $ac_optarg in 53460 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 53461 esac 53462 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 53463 ac_need_defaults=false;; 53464 --he | --h) 53465 # Conflict between --help and --header 53466 as_fn_error $? "ambiguous option: \`$1' 53467 Try \`$0 --help' for more information.";; 53468 --help | --hel | -h ) 53469 $as_echo "$ac_cs_usage"; exit ;; 53470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 53471 | -silent | --silent | --silen | --sile | --sil | --si | --s) 53472 ac_cs_silent=: ;; 53473 53474 # This is an error. 53475 -*) as_fn_error $? "unrecognized option: \`$1' 53476 Try \`$0 --help' for more information." ;; 53477 53478 *) as_fn_append ac_config_targets " $1" 53479 ac_need_defaults=false ;; 53480 53481 esac 53482 shift 53483 done 53484 53485 ac_configure_extra_args= 53486 53487 if $ac_cs_silent; then 53488 exec 6>/dev/null 53489 ac_configure_extra_args="$ac_configure_extra_args --silent" 53490 fi 53491 53492 _ACEOF 53493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53494 if \$ac_cs_recheck; then 53495 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 53496 shift 53497 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 53498 CONFIG_SHELL='$SHELL' 53499 export CONFIG_SHELL 53500 exec "\$@" 53501 fi 53502 53503 _ACEOF 53504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53505 exec 5>>config.log 53506 { 53507 echo 53508 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 53509 ## Running $as_me. ## 53510 _ASBOX 53511 $as_echo "$ac_log" 53512 } >&5 53513 53514 _ACEOF 53515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53516 _ACEOF 53517 53518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53519 53520 # Handling of arguments. 53521 for ac_config_target in $ac_config_targets 53522 do 53523 case $ac_config_target in 53524 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 53525 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 53526 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 53527 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 53528 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 53529 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 53530 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 53531 53532 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 53533 esac 53534 done 53535 53536 53537 # If the user did not use the arguments to specify the items to instantiate, 53538 # then the envvar interface is used. Set only those that are not. 53539 # We use the long form for the default assignment because of an extremely 53540 # bizarre bug on SunOS 4.1.3. 53541 if $ac_need_defaults; then 53542 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 53543 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 53544 fi 53545 53546 # Have a temporary directory for convenience. Make it in the build tree 53547 # simply because there is no reason against having it here, and in addition, 53548 # creating and moving files from /tmp can sometimes cause problems. 53549 # Hook for its removal unless debugging. 53550 # Note that there is a small window in which the directory will not be cleaned: 53551 # after its creation but before its name has been assigned to `$tmp'. 53552 $debug || 53553 { 53554 tmp= ac_tmp= 53555 trap 'exit_status=$? 53556 : "${ac_tmp:=$tmp}" 53557 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 53558 ' 0 53559 trap 'as_fn_exit 1' 1 2 13 15 53560 } 53561 # Create a (secure) tmp directory for tmp files. 53562 53563 { 53564 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 53565 test -d "$tmp" 53566 } || 53567 { 53568 tmp=./conf$$-$RANDOM 53569 (umask 077 && mkdir "$tmp") 53570 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 53571 ac_tmp=$tmp 53572 53573 # Set up the scripts for CONFIG_FILES section. 53574 # No need to generate them if there are no CONFIG_FILES. 53575 # This happens for instance with `./config.status config.h'. 53576 if test -n "$CONFIG_FILES"; then 53577 53578 53579 ac_cr=`echo X | tr X '\015'` 53580 # On cygwin, bash can eat \r inside `` if the user requested igncr. 53581 # But we know of no other shell where ac_cr would be empty at this 53582 # point, so we can use a bashism as a fallback. 53583 if test "x$ac_cr" = x; then 53584 eval ac_cr=\$\'\\r\' 53585 fi 53586 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 53587 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 53588 ac_cs_awk_cr='\\r' 53589 else 53590 ac_cs_awk_cr=$ac_cr 53591 fi 53592 53593 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 53594 _ACEOF 53595 53596 53597 { 53598 echo "cat >conf$$subs.awk <<_ACEOF" && 53599 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 53600 echo "_ACEOF" 53601 } >conf$$subs.sh || 53602 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 53603 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 53604 ac_delim='%!_!# ' 53605 for ac_last_try in false false false false false :; do 53606 . ./conf$$subs.sh || 53607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 53608 53609 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 53610 if test $ac_delim_n = $ac_delim_num; then 53611 break 53612 elif $ac_last_try; then 53613 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 53614 else 53615 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 53616 fi 53617 done 53618 rm -f conf$$subs.sh 53619 53620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53621 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 53622 _ACEOF 53623 sed -n ' 53624 h 53625 s/^/S["/; s/!.*/"]=/ 53626 p 53627 g 53628 s/^[^!]*!// 53629 :repl 53630 t repl 53631 s/'"$ac_delim"'$// 53632 t delim 53633 :nl 53634 h 53635 s/\(.\{148\}\)..*/\1/ 53636 t more1 53637 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 53638 p 53639 n 53640 b repl 53641 :more1 53642 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 53643 p 53644 g 53645 s/.\{148\}// 53646 t nl 53647 :delim 53648 h 53649 s/\(.\{148\}\)..*/\1/ 53650 t more2 53651 s/["\\]/\\&/g; s/^/"/; s/$/"/ 53652 p 53653 b 53654 :more2 53655 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 53656 p 53657 g 53658 s/.\{148\}// 53659 t delim 53660 ' <conf$$subs.awk | sed ' 53661 /^[^""]/{ 53662 N 53663 s/\n// 53664 } 53665 ' >>$CONFIG_STATUS || ac_write_fail=1 53666 rm -f conf$$subs.awk 53667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53668 _ACAWK 53669 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 53670 for (key in S) S_is_set[key] = 1 53671 FS = "" 53672 53673 } 53674 { 53675 line = $ 0 53676 nfields = split(line, field, "@") 53677 substed = 0 53678 len = length(field[1]) 53679 for (i = 2; i < nfields; i++) { 53680 key = field[i] 53681 keylen = length(key) 53682 if (S_is_set[key]) { 53683 value = S[key] 53684 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 53685 len += length(value) + length(field[++i]) 53686 substed = 1 53687 } else 53688 len += 1 + keylen 53689 } 53690 53691 print line 53692 } 53693 53694 _ACAWK 53695 _ACEOF 53696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53697 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 53698 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 53699 else 53700 cat 53701 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 53702 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 53703 _ACEOF 53704 53705 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 53706 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 53707 # trailing colons and then remove the whole line if VPATH becomes empty 53708 # (actually we leave an empty line to preserve line numbers). 53709 if test "x$srcdir" = x.; then 53710 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 53711 h 53712 s/// 53713 s/^/:/ 53714 s/[ ]*$/:/ 53715 s/:\$(srcdir):/:/g 53716 s/:\${srcdir}:/:/g 53717 s/:@srcdir@:/:/g 53718 s/^:*// 53719 s/:*$// 53720 x 53721 s/\(=[ ]*\).*/\1/ 53722 G 53723 s/\n// 53724 s/^[^=]*=[ ]*$// 53725 }' 53726 fi 53727 53728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53729 fi # test -n "$CONFIG_FILES" 53730 53731 # Set up the scripts for CONFIG_HEADERS section. 53732 # No need to generate them if there are no CONFIG_HEADERS. 53733 # This happens for instance with `./config.status Makefile'. 53734 if test -n "$CONFIG_HEADERS"; then 53735 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 53736 BEGIN { 53737 _ACEOF 53738 53739 # Transform confdefs.h into an awk script `defines.awk', embedded as 53740 # here-document in config.status, that substitutes the proper values into 53741 # config.h.in to produce config.h. 53742 53743 # Create a delimiter string that does not exist in confdefs.h, to ease 53744 # handling of long lines. 53745 ac_delim='%!_!# ' 53746 for ac_last_try in false false :; do 53747 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 53748 if test -z "$ac_tt"; then 53749 break 53750 elif $ac_last_try; then 53751 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 53752 else 53753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 53754 fi 53755 done 53756 53757 # For the awk script, D is an array of macro values keyed by name, 53758 # likewise P contains macro parameters if any. Preserve backslash 53759 # newline sequences. 53760 53761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 53762 sed -n ' 53763 s/.\{148\}/&'"$ac_delim"'/g 53764 t rset 53765 :rset 53766 s/^[ ]*#[ ]*define[ ][ ]*/ / 53767 t def 53768 d 53769 :def 53770 s/\\$// 53771 t bsnl 53772 s/["\\]/\\&/g 53773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 53774 D["\1"]=" \3"/p 53775 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 53776 d 53777 :bsnl 53778 s/["\\]/\\&/g 53779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 53780 D["\1"]=" \3\\\\\\n"\\/p 53781 t cont 53782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 53783 t cont 53784 d 53785 :cont 53786 n 53787 s/.\{148\}/&'"$ac_delim"'/g 53788 t clear 53789 :clear 53790 s/\\$// 53791 t bsnlc 53792 s/["\\]/\\&/g; s/^/"/; s/$/"/p 53793 d 53794 :bsnlc 53795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 53796 b cont 53797 ' <confdefs.h | sed ' 53798 s/'"$ac_delim"'/"\\\ 53799 "/g' >>$CONFIG_STATUS || ac_write_fail=1 53800 53801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53802 for (key in D) D_is_set[key] = 1 53803 FS = "" 53804 } 53805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 53806 line = \$ 0 53807 split(line, arg, " ") 53808 if (arg[1] == "#") { 53809 defundef = arg[2] 53810 mac1 = arg[3] 53811 } else { 53812 defundef = substr(arg[1], 2) 53813 mac1 = arg[2] 53814 } 53815 split(mac1, mac2, "(") #) 53816 macro = mac2[1] 53817 prefix = substr(line, 1, index(line, defundef) - 1) 53818 if (D_is_set[macro]) { 53819 # Preserve the white space surrounding the "#". 53820 print prefix "define", macro P[macro] D[macro] 53821 next 53822 } else { 53823 # Replace #undef with comments. This is necessary, for example, 53824 # in the case of _POSIX_SOURCE, which is predefined and required 53825 # on some systems where configure will not decide to define it. 53826 if (defundef == "undef") { 53827 print "/*", prefix defundef, macro, "*/" 53828 next 53829 } 53830 } 53831 } 53832 { print } 53833 _ACAWK 53834 _ACEOF 53835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53836 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 53837 fi # test -n "$CONFIG_HEADERS" 53838 53839 53840 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 53841 shift 53842 for ac_tag 53843 do 53844 case $ac_tag in 53845 :[FHLC]) ac_mode=$ac_tag; continue;; 53846 esac 53847 case $ac_mode$ac_tag in 53848 :[FHL]*:*);; 53849 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 53850 :[FH]-) ac_tag=-:-;; 53851 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 53852 esac 53853 ac_save_IFS=$IFS 53854 IFS=: 53855 set x $ac_tag 53856 IFS=$ac_save_IFS 53857 shift 53858 ac_file=$1 53859 shift 53860 53861 case $ac_mode in 53862 :L) ac_source=$1;; 53863 :[FH]) 53864 ac_file_inputs= 53865 for ac_f 53866 do 53867 case $ac_f in 53868 -) ac_f="$ac_tmp/stdin";; 53869 *) # Look for the file first in the build tree, then in the source tree 53870 # (if the path is not absolute). The absolute path cannot be DOS-style, 53871 # because $ac_f cannot contain `:'. 53872 test -f "$ac_f" || 53873 case $ac_f in 53874 [\\/$]*) false;; 53875 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 53876 esac || 53877 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 53878 esac 53879 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 53880 as_fn_append ac_file_inputs " '$ac_f'" 53881 done 53882 53883 # Let's still pretend it is `configure' which instantiates (i.e., don't 53884 # use $as_me), people would be surprised to read: 53885 # /* config.h. Generated by config.status. */ 53886 configure_input='Generated from '` 53887 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 53888 `' by configure.' 53889 if test x"$ac_file" != x-; then 53890 configure_input="$ac_file. $configure_input" 53891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 53892 $as_echo "$as_me: creating $ac_file" >&6;} 53893 fi 53894 # Neutralize special characters interpreted by sed in replacement strings. 53895 case $configure_input in #( 53896 *\&* | *\|* | *\\* ) 53897 ac_sed_conf_input=`$as_echo "$configure_input" | 53898 sed 's/[\\\\&|]/\\\\&/g'`;; #( 53899 *) ac_sed_conf_input=$configure_input;; 53900 esac 53901 53902 case $ac_tag in 53903 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 53904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 53905 esac 53906 ;; 53907 esac 53908 53909 ac_dir=`$as_dirname -- "$ac_file" || 53910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53911 X"$ac_file" : 'X\(//\)[^/]' \| \ 53912 X"$ac_file" : 'X\(//\)$' \| \ 53913 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 53914 $as_echo X"$ac_file" | 53915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 53916 s//\1/ 53917 q 53918 } 53919 /^X\(\/\/\)[^/].*/{ 53920 s//\1/ 53921 q 53922 } 53923 /^X\(\/\/\)$/{ 53924 s//\1/ 53925 q 53926 } 53927 /^X\(\/\).*/{ 53928 s//\1/ 53929 q 53930 } 53931 s/.*/./; q'` 53932 as_dir="$ac_dir"; as_fn_mkdir_p 53933 ac_builddir=. 53934 53935 case "$ac_dir" in 53936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 53937 *) 53938 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 53939 # A ".." for each directory in $ac_dir_suffix. 53940 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 53941 case $ac_top_builddir_sub in 53942 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 53943 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 53944 esac ;; 53945 esac 53946 ac_abs_top_builddir=$ac_pwd 53947 ac_abs_builddir=$ac_pwd$ac_dir_suffix 53948 # for backward compatibility: 53949 ac_top_builddir=$ac_top_build_prefix 53950 53951 case $srcdir in 53952 .) # We are building in place. 53953 ac_srcdir=. 53954 ac_top_srcdir=$ac_top_builddir_sub 53955 ac_abs_top_srcdir=$ac_pwd ;; 53956 [\\/]* | ?:[\\/]* ) # Absolute name. 53957 ac_srcdir=$srcdir$ac_dir_suffix; 53958 ac_top_srcdir=$srcdir 53959 ac_abs_top_srcdir=$srcdir ;; 53960 *) # Relative name. 53961 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 53962 ac_top_srcdir=$ac_top_build_prefix$srcdir 53963 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 53964 esac 53965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 53966 53967 53968 case $ac_mode in 53969 :F) 53970 # 53971 # CONFIG_FILE 53972 # 53973 53974 _ACEOF 53975 53976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53977 # If the template does not know about datarootdir, expand it. 53978 # FIXME: This hack should be removed a few years after 2.60. 53979 ac_datarootdir_hack=; ac_datarootdir_seen= 53980 ac_sed_dataroot=' 53981 /datarootdir/ { 53982 p 53983 q 53984 } 53985 /@datadir@/p 53986 /@docdir@/p 53987 /@infodir@/p 53988 /@localedir@/p 53989 /@mandir@/p' 53990 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 53991 *datarootdir*) ac_datarootdir_seen=yes;; 53992 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 53993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 53994 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 53995 _ACEOF 53996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53997 ac_datarootdir_hack=' 53998 s&@datadir@&$datadir&g 53999 s&@docdir@&$docdir&g 54000 s&@infodir@&$infodir&g 54001 s&@localedir@&$localedir&g 54002 s&@mandir@&$mandir&g 54003 s&\\\${datarootdir}&$datarootdir&g' ;; 54004 esac 54005 _ACEOF 54006 54007 # Neutralize VPATH when `$srcdir' = `.'. 54008 # Shell code in configure.ac might set extrasub. 54009 # FIXME: do we really want to maintain this feature? 54010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54011 ac_sed_extra="$ac_vpsub 54012 $extrasub 54013 _ACEOF 54014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54015 :t 54016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 54017 s|@configure_input@|$ac_sed_conf_input|;t t 54018 s&@top_builddir@&$ac_top_builddir_sub&;t t 54019 s&@top_build_prefix@&$ac_top_build_prefix&;t t 54020 s&@srcdir@&$ac_srcdir&;t t 54021 s&@abs_srcdir@&$ac_abs_srcdir&;t t 54022 s&@top_srcdir@&$ac_top_srcdir&;t t 54023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 54024 s&@builddir@&$ac_builddir&;t t 54025 s&@abs_builddir@&$ac_abs_builddir&;t t 54026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 54027 $ac_datarootdir_hack 54028 " 54029 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 54030 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54031 54032 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 54033 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 54034 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 54035 "$ac_tmp/out"`; test -z "$ac_out"; } && 54036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54037 which seems to be undefined. Please make sure it is defined" >&5 54038 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54039 which seems to be undefined. Please make sure it is defined" >&2;} 54040 54041 rm -f "$ac_tmp/stdin" 54042 case $ac_file in 54043 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 54044 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 54045 esac \ 54046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54047 ;; 54048 :H) 54049 # 54050 # CONFIG_HEADER 54051 # 54052 if test x"$ac_file" != x-; then 54053 { 54054 $as_echo "/* $configure_input */" \ 54055 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 54056 } >"$ac_tmp/config.h" \ 54057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54058 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 54059 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 54060 $as_echo "$as_me: $ac_file is unchanged" >&6;} 54061 else 54062 rm -f "$ac_file" 54063 mv "$ac_tmp/config.h" "$ac_file" \ 54064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54065 fi 54066 else 54067 $as_echo "/* $configure_input */" \ 54068 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 54069 || as_fn_error $? "could not create -" "$LINENO" 5 54070 fi 54071 ;; 54072 54073 54074 esac 54075 54076 done # for ac_tag 54077 54078 54079 as_fn_exit 0 54080 _ACEOF 54081 ac_clean_files=$ac_clean_files_save 54082 54083 test $ac_write_fail = 0 || 54084 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 54085 54086 54087 # configure is writing to config.log, and then calls config.status. 54088 # config.status does its own redirection, appending to config.log. 54089 # Unfortunately, on DOS this fails, as config.log is still kept open 54090 # by configure, so config.status won't be able to write to it; its 54091 # output is simply discarded. So we exec the FD to /dev/null, 54092 # effectively closing config.log, so it can be properly (re)opened and 54093 # appended to by config.status. When coming back to configure, we 54094 # need to make the FD available again. 54095 if test "$no_create" != yes; then 54096 ac_cs_success=: 54097 ac_config_status_args= 54098 test "$silent" = yes && 54099 ac_config_status_args="$ac_config_status_args --quiet" 54100 exec 5>/dev/null 54101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 54102 exec 5>>config.log 54103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 54104 # would make configure fail if this is the last instruction. 54105 $ac_cs_success || as_fn_exit 1 54106 fi 54107 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 54108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 54109 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 54110 fi 54111 54112 54113 54114 # Try to move the config.log file to the output directory. 54115 if test -e ./config.log; then 54116 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 54117 fi 54118 54119 # Make the compare script executable 54120 $CHMOD +x $OUTPUT_ROOT/compare.sh 54121 54122 # Finally output some useful information to the user 54123 54124 # Finally output some useful information to the user 54125 54126 printf "\n" 54127 printf "====================================================\n" 54128 printf "A new configuration has been successfully created in\n" 54129 printf "$OUTPUT_ROOT\n" 54130 if test "x$CONFIGURE_COMMAND_LINE" != x; then 54131 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 54132 else 54133 printf "using default settings.\n" 54134 fi 54135 54136 printf "\n" 54137 printf "Configuration summary:\n" 54138 printf "* Debug level: $DEBUG_LEVEL\n" 54139 printf "* JDK variant: $JDK_VARIANT\n" 54140 printf "* JVM variants: $with_jvm_variants\n" 54141 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 54142 54143 printf "\n" 54144 printf "Tools summary:\n" 54145 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 54146 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 54147 fi 54148 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 54149 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 54150 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 54151 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 54152 54153 printf "\n" 54154 printf "Build performance summary:\n" 54155 printf "* Cores to use: $JOBS\n" 54156 printf "* Memory limit: $MEMORY_SIZE MB\n" 54157 if test "x$CCACHE_STATUS" != "x"; then 54158 printf "* ccache status: $CCACHE_STATUS\n" 54159 fi 54160 printf "\n" 54161 54162 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 54163 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 54164 printf "will result in longer build times.\n" 54165 printf "\n" 54166 fi 54167 54168 if test "x$FOUND_ALT_VARIABLES" != "x"; then 54169 printf "WARNING: You have old-style ALT_ environment variables set.\n" 54170 printf "These are not respected, and will be ignored. It is recommended\n" 54171 printf "that you clean your environment. The following variables are set:\n" 54172 printf "$FOUND_ALT_VARIABLES\n" 54173 printf "\n" 54174 fi 54175 54176 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 54177 printf "WARNING: Your build output directory is not on a local disk.\n" 54178 printf "This will severely degrade build performance!\n" 54179 printf "It is recommended that you create an output directory on a local disk,\n" 54180 printf "and run the configure script again from that directory.\n" 54181 printf "\n" 54182 fi 54183 54184 if test "x$IS_RECONFIGURE" = "xyes"; then 54185 printf "WARNING: The result of this configuration has overridden an older\n" 54186 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 54187 printf "proper build. Failure to do so might result in strange build problems.\n" 54188 printf "\n" 54189 fi 54190 54191 if test "x$UNSUPPORTED_TOOLCHAIN_VERSION" = "xyes"; then 54192 printf "WARNING: The toolchain version used is known to have issues. Please\n" 54193 printf "consider using a supported version unless you know what you are doing.\n" 54194 printf "\n" 54195 fi 54196 54197 54198 if test -e "$OUTPUT_ROOT/config.log"; then 54199 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" > /dev/null 2>&1 54200 if test $? -eq 0; then 54201 printf "The following warnings were produced. Repeated here for convenience:\n" 54202 # We must quote sed expression (using []) to stop m4 from eating the []. 54203 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" | $SED -e 's/^configure:[0-9]*: //' 54204 printf "\n" 54205 fi 54206 fi 54207 54208